diff --git a/Changelog.md b/Changelog.md
index 638ed36f69cea2350a3e8f0c2cb53f9415c20c90..d99751777afa0a0f37f337cb3a4ce127577e8e77 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -2,6 +2,14 @@
 
 All notable changes to this project will be documented in this file.
 
+## [0.89] - 2025-02-12
+- COMP-453: Remove strategic plan link from policies page, as we have a separate page for that
+- Use a single frontend entrypoint (index.html), as the code splitting now works properly with it
+- COMP-449: Add manually fixed security controls data
+- COMP-439: Fix HEAnet funding source data
+- Update sidebar & compendium data ordering of page links
+- Add survey validation to survey management page to easily validate surveys
+
 ## [0.88] - 2025-02-05
 - Fix data download for models that are already stored in a flat format (previously only provided the last value for a given year, instead of all values)
 - Fix ordering of years in ScrollableMatrix
@@ -9,7 +17,6 @@ All notable changes to this project will be documented in this file.
 - Fix security controls import / publishing to not include comment if "other" wasn't selected
 - Add year to ServiceMatrix tooltips
 
-
 ## [0.87] - 2025-02-05
 - Use separate entrypoints for report & survey to reduce bundle sizes & load time
 
diff --git a/compendium-frontend/README.md b/compendium-frontend/README.md
index 4d944b55489a5d749c407536af42090a781a1823..424dc86d604b5b49eeafb56e945cfd6f7f5cffcd 100644
--- a/compendium-frontend/README.md
+++ b/compendium-frontend/README.md
@@ -28,3 +28,14 @@ bun run build
 This will build the new bundle and deploy it to
 `compendium_v2/static/*`.  This should be committed to the repository.
 
+# Linting/Formatting
+
+For the Flask app, use pep8 (autopep8 in vscode) with a max line length of 120.
+The frontend (compendium-frontend) uses eslint for linting checks, and some formatting rules are enforced.
+
+The build of the frontend is gated by a linting check, to fix anything auto-fixable, use:
+```bash
+bun run lint:fix
+```
+
+
diff --git a/compendium-frontend/bun.lock b/compendium-frontend/bun.lock
index d2dc82932f9e7570c8a344659f84998b0d13b61a..0a7cb2b636893d4cc09ce4560270f65f5a443b83 100644
--- a/compendium-frontend/bun.lock
+++ b/compendium-frontend/bun.lock
@@ -4,43 +4,43 @@
     "": {
       "name": "compendium-v2",
       "dependencies": {
-        "bootstrap": "~5.3.3",
-        "bun-types": "~1.2.0",
-        "cartesian-product-multiple-arrays": "~1.0.9",
-        "chart.js": "~4.4.7",
-        "chartjs-plugin-datalabels": "~2.2.0",
-        "eslint-plugin-react-compiler": "^19.0.0-beta-27714ef-20250124",
-        "html-to-image": "~1.11.11",
-        "lodash": "~4.17.21",
-        "react": "~19.0.0",
-        "react-bootstrap": "~2.10.8",
-        "react-chartjs-2": "~5.3.0",
-        "react-dom": "~19.0.0",
-        "react-hot-toast": "~2.5.1",
-        "react-icons": "~5.4.0",
-        "react-router-dom": "~7.1.3",
-        "survey-core": "~1.12.20",
-        "survey-react-ui": "~1.12.20",
-        "xlsx": "~0.18.5",
+        "bootstrap": "latest",
+        "bun-types": "latest",
+        "cartesian-product-multiple-arrays": "latest",
+        "chart.js": "latest",
+        "chartjs-plugin-datalabels": "latest",
+        "html-to-image": "latest",
+        "lodash": "latest",
+        "react": "latest",
+        "react-bootstrap": "latest",
+        "react-chartjs-2": "latest",
+        "react-dom": "latest",
+        "react-hot-toast": "latest",
+        "react-icons": "latest",
+        "react-router-dom": "latest",
+        "survey-core": "latest",
+        "survey-react-ui": "latest",
+        "xlsx": "latest",
       },
       "devDependencies": {
-        "@eslint/compat": "~1.2.5",
-        "@eslint/eslintrc": "~3.2.0",
-        "@eslint/js": "~9.18.0",
-        "@types/react": "~19.0.8",
-        "@types/react-dom": "~19.0.3",
-        "@types/react-router-dom": "~5.3.3",
-        "@typescript-eslint/eslint-plugin": "~8.21.0",
-        "@typescript-eslint/parser": "~8.21.0",
-        "@vitejs/plugin-react": "~4.3.4",
-        "babel-plugin-react-compiler": "~19.0.0-beta-27714ef-20250124",
-        "eslint": "~9.18.0",
-        "eslint-plugin-react": "~7.37.4",
-        "eslint-plugin-react-hooks": "~5.1.0",
-        "rollup-plugin-license": "~3.5.3",
-        "sass": "~1.83.4",
-        "typescript": "~5.7.3",
-        "vite": "~6.0.11",
+        "@eslint/compat": "latest",
+        "@eslint/eslintrc": "latest",
+        "@eslint/js": "latest",
+        "@types/react": "latest",
+        "@types/react-dom": "latest",
+        "@types/react-router-dom": "latest",
+        "@typescript-eslint/eslint-plugin": "latest",
+        "@typescript-eslint/parser": "latest",
+        "@vitejs/plugin-react": "latest",
+        "babel-plugin-react-compiler": "latest",
+        "eslint": "latest",
+        "eslint-plugin-react": "latest",
+        "eslint-plugin-react-compiler": "latest",
+        "eslint-plugin-react-hooks": "latest",
+        "rollup-plugin-license": "latest",
+        "sass": "latest",
+        "typescript": "latest",
+        "vite": "latest",
       },
     },
   },
@@ -153,17 +153,17 @@
 
     "@eslint-community/regexpp": ["@eslint-community/regexpp@4.12.1", "", {}, "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ=="],
 
-    "@eslint/compat": ["@eslint/compat@1.2.5", "", { "peerDependencies": { "eslint": "^9.10.0" }, "optionalPeers": ["eslint"] }, "sha512-5iuG/StT+7OfvhoBHPlmxkPA9om6aDUFgmD4+mWKAGsYt4vCe8rypneG03AuseyRHBmcCLXQtIH5S26tIoggLg=="],
+    "@eslint/compat": ["@eslint/compat@1.2.6", "", { "peerDependencies": { "eslint": "^9.10.0" }, "optionalPeers": ["eslint"] }, "sha512-k7HNCqApoDHM6XzT30zGoETj+D+uUcZUb+IVAJmar3u6bvHf7hhHJcWx09QHj4/a2qrKZMWU0E16tvkiAdv06Q=="],
 
-    "@eslint/config-array": ["@eslint/config-array@0.19.1", "", { "dependencies": { "@eslint/object-schema": "^2.1.5", "debug": "^4.3.1", "minimatch": "^3.1.2" } }, "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA=="],
+    "@eslint/config-array": ["@eslint/config-array@0.19.2", "", { "dependencies": { "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", "minimatch": "^3.1.2" } }, "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w=="],
 
-    "@eslint/core": ["@eslint/core@0.10.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw=="],
+    "@eslint/core": ["@eslint/core@0.11.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-DWUB2pksgNEb6Bz2fggIy1wh6fGgZP4Xyy/Mt0QZPiloKKXerbqq9D3SBQTlCRYOrcRPu4vuz+CGjwdfqxnoWA=="],
 
     "@eslint/eslintrc": ["@eslint/eslintrc@3.2.0", "", { "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", "espree": "^10.0.1", "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" } }, "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w=="],
 
-    "@eslint/js": ["@eslint/js@9.18.0", "", {}, "sha512-fK6L7rxcq6/z+AaQMtiFTkvbHkBLNlwyRxHpKawP0x3u9+NC6MQTnFW+AdpwC6gfHTW0051cokQgtTN2FqlxQA=="],
+    "@eslint/js": ["@eslint/js@9.20.0", "", {}, "sha512-iZA07H9io9Wn836aVTytRaNqh00Sad+EamwOVJT12GTLw1VGMFV/4JaME+JjLtr9fiGaoWgYnS54wrfWsSs4oQ=="],
 
-    "@eslint/object-schema": ["@eslint/object-schema@2.1.5", "", {}, "sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ=="],
+    "@eslint/object-schema": ["@eslint/object-schema@2.1.6", "", {}, "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA=="],
 
     "@eslint/plugin-kit": ["@eslint/plugin-kit@0.2.5", "", { "dependencies": { "@eslint/core": "^0.10.0", "levn": "^0.4.1" } }, "sha512-lB05FkqEdUg2AA0xEbUz0SnkXT1LcCTa438W4IWTUh4hdOnVbQyOJ81OrDXsJk/LSiJHubgGEFoR5EHq1NsH1A=="],
 
@@ -181,8 +181,6 @@
 
     "@jridgewell/set-array": ["@jridgewell/set-array@1.2.1", "", {}, "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A=="],
 
-    "@jridgewell/source-map": ["@jridgewell/source-map@0.3.6", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25" } }, "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ=="],
-
     "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.0", "", {}, "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="],
 
     "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.25", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ=="],
@@ -229,7 +227,7 @@
 
     "@restart/hooks": ["@restart/hooks@0.4.16", "", { "dependencies": { "dequal": "^2.0.3" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-f7aCv7c+nU/3mF7NWLtVVr0Ra80RqsO89hO72r+Y/nvQr5+q0UFGkocElTH6MJApvReVh6JHUFYn2cw1WdHF3w=="],
 
-    "@restart/ui": ["@restart/ui@1.9.3", "", { "dependencies": { "@babel/runtime": "^7.26.0", "@popperjs/core": "^2.11.8", "@react-aria/ssr": "^3.5.0", "@restart/hooks": "^0.5.0", "@types/warning": "^3.0.3", "dequal": "^2.0.3", "dom-helpers": "^5.2.0", "uncontrollable": "^8.0.4", "warning": "^4.0.3" }, "peerDependencies": { "react": ">=16.14.0", "react-dom": ">=16.14.0" } }, "sha512-2QwCC42ISRAu7nafKeO4khG1F65Xfu2n+cwQT30Ck5bxszKDXuT2AZMDIX2auXxHRednG2ynr8ffSA1fRrkOGg=="],
+    "@restart/ui": ["@restart/ui@1.9.4", "", { "dependencies": { "@babel/runtime": "^7.26.0", "@popperjs/core": "^2.11.8", "@react-aria/ssr": "^3.5.0", "@restart/hooks": "^0.5.0", "@types/warning": "^3.0.3", "dequal": "^2.0.3", "dom-helpers": "^5.2.0", "uncontrollable": "^8.0.4", "warning": "^4.0.3" }, "peerDependencies": { "react": ">=16.14.0", "react-dom": ">=16.14.0" } }, "sha512-N4C7haUc3vn4LTwVUPlkJN8Ach/+yIMvRuTVIhjilNHqegY60SGLrzud6errOMNJwSnmYFnt1J0H/k8FE3A4KA=="],
 
     "@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.31.0", "", { "os": "android", "cpu": "arm" }, "sha512-9NrR4033uCbUBRgvLcBrJofa2KY9DzxL2UKZ1/4xA/mnTNyhZCWBuD8X3tPm1n4KxcgaraOYgrFKSgwjASfmlA=="],
 
@@ -305,21 +303,21 @@
 
     "@types/ws": ["@types/ws@8.5.10", "", { "dependencies": { "@types/node": "*" } }, "sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A=="],
 
-    "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.21.0", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.21.0", "@typescript-eslint/type-utils": "8.21.0", "@typescript-eslint/utils": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", "ts-api-utils": "^2.0.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-eTH+UOR4I7WbdQnG4Z48ebIA6Bgi7WO8HvFEneeYBxG8qCOYgTOFPSg6ek9ITIDvGjDQzWHcoWHCDO2biByNzA=="],
+    "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.24.0", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.24.0", "@typescript-eslint/type-utils": "8.24.0", "@typescript-eslint/utils": "8.24.0", "@typescript-eslint/visitor-keys": "8.24.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", "ts-api-utils": "^2.0.1" }, "peerDependencies": { "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-aFcXEJJCI4gUdXgoo/j9udUYIHgF23MFkg09LFz2dzEmU0+1Plk4rQWv/IYKvPHAtlkkGoB3m5e6oUp+JPsNaQ=="],
 
-    "@typescript-eslint/parser": ["@typescript-eslint/parser@8.21.0", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.21.0", "@typescript-eslint/types": "8.21.0", "@typescript-eslint/typescript-estree": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-Wy+/sdEH9kI3w9civgACwabHbKl+qIOu0uFZ9IMKzX3Jpv9og0ZBJrZExGrPpFAY7rWsXuxs5e7CPPP17A4eYA=="],
+    "@typescript-eslint/parser": ["@typescript-eslint/parser@8.24.0", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.24.0", "@typescript-eslint/types": "8.24.0", "@typescript-eslint/typescript-estree": "8.24.0", "@typescript-eslint/visitor-keys": "8.24.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-MFDaO9CYiard9j9VepMNa9MTcqVvSny2N4hkY6roquzj8pdCBRENhErrteaQuu7Yjn1ppk0v1/ZF9CG3KIlrTA=="],
 
-    "@typescript-eslint/scope-manager": ["@typescript-eslint/scope-manager@8.21.0", "", { "dependencies": { "@typescript-eslint/types": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0" } }, "sha512-G3IBKz0/0IPfdeGRMbp+4rbjfSSdnGkXsM/pFZA8zM9t9klXDnB/YnKOBQ0GoPmoROa4bCq2NeHgJa5ydsQ4mA=="],
+    "@typescript-eslint/scope-manager": ["@typescript-eslint/scope-manager@8.24.0", "", { "dependencies": { "@typescript-eslint/types": "8.24.0", "@typescript-eslint/visitor-keys": "8.24.0" } }, "sha512-HZIX0UByphEtdVBKaQBgTDdn9z16l4aTUz8e8zPQnyxwHBtf5vtl1L+OhH+m1FGV9DrRmoDuYKqzVrvWDcDozw=="],
 
-    "@typescript-eslint/type-utils": ["@typescript-eslint/type-utils@8.21.0", "", { "dependencies": { "@typescript-eslint/typescript-estree": "8.21.0", "@typescript-eslint/utils": "8.21.0", "debug": "^4.3.4", "ts-api-utils": "^2.0.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-95OsL6J2BtzoBxHicoXHxgk3z+9P3BEcQTpBKriqiYzLKnM2DeSqs+sndMKdamU8FosiadQFT3D+BSL9EKnAJQ=="],
+    "@typescript-eslint/type-utils": ["@typescript-eslint/type-utils@8.24.0", "", { "dependencies": { "@typescript-eslint/typescript-estree": "8.24.0", "@typescript-eslint/utils": "8.24.0", "debug": "^4.3.4", "ts-api-utils": "^2.0.1" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-8fitJudrnY8aq0F1wMiPM1UUgiXQRJ5i8tFjq9kGfRajU+dbPyOuHbl0qRopLEidy0MwqgTHDt6CnSeXanNIwA=="],
 
-    "@typescript-eslint/types": ["@typescript-eslint/types@8.21.0", "", {}, "sha512-PAL6LUuQwotLW2a8VsySDBwYMm129vFm4tMVlylzdoTybTHaAi0oBp7Ac6LhSrHHOdLM3efH+nAR6hAWoMF89A=="],
+    "@typescript-eslint/types": ["@typescript-eslint/types@8.24.0", "", {}, "sha512-VacJCBTyje7HGAw7xp11q439A+zeGG0p0/p2zsZwpnMzjPB5WteaWqt4g2iysgGFafrqvyLWqq6ZPZAOCoefCw=="],
 
-    "@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.21.0", "", { "dependencies": { "@typescript-eslint/types": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.0.0" }, "peerDependencies": { "typescript": ">=4.8.4 <5.8.0" } }, "sha512-x+aeKh/AjAArSauz0GiQZsjT8ciadNMHdkUSwBB9Z6PrKc/4knM4g3UfHml6oDJmKC88a6//cdxnO/+P2LkMcg=="],
+    "@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.24.0", "", { "dependencies": { "@typescript-eslint/types": "8.24.0", "@typescript-eslint/visitor-keys": "8.24.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.0.1" }, "peerDependencies": { "typescript": ">=4.8.4 <5.8.0" } }, "sha512-ITjYcP0+8kbsvT9bysygfIfb+hBj6koDsu37JZG7xrCiy3fPJyNmfVtaGsgTUSEuTzcvME5YI5uyL5LD1EV5ZQ=="],
 
-    "@typescript-eslint/utils": ["@typescript-eslint/utils@8.21.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@typescript-eslint/scope-manager": "8.21.0", "@typescript-eslint/types": "8.21.0", "@typescript-eslint/typescript-estree": "8.21.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-xcXBfcq0Kaxgj7dwejMbFyq7IOHgpNMtVuDveK7w3ZGwG9owKzhALVwKpTF2yrZmEwl9SWdetf3fxNzJQaVuxw=="],
+    "@typescript-eslint/utils": ["@typescript-eslint/utils@8.24.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@typescript-eslint/scope-manager": "8.24.0", "@typescript-eslint/types": "8.24.0", "@typescript-eslint/typescript-estree": "8.24.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-07rLuUBElvvEb1ICnafYWr4hk8/U7X9RDCOqd9JcAMtjh/9oRmcfN4yGzbPVirgMR0+HLVHehmu19CWeh7fsmQ=="],
 
-    "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.21.0", "", { "dependencies": { "@typescript-eslint/types": "8.21.0", "eslint-visitor-keys": "^4.2.0" } }, "sha512-BkLMNpdV6prozk8LlyK/SOoWLmUFi+ZD+pcqti9ILCbVvHGk1ui1g4jJOc2WDLaeExz2qWwojxlPce5PljcT3w=="],
+    "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.24.0", "", { "dependencies": { "@typescript-eslint/types": "8.24.0", "eslint-visitor-keys": "^4.2.0" } }, "sha512-kArLq83QxGLbuHrTMoOEWO+l2MwsNS2TGISEdx8xgqpkbytB07XmlQyQdNDrCc1ecSqx0cnmhGvpX+VBwqqSkg=="],
 
     "@vitejs/plugin-react": ["@vitejs/plugin-react@4.3.4", "", { "dependencies": { "@babel/core": "^7.26.0", "@babel/plugin-transform-react-jsx-self": "^7.25.9", "@babel/plugin-transform-react-jsx-source": "^7.25.9", "@types/babel__core": "^7.20.5", "react-refresh": "^0.14.2" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" } }, "sha512-SCCPBJtYLdE8PX/7ZQAs1QAZ8Jqwih+0VBLum1EGqmCCQal+MIUqLCzj3ZUy8ufbC0cAM4LRlSTm7IQJwWT4ug=="],
 
@@ -353,7 +351,7 @@
 
     "available-typed-arrays": ["available-typed-arrays@1.0.7", "", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="],
 
-    "babel-plugin-react-compiler": ["babel-plugin-react-compiler@19.0.0-beta-27714ef-20250124", "", { "dependencies": { "@babel/types": "^7.19.0" } }, "sha512-1AnF/dlvbIJzAjw5jEbDx7csHx772VP9AtrEg2CgUUD6MIu24j5ShxmBZ0tpfdb2pZtLVwcsoGylfZTzUoCr9w=="],
+    "babel-plugin-react-compiler": ["babel-plugin-react-compiler@19.0.0-beta-30d8a17-20250209", "", { "dependencies": { "@babel/types": "^7.19.0" } }, "sha512-0pQHlz5nmBiEQ8ZWWVLeaBzz/FkToAdXEXBBnd21uSrDtIzhSe+s3VMvqMsv6vYHNTr+0KmsvVfEqXQp0W0kzg=="],
 
     "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
 
@@ -365,9 +363,7 @@
 
     "browserslist": ["browserslist@4.24.4", "", { "dependencies": { "caniuse-lite": "^1.0.30001688", "electron-to-chromium": "^1.5.73", "node-releases": "^2.0.19", "update-browserslist-db": "^1.1.1" }, "bin": "cli.js" }, "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A=="],
 
-    "buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="],
-
-    "bun-types": ["bun-types@1.2.0", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-KEaJxyZfbV/c4eyG0vyehDpYmBGreNiQbZIqvVHJwZ4BmeuWlNZ7EAzMN2Zcd7ailmS/tGVW0BgYbGf+lGEpWw=="],
+    "bun-types": ["bun-types@1.2.2", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-RCbMH5elr9gjgDGDhkTTugA21XtJAy/9jkKe/G3WR2q17VPGhcquf9Sir6uay9iW+7P/BV0CAHA1XlHXMAVKHg=="],
 
     "call-bind": ["call-bind@1.0.8", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.2" } }, "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww=="],
 
@@ -399,8 +395,6 @@
 
     "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
 
-    "commander": ["commander@2.20.3", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],
-
     "commenting": ["commenting@1.1.0", "", {}, "sha512-YeNK4tavZwtH7jEgK1ZINXzLKm6DZdEMfsaaieOsCAN0S8vsY7UeuO3Q7d/M018EFgE+IeUAuBOKkFccBZsUZA=="],
 
     "concat-map": ["concat-map@0.0.1", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="],
@@ -463,11 +457,11 @@
 
     "escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="],
 
-    "eslint": ["eslint@9.18.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.0", "@eslint/core": "^0.10.0", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "9.18.0", "@eslint/plugin-kit": "^0.2.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.1", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.2.0", "eslint-visitor-keys": "^4.2.0", "espree": "^10.3.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": "bin/eslint.js" }, "sha512-+waTfRWQlSbpt3KWE+CjrPPYnbq9kfZIYUqapc0uBXyjTp8aYXZDsUH16m39Ryq3NjAVP4tjuF7KaukeqoCoaA=="],
+    "eslint": ["eslint@9.20.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.0", "@eslint/core": "^0.11.0", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "9.20.0", "@eslint/plugin-kit": "^0.2.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.1", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.2.0", "eslint-visitor-keys": "^4.2.0", "espree": "^10.3.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-aL4F8167Hg4IvsW89ejnpTwx+B/UQRzJPGgbIOl+4XqffWsahVVsLEWoZvnrVuwpWmnRd7XeXmQI1zlKcFDteA=="],
 
     "eslint-plugin-react": ["eslint-plugin-react@7.37.4", "", { "dependencies": { "array-includes": "^3.1.8", "array.prototype.findlast": "^1.2.5", "array.prototype.flatmap": "^1.3.3", "array.prototype.tosorted": "^1.1.4", "doctrine": "^2.1.0", "es-iterator-helpers": "^1.2.1", "estraverse": "^5.3.0", "hasown": "^2.0.2", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.1.2", "object.entries": "^1.1.8", "object.fromentries": "^2.0.8", "object.values": "^1.2.1", "prop-types": "^15.8.1", "resolve": "^2.0.0-next.5", "semver": "^6.3.1", "string.prototype.matchall": "^4.0.12", "string.prototype.repeat": "^1.0.0" }, "peerDependencies": { "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, "sha512-BGP0jRmfYyvOyvMoRX/uoUeW+GqNj9y16bPQzqAHf3AYII/tDs+jMN0dBVkl88/OZwNGwrVFxE7riHsXVfy/LQ=="],
 
-    "eslint-plugin-react-compiler": ["eslint-plugin-react-compiler@19.0.0-beta-27714ef-20250124", "", { "dependencies": { "@babel/core": "^7.24.4", "@babel/parser": "^7.24.4", "@babel/plugin-proposal-private-methods": "^7.18.6", "hermes-parser": "^0.25.1", "zod": "^3.22.4", "zod-validation-error": "^3.0.3" }, "peerDependencies": { "eslint": ">=7" } }, "sha512-8/NaV8E+eQ+BiKGeWg5wIizuKwEXLo+n/lgiyTLmJnZj8eoFW3G7NGJf3Nke4ji3Rndy34LK5Qi5TF6BPiZlSQ=="],
+    "eslint-plugin-react-compiler": ["eslint-plugin-react-compiler@19.0.0-beta-30d8a17-20250209", "", { "dependencies": { "@babel/core": "^7.24.4", "@babel/parser": "^7.24.4", "@babel/plugin-proposal-private-methods": "^7.18.6", "hermes-parser": "^0.25.1", "zod": "^3.22.4", "zod-validation-error": "^3.0.3" }, "peerDependencies": { "eslint": ">=7" } }, "sha512-D2wohyvsW27KSQV8IhyjL9UhYKs4f7Y8WPIuNOeiYylOaredvb2vW/AAE2m36BWLsn3Q9xRYz1UZj2AXR15w/g=="],
 
     "eslint-plugin-react-hooks": ["eslint-plugin-react-hooks@5.1.0", "", { "peerDependencies": { "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" } }, "sha512-mpJRtPgHN2tNAvZ35AMfqeB3Xqeo273QxrHJsbBEPWODRM4r0yB6jfoROqKEYrOn27UtRPpcpHc2UqyBSuUNTw=="],
 
@@ -729,7 +723,7 @@
 
     "react": ["react@19.0.0", "", {}, "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ=="],
 
-    "react-bootstrap": ["react-bootstrap@2.10.8", "", { "dependencies": { "@babel/runtime": "^7.24.7", "@restart/hooks": "^0.4.9", "@restart/ui": "^1.9.3", "@types/prop-types": "^15.7.12", "@types/react-transition-group": "^4.4.6", "classnames": "^2.3.2", "dom-helpers": "^5.2.1", "invariant": "^2.2.4", "prop-types": "^15.8.1", "prop-types-extra": "^1.1.0", "react-transition-group": "^4.4.5", "uncontrollable": "^7.2.1", "warning": "^4.0.3" }, "peerDependencies": { "@types/react": ">=16.14.8", "react": ">=16.14.0", "react-dom": ">=16.14.0" } }, "sha512-Vw1B2QfGGsrcBge0HQt8rjhnw2syFbtlPQXl/50k/bAnA4Jwi9+Bd4aYYTa68oyBB2KXMtDbGy2oMGl7eSet9A=="],
+    "react-bootstrap": ["react-bootstrap@2.10.9", "", { "dependencies": { "@babel/runtime": "^7.24.7", "@restart/hooks": "^0.4.9", "@restart/ui": "^1.9.4", "@types/prop-types": "^15.7.12", "@types/react-transition-group": "^4.4.6", "classnames": "^2.3.2", "dom-helpers": "^5.2.1", "invariant": "^2.2.4", "prop-types": "^15.8.1", "prop-types-extra": "^1.1.0", "react-transition-group": "^4.4.5", "uncontrollable": "^7.2.1", "warning": "^4.0.3" }, "peerDependencies": { "@types/react": ">=16.14.8", "react": ">=16.14.0", "react-dom": ">=16.14.0" }, "optionalPeers": ["@types/react"] }, "sha512-TJUCuHcxdgYpOqeWmRApM/Dy0+hVsxNRFvq2aRFQuxhNi/+ivOxC5OdWIeHS3agxvzJ4Ev4nDw2ZdBl9ymd/JQ=="],
 
     "react-chartjs-2": ["react-chartjs-2@5.3.0", "", { "peerDependencies": { "chart.js": "^4.1.1", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-UfZZFnDsERI3c3CZGxzvNJd02SHjaSJ8kgW1djn65H1KK8rehwTjyrRKOG3VTMG8wtHZ5rgAO5oTHtHi9GCCmw=="],
 
@@ -745,9 +739,9 @@
 
     "react-refresh": ["react-refresh@0.14.2", "", {}, "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA=="],
 
-    "react-router": ["react-router@7.1.3", "", { "dependencies": { "@types/cookie": "^0.6.0", "cookie": "^1.0.1", "set-cookie-parser": "^2.6.0", "turbo-stream": "2.4.0" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" } }, "sha512-EezYymLY6Guk/zLQ2vRA8WvdUhWFEj5fcE3RfWihhxXBW7+cd1LsIiA3lmx+KCmneAGQuyBv820o44L2+TtkSA=="],
+    "react-router": ["react-router@7.1.5", "", { "dependencies": { "@types/cookie": "^0.6.0", "cookie": "^1.0.1", "set-cookie-parser": "^2.6.0", "turbo-stream": "2.4.0" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" }, "optionalPeers": ["react-dom"] }, "sha512-8BUF+hZEU4/z/JD201yK6S+UYhsf58bzYIDq2NS1iGpwxSXDu7F+DeGSkIXMFBuHZB21FSiCzEcUb18cQNdRkA=="],
 
-    "react-router-dom": ["react-router-dom@7.1.3", "", { "dependencies": { "react-router": "7.1.3" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" } }, "sha512-qQGTE+77hleBzv9SIUIkGRvuFBQGagW+TQKy53UTZAO/3+YFNBYvRsNIZ1GT17yHbc63FylMOdS+m3oUriF1GA=="],
+    "react-router-dom": ["react-router-dom@7.1.5", "", { "dependencies": { "react-router": "7.1.5" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" } }, "sha512-/4f9+up0Qv92D3bB8iN5P1s3oHAepSGa9h5k6tpTFlixTTskJZwKGhJ6vRJ277tLD1zuaZTt95hyGWV1Z37csQ=="],
 
     "react-transition-group": ["react-transition-group@4.4.5", "", { "dependencies": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", "loose-envify": "^1.4.0", "prop-types": "^15.6.2" }, "peerDependencies": { "react": ">=16.6.0", "react-dom": ">=16.6.0" } }, "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g=="],
 
@@ -777,7 +771,7 @@
 
     "safe-regex-test": ["safe-regex-test@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-regex": "^1.2.1" } }, "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw=="],
 
-    "sass": ["sass@1.83.4", "", { "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", "source-map-js": ">=0.6.2 <2.0.0" }, "optionalDependencies": { "@parcel/watcher": "^2.4.1" }, "bin": "sass.js" }, "sha512-B1bozCeNQiOgDcLd33e2Cs2U60wZwjUUXzh900ZyQF5qUasvMdDZYbQ566LJu7cqR+sAHlAfO6RMkaID5s6qpA=="],
+    "sass": ["sass@1.84.0", "", { "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", "source-map-js": ">=0.6.2 <2.0.0" }, "optionalDependencies": { "@parcel/watcher": "^2.4.1" }, "bin": { "sass": "sass.js" } }, "sha512-XDAbhEPJRxi7H0SxrnOpiXFQoUJHwkR2u3Zc4el+fK/Tt5Hpzw5kkQ59qVDfvdaUq6gCrEZIbySFBM2T9DNKHg=="],
 
     "scheduler": ["scheduler@0.25.0", "", {}, "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA=="],
 
@@ -803,12 +797,8 @@
 
     "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="],
 
-    "source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],
-
     "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
 
-    "source-map-support": ["source-map-support@0.5.21", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="],
-
     "spdx-compare": ["spdx-compare@1.0.0", "", { "dependencies": { "array-find-index": "^1.0.2", "spdx-expression-parse": "^3.0.0", "spdx-ranges": "^2.0.0" } }, "sha512-C1mDZOX0hnu0ep9dfmuoi03+eOdDoz2yvK79RxbcrVEG1NO1Ph35yW102DHWKN4pk80nwCgeMmSY5L25VE4D9A=="],
 
     "spdx-exceptions": ["spdx-exceptions@2.5.0", "", {}, "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w=="],
@@ -841,15 +831,13 @@
 
     "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="],
 
-    "survey-core": ["survey-core@1.12.20", "", {}, "sha512-0r3LT0o1IUy+rQEYMYZleWTiN3eVRB8cMmc6FasD20/aIjPprl/HrigVVtgGyQyU6G8Nm3FI+V8sAENpqYcf2g=="],
-
-    "survey-react-ui": ["survey-react-ui@1.12.20", "", { "peerDependencies": { "react": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "survey-core": "1.12.20" } }, "sha512-vGdgzLiD0VpCo4gKXjL4GbcihJ8DWCPvcivUns1hKgKYExiVo12GWmYadRra6jtlNFEl4GkHh3mIZym1c7Bmjw=="],
+    "survey-core": ["survey-core@1.12.23", "", {}, "sha512-/ZKLF+6xlVLyna4c4N3xWyrYRIlfT43C3ZjScrU/36QY5abpvLyEalHGMxu2rKcBNj1vyw5BwGccYf5DWs5RhQ=="],
 
-    "terser": ["terser@5.31.1", "", { "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, "bin": "bin/terser" }, "sha512-37upzU1+viGvuFtBo9NPufCb9dwM0+l9hMxYyWfBA+fbwrPqNJAhbZ6W47bBFnZHKHTUBnMvi87434qq+qnxOg=="],
+    "survey-react-ui": ["survey-react-ui@1.12.23", "", { "peerDependencies": { "react": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "survey-core": "1.12.23" } }, "sha512-6J9SSFFlYp6N/IX8h5IB6uRhIBERCFiqtVNK2ItZdkRE9zep5ANbsIUlRbJD89pEFyn+6o3zqrgs8AXBIEPB3A=="],
 
     "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="],
 
-    "ts-api-utils": ["ts-api-utils@2.0.0", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-xCt/TOAc+EOHS1XPnijD3/yzpH6qg2xppZO1YDqGoVsNXfQfzHpOdNuXwrwOU8u4ITXJyDCTyt8w5g1sZv9ynQ=="],
+    "ts-api-utils": ["ts-api-utils@2.0.1", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w=="],
 
     "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
 
@@ -877,7 +865,7 @@
 
     "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="],
 
-    "vite": ["vite@6.0.11", "", { "dependencies": { "esbuild": "^0.24.2", "postcss": "^8.4.49", "rollup": "^4.23.0" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["jiti", "less", "lightningcss", "sass-embedded", "stylus", "sugarss", "tsx", "yaml"], "bin": "bin/vite.js" }, "sha512-4VL9mQPKoHy4+FE0NnRE/kbY51TOfaknxAjt3fJbGJxhIpBZiqVzlZDEesWWsuREXHwNdAoOFZ9MkPEVXczHwg=="],
+    "vite": ["vite@6.1.0", "", { "dependencies": { "esbuild": "^0.24.2", "postcss": "^8.5.1", "rollup": "^4.30.1" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-RjjMipCKVoR4hVfPY6GQTgveinjNuyLw+qruksLDvA5ktI1150VmcMBKmQaEWJhg/j6Uaf6dNCNA0AfdzUb/hQ=="],
 
     "warning": ["warning@4.0.3", "", { "dependencies": { "loose-envify": "^1.0.0" } }, "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w=="],
 
@@ -911,6 +899,8 @@
 
     "@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="],
 
+    "@eslint/plugin-kit/@eslint/core": ["@eslint/core@0.10.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw=="],
+
     "@humanfs/node/@humanwhocodes/retry": ["@humanwhocodes/retry@0.3.1", "", {}, "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA=="],
 
     "@jridgewell/gen-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.4.15", "", {}, "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg=="],
diff --git a/compendium-frontend/eslint.config.mjs b/compendium-frontend/eslint.config.mjs
index ef146e457bb7cb949cd9fd0e68cbf6302b33e05e..b9603c346ff73ba20ec638b063eff5126e895be7 100644
--- a/compendium-frontend/eslint.config.mjs
+++ b/compendium-frontend/eslint.config.mjs
@@ -46,10 +46,11 @@ export default [
     },
 
     rules: {
-      // these are not needed with React 19
+      // react import isn't needed with React 19
       "react/jsx-uses-react": "off",
       "react/react-in-jsx-scope": "off",
-      
+
+      // general rules
       "react-hooks/rules-of-hooks": "error",
       "react-hooks/exhaustive-deps": "warn",
       "react/prop-types": "off",
@@ -60,8 +61,15 @@ export default [
           argsIgnorePattern: "^_",
         },
       ],
+      "no-multiple-empty-lines": [
+        "error",
+        {
+          max: 1,
+          maxBOF: 0,
+          maxEOF: 0,
+        },
+      ]
 
-      "@typescript-eslint/no-empty-function": "off",
     },
   },
 ];
diff --git a/compendium-frontend/index.html b/compendium-frontend/index.html
index 4cb4319fc0120d5684de1353fcf8fbdbcabf0321..b2e116e7475a4ff5902911fdf968359cee1beb9b 100644
--- a/compendium-frontend/index.html
+++ b/compendium-frontend/index.html
@@ -1,7 +1,10 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8"/>
+  <meta name="viewport" content="width=device-width, initial-scale=.5"/>
+  <meta name="description" content="The GÉANT Compendium of National Research and Education Networks in Europe is the result of a broad, collective effort to portray the networks of the research and education community in Europe and beyond. The annual NREN Compendium survey invites the world's NRENs to provide detailed information about their network, equipment and users. The results from this survey are highlighted in these studies."/>
+  <title>The GÉANT Compendium</title>
 </head>
 <body>
   <div id="root"></div>
diff --git a/compendium-frontend/package.json b/compendium-frontend/package.json
index 85044efd36fe55b3dca57792ecf367d4fc0fd50b..ba38649da0fd96600ce680e619e93c562a9968c2 100644
--- a/compendium-frontend/package.json
+++ b/compendium-frontend/package.json
@@ -2,47 +2,47 @@
   "name": "compendium-v2",
   "version": "1.0.0",
   "devDependencies": {
-    "babel-plugin-react-compiler": "~19.0.0-beta-27714ef-20250124",
-    "eslint-plugin-react-compiler": "^19.0.0-beta-27714ef-20250124",
-    "@eslint/compat": "~1.2.5",
+    "@eslint/compat": "~1.2.6",
     "@eslint/eslintrc": "~3.2.0",
-    "@eslint/js": "~9.18.0",
+    "@eslint/js": "~9.20.0",
     "@types/react": "~19.0.8",
     "@types/react-dom": "~19.0.3",
     "@types/react-router-dom": "~5.3.3",
-    "@typescript-eslint/eslint-plugin": "~8.21.0",
-    "@typescript-eslint/parser": "~8.21.0",
+    "@typescript-eslint/eslint-plugin": "~8.24.0",
+    "@typescript-eslint/parser": "~8.24.0",
     "@vitejs/plugin-react": "~4.3.4",
-    "eslint": "~9.18.0",
+    "babel-plugin-react-compiler": "~19.0.0-beta-30d8a17-20250209",
+    "eslint": "~9.20.0",
     "eslint-plugin-react": "~7.37.4",
+    "eslint-plugin-react-compiler": "^19.0.0-beta-30d8a17-20250209",
     "eslint-plugin-react-hooks": "~5.1.0",
     "rollup-plugin-license": "~3.5.3",
-    "sass": "~1.83.4",
+    "sass": "~1.84.0",
     "typescript": "~5.7.3",
-    "vite": "~6.0.11"
+    "vite": "~6.1.0"
   },
   "scripts": {
     "start": "vite",
-    "build": "(eslint && vite build --emptyOutDir) || echo 'eslint failed, build aborted'",
-    "lint": "eslint"
+    "build": "(eslint --fix && vite build --emptyOutDir) || echo 'eslint failed, build aborted'",
+    "lint": "eslint --fix"
   },
   "dependencies": {
     "bootstrap": "~5.3.3",
-    "bun-types": "~1.2.0",
+    "bun-types": "~1.2.2",
     "cartesian-product-multiple-arrays": "~1.0.9",
     "chart.js": "~4.4.7",
     "chartjs-plugin-datalabels": "~2.2.0",
     "html-to-image": "~1.11.11",
     "lodash": "~4.17.21",
     "react": "~19.0.0",
-    "react-bootstrap": "~2.10.8",
+    "react-bootstrap": "~2.10.9",
     "react-chartjs-2": "~5.3.0",
     "react-dom": "~19.0.0",
     "react-hot-toast": "~2.5.1",
     "react-icons": "~5.4.0",
-    "react-router-dom": "~7.1.3",
-    "survey-core": "~1.12.20",
-    "survey-react-ui": "~1.12.20",
+    "react-router-dom": "~7.1.5",
+    "survey-core": "~1.12.23",
+    "survey-react-ui": "~1.12.23",
     "xlsx": "~0.18.5"
   },
   "description": "## development environment",
diff --git a/compendium-frontend/src/App.tsx b/compendium-frontend/src/App.tsx
index 7a01e7790afdbc4c2534581ab17c26f482b3a6d9..c7c6b55e229d29ed3ccf95861409215c5434d37f 100644
--- a/compendium-frontend/src/App.tsx
+++ b/compendium-frontend/src/App.tsx
@@ -1,69 +1,75 @@
-import { ReactElement, useEffect, lazy } from "react";
+import { ReactElement, lazy } from "react";
 import { createBrowserRouter, RouterProvider, Outlet, useLocation } from "react-router-dom";
-import Providers from "./Providers";
-import { ConnectivityPage, ServiceCategory } from "./Schema";
-import ExternalPageNavBar from "./components/global/ExternalPageNavBar";
-import GeantFooter from "./components/global/GeantFooter";
-import Landing from "./pages/Landing";
-import CompendiumData from "./pages/CompendiumData";
-import PrivacyModal from "./matomo/PrivacyModal";
+import Providers from "compendium/Providers";
+import { ConnectivityPage, ServiceCategory } from "compendium/Schema";
+import ExternalPageNavBar from "compendium/components/global/ExternalPageNavBar";
+import GeantFooter from "compendium/components/global/GeantFooter";
+import Landing from "compendium/pages/Landing";
+import CompendiumData from "compendium/pages/CompendiumData";
+import PrivacyModal from "compendium/matomo/PrivacyModal";
 
 // Organization
-const BudgetPage = lazy(() => import("./pages/Organization/Budget"));
-const ChargingStructurePage = lazy(() => import("./pages/Organization/ChargingStructure"));
-const ECProjectsPage = lazy(() => import("./pages/Organization/ECProjects"));
-const FundingSourcePage = lazy(() => import("./pages/Organization/FundingSource"));
-const ParentOrganisationPage = lazy(() => import("./pages/Organization/ParentOrganisation"));
-const StaffGraphPage = lazy(() => import("./pages/Organization/StaffGraph"));
-const StaffGraphAbsolutePage = lazy(() => import("./pages/Organization/StaffGraphAbsolute"));
-const SubOrganisationPage = lazy(() => import("./pages/Organization/SubOrganisation"));
+const BudgetPage = lazy(() => import("compendium/pages/Organization/Budget"));
+const ChargingStructurePage = lazy(() => import("compendium/pages/Organization/ChargingStructure"));
+const ECProjectsPage = lazy(() => import("compendium/pages/Organization/ECProjects"));
+const FundingSourcePage = lazy(() => import("compendium/pages/Organization/FundingSource"));
+const ParentOrganisationPage = lazy(() => import("compendium/pages/Organization/ParentOrganisation"));
+const StaffGraphPage = lazy(() => import("compendium/pages/Organization/StaffGraph"));
+const StaffGraphAbsolutePage = lazy(() => import("compendium/pages/Organization/StaffGraphAbsolute"));
+const SubOrganisationPage = lazy(() => import("compendium/pages/Organization/SubOrganisation"));
 
 // Standards & Policies
-const AuditsPage = lazy(() => import("./pages/Standards&Policies/Audits"));
-const BusinessContinuityPage = lazy(() => import("./pages/Standards&Policies/BusinessContinuity"));
-const CentralProcurementPage = lazy(() => import("./pages/Standards&Policies/CentralProcurement"));
-const CorporateStrategyPage = lazy(() => import("./pages/Standards&Policies/CorporateStrategy"));
-const CrisisExercisesPage = lazy(() => import("./pages/Standards&Policies/CrisisExercises"));
-const CrisisManagementPage = lazy(() => import("./pages/Standards&Policies/CrisisManagement"));
-const EOSCListingsPage = lazy(() => import("./pages/Standards&Policies/EOSCListings"));
-const PolicyPage = lazy(() => import("./pages/Standards&Policies/Policy"));
-const SecurityControlsPage = lazy(() => import("./pages/Standards&Policies/SecurityControls"));
-const ServiceLevelTargetsPage = lazy(() => import("./pages/Standards&Policies/ServiceLevelTargets"));
-const ServiceManagementFrameworkPage = lazy(() => import("./pages/Standards&Policies/ServiceManagementFramework"));
-const ServicesOfferedPage = lazy(() => import("./pages/Standards&Policies/ServicesOffered"));
+const AuditsPage = lazy(() => import("compendium/pages/Standards&Policies/Audits"));
+const BusinessContinuityPage = lazy(() => import("compendium/pages/Standards&Policies/BusinessContinuity"));
+const CentralProcurementPage = lazy(() => import("compendium/pages/Standards&Policies/CentralProcurement"));
+const CorporateStrategyPage = lazy(() => import("compendium/pages/Standards&Policies/CorporateStrategy"));
+const CrisisExercisesPage = lazy(() => import("compendium/pages/Standards&Policies/CrisisExercises"));
+const CrisisManagementPage = lazy(() => import("compendium/pages/Standards&Policies/CrisisManagement"));
+const EOSCListingsPage = lazy(() => import("compendium/pages/Standards&Policies/EOSCListings"));
+const PolicyPage = lazy(() => import("compendium/pages/Standards&Policies/Policy"));
+const SecurityControlsPage = lazy(() => import("compendium/pages/Standards&Policies/SecurityControls"));
+const ServiceLevelTargetsPage = lazy(() => import("compendium/pages/Standards&Policies/ServiceLevelTargets"));
+const ServiceManagementFrameworkPage = lazy(() => import("compendium/pages/Standards&Policies/ServiceManagementFramework"));
+const ServicesOfferedPage = lazy(() => import("compendium/pages/Standards&Policies/ServicesOffered"));
 
 // Connected Users
-const ConnectedInstitutionsURLsPage = lazy(() => import("./pages/ConnectedUsers/ConnectedInstitutionsURLs"));
-const ConnectedUserPage = lazy(() => import("./pages/ConnectedUsers/ConnectedUser"));
-const RemoteCampusesPage = lazy(() => import("./pages/ConnectedUsers/RemoteCampuses"));
+const ConnectedInstitutionsURLsPage = lazy(() => import("compendium/pages/ConnectedUsers/ConnectedInstitutionsURLs"));
+const ConnectedUserPage = lazy(() => import("compendium/pages/ConnectedUsers/ConnectedUser"));
+const RemoteCampusesPage = lazy(() => import("compendium/pages/ConnectedUsers/RemoteCampuses"));
 
 // Network
-const AlienWavePage = lazy(() => import("./pages/Network/AlienWave"));
-const AlienWaveInternalPage = lazy(() => import("./pages/Network/AlienWaveInternal"));
-const AutomationPage = lazy(() => import("./pages/Network/Automation"));
-const CapacityCoreIPPage = lazy(() => import("./pages/Network/CapacityCoreIP"));
-const CapacityLargestLinkPage = lazy(() => import("./pages/Network/CapacityLargestLink"));
-const CertificateProviderPage = lazy(() => import("./pages/Network/CertificateProvider"));
-const DarkFibreLeasePage = lazy(() => import("./pages/Network/DarkFibreLease"));
-const DarkFibreInstalledPage = lazy(() => import("./pages/Network/DarkFibreInstalled"));
-const ExternalConnectionsPage = lazy(() => import("./pages/Network/ExternalConnections"));
-const FibreLightPage = lazy(() => import("./pages/Network/FibreLight"));
-const IRUDurationPage = lazy(() => import("./pages/Network/IRUDuration"));
-const MonitoringToolsPage = lazy(() => import("./pages/Network/MonitoringTools"));
-const NetworkFunctionVirtualisationPage = lazy(() => import("./pages/Network/NetworkFunctionVirtualisation"));
-const NetworkMapUrlPage = lazy(() => import("./pages/Network/NetworkMapUrls"));
-const NonRAndEPeerPage = lazy(() => import("./pages/Network/NonRAndEPeer"));
-const OPsAutomationPage = lazy(() => import("./pages/Network/OPsAutomation"));
-const PassiveMonitoringPage = lazy(() => import("./pages/Network/PassiveMonitoring"));
-const PertTeamPage = lazy(() => import("./pages/Network/PertTeam"));
-const SiemVendorsPage = lazy(() => import("./pages/Network/SiemVendors"));
-const TrafficRatioPage = lazy(() => import("./pages/Network/TrafficRatio"));
-const TrafficUrlPage = lazy(() => import("./pages/Network/TrafficUrl"));
-const TrafficVolumePage = lazy(() => import("./pages/Network/TrafficVolume"));
-const NetworkWeatherMapPage = lazy(() => import("./pages/Network/WeatherMap"));
+const AlienWavePage = lazy(() => import("compendium/pages/Network/AlienWave"));
+const AlienWaveInternalPage = lazy(() => import("compendium/pages/Network/AlienWaveInternal"));
+const AutomationPage = lazy(() => import("compendium/pages/Network/Automation"));
+const CapacityCoreIPPage = lazy(() => import("compendium/pages/Network/CapacityCoreIP"));
+const CapacityLargestLinkPage = lazy(() => import("compendium/pages/Network/CapacityLargestLink"));
+const CertificateProviderPage = lazy(() => import("compendium/pages/Network/CertificateProvider"));
+const DarkFibreLeasePage = lazy(() => import("compendium/pages/Network/DarkFibreLease"));
+const DarkFibreInstalledPage = lazy(() => import("compendium/pages/Network/DarkFibreInstalled"));
+const ExternalConnectionsPage = lazy(() => import("compendium/pages/Network/ExternalConnections"));
+const FibreLightPage = lazy(() => import("compendium/pages/Network/FibreLight"));
+const IRUDurationPage = lazy(() => import("compendium/pages/Network/IRUDuration"));
+const MonitoringToolsPage = lazy(() => import("compendium/pages/Network/MonitoringTools"));
+const NetworkFunctionVirtualisationPage = lazy(() => import("compendium/pages/Network/NetworkFunctionVirtualisation"));
+const NetworkMapUrlPage = lazy(() => import("compendium/pages/Network/NetworkMapUrls"));
+const NonRAndEPeerPage = lazy(() => import("compendium/pages/Network/NonRAndEPeer"));
+const OPsAutomationPage = lazy(() => import("compendium/pages/Network/OPsAutomation"));
+const PassiveMonitoringPage = lazy(() => import("compendium/pages/Network/PassiveMonitoring"));
+const PertTeamPage = lazy(() => import("compendium/pages/Network/PertTeam"));
+const SiemVendorsPage = lazy(() => import("compendium/pages/Network/SiemVendors"));
+const TrafficRatioPage = lazy(() => import("compendium/pages/Network/TrafficRatio"));
+const TrafficUrlPage = lazy(() => import("compendium/pages/Network/TrafficUrl"));
+const TrafficVolumePage = lazy(() => import("compendium/pages/Network/TrafficVolume"));
+const NetworkWeatherMapPage = lazy(() => import("compendium/pages/Network/WeatherMap"));
 
 // Services Matrix
-const ServicesPage = lazy(() => import("./pages/Services/Services"));
+const ServicesPage = lazy(() => import("compendium/pages/Services/Services"));
+
+// Survey
+const SurveyLanding = lazy(() => import('compendium/survey/Landing'));
+const SurveyContainerComponent = lazy(() => import('compendium/survey/SurveyContainerComponent'));
+const SurveyManagementComponent = lazy(() => import('compendium/survey/management/SurveyManagementComponent'));
+const UserManagementComponent = lazy(() => import('compendium/survey/management/UserManagementComponent'));
 
 const GlobalLayout = () => {
   // this component is needed to provide a global layout for the app, including the navbar and footer,
@@ -85,21 +91,6 @@ const GlobalLayout = () => {
   )
 }
 
-const RedirectToSurvey = () => {
-  const { pathname } = useLocation();
-
-  useEffect(() => {
-    // Only redirect if we're not already on a survey path
-    if (!pathname.startsWith('/survey')) {
-      window.location.replace(`/survey${pathname}`);
-    } else {
-      window.location.replace(pathname);
-    }
-  }, [pathname]);
-
-  return <Landing />
-}
-
 const router = createBrowserRouter([
   {
     "path": "",
@@ -168,8 +159,15 @@ const router = createBrowserRouter([
       { path: "/service-management-framework", element: <ServiceManagementFrameworkPage /> },
       { path: "/service-level-targets", element: <ServiceLevelTargetsPage /> },
       { path: "/corporate-strategy", element: <CorporateStrategyPage /> },
-      { path: "/survey/*", element: <RedirectToSurvey /> },
-      { path: "*", element: <Landing /> },
+
+      // survey
+      { path: "/survey/admin/surveys", element: <SurveyManagementComponent /> },
+      { path: "/survey/admin/users", element: <UserManagementComponent /> },
+      { path: "/survey/admin/inspect/:year", element: <SurveyContainerComponent loadFrom={"/api/response/inspect/"} /> },
+      { path: "/survey/admin/try/:year", element: <SurveyContainerComponent loadFrom={"/api/response/try/"} /> },
+      { path: "/survey/response/:year/:nren", element: <SurveyContainerComponent loadFrom={"/api/response/load/"} /> },
+      { path: "/survey/*", element: <SurveyLanding /> },
+      { path: "/*", element: <Landing /> },
     ]
   }
 ]);
diff --git a/compendium-frontend/src/Providers.tsx b/compendium-frontend/src/Providers.tsx
index 97739e8b3f3e2cc74c00e151dd856aca04ef400c..79fcf093e0700d9619dab90ae1d3964f54b586b6 100644
--- a/compendium-frontend/src/Providers.tsx
+++ b/compendium-frontend/src/Providers.tsx
@@ -1,14 +1,14 @@
 import { ReactElement } from "react";
 
-import SidebarProvider from "./providers/SidebarProvider";
-import UserProvider from "./providers/UserProvider";
-import FilterSelectionProvider from "./providers/FilterSelectionProvider";
-import ChartContainerProvider from "./providers/ChartContainerProvider";
-import PreviewProvider from "./providers/PreviewProvider";
-import NrenProvider from "./providers/NrenProvider";
-import MatomoProvider from "./matomo/MatomoProvider";
-import ConsentProvider from "./providers/ConsentProvider";
-import ConfigProvider from "./providers/ConfigProvider";
+import SidebarProvider from "compendium/providers/SidebarProvider";
+import UserProvider from "compendium/providers/UserProvider";
+import FilterSelectionProvider from "compendium/providers/FilterSelectionProvider";
+import ChartContainerProvider from "compendium/providers/ChartContainerProvider";
+import PreviewProvider from "compendium/providers/PreviewProvider";
+import NrenProvider from "compendium/providers/NrenProvider";
+import MatomoProvider from "compendium/matomo/MatomoProvider";
+import ConsentProvider from "compendium/providers/ConsentProvider";
+import ConfigProvider from "compendium/providers/ConfigProvider";
 
 function Providers({ children }): ReactElement {
     return (
diff --git a/compendium-frontend/src/components/CollapsibleBox.tsx b/compendium-frontend/src/components/CollapsibleBox.tsx
index d1d6fc2da43c3c458e036cf92e9e9ceaa55ed93a..e058c165fab4f5cb7663ddecd476a2aa49fef696 100644
--- a/compendium-frontend/src/components/CollapsibleBox.tsx
+++ b/compendium-frontend/src/components/CollapsibleBox.tsx
@@ -32,8 +32,6 @@ const CollapsibleBox: React.FC<CollapsibleBoxProps> = ({ title, children, startC
         </Col>
       </Row>
 
-
-
       <div className={`collapsible-content${isCollapsed ? ' collapsed' : ''}`}>
         {children}
       </div>
diff --git a/compendium-frontend/src/components/ColorBadge.tsx b/compendium-frontend/src/components/ColorBadge.tsx
index bc6b55da6e043cbc1e6a92c4fe3538f7428e2f2d..9b098da9d11eb6649386f9a4e094d8b2de6d8e3a 100644
--- a/compendium-frontend/src/components/ColorBadge.tsx
+++ b/compendium-frontend/src/components/ColorBadge.tsx
@@ -1,5 +1,3 @@
-import React from "react";
-
 function ColorBadge({ index: index, active = true }) {
   return (
     <div className="d-inline-block m-2" key={index}>
diff --git a/compendium-frontend/src/components/ColorBadgeService.tsx b/compendium-frontend/src/components/ColorBadgeService.tsx
index 7d98a1b8242fdf581e157a81d3b12dc92b78a095..0c9cbfa247bcb88417f817102f388f1a0af6fabb 100644
--- a/compendium-frontend/src/components/ColorBadgeService.tsx
+++ b/compendium-frontend/src/components/ColorBadgeService.tsx
@@ -1,6 +1,5 @@
 import { BiCheck } from 'react-icons/bi';
 
-
 function ColorBadgeService({ year, active, serviceInfo, tickServiceIndex, current }) {
 
   let tooltip_text = "No additional information available";
diff --git a/compendium-frontend/src/components/ColorPill.tsx b/compendium-frontend/src/components/ColorPill.tsx
index b0802a699fb0dc336facd302d774b18427b2486e..8c8fd457552d4bf078fad7a166db7e69c0770e98 100644
--- a/compendium-frontend/src/components/ColorPill.tsx
+++ b/compendium-frontend/src/components/ColorPill.tsx
@@ -1,5 +1,3 @@
-import React from "react";
-
 interface ColorPillProps {
   year: number;
   active: boolean;
diff --git a/compendium-frontend/src/components/DataPage.tsx b/compendium-frontend/src/components/DataPage.tsx
index 68e9ec376130ee58549f392fa72988e14ffddcd4..25d011a502c27901ba49fd67ccc588b6f4abdeca 100644
--- a/compendium-frontend/src/components/DataPage.tsx
+++ b/compendium-frontend/src/components/DataPage.tsx
@@ -1,22 +1,24 @@
 import { ReactElement, useEffect, useContext } from "react";
 import { Container, Row } from "react-bootstrap";
 import { Link } from "react-router-dom";
+import { Chart as ChartJS } from 'chart.js';
 
-import OrganizationSidebar from "./sidebar/OrganizationSidebar";
-import PageHeader from "../components/global/PageHeader"
-import SectionNavigation from "./SectionNavigation";
-import { Sections } from "../helpers/constants";
-import PolicySidebar from "./sidebar/PolicySidebar";
+import PageHeader from "compendium/components/global/PageHeader"
+import SectionNavigation from "compendium/components/SectionNavigation";
+import OrganizationSidebar from "compendium/components/sidebar/OrganizationSidebar";
+import PolicySidebar from "compendium/components/sidebar/PolicySidebar";
+import ConnectedUsersSidebar from "compendium/components/sidebar/ConnectedUsersSidebar";
+import NetworkSidebar from "compendium/components/sidebar/NetworkSidebar";
+import ServicesSidebar from "compendium/components/sidebar/ServicesSidebar";
+import DownloadDataButton from "compendium/components/download/DownloadDataButton";
+import DownloadImageChartButton from "compendium/components/download/DownloadImageChartButton";
 
-import { Chart as ChartJS } from 'chart.js';
-import NetworkSidebar from "./sidebar/NetworkSidebar";
-import ConnectedUsersSidebar from "./sidebar/ConnectedUsersSidebar";
-import ServicesSidebar from "./sidebar/ServicesSidebar";
-import DownloadContainer from "./download/DownloadContainer";
-import useMatomo from "../matomo/UseMatomo";
-import { PreviewContext } from "@/providers/PreviewProvider";
-import { NrenAndYearDatapoint } from "../Schema";
+import useMatomo from "compendium/matomo/UseMatomo";
 
+import { ExportType } from "compendium/helpers/constants";
+import { Sections } from "compendium/helpers/constants";
+import { PreviewContext } from "compendium/providers/PreviewProvider";
+import { NrenAndYearDatapoint } from "compendium/Schema";
 
 ChartJS.defaults.font.size = 16;
 ChartJS.defaults.font.family = 'Open Sans';
@@ -64,8 +66,10 @@ function DataPage({ title, description, filter, children, category, data, filena
                     <p className="p-md-4">{description}</p>
                 </Row>
 
-                <Row align="right" style={{ position: 'relative' }}>
-                    <DownloadContainer data={data} filename={filename} />
+                <Row className="downloadcontainer">
+                    <DownloadDataButton data={data} filename={`${filename}.csv`} exportType={ExportType.CSV} />
+                    <DownloadDataButton data={data} filename={`${filename}.xlsx`} exportType={ExportType.EXCEL} />
+                    <DownloadImageChartButton filename={filename} />
                 </Row>
                 <Row>
                     {filter}
diff --git a/compendium-frontend/src/components/sidebar/LinkWithHighlight.tsx b/compendium-frontend/src/components/LinkWithHighlight.tsx
similarity index 100%
rename from compendium-frontend/src/components/sidebar/LinkWithHighlight.tsx
rename to compendium-frontend/src/components/LinkWithHighlight.tsx
diff --git a/compendium-frontend/src/components/NrenYearTable.tsx b/compendium-frontend/src/components/NrenYearTable.tsx
index 0448fe5ab8932cbadb7c600fe3b2531df42350a8..b3aafc6ab16cb3f4bbaa18bcb5110d6f7f114040 100644
--- a/compendium-frontend/src/components/NrenYearTable.tsx
+++ b/compendium-frontend/src/components/NrenYearTable.tsx
@@ -1,6 +1,6 @@
 import React from 'react';
 import { Table } from "react-bootstrap";
-import { addHttpIfMissing } from '../helpers/dataconversion';
+import { addHttpIfMissing } from 'compendium/helpers/dataconversion';
 
 interface configProps {
     dottedBorder?: boolean;
@@ -30,7 +30,6 @@ function getUrlOrString(keysAreURLs, style, index, key, value: string) {
 
 }
 
-
 function getJSXFromData(data: Map<string, Map<number, { [key: string]: string }>>,
     { dottedBorder = false, noDots = false, keysAreURLs = false, removeDecoration = false }: configProps) {
     return Array.from(data.entries()).map(([nren, nrenMap]) => {
diff --git a/compendium-frontend/src/components/PillTable.tsx b/compendium-frontend/src/components/PillTable.tsx
index 36cfbfeeab026f75c0ec9e19d2f7144d5a47f96b..19e6589f8727688df081aaaa19e0225b6f972ef5 100644
--- a/compendium-frontend/src/components/PillTable.tsx
+++ b/compendium-frontend/src/components/PillTable.tsx
@@ -1,7 +1,7 @@
 import React from 'react';
 import { Table } from "react-bootstrap";
-import ColorPill from "./ColorPill";
-import { NrenAndYearDatapoint } from '../Schema';
+import ColorPill from "compendium/components/ColorPill";
+import { NrenAndYearDatapoint } from "compendium/Schema";
 
 interface PillTableProps<T extends NrenAndYearDatapoint | { [key: string]: number | string }> {
     columns: string[];
@@ -10,7 +10,6 @@ interface PillTableProps<T extends NrenAndYearDatapoint | { [key: string]: numbe
     columnLookup?: Map<string, string | null>;
 }
 
-
 function PillTable<T extends NrenAndYearDatapoint | { [key: string]: number | string }>({ columns, dataLookup, circle = false, columnLookup = new Map() }: PillTableProps<T>) {
 
     const allCategories = Array.from(new Set(Array.from(dataLookup.values()).flatMap(columnData => Array.from(columnData.keys()))));
@@ -105,6 +104,3 @@ function PillTable<T extends NrenAndYearDatapoint | { [key: string]: number | st
 }
 
 export default PillTable;
-
-
-
diff --git a/compendium-frontend/src/components/ScrollableMatrix.tsx b/compendium-frontend/src/components/ScrollableMatrix.tsx
index 0bb402ee2efed06c6b0f3e48fd198c8cae0627a8..bb659af09e7345b1d8d78a85a18eef62c3491e19 100644
--- a/compendium-frontend/src/components/ScrollableMatrix.tsx
+++ b/compendium-frontend/src/components/ScrollableMatrix.tsx
@@ -1,12 +1,11 @@
 import React from "react";
-import CollapsibleBox from "./CollapsibleBox";
 import { Table } from "react-bootstrap";
+import CollapsibleBox from "compendium/components/CollapsibleBox";
 
 const TICK_ICON = <span>&#10004;</span>;
 
 const CELL_SIZE = 8
 
-
 interface ScrollableMatrixProps {
 
     // dataLookup is a map of NRENs, years, and categories that maps to data for that category in that year for that NREN
@@ -58,7 +57,6 @@ export function ScrollableMatrix({ dataLookup, rowInfo, categoryLookup, isTickIc
             </tr>)
         });
 
-
         const nrenYears: { [key: string]: number[] } = Array.from(dataLookup.entries()).sort(
             ([nrenA], [nrenB]) => nrenA.localeCompare(nrenB)
         ).reduce((nrenYears, [nren, nrenData]) => {
@@ -123,7 +121,6 @@ export function ScrollableMatrix({ dataLookup, rowInfo, categoryLookup, isTickIc
         return categoryContent;
     })
 
-
     return <div className="matrix-border">
         {categoryContainers}
     </div>;
diff --git a/compendium-frontend/src/components/ScrollableTable.tsx b/compendium-frontend/src/components/ScrollableTable.tsx
index 94888ad34eafecfe84daad04e477396b63dee5c7..44effbf0863619f16abedc71d7a54c3a4a0900fa 100644
--- a/compendium-frontend/src/components/ScrollableTable.tsx
+++ b/compendium-frontend/src/components/ScrollableTable.tsx
@@ -1,7 +1,7 @@
 import React from "react";
-import CollapsibleBox from "./CollapsibleBox";
 import { Table } from "react-bootstrap";
-import { NrenAndYearDatapoint } from "../Schema";
+import CollapsibleBox from "compendium/components/CollapsibleBox";
+import { NrenAndYearDatapoint } from "compendium/Schema";
 
 interface ScrollableTableProps<T> {
 
diff --git a/compendium-frontend/src/components/SectionNavigation.tsx b/compendium-frontend/src/components/SectionNavigation.tsx
index a5a38fdc75b6e73f1b0c6c80d991b103eda37445..17f9dabf81c53b524b055763e37af857e6328629 100644
--- a/compendium-frontend/src/components/SectionNavigation.tsx
+++ b/compendium-frontend/src/components/SectionNavigation.tsx
@@ -1,7 +1,7 @@
 import React from 'react';
 import { useNavigate } from 'react-router-dom';
 import { Container, Row, ButtonToolbar, Button } from 'react-bootstrap';
-import { Sections } from '../helpers/constants';
+import { Sections } from "compendium/helpers/constants";
 
 interface inputProps {
     activeCategory: Sections
@@ -20,7 +20,7 @@ const SectionNavigation = ({ activeCategory }: inputProps) => {
                         <span>{Sections.Organisation}</span>
                     </Button>
                     <Button
-                        onClick={() => navigate(activeCategory === Sections.Policy ? '.' : '/policy')}
+                        onClick={() => navigate(activeCategory === Sections.Policy ? '.' : '/corporate-strategy')}
                         variant={'nav-box'}
                         active={activeCategory === Sections.Policy}>
                         <span>{Sections.Policy}</span>
@@ -32,7 +32,7 @@ const SectionNavigation = ({ activeCategory }: inputProps) => {
                         <span>{Sections.ConnectedUsers}</span>
                     </Button>
                     <Button
-                        onClick={() => navigate(activeCategory === Sections.Network ? '.' : '/traffic-volume')}
+                        onClick={() => navigate(activeCategory === Sections.Network ? '.' : '/dark-fibre-lease')}
                         variant={'nav-box'}
                         active={activeCategory === Sections.Network}>
                         <span>{Sections.Network}</span>
diff --git a/compendium-frontend/src/components/WithLegend.tsx b/compendium-frontend/src/components/WithLegend.tsx
index 9e9bc87802387df2c2298f6511412408b26de45d..9a459a6f3b3c7c37e1d5088c9d20a06aaefc50ba 100644
--- a/compendium-frontend/src/components/WithLegend.tsx
+++ b/compendium-frontend/src/components/WithLegend.tsx
@@ -1,6 +1,5 @@
 import React from 'react';
-import ChartContainer from "./graphing/ChartContainer";
-
+import ChartContainer from "compendium/components/graphing/ChartContainer";
 
 interface InputProps {
     children: React.ReactNode;
diff --git a/compendium-frontend/src/components/download/DownloadContainer.tsx b/compendium-frontend/src/components/download/DownloadContainer.tsx
deleted file mode 100644
index cec9aef80e2864ca8dee9357278d08308e429c4c..0000000000000000000000000000000000000000
--- a/compendium-frontend/src/components/download/DownloadContainer.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from "react";
-import DownloadDataButton from "./DownloadDataButton";
-import DownloadImageChartButton from "./DownloadImageChartButton";
-
-import { ExportType } from "../../helpers/constants";
-import { NrenAndYearDatapoint } from "../../Schema";
-
-interface DownloadProps {
-    data: NrenAndYearDatapoint[];
-    filename: string;
-}
-const DownloadContainer = ({ data, filename }: DownloadProps) => {
-    return <div className="downloadcontainer">
-        <DownloadDataButton data={data} filename={`${filename}.csv`} exportType={ExportType.CSV} />
-        <DownloadDataButton data={data} filename={`${filename}.xlsx`} exportType={ExportType.EXCEL} />
-        <DownloadImageChartButton filename={filename} />
-    </div>
-}
-
-export default DownloadContainer;
\ No newline at end of file
diff --git a/compendium-frontend/src/components/download/DownloadDataButton.tsx b/compendium-frontend/src/components/download/DownloadDataButton.tsx
index d6938f1323f3b888676af7a09ed9618358ad9406..f3f0a1e711bb22542de8cf00f3d700bed2465778 100644
--- a/compendium-frontend/src/components/download/DownloadDataButton.tsx
+++ b/compendium-frontend/src/components/download/DownloadDataButton.tsx
@@ -1,9 +1,8 @@
 import React from 'react';
 import * as XLSX from "xlsx";
-import { ExportType } from "../../helpers/constants";
+import { ExportType } from "compendium/helpers/constants";
 import { FaDownload } from 'react-icons/fa';
-import { NrenAndYearDatapoint } from '../../Schema';
-
+import { NrenAndYearDatapoint } from "compendium/Schema";
 
 interface DownloadProps {
     data: NrenAndYearDatapoint[];
@@ -11,7 +10,6 @@ interface DownloadProps {
     exportType: ExportType;
 }
 
-
 function createCSVRows(jsonData: NrenAndYearDatapoint[], header: string[]): string[] {
     return jsonData.map(obj => {
         return header.map(fieldName => {
@@ -31,7 +29,6 @@ function createCSVRows(jsonData: NrenAndYearDatapoint[], header: string[]): stri
     });
 }
 
-
 function convertToCSV(jsonData: NrenAndYearDatapoint[]): string {
     if (!jsonData.length) return "";
 
diff --git a/compendium-frontend/src/components/download/DownloadImageChartButton.tsx b/compendium-frontend/src/components/download/DownloadImageChartButton.tsx
index ba8399a906e6973e4b291fda977627a33ef55f0d..6ca33ce92fb4d1afad8718809ceb0cab16ee7550 100644
--- a/compendium-frontend/src/components/download/DownloadImageChartButton.tsx
+++ b/compendium-frontend/src/components/download/DownloadImageChartButton.tsx
@@ -1,7 +1,7 @@
 import React, { useContext, useState, useRef, useEffect } from 'react';
 import * as htmlToImage from 'html-to-image';
-import { ImageType } from "../../helpers/constants";
-import { ChartContainerContext } from "../../providers/ChartContainerProvider";
+import { ImageType } from "compendium/helpers/constants";
+import { ChartContainerContext } from "compendium/providers/ChartContainerProvider";
 import { FaDownload } from 'react-icons/fa';
 
 interface DownloadImageChartProps {
diff --git a/compendium-frontend/src/components/global/Banner.tsx b/compendium-frontend/src/components/global/Banner.tsx
index a844feeec5c68f080afc0d3872529a552b646093..fa3b002b86bb905ce5669f87c37a2abce39ead21 100644
--- a/compendium-frontend/src/components/global/Banner.tsx
+++ b/compendium-frontend/src/components/global/Banner.tsx
@@ -1,7 +1,6 @@
 import { ReactElement } from "react";
 import { Container, Row } from "react-bootstrap";
-import SectionDataLogo from "../../images/home_data_icon.svg";
-
+import SectionDataLogo from "compendium/images/home_data_icon.svg";
 
 interface inputProps {
     type: string,
@@ -22,7 +21,7 @@ function Banner({ children, type }: inputProps): ReactElement {
                 <Row>
                     <Row>
                         <div className="section-container">
-                            <img src={SectionDataLogo} style={{ maxWidth: '7rem', marginBottom: '1rem' }} />
+                            <img src={SectionDataLogo} style={{ maxWidth: '7rem', marginBottom: '1rem' }} alt="Compendium Data logo" />
                             <div style={{ display: "flex", alignSelf: "right" }}>
                                 <div className="center-text" style={{ paddingTop: '1rem' }}>
                                     {children}
diff --git a/compendium-frontend/src/components/global/ExternalPageNavBar.tsx b/compendium-frontend/src/components/global/ExternalPageNavBar.tsx
index 9422605b3ac27e09724096263e7e6d4ed297dd27..fd6e77bb26761609e459e98b3aad1c28d9878c51 100644
--- a/compendium-frontend/src/components/global/ExternalPageNavBar.tsx
+++ b/compendium-frontend/src/components/global/ExternalPageNavBar.tsx
@@ -2,8 +2,8 @@ import { ReactElement, useContext } from "react";
 import { Link } from "react-router-dom";
 import { useLocation } from "react-router-dom";
 import { Col, Container, Row } from "react-bootstrap";
-import GeantLogo from "../../images/geant_logo_f2020_new.svg";
-import { userContext } from "../../providers/UserProvider";
+import GeantLogo from "compendium/images/geant_logo_f2020_new.svg";
+import { userContext } from "compendium/providers/UserProvider";
 
 function ExternalPageNavBar(): ReactElement {
     const { user } = useContext(userContext);
@@ -17,7 +17,7 @@ function ExternalPageNavBar(): ReactElement {
                     <Col xs={10}>
                         <div className="nav-wrapper">
                             <nav className="header-nav">
-                                <a href="https://geant.org/"><img src={GeantLogo} /></a>
+                                <a href="https://geant.org/"><img src={GeantLogo} alt="GÉANT Logo" /></a>
 
                                 <ul>
                                     <li><a className="nav-link-entry" href="https://network.geant.org/">NETWORK</a></li>
diff --git a/compendium-frontend/src/components/global/GeantFooter.tsx b/compendium-frontend/src/components/global/GeantFooter.tsx
index 58d2275993ead119de61e7a44a005861dd99cdd8..5dd5b18167eb19a2990c51abf88d51e8f4c058d8 100644
--- a/compendium-frontend/src/components/global/GeantFooter.tsx
+++ b/compendium-frontend/src/components/global/GeantFooter.tsx
@@ -1,9 +1,7 @@
 import { ReactElement } from "react";
 import { Container, Row, Col } from "react-bootstrap";
-import GeantLogo from "../../images/geant_logo_colored.svg";
-import EULogo from "../../images/eu_logo.png";
-
-
+import GeantLogo from "compendium/images/geant_logo_colored.svg";
+import EULogo from "compendium/images/eu_logo.png";
 
 function GeantFooter(): ReactElement {
     return <footer className="page-footer pt-3">
@@ -11,9 +9,9 @@ function GeantFooter(): ReactElement {
             <Row>
                 <Col>
                     <a href="https://geant.org">
-                        <img src={GeantLogo} className="m-3" style={{ maxWidth: "100px" }} />
+                        <img src={GeantLogo} className="m-3" style={{ maxWidth: "100px" }} alt="GÉANT Logo" />
                     </a>
-                    <img src={EULogo} className="m-3" style={{ maxWidth: "200px" }} />
+                    <img src={EULogo} className="m-3" style={{ maxWidth: "200px" }} alt="European Union Flag" />
                 </Col>
                 <Col className="mt-4 text-end">
                     <span>
diff --git a/compendium-frontend/src/components/global/PageHeader.tsx b/compendium-frontend/src/components/global/PageHeader.tsx
index 60fe364a596601bc3afa6e900fda7ea82aa95f16..fe9d4a8525828ebbe2c72570af3f8d3631cfa1aa 100644
--- a/compendium-frontend/src/components/global/PageHeader.tsx
+++ b/compendium-frontend/src/components/global/PageHeader.tsx
@@ -1,9 +1,7 @@
 import { ReactElement } from "react";
 import { Container, Row, Col } from "react-bootstrap";
 import { Link } from "react-router-dom";
-
-import SectionLink from "./SectionLink";
-
+import SectionLink from "compendium/components/global/SectionLink";
 
 interface inputProps {
     type: string
diff --git a/compendium-frontend/src/components/global/SectionLink.tsx b/compendium-frontend/src/components/global/SectionLink.tsx
index cddab19a376f93b2350a7c8cca79b4c02cd729f0..a8562774a059ddfecddd5369ab88cf871dff8d2f 100644
--- a/compendium-frontend/src/components/global/SectionLink.tsx
+++ b/compendium-frontend/src/components/global/SectionLink.tsx
@@ -1,5 +1,5 @@
 import { ReactElement } from "react";
-import SectionDataLogo from "../../images/home_reports_icon.svg";
+import SectionDataLogo from "compendium/images/home_reports_icon.svg";
 
 interface inputProps {
     section: string
@@ -14,9 +14,8 @@ function SectionLink({ section }: inputProps): ReactElement {
                     <span style={{ float: "right" }}>{section}</span>
                 </span>
 
-
             </div>
-            <img src={SectionDataLogo} style={{ maxWidth: "4rem" }} />
+            <img src={SectionDataLogo} style={{ maxWidth: "4rem" }} alt="Compendium Data logo" />
 
         </div>
     );
diff --git a/compendium-frontend/src/components/graphing/ChartContainer.tsx b/compendium-frontend/src/components/graphing/ChartContainer.tsx
index 9a78a7545bc99855ba7caeca47019cf5d9925366..c9fad2aa5710fd7aa140d1b58a0e985abfecaf8a 100644
--- a/compendium-frontend/src/components/graphing/ChartContainer.tsx
+++ b/compendium-frontend/src/components/graphing/ChartContainer.tsx
@@ -1,5 +1,5 @@
 import React, { useContext, ReactNode } from 'react';
-import { ChartContainerContext } from '../../providers/ChartContainerProvider';
+import { ChartContainerContext } from 'compendium/providers/ChartContainerProvider';
 
 interface ChartContainerProps {
     children: ReactNode;
diff --git a/compendium-frontend/src/components/graphing/Filter.tsx b/compendium-frontend/src/components/graphing/Filter.tsx
index b299303de08b8179e2cdcd751b5caa117474fd06..cd3de35e7b2710923485dc181f685f9ff1e7f6a4 100644
--- a/compendium-frontend/src/components/graphing/Filter.tsx
+++ b/compendium-frontend/src/components/graphing/Filter.tsx
@@ -1,10 +1,8 @@
 import React, { ReactElement, useEffect, useState, useContext } from 'react';
 import { Button, Dropdown, ButtonToolbar, Col } from 'react-bootstrap';
 import Form from 'react-bootstrap/Form';
-import { FilterSelection, Nren } from "../../Schema";
-import { NrenContext } from "../../providers/NrenProvider";
-
-
+import { FilterSelection, Nren } from "compendium/Schema";
+import { NrenContext } from "compendium/providers/NrenProvider";
 
 interface inputProps {
     filterOptions: { availableNrens: Nren[], availableYears: number[] }
diff --git a/compendium-frontend/src/components/sections/ConnectedUsersLinks.tsx b/compendium-frontend/src/components/sections/ConnectedUsersLinks.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..5ae22ff43e3801da987aa4a8d51c02afdc2edcd5
--- /dev/null
+++ b/compendium-frontend/src/components/sections/ConnectedUsersLinks.tsx
@@ -0,0 +1,43 @@
+import { Link } from "react-router-dom";
+import LinkWithHighlight from 'compendium/components/LinkWithHighlight';
+import titles from "compendium/titles";
+
+export default function ConnectedUsersLinks({ sidebar = false }) {
+    const LinkComponent = sidebar ? LinkWithHighlight : Link;
+    const classNames = sidebar ? "" : "link-text-underline";
+
+    return (<>
+        {sidebar && <h5>Connected Users</h5>}
+        <h6 className="section-title">Connected Users</h6>
+        <LinkComponent to="/institutions-urls" className={classNames}>
+            <span>{titles["institutions-urls"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/connected-proportion" className={classNames}>
+            <span>{titles["connected-proportion"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/connectivity-level" className={classNames}>
+            <span>{titles["connectivity-level"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/connection-carrier" className={classNames}>
+            <span>{titles["connection-carrier"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/connectivity-load" className={classNames}>
+            <span>{titles["connectivity-load"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/connectivity-growth" className={classNames}>
+            <span>{titles["connectivity-growth"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/remote-campuses" className={classNames}>
+            <span>{titles["remote-campuses"]}</span>
+        </LinkComponent>
+
+        <hr className="fake-divider" />
+        <h6 className="section-title">Connected Users - Commercial</h6>
+        <LinkComponent to="/commercial-charging-level" className={classNames}>
+            <span>{titles["commercial-charging-level"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/commercial-connectivity" className={classNames}>
+            <span>{titles["commercial-connectivity"]}</span>
+        </LinkComponent>
+    </>);
+}
diff --git a/compendium-frontend/src/components/sections/NetworkLinks.tsx b/compendium-frontend/src/components/sections/NetworkLinks.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..58cf7992ed3912042e4489d6d6d1661b14519812
--- /dev/null
+++ b/compendium-frontend/src/components/sections/NetworkLinks.tsx
@@ -0,0 +1,98 @@
+import { Link } from "react-router-dom";
+import LinkWithHighlight from 'compendium/components/LinkWithHighlight';
+import titles from "compendium/titles";
+
+export default function NetworkLinks({ sidebar = false }) {
+    const LinkComponent = sidebar ? LinkWithHighlight : Link;
+    const classNames = sidebar ? "" : "link-text-underline";
+
+    return (<>
+        {sidebar && <h5>Network</h5>}
+        <h6 className="section-title">Connectivity</h6>
+
+        <LinkComponent to="/dark-fibre-lease" className={classNames}>
+            <span>{titles["dark-fibre-lease"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/dark-fibre-lease-international" className={classNames}>
+            <span>{titles["dark-fibre-lease-international"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/iru-duration" className={classNames}>
+            <span>{titles["iru-duration"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/dark-fibre-installed" className={classNames}>
+            <span>{titles["dark-fibre-installed"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/fibre-light" className={classNames}>
+            <span>{titles["fibre-light"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/network-map" className={classNames}>
+            <span>{titles["network-map"]}</span>
+        </LinkComponent>
+
+        <hr className="fake-divider" />
+        <h6 className="section-title">Performance Monitoring & Management</h6>
+        <LinkComponent to="/monitoring-tools" className={classNames}>
+            <span>{titles["monitoring-tools"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/passive-monitoring" className={classNames}>
+            <span>{titles["passive-monitoring"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/traffic-stats" className={classNames}>
+            <span>{titles["traffic-stats"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/siem-vendors" className={classNames}>
+            <span>{titles["siem-vendors"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/certificate-provider" className={classNames}>
+            <span>{titles["certificate-provider"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/weather-map" className={classNames}>
+            <span>{titles["weather-map"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/pert-team" className={classNames}>
+            <span>{titles["pert-team"]}</span>
+        </LinkComponent>
+
+        <hr className="fake-divider" />
+        <h6 className="section-title">Alienwave</h6>
+        <LinkComponent to="/alien-wave" className={classNames}>
+            <span>{titles["alien-wave"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/alien-wave-internal" className={classNames}>
+            <span>{titles["alien-wave-internal"]}</span>
+        </LinkComponent>
+
+        <hr className="fake-divider" />
+        <h6 className="section-title">Capacity</h6>
+        <LinkComponent to="/capacity-largest-link" className={classNames}>
+            <span>{titles["capacity-largest-link"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/capacity-core-ip" className={classNames}>
+            <span>{titles["capacity-core-ip"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/external-connections" className={classNames}>
+            <span>{titles["external-connections"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/non-rne-peers" className={classNames}>
+            <span>{titles["non-rne-peers"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/traffic-volume" className={classNames}>
+            <span>{titles["traffic-volume"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/traffic-ratio" className={classNames}>
+            <span>{titles["traffic-ratio"]}</span>
+        </LinkComponent>
+
+        <hr className="fake-divider" />
+        <h6 className="section-title">Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)</h6>
+        <LinkComponent to="/ops-automation" className={classNames}>
+            <span>{titles["ops-automation"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/nfv" className={classNames}>
+            <span>{titles["nfv"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/network-automation" className={classNames}>
+            <span>{titles["network-automation"]}</span>
+        </LinkComponent>
+    </>);
+}
diff --git a/compendium-frontend/src/components/sections/OrganizationLinks.tsx b/compendium-frontend/src/components/sections/OrganizationLinks.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..f7e606438553a0d4e3817537fd8e013a2d8ef89c
--- /dev/null
+++ b/compendium-frontend/src/components/sections/OrganizationLinks.tsx
@@ -0,0 +1,47 @@
+import { Link } from "react-router-dom";
+import LinkWithHighlight from 'compendium/components/LinkWithHighlight';
+import titles from "compendium/titles";
+
+export default function OrganizationLinks({ sidebar = false }) {
+
+    const LinkComponent = sidebar ? LinkWithHighlight : Link
+
+    const classNames = sidebar ? "" : "link-text-underline"
+    return (<>
+        {sidebar && <h5>Organisation</h5>}
+        <h6 className="section-title">Budget, Income and Billing</h6>
+        <LinkComponent to="/budget" className={classNames}>
+            <span>{titles.budget}</span>
+        </LinkComponent>
+
+        <LinkComponent to="/funding" className={classNames}>
+            <span>{titles.funding}</span>
+        </LinkComponent>
+
+        <LinkComponent to="/charging" className={classNames}>
+            <span>{titles.charging}</span>
+        </LinkComponent>
+
+        <hr className="fake-divider" />
+        <h6 className="section-title">Staff and Projects</h6>
+        <LinkComponent to="/employee-count" className={classNames}>
+            <span>{titles["employee-count"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/employment" className={classNames}>
+            <span>{titles.employment}</span>
+        </LinkComponent>
+        <LinkComponent to="/roles" className={classNames}>
+            <span>{titles.roles}</span>
+        </LinkComponent>
+        <LinkComponent to="/parentorganisation" className={classNames}>
+            <span>{titles.parentorganisation}</span>
+        </LinkComponent>
+        <LinkComponent to="/suborganisations" className={classNames}>
+            <span>{titles.suborganisations}</span>
+        </LinkComponent>
+        <LinkComponent to="/ec-projects" className={classNames}>
+            <span>{titles["ec-projects"]}</span>
+        </LinkComponent>
+    </>
+    );
+}
\ No newline at end of file
diff --git a/compendium-frontend/src/components/sections/PolicyLinks.tsx b/compendium-frontend/src/components/sections/PolicyLinks.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..0ba03bd03bfd9e1162d5b6ecaa3750b9205b0a5f
--- /dev/null
+++ b/compendium-frontend/src/components/sections/PolicyLinks.tsx
@@ -0,0 +1,49 @@
+import { Link } from "react-router-dom";
+import LinkWithHighlight from 'compendium/components/LinkWithHighlight';
+import titles from "compendium/titles";
+
+export default function PolicyLinks({ sidebar = false }) {
+
+    const LinkComponent = sidebar ? LinkWithHighlight : Link
+    const classNames = sidebar ? "" : "link-text-underline"
+
+    return (<>
+        {sidebar && <h5>Standards And Policies</h5>}
+        <h6 className="section-title">Policy & Portfolio</h6>
+        <LinkComponent to="/corporate-strategy" className={classNames}>
+            <span>{titles["corporate-strategy"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/policy" className={classNames}>
+            <span>{titles.policy}</span>
+        </LinkComponent>
+        <LinkComponent to="/central-procurement" className={classNames}>
+            <span>{titles["central-procurement"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/service-management-framework" className={classNames}>
+            <span>{titles["service-management-framework"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/service-level-targets" className={classNames}>
+            <span>{titles["service-level-targets"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/services-offered" className={classNames}>
+            <span>{titles["services-offered"]}</span>
+        </LinkComponent>
+
+        <h6 className="section-title">Standards</h6>
+        <LinkComponent to="/audits" className={classNames}>
+            <span>{titles.audits}</span>
+        </LinkComponent>
+        <LinkComponent to="/business-continuity" className={classNames}>
+            <span>{titles["business-continuity"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/crisis-management" className={classNames}>
+            <span>{titles["crisis-management"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/crisis-exercise" className={classNames}>
+            <span>{titles["crisis-exercise"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/security-control" className={classNames}>
+            <span>{titles["security-control"]}</span>
+        </LinkComponent>
+    </>);
+}
\ No newline at end of file
diff --git a/compendium-frontend/src/components/sections/ServicesLinks.tsx b/compendium-frontend/src/components/sections/ServicesLinks.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..2458661c37d67d8e880360c4f5d288f772bfb16e
--- /dev/null
+++ b/compendium-frontend/src/components/sections/ServicesLinks.tsx
@@ -0,0 +1,36 @@
+import { Link } from "react-router-dom";
+import LinkWithHighlight from 'compendium/components/LinkWithHighlight';
+import titles from "compendium/titles";
+
+export default function ServicesLinks({ sidebar = false }) {
+    const LinkComponent = sidebar ? LinkWithHighlight : Link;
+    const classNames = sidebar ? "" : "link-text-underline";
+
+    return (<>
+        {sidebar && <h5>Services</h5>}
+        <LinkComponent to="/network-services" className={classNames}>
+            <span>{titles["network-services"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/isp-support-services" className={classNames}>
+            <span>{titles["isp-support-services"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/security-services" className={classNames}>
+            <span>{titles["security-services"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/identity-services" className={classNames}>
+            <span>{titles["identity-services"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/storage-and-hosting-services" className={classNames}>
+            <span>{titles["storage-and-hosting-services"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/multimedia-services" className={classNames}>
+            <span>{titles["multimedia-services"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/collaboration-services" className={classNames}>
+            <span>{titles["collaboration-services"]}</span>
+        </LinkComponent>
+        <LinkComponent to="/professional-services" className={classNames}>
+            <span>{titles["professional-services"]}</span>
+        </LinkComponent>
+    </>);
+}
diff --git a/compendium-frontend/src/components/sidebar/ConnectedUsersSidebar.tsx b/compendium-frontend/src/components/sidebar/ConnectedUsersSidebar.tsx
index 512d3cdf4af985c53bc52bf457d28f9548ce6bdb..bf034ba61cdf8c88756b9d8402d53d69184285eb 100644
--- a/compendium-frontend/src/components/sidebar/ConnectedUsersSidebar.tsx
+++ b/compendium-frontend/src/components/sidebar/ConnectedUsersSidebar.tsx
@@ -1,49 +1,10 @@
-import React from 'react';
-import Sidebar from './SideBar';
-import Link from './LinkWithHighlight';
+import Sidebar from 'compendium/components/sidebar/SideBar';
+import ConnectedUsersLinks from 'compendium/components/sections/ConnectedUsersLinks';
 
 const ConnectedUsersSidebar = () => {
     return (
         <Sidebar>
-            <h6 className="section-title">Connected Users</h6>
-
-            <Link to="/institutions-urls">
-                <span>Webpages Listing Institutions and Organisations Connected to NREN Networks</span>
-            </Link>
-
-            <Link to="/connected-proportion">
-                <span>Proportion of Different Categories of Institutions Served by NRENs</span>
-            </Link>
-
-            <Link to="/connectivity-level">
-                <span>Level of IP Connectivity by Institution Type</span>
-            </Link>
-
-            <Link to="/connection-carrier">
-                <span>Methods of Carrying IP Traffic to Users</span>
-            </Link>
-
-            <Link to="/connectivity-load">
-                <span>Connectivity Load</span>
-            </Link>
-
-            <Link to="/connectivity-growth">
-                <span>Connectivity Growth</span>
-            </Link>
-
-            <Link to="/remote-campuses">
-                <span>NREN Connectivity to Remote Campuses in Other Countries</span>
-            </Link>
-
-            <h6 className="section-title">Connected Users - Commercial</h6>
-
-            <Link to="/commercial-charging-level">
-                <span>Commercial Charging Level</span>
-            </Link>
-
-            <Link to="/commercial-connectivity">
-                <span>Commercial Connectivity</span>
-            </Link>
+            <ConnectedUsersLinks sidebar={true} />
         </Sidebar>
     )
 }
diff --git a/compendium-frontend/src/components/sidebar/NetworkSidebar.tsx b/compendium-frontend/src/components/sidebar/NetworkSidebar.tsx
index 799aacb20d1d9849d770eefaaee79fc13902a6fa..b178bebfa66827eaaac2a84f938bfac9d7122b58 100644
--- a/compendium-frontend/src/components/sidebar/NetworkSidebar.tsx
+++ b/compendium-frontend/src/components/sidebar/NetworkSidebar.tsx
@@ -1,112 +1,10 @@
-import React from 'react';
-import Link from './LinkWithHighlight';
-import Sidebar from './SideBar';
+import Sidebar from 'compendium/components/sidebar/SideBar';
+import NetworkLinks from 'compendium/components/sections/NetworkLinks';
 
 const NetworkSidebar = () => {
     return (
         <Sidebar>
-            <h5>Network</h5>
-            <h6 className="section-title" >Connectivity</h6>
-
-            <Link to="/traffic-volume">
-                <span>NREN Traffic - NREN Customers & External Networks</span>
-            </Link>
-
-            <Link to="/iru-duration">
-                <span>Average Duration of IRU leases of Fibre by NRENs</span>
-            </Link>
-
-            <Link to="/fibre-light">
-                <span>Approaches to lighting NREN fibre networks</span>
-            </Link>
-
-            <Link to="/dark-fibre-lease">
-                <span>Kilometres of Leased Dark Fibre (National)</span>
-            </Link>
-
-            <Link to="/dark-fibre-lease-international">
-                <span>Kilometres of Leased Dark Fibre (International)</span>
-            </Link>
-
-            <Link to="/dark-fibre-installed">
-                <span>Kilometres of Installed Dark Fibre</span>
-            </Link>
-
-            <Link to="/network-map">
-                <span>NREN Network Maps</span>
-            </Link>
-            <hr className="fake-divider" />
-            <h6 className="section-title" >Performance Monitoring & Management</h6>
-
-            <Link to="/monitoring-tools">
-                <span>Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions</span>
-            </Link>
-
-            <Link to="/pert-team">
-                <span>NRENs with Performance Enhancement Response Teams</span>
-            </Link>
-
-            <Link to="/passive-monitoring">
-                <span>Methods for Passively Monitoring International Traffic</span>
-            </Link>
-
-            <Link to="/traffic-stats">
-                <span>Traffic Statistics  </span>
-            </Link>
-
-            <Link to="/weather-map">
-                <span>NREN Online Network Weather Maps </span>
-            </Link>
-
-            <Link to="/certificate-providers">
-                <span>Certification Services used by NRENs</span>
-            </Link>
-
-            <Link to="/siem-vendors">
-                <span>Vendors of SIEM/SOC systems used by NRENs</span>
-            </Link>
-            <hr className="fake-divider" />
-            <h6 className="section-title" >Alienwave</h6>
-
-            <Link to="/alien-wave">
-                <span>NREN Use of 3rd Party Alienwave/Lightpath Services</span>
-            </Link>
-
-            <Link to="/alien-wave-internal">
-                <span>Internal NREN Use of Alien Waves</span>
-            </Link>
-            <hr className="fake-divider" />
-            <h6 className="section-title" >Capacity</h6>
-
-            <Link to="/capacity-largest-link">
-                <span>Capacity of the Largest Link in an NREN Network</span>
-            </Link>
-            <Link to="/external-connections">
-                <span>NREN External IP Connections</span>
-            </Link>
-            <Link to="/capacity-core-ip">
-                <span>NREN Core IP Capacity</span>
-            </Link>
-            <Link to="/non-rne-peers">
-                <span>Number of Non-R&E Networks NRENs Peer With</span>
-            </Link>
-            <Link to="/traffic-ratio">
-                <span>Types of traffic in NREN networks</span>
-            </Link>
-            <hr className="fake-divider" />
-            <h6 className="section-title" >Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)</h6>
-
-            <Link to="/ops-automation">
-                <span>NREN Automation of Operational Processes</span>
-            </Link>
-
-            <Link to="/network-automation">
-                <span>Network Tasks for which NRENs Use Automation  </span>
-            </Link>
-
-            <Link to="/nfv">
-                <span>Kinds of Network Function Virtualisation used by NRENs</span>
-            </Link>
+            <NetworkLinks sidebar />
         </Sidebar>
     )
 }
diff --git a/compendium-frontend/src/components/sidebar/OrganizationSidebar.tsx b/compendium-frontend/src/components/sidebar/OrganizationSidebar.tsx
index d5e79a7d36303b7da3e817f3dc633cffbde0eca7..86507763d7b15b1343327021efaa29ed9b488a6f 100644
--- a/compendium-frontend/src/components/sidebar/OrganizationSidebar.tsx
+++ b/compendium-frontend/src/components/sidebar/OrganizationSidebar.tsx
@@ -1,44 +1,10 @@
-import React from 'react';
-import Link from './LinkWithHighlight';
-import Sidebar from './SideBar';
+import Sidebar from 'compendium/components/sidebar/SideBar';
+import OrganizationLinks from 'compendium/components/sections/OrganizationLinks';
 
 const OrganizationSidebar = () => {
     return (
         <Sidebar>
-            <h5>Organisation</h5>
-            <h6 className="section-title">Budget, Income and Billing</h6>
-            <Link to="/budget">
-                <span>Budget of NRENs per Year</span>
-            </Link>
-
-            <Link to="/funding">
-                <span>Income Source of NRENs</span>
-            </Link>
-
-            <Link to="/charging">
-                <span>Charging Mechanism of NRENs</span>
-            </Link>
-
-            <hr className="fake-divider" />
-            <h6 className="section-title">Staff and Projects</h6>
-            <Link to="/employee-count">
-                <span>Number of NREN Employees</span>
-            </Link>
-            <Link to="/roles">
-                <span>Roles of NREN employees (Technical v. Non-Technical)</span>
-            </Link>
-            <Link to="/employment">
-                <span>Types of Employment within NRENs</span>
-            </Link>
-            <Link to="/suborganisations">
-                <span>NREN Sub-Organisations</span>
-            </Link>
-            <Link to="/parentorganisation">
-                <span>NREN Parent Organisations</span>
-            </Link>
-            <Link to="/ec-projects">
-                <span>NREN Involvement in European Commission Projects</span>
-            </Link>
+            <OrganizationLinks sidebar />
         </Sidebar>
     )
 }
diff --git a/compendium-frontend/src/components/sidebar/PolicySidebar.tsx b/compendium-frontend/src/components/sidebar/PolicySidebar.tsx
index ce99f2d6aab85b5b3e3a831e335766478e6e3958..3400b0866113a54e668aea721fc3ad7d889ade48 100644
--- a/compendium-frontend/src/components/sidebar/PolicySidebar.tsx
+++ b/compendium-frontend/src/components/sidebar/PolicySidebar.tsx
@@ -1,45 +1,10 @@
-import React from 'react';
-import Link from './LinkWithHighlight';
-import Sidebar from './SideBar';
+import Sidebar from 'compendium/components/sidebar/SideBar';
+import PolicyLinks from 'compendium/components/sections/PolicyLinks';
 
 const PolicySidebar = () => {
     return (
         <Sidebar>
-            <h5>Standards and Policies</h5>
-            <Link to="/policy">
-                <span>NREN Policies</span>
-            </Link>
-            <h6 className="section-title">Standards</h6>
-            <Link to="/audits">
-                <span>External and Internal Audits of Information Security Management Systems</span>
-            </Link>
-            <Link to="/business-continuity">
-                <span>NREN Business Continuity Planning</span>
-            </Link>
-            <Link to="/central-procurement">
-                <span>Central Procurement of Software</span>
-            </Link>
-            <Link to="/crisis-management">
-                <span>Crisis Management Procedures</span>
-            </Link>
-            <Link to="/crisis-exercise">
-                <span>Crisis Exercises - NREN Operation and Participation</span>
-            </Link>
-            <Link to="/security-control">
-                <span>Security Controls Used by NRENs</span>
-            </Link>
-            <Link to="/services-offered">
-                <span>Services Offered by NRENs by Types of Users</span>
-            </Link>
-            <Link to="/corporate-strategy">
-                <span>NREN Corporate Strategies </span>
-            </Link>
-            <Link to="/service-level-targets">
-                <span>NRENs Offering Service Level Targets</span>
-            </Link>
-            <Link to="/service-management-framework">
-                <span>NRENs Operating a Formal Service Management Framework</span>
-            </Link>
+            <PolicyLinks sidebar />
         </Sidebar>
     )
 }
diff --git a/compendium-frontend/src/components/sidebar/ServicesSidebar.tsx b/compendium-frontend/src/components/sidebar/ServicesSidebar.tsx
index e008cfd6052bde634f81d863810f9b5a84070820..8e35cbea1832deacc9d12fc19e3b6c0d08d8045b 100644
--- a/compendium-frontend/src/components/sidebar/ServicesSidebar.tsx
+++ b/compendium-frontend/src/components/sidebar/ServicesSidebar.tsx
@@ -1,35 +1,10 @@
-import React from 'react';
-import Link from './LinkWithHighlight';
-import Sidebar from './SideBar';
+import Sidebar from 'compendium/components/sidebar/SideBar';
+import ServicesLinks from 'compendium/components/sections/ServicesLinks';
 
 const ServicesSidebar = () => {
     return (
         <Sidebar>
-            <h5>Services</h5>
-            <Link to="/network-services">
-                <span>Network services</span>
-            </Link>
-            <Link to="/isp-support-services">
-                <span>ISP support services</span>
-            </Link>
-            <Link to="/security-services">
-                <span>Security services</span>
-            </Link>
-            <Link to="/identity-services">
-                <span>Identity services</span>
-            </Link>
-            <Link to="/collaboration-services">
-                <span>Collaboration services</span>
-            </Link>
-            <Link to="/multimedia-services">
-                <span>Multimedia services</span>
-            </Link>
-            <Link to="/storage-and-hosting-services">
-                <span>Storage and hosting services</span>
-            </Link>
-            <Link to="/professional-services">
-                <span>Professional services</span>
-            </Link>
+            <ServicesLinks sidebar />
         </Sidebar>
     )
 }
diff --git a/compendium-frontend/src/components/sidebar/SideBar.tsx b/compendium-frontend/src/components/sidebar/SideBar.tsx
index 0463b491f8cc1115c0efe42b0f99ccfb2be02cc0..afd19a798038889eb38a32ce98329d5801782f40 100644
--- a/compendium-frontend/src/components/sidebar/SideBar.tsx
+++ b/compendium-frontend/src/components/sidebar/SideBar.tsx
@@ -1,8 +1,7 @@
 import React, { useEffect, useState } from 'react';
-// import { sidebarContext } from "../helpers/sidebarProvider";
+// import { sidebarContext } from "compendium/providers/SidebarProvider";
 import { AiOutlineClose, AiOutlinePlus } from 'react-icons/ai';
 
-
 interface Props {
     children: React.ReactNode;
     survey?: boolean;
diff --git a/compendium-frontend/src/helpers/dataconversion.tsx b/compendium-frontend/src/helpers/dataconversion.tsx
index f95179c2daf3a744b2a70c340007e62544a39a71..d15ea5f703339c90a021859ed6626d64eb650db0 100644
--- a/compendium-frontend/src/helpers/dataconversion.tsx
+++ b/compendium-frontend/src/helpers/dataconversion.tsx
@@ -4,7 +4,7 @@ import {
     BasicDataset, NrenStaff, TrafficVolume, NrenAndYearDatapoint,
     TrafficRatio,
     URLDatapoint
-} from "../Schema";
+} from "compendium/Schema";
 
 // create a color from a string, credits https://stackoverflow.com/a/16348977
 const stringToColour = function (str) {
@@ -104,7 +104,6 @@ export function createDataLookupList<T extends NrenAndYearDatapoint>(entries: T[
     return map;
 }
 
-
 export function createDataLookup<T extends NrenAndYearDatapoint>(entries: T[]) {
     const map = new Map<string, Map<number, T>>();
     entries.forEach(datapoint => {
@@ -527,7 +526,6 @@ export const createNRENStaffDataset = (data: NrenStaff[], roles: boolean, select
     return dataset;
 }
 
-
 export const createTrafficRatioDataset = (data: TrafficRatio[], selectedYear: number) => {
 
     const categories = [
@@ -610,7 +608,6 @@ export const createTrafficRatioDataset = (data: TrafficRatio[], selectedYear: nu
     return dataset;
 }
 
-
 export const createNRENStaffDatasetAbsolute = (data: NrenStaff[], selectedYears: number[]) => {
 
     const categories = [
diff --git a/compendium-frontend/src/helpers/useConfig.tsx b/compendium-frontend/src/helpers/useConfig.tsx
index 406810c69d6750654a3068cfb24c5b9bd3f59581..2fe2cf1266b274f4771f5b945eba5b9347ccb7da 100644
--- a/compendium-frontend/src/helpers/useConfig.tsx
+++ b/compendium-frontend/src/helpers/useConfig.tsx
@@ -1,6 +1,5 @@
 import { useContext } from "react";
-import { configContext, BaseConfig } from "../providers/ConfigProvider";
-
+import { configContext, BaseConfig } from "compendium/providers/ConfigProvider";
 
 export function useConfig<T extends BaseConfig>(key: string): Record<string, T> & {
     setConfig: (value: T, timeout?: Date) => void
diff --git a/compendium-frontend/src/helpers/useData.ts b/compendium-frontend/src/helpers/useData.ts
index e8093f58600d16b51b5869375767b184e075b79f..d3c3a2aea21833ebfa808bc6937b7e5737e1bb07 100644
--- a/compendium-frontend/src/helpers/useData.ts
+++ b/compendium-frontend/src/helpers/useData.ts
@@ -1,7 +1,6 @@
 import { useEffect, useMemo, useState } from "react";
-import { Nren, NrenAndYearDatapoint } from "../Schema";
-import { usePreview } from "./usePreview";
-
+import { Nren, NrenAndYearDatapoint } from "compendium/Schema";
+import { usePreview } from "compendium/helpers/usePreview";
 
 function getYearsAndNrens(sourceData: NrenAndYearDatapoint[]) {
     const years = new Set<number>();
@@ -13,7 +12,6 @@ function getYearsAndNrens(sourceData: NrenAndYearDatapoint[]) {
     return { years: years, nrens: nrenMap };
 }
 
-
 export function useData<T extends NrenAndYearDatapoint>(url, setFilterSelection, validityCheck: (data: T) => boolean = () => true) {
 
     const [data, setData] = useState<T[]>([]);
diff --git a/compendium-frontend/src/helpers/usePreview.ts b/compendium-frontend/src/helpers/usePreview.ts
index aa1a9fb82f73c53062d58c8e7c4a75535320c784..51f4b24bee7c3f8d906ccbfb37aab2628c61a0cd 100644
--- a/compendium-frontend/src/helpers/usePreview.ts
+++ b/compendium-frontend/src/helpers/usePreview.ts
@@ -1,8 +1,7 @@
 import { useContext, useEffect } from "react";
-import { PreviewContext } from "../providers/PreviewProvider";
 import { useSearchParams } from "react-router-dom";
-import { userContext } from "../providers/UserProvider";
-
+import { PreviewContext } from "compendium/providers/PreviewProvider";
+import { userContext } from "compendium/providers/UserProvider";
 
 export function usePreview() {
     const { preview, setPreview } = useContext(PreviewContext);
diff --git a/compendium-frontend/src/index.tsx b/compendium-frontend/src/index.tsx
index 8cca5a6c1ff3f6991063cc9ecef40afef8681c01..e6bb7b61ec5b81d9fd2d9a4f8e7df4f17fa17024 100644
--- a/compendium-frontend/src/index.tsx
+++ b/compendium-frontend/src/index.tsx
@@ -1,8 +1,8 @@
 import React from 'react';
 import { createRoot } from 'react-dom/client';
-import App from "./App";
+import App from "compendium/App";
 import 'bootstrap/dist/css/bootstrap.min.css';
-import './main.scss';
+import 'compendium/main.scss';
 
 const container = document.getElementById('root') as HTMLElement;
 const root = createRoot(container);
diff --git a/compendium-frontend/src/main.scss b/compendium-frontend/src/main.scss
index 5927ee03bd57fec08a74c771d0785bf4a6e33040..952cc3089eac5c4229e9dde958dcca7f364b0617 100644
--- a/compendium-frontend/src/main.scss
+++ b/compendium-frontend/src/main.scss
@@ -105,6 +105,12 @@
   border: none;
 }
 
+@media screen and (max-width: 1080px) {
+  .downloadbutton {
+    width: 6.5rem;
+  }
+}
+
 .downloadbutton svg {
   margin-bottom: 0.25rem;
   margin-left: 0.1rem;
@@ -124,6 +130,8 @@
 }
 
 .image-dropdown {
+  margin: 0;
+  padding: 0;
   width: 10rem;
   display: inline-block;
 }
@@ -158,7 +166,7 @@
 }
 
 .downloadcontainer {
-  margin-bottom: 2rem;
+  justify-content: end;
 }
 
 .downloadcontainer>* {
diff --git a/compendium-frontend/src/matomo/MatomoProvider.tsx b/compendium-frontend/src/matomo/MatomoProvider.tsx
index 7e810997da540bb2e3eb74c873660c418e30f444..05a7ba831f69c7d820de9a0a6b2d3990481c3543 100644
--- a/compendium-frontend/src/matomo/MatomoProvider.tsx
+++ b/compendium-frontend/src/matomo/MatomoProvider.tsx
@@ -1,6 +1,6 @@
 import React, { createContext, useContext } from 'react'
-import MatomoTracker, { createInstance } from './MatomoTracker'
-import { consentContext } from '../providers/ConsentProvider'
+import MatomoTracker, { createInstance } from 'compendium/matomo/MatomoTracker'
+import { consentContext } from 'compendium/providers/ConsentProvider'
 
 export interface MatomoProviderProps {
     children?: React.ReactNode
diff --git a/compendium-frontend/src/matomo/MatomoTracker.ts b/compendium-frontend/src/matomo/MatomoTracker.ts
index 1427781fe3ce484fc8b5de59dda910c10c142bf2..82f795ce259a89419fc681cd9d430e9f0c5fa4f7 100644
--- a/compendium-frontend/src/matomo/MatomoTracker.ts
+++ b/compendium-frontend/src/matomo/MatomoTracker.ts
@@ -1,4 +1,4 @@
-import { TRACK_TYPES } from './constants'
+import { TRACK_TYPES } from 'compendium/matomo/constants'
 import {
     CustomDimension,
     TrackEventParams,
@@ -6,7 +6,7 @@ import {
     TrackPageViewParams,
     TrackParams,
     UserOptions,
-} from './types'
+} from 'compendium/matomo/types'
 
 class MatomoTracker {
     mutationObserver?: MutationObserver
diff --git a/compendium-frontend/src/matomo/PrivacyModal.tsx b/compendium-frontend/src/matomo/PrivacyModal.tsx
index 97e100b111777e78930896a562666f9fd6762111..f701375ab6c7d36c9b435b0491f132e8a1d74593 100644
--- a/compendium-frontend/src/matomo/PrivacyModal.tsx
+++ b/compendium-frontend/src/matomo/PrivacyModal.tsx
@@ -1,6 +1,6 @@
 import React, { useState, useContext } from 'react';
 import { Modal, Button, Form } from 'react-bootstrap';
-import { consentContext } from '../providers/ConsentProvider';
+import { consentContext } from 'compendium/providers/ConsentProvider';
 
 const PrivacyModal: React.FC = () => {
     const { consent, setConsent } = useContext(consentContext);
diff --git a/compendium-frontend/src/matomo/UseMatomo.ts b/compendium-frontend/src/matomo/UseMatomo.ts
index c3624f016040f8bf370be73da9b02b6f756a2fc7..8f8feb5238a9cc6d3fe20c8070dc713ce74d4ed5 100644
--- a/compendium-frontend/src/matomo/UseMatomo.ts
+++ b/compendium-frontend/src/matomo/UseMatomo.ts
@@ -1,10 +1,10 @@
 import { useCallback, useContext } from 'react'
-import { MatomoContext } from './MatomoProvider'
+import { MatomoContext } from 'compendium/matomo/MatomoProvider'
 import {
     TrackEventParams,
     TrackLinkParams,
     TrackPageViewParams
-} from './types'
+} from 'compendium/matomo/types'
 
 function useMatomo() {
     const instance = useContext(MatomoContext)
diff --git a/compendium-frontend/src/pages/CompendiumData.tsx b/compendium-frontend/src/pages/CompendiumData.tsx
index 204aa5fa8732af1bda0bdc884bead5cd8831b980..3d33a02b9ebac3d67df2ba44b5058ac188aded81 100644
--- a/compendium-frontend/src/pages/CompendiumData.tsx
+++ b/compendium-frontend/src/pages/CompendiumData.tsx
@@ -1,12 +1,16 @@
 import React, { ReactElement } from "react";
 import { Container, Row } from "react-bootstrap";
-import CollapsibleBox from "../components/CollapsibleBox";
-import PageHeader from "../components/global/PageHeader"
-import Banner from "../components/global/Banner";
-import { Link } from "react-router-dom";
-import { Sections } from "../helpers/constants";
-import { usePreview } from "../helpers/usePreview";
-import useMatomo from "../matomo/UseMatomo";
+import CollapsibleBox from "compendium/components/CollapsibleBox";
+import PageHeader from "compendium/components/global/PageHeader"
+import Banner from "compendium/components/global/Banner";
+import { Sections } from "compendium/helpers/constants";
+import { usePreview } from "compendium/helpers/usePreview";
+import useMatomo from "compendium/matomo/UseMatomo";
+import OrganizationLinks from "compendium/components/sections/OrganizationLinks";
+import PolicyLinks from "compendium/components/sections/PolicyLinks";
+import ConnectedUsersLinks from "compendium/components/sections/ConnectedUsersLinks";
+import NetworkLinks from "compendium/components/sections/NetworkLinks";
+import ServicesLinks from "compendium/components/sections/ServicesLinks";
 
 function CompendiumData(): ReactElement {
     usePreview();
@@ -34,219 +38,21 @@ function CompendiumData(): ReactElement {
             <Container className="mt-5 mb-5">
                 <Row>
                     <CollapsibleBox title={Sections.Organisation}>
-                        <h6 className="section-title">Budget, Income and Billing</h6>
-                        <Link to="/budget" className="link-text-underline">
-                            <span>Budget of NRENs per Year</span>
-                        </Link>
-
-                        <Link to="/funding" className="link-text-underline">
-                            <span>Income Source of NRENs</span>
-                        </Link>
-
-                        <Link to="/charging" className="link-text-underline">
-                            <span>Charging Mechanism of NRENs</span>
-                        </Link>
-
-                        <hr className="fake-divider" />
-                        <h6 className="section-title">Staff and Projects</h6>
-                        <Link to="/employee-count" className="link-text-underline">
-                            <span>Number of NREN Employees</span>
-                        </Link>
-                        <Link to="/roles" className="link-text-underline">
-                            <span>Roles of NREN employees (Technical v. Non-Technical)</span>
-                        </Link>
-                        <Link to="/employment" className="link-text-underline">
-                            <span>Types of Employment within NRENs</span>
-                        </Link>
-                        <Link to="/suborganisations" className="link-text-underline">
-                            <span>NREN Sub-Organisations</span>
-                        </Link>
-                        <Link to="/parentorganisation" className="link-text-underline">
-                            <span>NREN Parent Organisations</span>
-                        </Link>
-                        <Link to="/ec-projects" className="link-text-underline">
-                            <span>NREN Involvement in European Commission Projects</span>
-                        </Link>
+                        <OrganizationLinks />
                     </CollapsibleBox>
 
                     <CollapsibleBox title={Sections.Policy} startCollapsed>
-                        <Link to="/policy" className="link-text-underline">
-                            <span>NREN Policies</span>
-                        </Link>
-                        <h6 className="section-title">Standards</h6>
-                        <Link to="/audits" className="link-text-underline">
-                            <span>External and Internal Audits of Information Security Management Systems</span>
-                        </Link>
-                        <Link to="/business-continuity" className="link-text-underline">
-                            <span>NREN Business Continuity Planning</span>
-                        </Link>
-                        <Link to="/central-procurement" className="link-text-underline">
-                            <span>Central Procurement of Software</span>
-                        </Link>
-                        <Link to="/crisis-management" className="link-text-underline">
-                            <span>Crisis Management Procedures</span>
-                        </Link>
-                        <Link to="/crisis-exercise" className="link-text-underline">
-                            <span>Crisis Exercises - NREN Operation and Participation</span>
-                        </Link>
-                        <Link to="/security-control" className="link-text-underline">
-                            <span>Security Controls Used by NRENs</span>
-                        </Link>
-                        <Link to="/services-offered" className="link-text-underline">
-                            <span>Services Offered by NRENs by Types of Users</span>
-                        </Link>
-                        <Link to="/corporate-strategy" className="link-text-underline">
-                            <span>NREN Corporate Strategies </span>
-                        </Link>
-                        <Link to="/service-level-targets" className="link-text-underline">
-                            <span>NRENs Offering Service Level Targets</span>
-                        </Link>
-                        <Link to="/service-management-framework" className="link-text-underline">
-                            <span>NRENs Operating a Formal Service Management Framework</span>
-                        </Link>
+                        <PolicyLinks />
                     </CollapsibleBox>
 
                     <CollapsibleBox title={Sections.ConnectedUsers} startCollapsed>
-                        <h6 className="section-title">Connected Users</h6>
-                        <Link to="/institutions-urls" className="link-text-underline">
-                            <span>Webpages Listing Institutions and Organisations Connected to NREN Networks</span>
-                        </Link>
-                        <Link to="/connected-proportion" className="link-text-underline">
-                            <span>Proportion of Different Categories of Institutions Served by NRENs</span>
-                        </Link>
-                        <Link to="/connectivity-level" className="link-text-underline">
-                            <span>Level of IP Connectivity by Institution Type</span>
-                        </Link>
-                        <Link to="/connection-carrier" className="link-text-underline">
-                            <span>Methods of Carrying IP Traffic to Users</span>
-                        </Link>
-                        <Link to="/connectivity-load" className="link-text-underline">
-                            <span>Connectivity Load</span>
-                        </Link>
-                        <Link to="/connectivity-growth" className="link-text-underline">
-                            <span>Connectivity Growth</span>
-                        </Link>
-                        <Link to="/remote-campuses" className="link-text-underline">
-                            <span>NREN Connectivity to Remote Campuses in Other Countries</span>
-                        </Link>
-
-                        <hr className="fake-divider" />
-                        <h6 className="section-title">Connected Users - Commercial</h6>
-                        <Link to="/commercial-charging-level" className="link-text-underline">
-                            <span>Commercial Charging Level</span>
-                        </Link>
-                        <Link to="/commercial-connectivity" className="link-text-underline">
-                            <span>Commercial Connectivity</span>
-                        </Link>
+                        <ConnectedUsersLinks />
                     </CollapsibleBox>
                     <CollapsibleBox title={Sections.Network} startCollapsed>
-                        <h6 className="section-title" >Connectivity</h6>
-                        <Link to="/traffic-volume" className="link-text-underline">
-                            <span>NREN Traffic - NREN Customers & External Networks</span>
-                        </Link>
-                        <Link to="/iru-duration" className="link-text-underline">
-                            <span>Average Duration of IRU leases of Fibre by NRENs</span>
-                        </Link>
-                        <Link to="/fibre-light" className="link-text-underline">
-                            <span>Approaches to lighting NREN fibre networks</span>
-                        </Link>
-                        <Link to="/dark-fibre-lease" className="link-text-underline">
-                            <span>Kilometres of Leased Dark Fibre (National)</span>
-                        </Link>
-                        <Link to="/dark-fibre-lease-international" className="link-text-underline">
-                            <span>Kilometres of Leased Dark Fibre (International)</span>
-                        </Link>
-                        <Link to="/dark-fibre-installed" className="link-text-underline">
-                            <span>Kilometres of Installed Dark Fibre</span>
-                        </Link>
-                        <Link to="/network-map" className="link-text-underline">
-                            <span>NREN Network Maps</span>
-                        </Link>
-                        <hr className="fake-divider" />
-                        <h6 className="section-title" >Performance Monitoring & Management</h6>
-                        <Link to="/monitoring-tools" className="link-text-underline">
-                            <span>Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions</span>
-                        </Link>
-                        <Link to="/pert-team" className="link-text-underline">
-                            <span>NRENs with Performance Enhancement Response Teams</span>
-                        </Link>
-                        <Link to="/passive-monitoring" className="link-text-underline">
-                            <span>Methods for Passively Monitoring International Traffic</span>
-                        </Link>
-                        <Link to="/traffic-stats" className="link-text-underline">
-                            <span>Traffic Statistics  </span>
-                        </Link>
-                        <Link to="/weather-map" className="link-text-underline">
-                            <span>NREN Online Network Weather Maps </span>
-                        </Link>
-                        <Link to="/certificate-provider" className="link-text-underline">
-                            <span>Certification Services used by NRENs</span>
-                        </Link>
-                        <Link to="/siem-vendors" className="link-text-underline">
-                            <span>Vendors of SIEM/SOC systems used by NRENs</span>
-                        </Link>
-                        <hr className="fake-divider" />
-                        <h6 className="section-title" >Alienwave</h6>
-                        <Link to="/alien-wave" className="link-text-underline">
-                            <span>NREN Use of 3rd Party Alienwave/Lightpath Services</span>
-                        </Link>
-                        <Link to="/alien-wave-internal" className="link-text-underline">
-                            <span>Internal NREN Use of Alien Waves</span>
-                        </Link>
-                        <hr className="fake-divider" />
-                        <h6 className="section-title" >Capacity</h6>
-                        <Link to="/capacity-largest-link" className="link-text-underline">
-                            <span>Capacity of the Largest Link in an NREN Network</span>
-                        </Link>
-                        <Link to="/external-connections" className="link-text-underline">
-                            <span>NREN External IP Connections</span>
-                        </Link>
-                        <Link to="/capacity-core-ip" className="link-text-underline">
-                            <span>NREN Core IP Capacity</span>
-                        </Link>
-                        <Link to="/non-rne-peers" className="link-text-underline">
-                            <span>Number of Non-R&E Networks NRENs Peer With</span>
-                        </Link>
-                        <Link to="/traffic-ratio" className="link-text-underline">
-                            <span>Types of traffic in NREN networks</span>
-                        </Link>
-                        <hr className="fake-divider" />
-                        <h6 className="section-title" >Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)</h6>
-                        <Link to="/ops-automation" className="link-text-underline">
-                            <span>NREN Automation of Operational Processes</span>
-                        </Link>
-                        <Link to="/network-automation" className="link-text-underline">
-                            <span>Network Tasks for which NRENs Use Automation  </span>
-                        </Link>
-                        <Link to="/nfv" className="link-text-underline">
-                            <span>Kinds of Network Function Virtualisation used by NRENs</span>
-                        </Link>
+                        <NetworkLinks />
                     </CollapsibleBox>
                     <CollapsibleBox title={Sections.Services} startCollapsed>
-                        <Link to="/network-services" className="link-text-underline">
-                            <span>Network services</span>
-                        </Link>
-                        <Link to="/isp-support-services" className="link-text-underline">
-                            <span>ISP support services</span>
-                        </Link>
-                        <Link to="/security-services" className="link-text-underline">
-                            <span>Security services</span>
-                        </Link>
-                        <Link to="/identity-services" className="link-text-underline">
-                            <span>Identity services</span>
-                        </Link>
-                        <Link to="/collaboration-services" className="link-text-underline">
-                            <span>Collaboration services</span>
-                        </Link>
-                        <Link to="/multimedia-services" className="link-text-underline">
-                            <span>Multimedia services</span>
-                        </Link>
-                        <Link to="/storage-and-hosting-services" className="link-text-underline">
-                            <span>Storage and hosting services</span>
-                        </Link>
-                        <Link to="/professional-services" className="link-text-underline">
-                            <span>Professional services</span>
-                        </Link>
+                        <ServicesLinks />
                     </CollapsibleBox>
                 </Row>
             </Container>
diff --git a/compendium-frontend/src/pages/ConnectedUsers/ConnectedInstitutionsURLs.tsx b/compendium-frontend/src/pages/ConnectedUsers/ConnectedInstitutionsURLs.tsx
index 904f4efa83af9f8203cb8c55e93c1e24dd6e78f9..a5f185104d8c5aabc35b643b9fbb848d0698d497 100644
--- a/compendium-frontend/src/pages/ConnectedUsers/ConnectedInstitutionsURLs.tsx
+++ b/compendium-frontend/src/pages/ConnectedUsers/ConnectedInstitutionsURLs.tsx
@@ -1,16 +1,15 @@
 import { useContext } from 'react';
 
-import { URLDatapoint } from "../../Schema";
-import { createDataLookup, getLatestData, extractUrls, getTableData } from '../../helpers/dataconversion';
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter";
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from "../../helpers/useData";
-import ChartContainer from '../../components/graphing/ChartContainer';
-import NrenYearTable from '../../components/NrenYearTable';
-
-
+import { URLDatapoint } from "compendium/Schema";
+import { createDataLookup, getLatestData, extractUrls, getTableData } from 'compendium/helpers/dataconversion';
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from "compendium/helpers/useData";
+import ChartContainer from 'compendium/components/graphing/ChartContainer';
+import NrenYearTable from 'compendium/components/NrenYearTable';
+import titles from "compendium/titles";
 
 function ConnectedInstitutionsURLsPage() {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -46,7 +45,7 @@ function ConnectedInstitutionsURLsPage() {
     }));
 
     return (
-        <DataPage title="Webpages Listing Institutions and Organisations Connected to NREN Networks"
+        <DataPage title={titles["institutions-urls"]}
             description='Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.'
             category={Sections.ConnectedUsers} filter={filterNode}
             data={downloadData} filename="institution_urls">
diff --git a/compendium-frontend/src/pages/ConnectedUsers/ConnectedUser.tsx b/compendium-frontend/src/pages/ConnectedUsers/ConnectedUser.tsx
index 978f2600a976af55cd522f150a5017b8e5854932..ba55aad57108b62a88453dbf4bd47bb026cc78a2 100644
--- a/compendium-frontend/src/pages/ConnectedUsers/ConnectedUser.tsx
+++ b/compendium-frontend/src/pages/ConnectedUsers/ConnectedUser.tsx
@@ -8,24 +8,25 @@ import {
     ConnectivityLevel,
     ConnectivityLoad,
     ConnectivityPage
-} from "../../Schema";
-import { createCategoryMatrixLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { CommercialConnectionCategories, CommercialOrgCategories, Sections, UserCategories } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import { ScrollableMatrix } from "../../components/ScrollableMatrix";
+} from "compendium/Schema";
+import { createCategoryMatrixLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { CommercialConnectionCategories, CommercialOrgCategories, Sections, UserCategories } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import { ScrollableMatrix } from "compendium/components/ScrollableMatrix";
+import titles from "compendium/titles";
 
 const displayTitle = {
-    [ConnectivityPage.ConnectedProportion]: "Proportion of Different Categories of Institutions Served by NRENs",
-    [ConnectivityPage.ConnectivityLevel]: "Level of IP Connectivity by Institution Type",
-    [ConnectivityPage.ConnectionCarrier]: "Methods of Carrying IP Traffic to Users",
-    [ConnectivityPage.ConnectivityLoad]: "Connectivity Load",
-    [ConnectivityPage.ConnectivityGrowth]: "Connectivity Growth",
-    [ConnectivityPage.CommercialChargingLevel]: "Commercial Charging Level",
-    [ConnectivityPage.CommercialConnectivity]: "Commercial Connectivity"
+    [ConnectivityPage.ConnectedProportion]: titles["connected-proportion"],
+    [ConnectivityPage.ConnectivityLevel]: titles["connectivity-level"],
+    [ConnectivityPage.ConnectionCarrier]: titles["connection-carrier"],
+    [ConnectivityPage.ConnectivityLoad]: titles["connectivity-load"],
+    [ConnectivityPage.ConnectivityGrowth]: titles["connectivity-growth"],
+    [ConnectivityPage.CommercialChargingLevel]: titles["commercial-charging-level"],
+    [ConnectivityPage.CommercialConnectivity]: titles["commercial-connectivity"],
 }
 
 const description = {
diff --git a/compendium-frontend/src/pages/ConnectedUsers/RemoteCampuses.tsx b/compendium-frontend/src/pages/ConnectedUsers/RemoteCampuses.tsx
index 3453fd023d73a3aa2792368c36534271acb257f2..96dee3d5d5f00f1da948b0a500b4d963d639cb1b 100644
--- a/compendium-frontend/src/pages/ConnectedUsers/RemoteCampuses.tsx
+++ b/compendium-frontend/src/pages/ConnectedUsers/RemoteCampuses.tsx
@@ -1,15 +1,15 @@
 import { useContext } from 'react';
 
-import { RemoteCampuses } from "../../Schema";
-import { createDataLookupList, getTableData } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import MulticolumnNrenYearTable from '../../components/MulticolumnNrenYearTable';
-
+import { RemoteCampuses } from "compendium/Schema";
+import { createDataLookupList, getTableData } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import MulticolumnNrenYearTable from 'compendium/components/MulticolumnNrenYearTable';
+import titles from "compendium/titles";
 
 function RemoteCampusesPage() {
     const field = 'remote_campus_connectivity';
@@ -47,7 +47,7 @@ function RemoteCampusesPage() {
     }
 
     return (
-        <DataPage title="NREN Connectivity to Remote Campuses in Other Countries"
+        <DataPage title={titles["remote-campuses"]}
             description='NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.'
             category={Sections.ConnectedUsers} filter={filterNode}
             data={selectedData} filename='nren_remote_campuses'>
diff --git a/compendium-frontend/src/pages/Landing.tsx b/compendium-frontend/src/pages/Landing.tsx
index 11dec7f8921326cf93ca2a82fb5ce1efbe29a235..156c08ccac60a369921d972a3168fbe386f8dc5c 100644
--- a/compendium-frontend/src/pages/Landing.tsx
+++ b/compendium-frontend/src/pages/Landing.tsx
@@ -1,9 +1,9 @@
 import { ReactElement, useEffect } from "react";
 import { Link } from "react-router-dom";
 import { Card, Container, Row, Col } from "react-bootstrap";
-import SectionDataLogo from "../images/home_data_icon.svg";
-import SectionReportsLogo from "../images/home_reports_icon.svg";
-import useMatomo from "../matomo/UseMatomo";
+import SectionDataLogo from "compendium/images/home_data_icon.svg";
+import SectionReportsLogo from "compendium/images/home_reports_icon.svg";
+import useMatomo from "compendium/matomo/UseMatomo";
 
 function Landing(): ReactElement {
     const { trackPageView } = useMatomo();
diff --git a/compendium-frontend/src/pages/Network/AlienWave.tsx b/compendium-frontend/src/pages/Network/AlienWave.tsx
index a7e613ac452780d99c0d989e5990e9f1dd8e36a7..095571076e087d75b767604761a25bf36c2a373a 100644
--- a/compendium-frontend/src/pages/Network/AlienWave.tsx
+++ b/compendium-frontend/src/pages/Network/AlienWave.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { AlienWave } from "../../Schema";
-import { createNrenTableLookup, addTooltip } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { AlienWave } from "compendium/Schema";
+import { createNrenTableLookup, addTooltip } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function AlienWavePage(): React.ReactElement {
     const dataField = 'alien_wave_third_party';
@@ -50,7 +51,7 @@ function AlienWavePage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="NREN Use of 3rd Party Alienwave/Lightpath Services"
+        <DataPage title={titles["alien-wave"]}
             description="The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. 
             It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. 
             In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a 
diff --git a/compendium-frontend/src/pages/Network/AlienWaveInternal.tsx b/compendium-frontend/src/pages/Network/AlienWaveInternal.tsx
index 33b7da60d97179591dedd4592713aa2a29ddf123..df85f6f6ffd7f9406ac6983a6ea2ab967b6fbd2b 100644
--- a/compendium-frontend/src/pages/Network/AlienWaveInternal.tsx
+++ b/compendium-frontend/src/pages/Network/AlienWaveInternal.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { AlienWaveInternal } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { AlienWaveInternal } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function AlienWaveInternalPage(): React.ReactElement {
     const dataField = 'alien_wave_internal';
@@ -40,7 +41,7 @@ function AlienWaveInternalPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="Internal NREN Use of Alien Waves"
+        <DataPage title={titles["alien-wave-internal"]}
             description="The table below shows NREN usage of alien waves internally within their own networks. 
             This includes, for example, alien waves used between two equipment vendors, 
             eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment.
diff --git a/compendium-frontend/src/pages/Network/Automation.tsx b/compendium-frontend/src/pages/Network/Automation.tsx
index 525006744c4f79a54330d2377ceebce05d880477..ecccbfe8b88e2cdab3bc6e6c4a5b5b9a6b476f8b 100644
--- a/compendium-frontend/src/pages/Network/Automation.tsx
+++ b/compendium-frontend/src/pages/Network/Automation.tsx
@@ -1,15 +1,16 @@
 import React, { useContext } from "react";
 import { Table } from "react-bootstrap";
 
-import { NetworkAutomation } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import ColorPill from "../../components/ColorPill";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
+import { NetworkAutomation } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import ColorPill from "compendium/components/ColorPill";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import titles from "compendium/titles";
 
 function AutomationPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -31,7 +32,7 @@ function AutomationPage(): React.ReactElement {
     const showYears = [...filterSelection.selectedYears.filter(year => years.has(year))].sort();
 
     return (
-        <DataPage title="Network Tasks for which NRENs Use Automation "
+        <DataPage title={titles["network-automation"]}
             description="The table below shows which NRENs have, or plan to, automate their 
             operational processes, with specification of which processes, and the names of 
             software and tools used for this given when appropriate. 
diff --git a/compendium-frontend/src/pages/Network/CapacityCoreIP.tsx b/compendium-frontend/src/pages/Network/CapacityCoreIP.tsx
index 561719cb61aa73b691b47eadc5840cd9438f8554..fb66a40fec836845cb5b2a5c645638f8a683eec3 100644
--- a/compendium-frontend/src/pages/Network/CapacityCoreIP.tsx
+++ b/compendium-frontend/src/pages/Network/CapacityCoreIP.tsx
@@ -2,16 +2,17 @@ import { useContext } from 'react';
 import { Bar } from 'react-chartjs-2';
 import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend } from 'chart.js';
 
-import { Capacity } from "../../Schema";
-import { createBarChartDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from '../../helpers/useData';
-import ChartContainer from '../../components/graphing/ChartContainer';
+import { Capacity } from "compendium/Schema";
+import { createBarChartDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from 'compendium/helpers/useData';
+import ChartContainer from 'compendium/components/graphing/ChartContainer';
 import ChartDataLabels from 'chartjs-plugin-datalabels';
-import { getBarChartOptions } from '../../helpers/charthelpers';
+import { getBarChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -46,7 +47,7 @@ function CapacityCoreIPPage() {
     // set a minimum height of 50rem
     const height = Math.max(numNrens * filterSelection.selectedYears.length * heightPerBar + 5, 50);
 
-    const title = "NREN Core IP Capacity";
+    const title = titles['capacity-core-ip'];
     const description = `The graph below shows the typical core usable backbone IP capacity of 
     NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over 
     the network.`
diff --git a/compendium-frontend/src/pages/Network/CapacityLargestLink.tsx b/compendium-frontend/src/pages/Network/CapacityLargestLink.tsx
index e3e2db034d9cba631ac4cd3d6d6dfe1d977f97e0..fbc32f29bf45bb126fd3431bed760153380049d6 100644
--- a/compendium-frontend/src/pages/Network/CapacityLargestLink.tsx
+++ b/compendium-frontend/src/pages/Network/CapacityLargestLink.tsx
@@ -2,16 +2,17 @@ import { useContext } from 'react';
 import { Bar } from 'react-chartjs-2';
 import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend } from 'chart.js';
 
-import { Capacity } from "../../Schema";
-import { createBarChartDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from '../../helpers/useData';
-import ChartContainer from '../../components/graphing/ChartContainer';
+import { Capacity } from "compendium/Schema";
+import { createBarChartDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from 'compendium/helpers/useData';
+import ChartContainer from 'compendium/components/graphing/ChartContainer';
 import ChartDataLabels from 'chartjs-plugin-datalabels';
-import { getBarChartOptions } from '../../helpers/charthelpers';
+import { getBarChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -46,7 +47,7 @@ function CapacityLargestLinkPage() {
     // set a minimum height of 50rem
     const height = Math.max(numNrens * filterSelection.selectedYears.length * heightPerBar + 5, 50);
 
-    const title = "Capacity of the Largest Link in an NREN Network";
+    const title = titles['capacity-largest-link'];
     const description = `NRENs were asked to give the capacity (in Gbits/s) of the largest link in 
     their network used for internet traffic (either shared or dedicated). While they were invited to 
     provide the sum of aggregated links, backup capacity was not to be included.`
diff --git a/compendium-frontend/src/pages/Network/CertificateProvider.tsx b/compendium-frontend/src/pages/Network/CertificateProvider.tsx
index 5896690b4e07aaac32213e55233f5f816a804f1c..5a19d18a182aed91284a9f9d4c2a5dbc1a21f9c8 100644
--- a/compendium-frontend/src/pages/Network/CertificateProvider.tsx
+++ b/compendium-frontend/src/pages/Network/CertificateProvider.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { CertificateProviders } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { CertificateProviders } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function CertificateProviderPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -40,7 +41,7 @@ function CertificateProviderPage(): React.ReactElement {
     ]);
 
     return (
-        <DataPage title="Certification Services used by NRENs "
+        <DataPage title={titles["certificate-provider"]}
             description="The table below shows the kinds of Network Certificate Providers used by NRENs."
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="certificate_provider_nrens_per_year">
diff --git a/compendium-frontend/src/pages/Network/DarkFibreInstalled.tsx b/compendium-frontend/src/pages/Network/DarkFibreInstalled.tsx
index 31cc247d0938020a829d520430cd4bbb6793404b..8fb33dc4b1fc558b3197be32ba27f7099c8871dd 100644
--- a/compendium-frontend/src/pages/Network/DarkFibreInstalled.tsx
+++ b/compendium-frontend/src/pages/Network/DarkFibreInstalled.tsx
@@ -1,7 +1,6 @@
 import { ReactElement, useContext } from 'react';
 import { Line } from 'react-chartjs-2';
 
-
 import {
     Chart as ChartJS,
     CategoryScale,
@@ -13,16 +12,16 @@ import {
     Legend,
 } from 'chart.js';
 
-import { DarkFibreInstalled } from "../../Schema";
-import { createLineChartDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter";
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import { getLineChartOptions } from '../../helpers/charthelpers';
-
+import { DarkFibreInstalled } from "compendium/Schema";
+import { createLineChartDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import { getLineChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -34,14 +33,12 @@ ChartJS.register(
     Legend
 );
 
-
 function DarkFibreInstalledPage(): ReactElement {
     const field = 'fibre_length_in_country'
     const validityCheck = (data: DarkFibreInstalled) => data[field] != null
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
     const { data, nrens } = useData<DarkFibreInstalled>('/api/dark-fibre-installed', setFilterSelection, validityCheck);
 
-
     const selectedData = data.filter(data =>
         filterSelection.selectedNrens.includes(data.nren) && validityCheck(data) // we only allow filtering nrens for this page
     );
@@ -60,7 +57,7 @@ function DarkFibreInstalledPage(): ReactElement {
             The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair.</span>;
 
     return (
-        <DataPage title={`Kilometres of Installed Dark Fibre`}
+        <DataPage title={titles['dark-fibre-installed']}
             description={description}
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="dark_fibre_lease_installed">
diff --git a/compendium-frontend/src/pages/Network/DarkFibreLease.tsx b/compendium-frontend/src/pages/Network/DarkFibreLease.tsx
index c224d78ffc23dfe4162656254b76eea9393652db..d6b727f8b1e3163c41bd30380aa03b57a367d692 100644
--- a/compendium-frontend/src/pages/Network/DarkFibreLease.tsx
+++ b/compendium-frontend/src/pages/Network/DarkFibreLease.tsx
@@ -11,16 +11,16 @@ import {
     Legend,
 } from 'chart.js';
 
-import { DarkFibreLease } from "../../Schema";
-import { createLineChartDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter";
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import { getLineChartOptions } from '../../helpers/charthelpers';
-
+import { DarkFibreLease } from "compendium/Schema";
+import { createLineChartDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import { getLineChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -42,7 +42,6 @@ function DarkFibreLeasePage({ national }: Props): ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
     const { data, nrens } = useData<DarkFibreLease>('/api/dark-fibre-lease', setFilterSelection, validityCheck);
 
-
     const selectedData = data.filter(data =>
         filterSelection.selectedNrens.includes(data.nren) && validityCheck(data) // we only allow filtering nrens for this page
     );
@@ -63,7 +62,7 @@ function DarkFibreLeasePage({ national }: Props): ReactElement {
             The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair.</span>;
 
     return (
-        <DataPage title={`Kilometres of Leased Dark Fibre (${national ? 'National' : 'International'})`}
+        <DataPage title={national ? titles['dark-fibre-lease'] : titles['dark-fibre-lease-international']}
             description={description}
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename={`dark_fibre_lease_${national ? 'national' : 'international'}`}>
diff --git a/compendium-frontend/src/pages/Network/ExternalConnections.tsx b/compendium-frontend/src/pages/Network/ExternalConnections.tsx
index 8bed655e5dffaa4c778184d15e7df14753b01878..6d98ad715562a820f1b147e0c7a3c06292afc39c 100644
--- a/compendium-frontend/src/pages/Network/ExternalConnections.tsx
+++ b/compendium-frontend/src/pages/Network/ExternalConnections.tsx
@@ -1,14 +1,15 @@
 import React, { useContext } from "react";
 
-import { ExternalConnection } from "../../Schema";
-import { createDataLookupList } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import { ScrollableTable } from "../../components/ScrollableTable";
+import { ExternalConnection } from "compendium/Schema";
+import { createDataLookupList } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import { ScrollableTable } from "compendium/components/ScrollableTable";
+import titles from "compendium/titles";
 
 function ExternalConnectionsPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -44,7 +45,7 @@ function ExternalConnectionsPage(): React.ReactElement {
             which is near the border to another point near the border on the network of a neighbouring NREN.</p></>
 
     return (
-        <DataPage title="NREN External IP Connections"
+        <DataPage title={titles['external-connections']}
             description={description}
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="nren_external_connections">
diff --git a/compendium-frontend/src/pages/Network/FibreLight.tsx b/compendium-frontend/src/pages/Network/FibreLight.tsx
index 7e4e54550330efc26abb19711c54924cd34960e0..a76894295c3b40915005ca60365ca6028c2b3133 100644
--- a/compendium-frontend/src/pages/Network/FibreLight.tsx
+++ b/compendium-frontend/src/pages/Network/FibreLight.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { FibreLight } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { FibreLight } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function FibreLightPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -39,7 +40,7 @@ function FibreLightPage(): React.ReactElement {
     ]);
 
     return (
-        <DataPage title="Approaches to lighting NREN fibre networks"
+        <DataPage title={titles['fibre-light']}
             description="This graphic shows the different ways NRENs can light their fibre networks. 
             The option 'Other' is given, with extra information if you hover over the icon."
             category={Sections.Network} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Network/IRUDuration.tsx b/compendium-frontend/src/pages/Network/IRUDuration.tsx
index 6eab668e91ff5c3dfc04e783a3f1c0a64c4f7c11..a084f4d004c67892ea1a95fd3640316e32a026c9 100644
--- a/compendium-frontend/src/pages/Network/IRUDuration.tsx
+++ b/compendium-frontend/src/pages/Network/IRUDuration.tsx
@@ -1,7 +1,6 @@
 import { ReactElement, useContext } from 'react';
 import { Line } from 'react-chartjs-2';
 
-
 import {
     Chart as ChartJS,
     CategoryScale,
@@ -13,15 +12,16 @@ import {
     Legend,
 } from 'chart.js';
 
-import { DarkFibreLease } from "../../Schema";
-import { createLineChartDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter";
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import { getLineChartOptions } from '../../helpers/charthelpers';
+import { DarkFibreLease } from "compendium/Schema";
+import { createLineChartDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import { getLineChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -55,7 +55,7 @@ function IRUDurationPage(): ReactElement {
     const options = getLineChartOptions({ title: 'Lease Duration In Years', tooltipUnit: 'years', tickLimit: 999 });
 
     return (
-        <DataPage title="Average Duration of IRU leases of Fibre by NRENs "
+        <DataPage title={titles['iru-duration']}
             description={<span>NRENs sometimes take out an IRU (Indefeasible Right of Use),
                 which is essentially a long-term lease, on a portion of the capacity of a cable
                 rather than laying cable themselves. This graph shows the average duration,
diff --git a/compendium-frontend/src/pages/Network/MonitoringTools.tsx b/compendium-frontend/src/pages/Network/MonitoringTools.tsx
index c69a8630b3150f5890ae5c7c4aa1e6572e0c40e8..0806ce0fd8825e517422c992158877bcde7196c4 100644
--- a/compendium-frontend/src/pages/Network/MonitoringTools.tsx
+++ b/compendium-frontend/src/pages/Network/MonitoringTools.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { MonitoringTools } from "../../Schema";
-import { createNrenTableLookup, addTooltip } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { MonitoringTools } from "compendium/Schema";
+import { createNrenTableLookup, addTooltip } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function MonitoringToolsPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -52,7 +53,7 @@ function MonitoringToolsPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"
+        <DataPage title={titles['monitoring-tools']}
             description="The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. 
             Four common tools are named, however NRENs also have the opportunity to add their own tools to the table."
             category={Sections.Network} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Network/NetworkFunctionVirtualisation.tsx b/compendium-frontend/src/pages/Network/NetworkFunctionVirtualisation.tsx
index 7686e211ca32e232c4ff3a27fc3d4c15ef9822e3..82f09fc1ed901d2a718e9791a1d86b2e50f37d9b 100644
--- a/compendium-frontend/src/pages/Network/NetworkFunctionVirtualisation.tsx
+++ b/compendium-frontend/src/pages/Network/NetworkFunctionVirtualisation.tsx
@@ -1,15 +1,16 @@
 import React, { useContext } from "react";
 import { Table } from "react-bootstrap";
 
-import { NetworkFunctionVirtualisation } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import ColorPill from "../../components/ColorPill";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
+import { NetworkFunctionVirtualisation } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import ColorPill from "compendium/components/ColorPill";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import titles from "compendium/titles";
 
 function NetworkFunctionVirtualisationPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -31,7 +32,7 @@ function NetworkFunctionVirtualisationPage(): React.ReactElement {
     const showYears = [...filterSelection.selectedYears.filter(year => years.has(year))].sort();
 
     return (
-        <DataPage title="Kinds of Network Function Virtualisation used by NRENs "
+        <DataPage title={titles.nfv}
             description="The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs."
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="network_function_virtualisation_nrens_per_year">
diff --git a/compendium-frontend/src/pages/Network/NetworkMapUrls.tsx b/compendium-frontend/src/pages/Network/NetworkMapUrls.tsx
index eb85dea4b80045fca5be9224e602e514f39364de..74356427b33f1d73d78c26b4d602728b4efe3177 100644
--- a/compendium-frontend/src/pages/Network/NetworkMapUrls.tsx
+++ b/compendium-frontend/src/pages/Network/NetworkMapUrls.tsx
@@ -1,14 +1,15 @@
 import React, { useContext } from "react";
 
-import { NetworkMapUrls } from "../../Schema";
-import { createDataLookup, getTableData, getLatestData, extractUrls } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import NrenYearTable from "../../components/NrenYearTable";
+import { NetworkMapUrls } from "compendium/Schema";
+import { createDataLookup, getTableData, getLatestData, extractUrls } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import NrenYearTable from "compendium/components/NrenYearTable";
+import titles from "compendium/titles";
 
 function NetworkMapUrlPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -37,7 +38,7 @@ function NetworkMapUrlPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="NREN Network Maps"
+        <DataPage title={titles['network-map']}
             description="This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks."
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="network_map_nrens_per_year">
diff --git a/compendium-frontend/src/pages/Network/NonRAndEPeer.tsx b/compendium-frontend/src/pages/Network/NonRAndEPeer.tsx
index 0a66206f71585aff51ae94db550cceb9a3323e2d..a15f9fd0b186bd5221f14b3274a7f6021fc77994 100644
--- a/compendium-frontend/src/pages/Network/NonRAndEPeer.tsx
+++ b/compendium-frontend/src/pages/Network/NonRAndEPeer.tsx
@@ -2,16 +2,17 @@ import { useContext } from 'react';
 import { Bar } from 'react-chartjs-2';
 import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend } from 'chart.js';
 
-import { NonRAndEPeers } from "../../Schema";
-import { createBarChartDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from '../../helpers/useData';
-import ChartContainer from '../../components/graphing/ChartContainer';
+import { NonRAndEPeers } from "compendium/Schema";
+import { createBarChartDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from 'compendium/helpers/useData';
+import ChartContainer from 'compendium/components/graphing/ChartContainer';
 import ChartDataLabels from 'chartjs-plugin-datalabels';
-import { getBarChartOptions } from '../../helpers/charthelpers';
+import { getBarChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -43,7 +44,7 @@ function NonRAndEPeerPage() {
     // set a minimum height of 50rem
     const height = Math.max(numNrens * filterSelection.selectedYears.length * heightPerBar + 5, 50);
 
-    const title = "Number of Non-R&E Networks NRENs Peer With";
+    const title = titles['non-rne-peers'];
     const description = `The graph below shows the number of non-Research and Education networks 
     NRENs peer with. This includes all direct IP-peerings to commercial networks, eg. Google`
 
diff --git a/compendium-frontend/src/pages/Network/OPsAutomation.tsx b/compendium-frontend/src/pages/Network/OPsAutomation.tsx
index a7ff5a8a7d889bb34a0714662a05c742c8987abc..5db8f1016072f77b4690230fe9d5e020ee4d0993 100644
--- a/compendium-frontend/src/pages/Network/OPsAutomation.tsx
+++ b/compendium-frontend/src/pages/Network/OPsAutomation.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { OPsAutomation } from "../../Schema";
-import { createNrenTableLookup, addTooltip } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { OPsAutomation } from "compendium/Schema";
+import { createNrenTableLookup, addTooltip } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function OPsAutomationPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -48,7 +49,7 @@ function OPsAutomationPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="NREN Automation of Operational Processes"
+        <DataPage title={titles["ops-automation"]}
             description="The table below shows which NRENs have, or plan to, automate their 
             operational processes, with specification of which processes, and the names of 
             software and tools used for this given when appropriate."
diff --git a/compendium-frontend/src/pages/Network/PassiveMonitoring.tsx b/compendium-frontend/src/pages/Network/PassiveMonitoring.tsx
index 74f3af16a261bf68e5dbce2c9d8e650423acf2a8..2aac55f2e1d6d84b450cdbd13e91aa97f3baf72d 100644
--- a/compendium-frontend/src/pages/Network/PassiveMonitoring.tsx
+++ b/compendium-frontend/src/pages/Network/PassiveMonitoring.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { PassiveMonitoring } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { PassiveMonitoring } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function PassiveMonitoringPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -41,7 +42,7 @@ function PassiveMonitoringPage(): React.ReactElement {
     ]);
 
     return (
-        <DataPage title="Methods for Passively Monitoring International Traffic"
+        <DataPage title={titles['passive-monitoring']}
             description="The table below shows the methods NRENs use for the passive monitoring of international traffic."
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="passive_monitoring_nrens_per_year">
diff --git a/compendium-frontend/src/pages/Network/PertTeam.tsx b/compendium-frontend/src/pages/Network/PertTeam.tsx
index b024a135cfec7a155679ea8db4fa052d085b747c..4eb9f739c58b02663b5ff8c57401bebe48fcca7e 100644
--- a/compendium-frontend/src/pages/Network/PertTeam.tsx
+++ b/compendium-frontend/src/pages/Network/PertTeam.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { PertTeam } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { PertTeam } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function PertTeamPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -39,7 +40,7 @@ function PertTeamPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="NRENs with Performance Enhancement Response Teams"
+        <DataPage title={titles['pert-team']}
             description="Some NRENs have an in-house Performance Enhancement Response Team, 
             or PERT, to investigate network performance issues."
             category={Sections.Network} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Network/SiemVendors.tsx b/compendium-frontend/src/pages/Network/SiemVendors.tsx
index d3f50aacf8c0f6385c27bd8f4b62f25016dba462..95b8fbd902ce4bdce394bca4fbf19eb25c99a4d8 100644
--- a/compendium-frontend/src/pages/Network/SiemVendors.tsx
+++ b/compendium-frontend/src/pages/Network/SiemVendors.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { SiemVendors } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { SiemVendors } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function SiemVendorsPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -35,7 +36,7 @@ function SiemVendorsPage(): React.ReactElement {
     ]
 
     return (
-        <DataPage title="Vendors of SIEM/SOC systems used by NRENs"
+        <DataPage title={titles['siem-vendors']}
             description="The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs."
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="siem_vendor_nrens_per_year">
diff --git a/compendium-frontend/src/pages/Network/TrafficRatio.tsx b/compendium-frontend/src/pages/Network/TrafficRatio.tsx
index f1fc2169ba2d37f1d68dca849c1b0f7e4d6eb047..87a7868f545fbb927adbc0374c8fb86207df3416 100644
--- a/compendium-frontend/src/pages/Network/TrafficRatio.tsx
+++ b/compendium-frontend/src/pages/Network/TrafficRatio.tsx
@@ -2,15 +2,16 @@ import { useContext } from 'react';
 import { Bar } from 'react-chartjs-2';
 import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend } from 'chart.js';
 
-import { TrafficRatio } from "../../Schema";
-import { createTrafficRatioDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import WithLegend from '../../components/WithLegend';
-import htmlLegendPlugin from '../../plugins/HTMLLegendPlugin';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from '../../helpers/useData';
+import { TrafficRatio } from "compendium/Schema";
+import { createTrafficRatioDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import WithLegend from 'compendium/components/WithLegend';
+import htmlLegendPlugin from 'compendium/plugins/HTMLLegendPlugin';
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from 'compendium/helpers/useData';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -123,10 +124,9 @@ function TrafficRatioPage() {
     // set a minimum height of 20rem
     const height = Math.max(numNrens * heightPerBar, 20);
 
-    const title = "Types of traffic in NREN networks  (Commodity v. Research & Education)"
+    const title = titles['traffic-ratio'];
     const description = "The graph shows the ratio of commodity versus research and education traffic in NREN networks"
 
-
     const filename = "types_of_traffic_in_nren_networks";
     return (
         <DataPage title={title}
diff --git a/compendium-frontend/src/pages/Network/TrafficUrl.tsx b/compendium-frontend/src/pages/Network/TrafficUrl.tsx
index a200cb19a05d64b116f22ad1f1584829aaf8e11d..4407dddf22b925f63fc3401b16b47a6be5bb7330 100644
--- a/compendium-frontend/src/pages/Network/TrafficUrl.tsx
+++ b/compendium-frontend/src/pages/Network/TrafficUrl.tsx
@@ -1,14 +1,15 @@
 import React, { useContext } from "react";
 
-import { TrafficStatistics } from "../../Schema";
-import { createDataLookup, getTableData, getLatestData, extractUrls } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import NrenYearTable from "../../components/NrenYearTable";
+import { TrafficStatistics } from "compendium/Schema";
+import { createDataLookup, getTableData, getLatestData, extractUrls } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import NrenYearTable from "compendium/components/NrenYearTable";
+import titles from "compendium/titles";
 
 function TrafficUrlPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -29,7 +30,6 @@ function TrafficUrlPage(): React.ReactElement {
         }
     })
 
-
     const filterNode = <Filter
         filterOptions={{ availableYears: [], availableNrens: [...nrens.values()] }}
         filterSelection={filterSelection}
@@ -38,7 +38,7 @@ function TrafficUrlPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="Traffic Statistics"
+        <DataPage title={titles['traffic-stats']}
             description="This table shows the URL links to NREN websites showing traffic statistics, if available."
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="traffic_stats_nrens_per_year">
diff --git a/compendium-frontend/src/pages/Network/TrafficVolume.tsx b/compendium-frontend/src/pages/Network/TrafficVolume.tsx
index bfa5559cf867223fc61f37506d4e3dd5c2e4ff02..5097a462bd7f11fe778eb56917f2cdacf8929ff0 100644
--- a/compendium-frontend/src/pages/Network/TrafficVolume.tsx
+++ b/compendium-frontend/src/pages/Network/TrafficVolume.tsx
@@ -12,16 +12,16 @@ import {
     Legend,
 } from 'chart.js';
 
-import { TrafficVolume } from "../../Schema";
-import { createLineChartDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter";
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import { getLineChartOptions } from '../../helpers/charthelpers';
-
+import { TrafficVolume } from "compendium/Schema";
+import { createLineChartDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import { getLineChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -33,7 +33,6 @@ ChartJS.register(
     Legend
 );
 
-
 function TrafficVolumePage(): ReactElement {
 
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -48,7 +47,6 @@ function TrafficVolumePage(): ReactElement {
     const fromExternalTrafficVolumeData = createLineChartDataset(selectedData, 'from_external');
     const toExternalTrafficVolumeData = createLineChartDataset(selectedData, 'to_external');
 
-
     const options = getLineChartOptions({
         title: 'Traffic Volume in PB', tooltipUnit: 'PB', valueTransform(value) {
             // show in PB instead
@@ -63,7 +61,7 @@ function TrafficVolumePage(): ReactElement {
     />
 
     return (
-        <DataPage title="NREN Traffic - NREN Customers & External Networks"
+        <DataPage title={titles['traffic-volume']}
             description={<span>The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers,
                 and to & from external networks. NREN customers are taken to mean sources that are part of the NREN&apos;s connectivity remit,
                 while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet
diff --git a/compendium-frontend/src/pages/Network/WeatherMap.tsx b/compendium-frontend/src/pages/Network/WeatherMap.tsx
index 54029af8470073b87a9b612df9b3b4b5592022bb..8fb5e8435f061d371e0084af6da236bbcbdcb7c8 100644
--- a/compendium-frontend/src/pages/Network/WeatherMap.tsx
+++ b/compendium-frontend/src/pages/Network/WeatherMap.tsx
@@ -1,14 +1,15 @@
 import React, { useContext } from "react";
 
-import { WeatherMap } from "../../Schema";
-import { getTableData, createDataLookup, getLatestData } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import NrenYearTable from "../../components/NrenYearTable";
+import { WeatherMap } from "compendium/Schema";
+import { getTableData, createDataLookup, getLatestData } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import NrenYearTable from "compendium/components/NrenYearTable";
+import titles from "compendium/titles";
 
 function NetworkWeatherMapPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -36,7 +37,7 @@ function NetworkWeatherMapPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="NREN Online Network Weather Maps "
+        <DataPage title={titles['weather-map']}
             description="This table shows the URL links to NREN websites showing weather map, if available."
             category={Sections.Network} filter={filterNode}
             data={selectedData} filename="weather_map_nrens_per_year">
diff --git a/compendium-frontend/src/pages/Organization/Budget.tsx b/compendium-frontend/src/pages/Organization/Budget.tsx
index 9bc7f9671b7bd179b9ef565d4607d6cf8e161205..fc079b5ed07bd8323b73b055c7b12252dbedcf84 100644
--- a/compendium-frontend/src/pages/Organization/Budget.tsx
+++ b/compendium-frontend/src/pages/Organization/Budget.tsx
@@ -1,7 +1,6 @@
 import { ReactElement, useContext } from 'react';
 import { Line } from 'react-chartjs-2';
 
-
 import {
     Chart as ChartJS,
     CategoryScale,
@@ -13,15 +12,16 @@ import {
     Legend,
 } from 'chart.js';
 
-import { Budget } from "../../Schema";
-import { createLineChartDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter";
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import { getLineChartOptions } from '../../helpers/charthelpers';
+import { Budget } from "compendium/Schema";
+import { createLineChartDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import { getLineChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -33,7 +33,6 @@ ChartJS.register(
     Legend
 );
 
-
 function BudgetPage(): ReactElement {
 
     const field = 'budget';
@@ -54,7 +53,7 @@ function BudgetPage(): ReactElement {
     const options = getLineChartOptions({ title: 'Budget in M€', tooltipUnit: 'M€', unit: 'M€' });
 
     return (
-        <DataPage title="Budget of NRENs per Year"
+        <DataPage title={titles.budget}
             description={<span>The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.
                 <br />NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.
                 <br />Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year.</span>} category={Sections.Organisation} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Organization/ChargingStructure.tsx b/compendium-frontend/src/pages/Organization/ChargingStructure.tsx
index 4f34eb376199f8560a76ecc3581139eb913eab86..dfdf549a0fc309d20a865aeaa1371b108185d15b 100644
--- a/compendium-frontend/src/pages/Organization/ChargingStructure.tsx
+++ b/compendium-frontend/src/pages/Organization/ChargingStructure.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { ChargingStructure } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { ChargingStructure } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function ChargingStructurePage(): React.ReactElement {
 
@@ -46,7 +47,7 @@ function ChargingStructurePage(): React.ReactElement {
     ]);
 
     return (
-        <DataPage title="Charging Mechanism of NRENs"
+        <DataPage title={titles.charging}
             description="The charging structure is the way in which NRENs charge their customers for the services they provide.
          The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. 
          By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs."
diff --git a/compendium-frontend/src/pages/Organization/ECProjects.tsx b/compendium-frontend/src/pages/Organization/ECProjects.tsx
index 9bd5760ea52d2390eab2b808651008b4b3e12644..ba76b7609842e075de4eee2943c601a54fad8b66 100644
--- a/compendium-frontend/src/pages/Organization/ECProjects.tsx
+++ b/compendium-frontend/src/pages/Organization/ECProjects.tsx
@@ -1,14 +1,14 @@
 import { useContext } from 'react';
 
-import { ECProject } from "../../Schema";
-import { createDataLookupList, getTableData } from '../../helpers/dataconversion';
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import NrenYearTable from '../../components/NrenYearTable';
+import { ECProject } from "compendium/Schema";
+import { createDataLookupList, getTableData } from 'compendium/helpers/dataconversion';
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import NrenYearTable from 'compendium/components/NrenYearTable';
 
 function ECProjectsPage() {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
diff --git a/compendium-frontend/src/pages/Organization/FundingSource.tsx b/compendium-frontend/src/pages/Organization/FundingSource.tsx
index 515e7bf246a0f09c2ddc9faa8fdb37d72641fb6e..416c3967d517cf75e3baebdbb838f0858227b524 100644
--- a/compendium-frontend/src/pages/Organization/FundingSource.tsx
+++ b/compendium-frontend/src/pages/Organization/FundingSource.tsx
@@ -4,15 +4,16 @@ import { Col, Row } from "react-bootstrap";
 import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend } from 'chart.js';
 import ChartDataLabels from 'chartjs-plugin-datalabels';
 
-import { FundingSource } from "../../Schema";
-import { createFundingSourceDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import ColorBadge from '../../components/ColorBadge';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
+import { FundingSource } from "compendium/Schema";
+import { createFundingSourceDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import ColorBadge from 'compendium/components/ColorBadge';
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import titles from "compendium/titles";
 
 ChartJS.register(
   CategoryScale,
@@ -160,7 +161,7 @@ function FundingSourcePage() {
   // set a minimum height of 20rem, additional years need some more space
   const height = numNrens * numYears * heightPerBar + 5;
   return (
-    <DataPage title="Income Source Of NRENs"
+    <DataPage title={titles.funding}
       description={<span>The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within &quot;European funding&quot;. By &quot;Client institutions&quot; NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. &quot;Commercial services&quot; include services such as being a domain registry, or security support.
         <br />Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared.</span>}
       category={Sections.Organisation} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Organization/ParentOrganisation.tsx b/compendium-frontend/src/pages/Organization/ParentOrganisation.tsx
index 7450249ec2f163d87a58812083eaa788434546fb..42847734f3473c9674169a0aa4961a12b49bfd33 100644
--- a/compendium-frontend/src/pages/Organization/ParentOrganisation.tsx
+++ b/compendium-frontend/src/pages/Organization/ParentOrganisation.tsx
@@ -1,14 +1,13 @@
 import { useContext } from 'react';
-import { Organisation } from "../../Schema";
-import { createDataLookup, getTableData } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import NrenYearTable from '../../components/NrenYearTable';
-
+import { Organisation } from "compendium/Schema";
+import { createDataLookup, getTableData } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import NrenYearTable from 'compendium/components/NrenYearTable';
 
 function ParentOrganisationPage() {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
diff --git a/compendium-frontend/src/pages/Organization/StaffGraph.tsx b/compendium-frontend/src/pages/Organization/StaffGraph.tsx
index ed2ee758e7ba6252743e9cdf1ad4cfdb55fe2e2d..68a5684ad8f3d60ddd3a50d4996bf8f38cabd0b1 100644
--- a/compendium-frontend/src/pages/Organization/StaffGraph.tsx
+++ b/compendium-frontend/src/pages/Organization/StaffGraph.tsx
@@ -2,15 +2,16 @@ import { useContext } from 'react';
 import { Bar } from 'react-chartjs-2';
 import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend } from 'chart.js';
 
-import { NrenStaff } from "../../Schema";
-import { createNRENStaffDataset } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import WithLegend from '../../components/WithLegend';
-import htmlLegendPlugin from '../../plugins/HTMLLegendPlugin';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from '../../helpers/useData';
+import { NrenStaff } from "compendium/Schema";
+import { createNRENStaffDataset } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import WithLegend from 'compendium/components/WithLegend';
+import htmlLegendPlugin from 'compendium/plugins/HTMLLegendPlugin';
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from 'compendium/helpers/useData';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -132,11 +133,14 @@ function StaffGraphPage({ roles = false }: inputProps) {
     const height = Math.max(numNrens * heightPerBar, 20);
 
     const title = roles
-        ? "Roles of NREN employees (Technical v. Non-Technical)"
-        : "Types of Employment within NRENs";
+        ? titles.roles
+        : titles.employment;
     const description = roles
-        ? "The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN. The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format"
-        : "The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted. The structures and models of NRENs differ across the community, which is reflected in the types of employment offered. The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.";
+        ? `The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN.
+        The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format`
+        : `The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted.
+        The structures and models of NRENs differ across the community, which is reflected in the types of employment offered.
+        The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.`;
 
     const filename = roles ? "roles_of_nren_employees" : "types_of_employment_for_nrens";
     return (
diff --git a/compendium-frontend/src/pages/Organization/StaffGraphAbsolute.tsx b/compendium-frontend/src/pages/Organization/StaffGraphAbsolute.tsx
index 9d7e251c2c9e53943498ad15f3a31e7c6e1e3845..eda963405a30c78051db9241184d0596360b34e6 100644
--- a/compendium-frontend/src/pages/Organization/StaffGraphAbsolute.tsx
+++ b/compendium-frontend/src/pages/Organization/StaffGraphAbsolute.tsx
@@ -2,16 +2,17 @@ import { useContext } from 'react';
 import { Bar } from 'react-chartjs-2';
 import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend } from 'chart.js';
 
-import { NrenStaff } from "../../Schema";
-import { createNRENStaffDatasetAbsolute } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from '../../helpers/useData';
-import ChartContainer from '../../components/graphing/ChartContainer';
+import { NrenStaff } from "compendium/Schema";
+import { createNRENStaffDatasetAbsolute } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from 'compendium/helpers/useData';
+import ChartContainer from 'compendium/components/graphing/ChartContainer';
 import ChartDataLabels from 'chartjs-plugin-datalabels';
-import { getBarChartOptions } from '../../helpers/charthelpers';
+import { getBarChartOptions } from 'compendium/helpers/charthelpers';
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -44,7 +45,7 @@ function StaffGraphAbsolutePage() {
     // set a minimum height of 50rem
     const height = Math.max(numNrens * filterSelection.selectedYears.length * heightPerBar + 5, 50);
 
-    const title = "Number of NREN Employees";
+    const title = titles["employee-count"];
     const description = `The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.`
 
     const options = getBarChartOptions({ tooltipPrefix: "FTEs", title: "Full-Time Equivalents" });
diff --git a/compendium-frontend/src/pages/Organization/SubOrganisation.tsx b/compendium-frontend/src/pages/Organization/SubOrganisation.tsx
index 6d8e3d149830eda2e566dc49a5f9ccacd03134e1..cd4d042975022e97afe226baf9ba0de35ceeff5f 100644
--- a/compendium-frontend/src/pages/Organization/SubOrganisation.tsx
+++ b/compendium-frontend/src/pages/Organization/SubOrganisation.tsx
@@ -1,15 +1,15 @@
 import { useContext } from 'react';
 
-import { Organisation } from "../../Schema";
-import { createDataLookupList, getTableData } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import NrenYearTable from '../../components/NrenYearTable';
-
+import { Organisation } from "compendium/Schema";
+import { createDataLookupList, getTableData } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import NrenYearTable from 'compendium/components/NrenYearTable';
+import titles from "compendium/titles";
 
 function SubOrganisationPage() {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -34,7 +34,7 @@ function SubOrganisationPage() {
     />
 
     return (
-        <DataPage title="NREN Sub-Organisations"
+        <DataPage title={titles.suborganisations}
             description='NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.'
             category={Sections.Organisation} filter={filterNode}
             data={selectedData} filename='nren_suborganisations'>
diff --git a/compendium-frontend/src/pages/Services/Services.tsx b/compendium-frontend/src/pages/Services/Services.tsx
index ec45b5bb132f53a4efb97c3dbe33afc948bf8b26..7cade9fe14fc6fc5c0ae9645af5d9c08b5ddacd7 100644
--- a/compendium-frontend/src/pages/Services/Services.tsx
+++ b/compendium-frontend/src/pages/Services/Services.tsx
@@ -1,26 +1,16 @@
 import React, { useContext } from "react";
 import { Table } from "react-bootstrap";
 
-import { Service, ServiceCategory } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import ColorBadgeService from "../../components/ColorBadgeService";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-
-const CategoryFriendlyNames = {};
-CategoryFriendlyNames[ServiceCategory.network_services] = "network";
-CategoryFriendlyNames[ServiceCategory.isp_support] = "ISP support";
-CategoryFriendlyNames[ServiceCategory.security] = "security";
-CategoryFriendlyNames[ServiceCategory.identity] = "identity";
-CategoryFriendlyNames[ServiceCategory.collaboration] = "collaboration";
-CategoryFriendlyNames[ServiceCategory.multimedia] = "multimedia";
-CategoryFriendlyNames[ServiceCategory.storage_and_hosting] = "storage and hosting";
-CategoryFriendlyNames[ServiceCategory.professional_services] = "professional";
-
+import { Service, ServiceCategory } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import ColorBadgeService from "compendium/components/ColorBadgeService";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import titles from "compendium/titles";
 
 interface inputProps {
     category: ServiceCategory
@@ -54,8 +44,37 @@ function ServicesPage({ category }: inputProps): React.ReactElement {
 
     const showYears = [...filterSelection.selectedYears.filter(year => years.has(year))].sort();
 
+    let title = '';
+
+    switch (category) {
+        case ServiceCategory.network_services:
+            title = titles["network-services"];
+            break;
+        case ServiceCategory.isp_support:
+            title = titles["isp-support-services"];
+            break;
+        case ServiceCategory.security:
+            title = titles["security-services"];
+            break;
+        case ServiceCategory.identity:
+            title = titles["identity-services"];
+            break;
+        case ServiceCategory.collaboration:
+            title = titles["collaboration-services"];
+            break;
+        case ServiceCategory.multimedia:
+            title = titles["multimedia-services"];
+            break;
+        case ServiceCategory.storage_and_hosting:
+            title = titles["storage-and-hosting-services"];
+            break;
+        case ServiceCategory.professional_services:
+            title = titles["professional-services"];
+            break;
+    }
+
     return (
-        <DataPage title={"NREN " + CategoryFriendlyNames[category] + " services matrix"}
+        <DataPage title={title}
             description="The service matrix shows the services NRENs offer to their users. These 
             services are grouped thematically, with navigation possible via. the side menu. NRENs 
             are invited to give extra information about their services; where this is provided, 
diff --git a/compendium-frontend/src/pages/Standards&Policies/Audits.tsx b/compendium-frontend/src/pages/Standards&Policies/Audits.tsx
index a731a539dd16368f91e22e9e5054674330bc490b..2717a51b46ed6e08392d590a1354d6e5a375bf91 100644
--- a/compendium-frontend/src/pages/Standards&Policies/Audits.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/Audits.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { Standards } from "../../Schema";
-import { createNrenTableLookup, addTooltip } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { Standards } from "compendium/Schema";
+import { createNrenTableLookup, addTooltip } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function AuditsPage(): React.ReactElement {
     const dataField = 'audits';
@@ -15,7 +16,6 @@ function AuditsPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
     const { data, years, nrens } = useData<Standards>('/api/standards', setFilterSelection, validityCheck);
 
-
     const selectedData = data.filter(data =>
         filterSelection.selectedYears.includes(data.year) && filterSelection.selectedNrens.includes(data.nren) && data[dataField] !== null
     );
@@ -49,7 +49,7 @@ function AuditsPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="External and Internal Audits of Information Security Management Systems"
+        <DataPage title={titles.audits}
             description="The table below shows whether NRENs have external and/or internal audits 
             of the information security management systems (eg. risk management and policies). 
             Where extra information has been provided, such as whether a certified security auditor 
diff --git a/compendium-frontend/src/pages/Standards&Policies/BusinessContinuity.tsx b/compendium-frontend/src/pages/Standards&Policies/BusinessContinuity.tsx
index 417a8b797dfeb6baed26a97c1fdd7c407fe322a3..6d7248f5a39dd6d614756269364a266e8ff40bfb 100644
--- a/compendium-frontend/src/pages/Standards&Policies/BusinessContinuity.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/BusinessContinuity.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { Standards } from "../../Schema";
-import { createNrenTableLookup, addTooltip } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { Standards } from "compendium/Schema";
+import { createNrenTableLookup, addTooltip } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function BusinessContinuityPage(): React.ReactElement {
     const dataField = 'business_continuity_plans';
@@ -15,7 +16,6 @@ function BusinessContinuityPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
     const { data, years, nrens } = useData<Standards>('/api/standards', setFilterSelection, validityCheck);
 
-
     const selectedData = data.filter(data =>
         filterSelection.selectedYears.includes(data.year) && filterSelection.selectedNrens.includes(data.nren) && data[dataField] !== null
     );
@@ -49,7 +49,7 @@ function BusinessContinuityPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="NREN Business Continuity Planning"
+        <DataPage title={titles["business-continuity"]}
             description="The table below shows which NRENs have business continuity plans in place to 
             ensure business continuation and operations. Extra details about whether the NREN 
             complies with any international standards, and whether they test the continuity plans 
diff --git a/compendium-frontend/src/pages/Standards&Policies/CentralProcurement.tsx b/compendium-frontend/src/pages/Standards&Policies/CentralProcurement.tsx
index dbcf86e3040270aab272d672b42ad10af9443db5..5fd90afa817ae982ed50e9978308603687ef502e 100644
--- a/compendium-frontend/src/pages/Standards&Policies/CentralProcurement.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/CentralProcurement.tsx
@@ -12,15 +12,16 @@ import {
 import ChartDataLabels from 'chartjs-plugin-datalabels';
 import { Bar } from 'react-chartjs-2';
 
-import DataPage from '../../components/DataPage';
-import ChartContainer from '../../components/graphing/ChartContainer';
-import Filter from '../../components/graphing/Filter';
-import { getBarChartOptions } from '../../helpers/charthelpers';
-import { Sections } from '../../helpers/constants';
-import { createBarChartDataset } from '../../helpers/dataconversion';
-import { useData } from '../../helpers/useData';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { CentralProcurement } from '../../Schema';
+import DataPage from 'compendium/components/DataPage';
+import ChartContainer from 'compendium/components/graphing/ChartContainer';
+import Filter from 'compendium/components/graphing/Filter';
+import { getBarChartOptions } from 'compendium/helpers/charthelpers';
+import { Sections } from "compendium/helpers/constants";
+import { createBarChartDataset } from 'compendium/helpers/dataconversion';
+import { useData } from 'compendium/helpers/useData';
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { CentralProcurement } from "compendium/Schema";
+import titles from "compendium/titles";
 
 ChartJS.register(
     CategoryScale,
@@ -54,7 +55,7 @@ function CentralProcurementPage() {
     // set a minimum height of 50rem
     const height = Math.max(numNrens * filterSelection.selectedYears.length * heightPerBar + 5, 50);
 
-    const title = "Value of Software Procured for Customers by NRENs";
+    const title = titles["central-procurement"];
     const description = <span>Some NRENs centrally procure software for their customers.
         The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs.
         Please note you can only see the select NRENs which carry out this type of procurement.
diff --git a/compendium-frontend/src/pages/Standards&Policies/CorporateStrategy.tsx b/compendium-frontend/src/pages/Standards&Policies/CorporateStrategy.tsx
index aac3ace40ca85b4d7b5a6e7e34468f268fb05b27..f73a2ae36fe1eb01d757908c017e00c67aa06277 100644
--- a/compendium-frontend/src/pages/Standards&Policies/CorporateStrategy.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/CorporateStrategy.tsx
@@ -1,14 +1,15 @@
 import { useContext } from 'react';
 
-import { CorporateStrategy } from "../../Schema";
-import { createDataLookup, getLatestData, getTableData } from '../../helpers/dataconversion';
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from '../../helpers/useData';
-import ChartContainer from '../../components/graphing/ChartContainer';
-import NrenYearTable from '../../components/NrenYearTable';
+import { CorporateStrategy } from "compendium/Schema";
+import { createDataLookup, getLatestData, getTableData } from 'compendium/helpers/dataconversion';
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from 'compendium/helpers/useData';
+import ChartContainer from 'compendium/components/graphing/ChartContainer';
+import NrenYearTable from 'compendium/components/NrenYearTable';
+import titles from "compendium/titles";
 
 function CorporateStrategyPage() {
     const dataField = 'strategic_plan';
@@ -36,7 +37,7 @@ function CorporateStrategyPage() {
     />
 
     return (
-        <DataPage title="NREN Corporate Strategies"
+        <DataPage title={titles["corporate-strategy"]}
             description='The table below contains links to the NRENs most recent corporate strategic plans. 
             NRENs are asked if updates have been made to their corporate strategy over the previous year. 
             To avoid showing outdated links, only the most recent responses are shown.'
diff --git a/compendium-frontend/src/pages/Standards&Policies/CrisisExercises.tsx b/compendium-frontend/src/pages/Standards&Policies/CrisisExercises.tsx
index 00492b4df37832db8e1ad3eee9711f0284946e59..905b6bca19e8130f5972816244590e868d9d65d5 100644
--- a/compendium-frontend/src/pages/Standards&Policies/CrisisExercises.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/CrisisExercises.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { CrisisExercises } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { CrisisExercises } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function CrisisExercisesPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -42,7 +43,7 @@ function CrisisExercisesPage(): React.ReactElement {
     );
 
     return (
-        <DataPage title="Crisis Exercises - NREN Operation and Participation"
+        <DataPage title={titles["crisis-exercise"]}
             description="Many NRENs run or participate in crisis exercises to test procedures and train employees. 
             The table below shows whether NRENs have run or participated in an exercise in the previous year. "
             category={Sections.Policy} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Standards&Policies/CrisisManagement.tsx b/compendium-frontend/src/pages/Standards&Policies/CrisisManagement.tsx
index 359645ca14fdf0bed6e12b1ae7e428126e20f3ea..f0c45b2eb96c6032648c3c44535ff9b62fbf4f1a 100644
--- a/compendium-frontend/src/pages/Standards&Policies/CrisisManagement.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/CrisisManagement.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { Standards } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { Standards } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function CrisisManagementPage(): React.ReactElement {
     const dataField = 'crisis_management_procedure';
@@ -17,7 +18,6 @@ function CrisisManagementPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
     const { data, years, nrens } = useData<Standards>('/api/standards', setFilterSelection, validityCheck);
 
-
     const selectedData = data.filter(data =>
         filterSelection.selectedYears.includes(data.year) && filterSelection.selectedNrens.includes(data.nren) && validityCheck(data)
     );
@@ -42,7 +42,7 @@ function CrisisManagementPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="Crisis Management Procedures"
+        <DataPage title={titles["crisis-management"]}
             description="The table below shows whether NRENs have a formal crisis management procedure."
             category={Sections.Policy} filter={filterNode}
             data={selectedData} filename="crisis_management_nrens_per_year">
diff --git a/compendium-frontend/src/pages/Standards&Policies/EOSCListings.tsx b/compendium-frontend/src/pages/Standards&Policies/EOSCListings.tsx
index 246c0ed30e453fa174baf39eede6676de80fa693..291559bf834c2497e819c82f14c4f184c6d99653 100644
--- a/compendium-frontend/src/pages/Standards&Policies/EOSCListings.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/EOSCListings.tsx
@@ -1,14 +1,15 @@
 import { useContext } from 'react';
 
-import { EOSCListing } from "../../Schema";
-import { createDataLookupList, getTableData } from "../../helpers/dataconversion";
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from '../../helpers/useData';
-import NrenYearTable from '../../components/NrenYearTable';
+import { EOSCListing } from "compendium/Schema";
+import { createDataLookupList, getTableData } from "compendium/helpers/dataconversion";
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from 'compendium/helpers/useData';
+import NrenYearTable from 'compendium/components/NrenYearTable';
+import titles from "compendium/titles";
 
 // The data for this page is not good quality, so it's unlisted for now.
 
@@ -41,7 +42,7 @@ function EOSCListingsPage() {
     </span>
 
     return (
-        <DataPage title="NREN Services Listed on the EOSC Portal"
+        <DataPage title={titles.eosc_listings}
             description={description}
             category={Sections.Policy} filter={filterNode}
             data={selectedData} filename='nren_eosc_listings'>
diff --git a/compendium-frontend/src/pages/Standards&Policies/Policy.tsx b/compendium-frontend/src/pages/Standards&Policies/Policy.tsx
index 812c9fad90e114d6c9ca93ccf6698670645c9bd3..8931ab1abf4c80231f32de4c6ab881cda6ebc9f8 100644
--- a/compendium-frontend/src/pages/Standards&Policies/Policy.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/Policy.tsx
@@ -1,15 +1,15 @@
 import { useContext } from 'react';
 
-import { Policy } from "../../Schema";
-import { createDataLookup, getLatestData, getTableData } from '../../helpers/dataconversion';
-import DataPage from '../../components/DataPage';
-import Filter from "../../components/graphing/Filter"
-import { Sections } from '../../helpers/constants';
-import { FilterSelectionContext } from '../../providers/FilterSelectionProvider';
-import { useData } from '../../helpers/useData';
-import ChartContainer from '../../components/graphing/ChartContainer';
-import NrenYearTable from '../../components/NrenYearTable';
-
+import { Policy } from "compendium/Schema";
+import { createDataLookup, getLatestData, getTableData } from 'compendium/helpers/dataconversion';
+import DataPage from 'compendium/components/DataPage';
+import Filter from "compendium/components/graphing/Filter"
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from 'compendium/providers/FilterSelectionProvider';
+import { useData } from 'compendium/helpers/useData';
+import ChartContainer from 'compendium/components/graphing/ChartContainer';
+import NrenYearTable from 'compendium/components/NrenYearTable';
+import titles from "compendium/titles";
 
 function PolicyPage() {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -31,7 +31,6 @@ function PolicyPage() {
             ['equal_opportunity', 'Equal Opportunity Policy'],
             ['gender_equality', 'Gender Equality Plan'],
             ['privacy_notice', 'Privacy Notice'],
-            ['strategic_plan', 'Strategic Plan']
         ];
         policies.forEach(([key, text]) => {
             const value = policy[key];
@@ -48,7 +47,7 @@ function PolicyPage() {
     />
 
     return (
-        <DataPage title="NREN Policies"
+        <DataPage title={titles.policy}
             description='The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.'
             category={Sections.Policy} filter={filterNode}
             data={selectedData} filename='nren_policies'>
diff --git a/compendium-frontend/src/pages/Standards&Policies/SecurityControls.tsx b/compendium-frontend/src/pages/Standards&Policies/SecurityControls.tsx
index 650a6116e008d4675f9537e212c0bd7bc6c8a5c5..f759e5af0c9ae69b7f110a91064e67bbc0c686ee 100644
--- a/compendium-frontend/src/pages/Standards&Policies/SecurityControls.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/SecurityControls.tsx
@@ -1,19 +1,19 @@
 import React, { useContext } from "react";
-import { SecurityControls } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { SecurityControls } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function SecurityControlsPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
     const { data, years, nrens } = useData<SecurityControls>('/api/security-controls', setFilterSelection);
 
-
     const selectedData = data.filter(data =>
         filterSelection.selectedYears.includes(data.year) && filterSelection.selectedNrens.includes(data.nren)
     );
@@ -44,7 +44,7 @@ function SecurityControlsPage(): React.ReactElement {
     );
 
     return (
-        <DataPage title="Security Controls Used by NRENs"
+        <DataPage title={titles["security-control"]}
             description="The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by 
             NRENs to protect their assets. Where 'other' controls are mentioned, hover over the marker for more information."
             category={Sections.Policy} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Standards&Policies/ServiceLevelTargets.tsx b/compendium-frontend/src/pages/Standards&Policies/ServiceLevelTargets.tsx
index 6f1d680aefa4b560633778ac61b1502a1b4895fd..8d6550694f86ac2ab333588625017e615c7bfe1d 100644
--- a/compendium-frontend/src/pages/Standards&Policies/ServiceLevelTargets.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/ServiceLevelTargets.tsx
@@ -1,13 +1,14 @@
 import React, { useContext } from "react";
-import { ServiceManagement } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { ServiceManagement } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function ServiceLevelTargetsPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -39,7 +40,7 @@ function ServiceLevelTargetsPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="NRENs Offering Service Level Targets"
+        <DataPage title={titles["service-level-targets"]}
             description="The table below shows which NRENs offer Service Levels Targets for their services. 
             If NRENs have never responded to this question in the survey, they are excluded. "
             category={Sections.Policy} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Standards&Policies/ServiceManagementFramework.tsx b/compendium-frontend/src/pages/Standards&Policies/ServiceManagementFramework.tsx
index 27e33b4956547dc0e9c7a350f903ffafd9ad4532..dfaafba383a79078509ca6983df12d608b872cfc 100644
--- a/compendium-frontend/src/pages/Standards&Policies/ServiceManagementFramework.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/ServiceManagementFramework.tsx
@@ -1,14 +1,15 @@
 import React, { useContext } from "react";
 
-import { ServiceManagement } from "../../Schema";
-import { createNrenTableLookup } from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import PillTable from "../../components/PillTable";
+import { ServiceManagement } from "compendium/Schema";
+import { createNrenTableLookup } from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import PillTable from "compendium/components/PillTable";
+import titles from "compendium/titles";
 
 function ServiceManagementFrameworkPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -40,7 +41,7 @@ function ServiceManagementFrameworkPage(): React.ReactElement {
     />
 
     return (
-        <DataPage title="NRENs Operating a Formal Service Management Framework"
+        <DataPage title={titles["service-management-framework"]}
             description="The chart below shows which NRENs operate a formal service management framework 
             for all of their services. NRENs which have never answered this question cannot be selected."
             category={Sections.Policy} filter={filterNode}
diff --git a/compendium-frontend/src/pages/Standards&Policies/ServicesOffered.tsx b/compendium-frontend/src/pages/Standards&Policies/ServicesOffered.tsx
index 82819c4560a5b2d0770722f825830ee59d57af56..fd405459242ac2400d9998f40024e9cd4f290b7e 100644
--- a/compendium-frontend/src/pages/Standards&Policies/ServicesOffered.tsx
+++ b/compendium-frontend/src/pages/Standards&Policies/ServicesOffered.tsx
@@ -1,17 +1,18 @@
 import React, { useContext } from "react";
 
-import { ServiceOffered } from "../../Schema";
+import { ServiceOffered } from "compendium/Schema";
 import {
     createCategoryMatrixLookup
-} from "../../helpers/dataconversion";
-import DataPage from "../../components/DataPage";
-import Filter from "../../components/graphing/Filter";
-import { Sections } from "../../helpers/constants";
-import { FilterSelectionContext } from "../../providers/FilterSelectionProvider";
-import ChartContainer from "../../components/graphing/ChartContainer";
-import { useData } from "../../helpers/useData";
-import { ScrollableMatrix } from "../../components/ScrollableMatrix";
-import { UserCategories } from "../../helpers/constants";
+} from "compendium/helpers/dataconversion";
+import DataPage from "compendium/components/DataPage";
+import Filter from "compendium/components/graphing/Filter";
+import { Sections } from "compendium/helpers/constants";
+import { FilterSelectionContext } from "compendium/providers/FilterSelectionProvider";
+import ChartContainer from "compendium/components/graphing/ChartContainer";
+import { useData } from "compendium/helpers/useData";
+import { ScrollableMatrix } from "compendium/components/ScrollableMatrix";
+import { UserCategories } from "compendium/helpers/constants";
+import titles from "compendium/titles";
 
 function ServicesOfferedPage(): React.ReactElement {
     const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
@@ -42,7 +43,7 @@ function ServicesOfferedPage(): React.ReactElement {
     };
 
     return (
-        <DataPage title="Services Offered by NRENs by Types of Users"
+        <DataPage title={titles["services-offered"]}
             description={<span>
                 The table below shows the different types of users served by NRENs.
                 Selecting the institution type will expand the detail to show the categories of services offered by NRENs,
diff --git a/compendium-frontend/src/providers/ConfigProvider.tsx b/compendium-frontend/src/providers/ConfigProvider.tsx
index 9ec43033026fe608fc09bbe569e805b950dbff59..d7da7fc693614eaab9313dc3bc5f47722f231710 100644
--- a/compendium-frontend/src/providers/ConfigProvider.tsx
+++ b/compendium-frontend/src/providers/ConfigProvider.tsx
@@ -1,6 +1,5 @@
 import React, { createContext, useState } from 'react';
 
-
 const getConfigFromLocalStorage = () => {
     const storedConfig = JSON.parse(localStorage.getItem('config') ?? "{}");
 
diff --git a/compendium-frontend/src/providers/ConsentProvider.tsx b/compendium-frontend/src/providers/ConsentProvider.tsx
index caf79512e9e1950ad8b3e836fc2f64f2ef33d479..1e24e5d6e891ef0551f5d27fa89e7b5e9cf4976c 100644
--- a/compendium-frontend/src/providers/ConsentProvider.tsx
+++ b/compendium-frontend/src/providers/ConsentProvider.tsx
@@ -12,7 +12,6 @@ const consentContext = createContext<{
     setConsent: () => { }
 });
 
-
 const ConsentProvider: React.FC<Props> = ({ children }) => {
 
     const getConsent = () => {
diff --git a/compendium-frontend/src/providers/FilterSelectionProvider.tsx b/compendium-frontend/src/providers/FilterSelectionProvider.tsx
index 41f80a2e3b6afe74ad359853150dd2953ae74327..d66ab36b72a3b8ba6185b93f8568ab802ea23486 100644
--- a/compendium-frontend/src/providers/FilterSelectionProvider.tsx
+++ b/compendium-frontend/src/providers/FilterSelectionProvider.tsx
@@ -1,5 +1,5 @@
 import React, { Dispatch, SetStateAction, createContext, useState } from 'react';
-import { FilterSelection } from '../Schema';
+import { FilterSelection } from "compendium/Schema";
 
 interface Props {
     children: React.ReactNode;
@@ -13,7 +13,6 @@ const FilterSelectionContext = createContext<{
     setFilterSelection: () => { }
 });
 
-
 const FilterSelectionProvider: React.FC<Props> = ({ children }) => {
     const [filterSelection, setFilterSelection] = useState<FilterSelection>({ selectedYears: [], selectedNrens: [] });
 
diff --git a/compendium-frontend/src/providers/NrenProvider.tsx b/compendium-frontend/src/providers/NrenProvider.tsx
index a7ac95d3fa58d4fd9dfb68adb81caef9811e88cc..73db5eaec70f9aebbbcfdcb373b9aafcd1b349d8 100644
--- a/compendium-frontend/src/providers/NrenProvider.tsx
+++ b/compendium-frontend/src/providers/NrenProvider.tsx
@@ -1,5 +1,5 @@
 import React, { Dispatch, SetStateAction, createContext, useState, useEffect } from 'react';
-import { Nren } from '../Schema';
+import { Nren } from "compendium/Schema";
 
 interface Props {
     children: React.ReactNode;
@@ -23,7 +23,6 @@ const NrenContext = createContext<{
     setNrens: () => { }
 });
 
-
 const NrenProvider: React.FC<Props> = ({ children }) => {
     const [nrens, setNrens] = useState<Nren[]>([]);
 
diff --git a/compendium-frontend/src/providers/PreviewProvider.tsx b/compendium-frontend/src/providers/PreviewProvider.tsx
index 91e6ac59df6a77758311f1fc6ce3b9d1b7c57186..d3e7d73b92068796f3ebe38687368ca405805db6 100644
--- a/compendium-frontend/src/providers/PreviewProvider.tsx
+++ b/compendium-frontend/src/providers/PreviewProvider.tsx
@@ -12,7 +12,6 @@ const PreviewContext = createContext<{
     setPreview: () => { }
 });
 
-
 const PreviewProvider: React.FC<Props> = ({ children }) => {
     const [preview, setPreview] = useState<boolean>(false);
 
diff --git a/compendium-frontend/src/providers/SidebarProvider.tsx b/compendium-frontend/src/providers/SidebarProvider.tsx
index 02302f16b61cd9d7cbfef9699da0ae03e9832b49..c1e362570449e29578aaf3afc1b1808d5aa85534 100644
--- a/compendium-frontend/src/providers/SidebarProvider.tsx
+++ b/compendium-frontend/src/providers/SidebarProvider.tsx
@@ -12,7 +12,6 @@ const sidebarContext = createContext<{
     toggle: () => { }
 });
 
-
 const SidebarProvider: React.FC<Props> = ({ children }) => {
     const [show, setShow] = useState<boolean>(false);
 
diff --git a/compendium-frontend/src/providers/UserProvider.tsx b/compendium-frontend/src/providers/UserProvider.tsx
index cd142c83e32ae9829ccee87ad93f40812bd392c3..13ecaae97de5c7f9060dda7849a192727532f20f 100644
--- a/compendium-frontend/src/providers/UserProvider.tsx
+++ b/compendium-frontend/src/providers/UserProvider.tsx
@@ -1,11 +1,10 @@
 import React, { createContext, useState, useEffect } from 'react';
-import { User } from '../Schema';
+import { User } from "compendium/Schema";
 
 interface Props {
     children: React.ReactNode;
 }
 
-
 async function fetchUser(): Promise<User> {
     const response = await fetch('/api/user/');
     const user = await response.json();
@@ -24,7 +23,6 @@ const userContext = createContext<{
     setUser: () => { }
 });
 
-
 const UserProvider: React.FC<Props> = ({ children }) => {
     const [user, setUser] = useState<User>(anonymousUser);
 
diff --git a/compendium-frontend/src/survey/App.tsx b/compendium-frontend/src/survey/App.tsx
deleted file mode 100644
index e0c99f4f5e26644db1e1eb0605bf7ab62b0c238d..0000000000000000000000000000000000000000
--- a/compendium-frontend/src/survey/App.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import { useEffect, lazy } from "react";
-import { createBrowserRouter, RouterProvider, Outlet, useLocation } from "react-router-dom";
-import Providers from "../Providers";
-import ExternalPageNavBar from "../components/global/ExternalPageNavBar";
-import GeantFooter from "../components/global/GeantFooter";
-import PrivacyModal from "../matomo/PrivacyModal";
-
-import SurveyLanding from "./Landing";
-
-const SurveyContainerComponent = lazy(() => import('./SurveyContainerComponent'));
-const SurveyManagementComponent = lazy(() => import('./management/SurveyManagementComponent'));
-const UserManagementComponent = lazy(() => import('./management/UserManagementComponent'));
-
-const RedirectToReport = ({ pathname }) => {
-
-    useEffect(() => {
-        console.log(pathname)
-        // Only redirect if we're not already on a survey path
-        if (!pathname.startsWith('/survey')) {
-            window.location.replace(`${pathname}`);
-        }
-    }, [pathname]);
-
-    return null;
-}
-
-const GlobalLayout = () => {
-    // this component is needed to provide a global layout for the app, including the navbar and footer,
-    // and make them part of the react-router-dom context
-    const { pathname } = useLocation();
-    // hacky workaround for supporting a landing page on the root path, as well as any undefined path
-    const hasOutlet = pathname !== "/survey"
-    return (
-        <>
-            <Providers>
-                <RedirectToReport pathname={pathname} />
-                <ExternalPageNavBar />
-                <main className="grow">
-                    {hasOutlet ? <Outlet /> : <SurveyLanding />}
-                </main>
-                <PrivacyModal />
-            </Providers>
-            <GeantFooter />
-        </>
-    )
-}
-
-const router = createBrowserRouter([
-    {
-        "path": "",
-        "element": <GlobalLayout />,
-        "children": [
-            { path: "/survey/admin/surveys", element: <SurveyManagementComponent /> },
-            { path: "/survey/admin/users", element: <UserManagementComponent /> },
-            { path: "/survey/admin/inspect/:year", element: <SurveyContainerComponent loadFrom={"/api/response/inspect/"} /> },
-            { path: "/survey/admin/try/:year", element: <SurveyContainerComponent loadFrom={"/api/response/try/"} /> },
-            { path: "/survey/response/:year/:nren", element: <SurveyContainerComponent loadFrom={"/api/response/load/"} /> },
-            { path: "*", element: <SurveyLanding /> },
-        ]
-    }
-])
-
-function App() {
-    return (
-        <div className="app">
-            <RouterProvider router={router} />
-        </div>
-    );
-}
-
-export default App
-
diff --git a/compendium-frontend/src/survey/Landing.tsx b/compendium-frontend/src/survey/Landing.tsx
index fef112b10f6fefb162dadc5f236dcfdd7631311a..eadd3e87f98390ec0511ed5491e26a6860bd2503 100644
--- a/compendium-frontend/src/survey/Landing.tsx
+++ b/compendium-frontend/src/survey/Landing.tsx
@@ -1,12 +1,12 @@
 import { ReactElement, useContext, useState, useEffect } from "react";
 import { useNavigate, Link } from "react-router-dom";
 import { Table, Container, Row } from "react-bootstrap";
-import { userContext } from "../providers/UserProvider";
-import { fetchSurveys, fetchActiveSurveyYear } from "./api/survey";
-import { Survey } from "./api/types";
-import SurveySidebar from "./management/SurveySidebar";
+import { userContext } from "compendium/providers/UserProvider";
+import { fetchSurveys, fetchActiveSurveyYear } from "compendium/survey/api/survey";
+import { Survey } from "compendium/survey/api/types";
+import SurveySidebar from "compendium/survey/management/SurveySidebar";
 import * as XLSX from "xlsx";
-import useMatomo from "../matomo/UseMatomo";
+import useMatomo from "compendium/matomo/UseMatomo";
 
 const SurveyTable = () => {
 
diff --git a/compendium-frontend/src/survey/ProgressBar.tsx b/compendium-frontend/src/survey/ProgressBar.tsx
index e1b44b3df98f919ed106347710832197435e479c..aa2d1cc843092f44beba88f3f453560fb7f79899 100644
--- a/compendium-frontend/src/survey/ProgressBar.tsx
+++ b/compendium-frontend/src/survey/ProgressBar.tsx
@@ -8,11 +8,9 @@ interface Progress {
     pageTitle: string;
 }
 
-
-function ProgressBar({ surveyModel, pageNoSetter }) {
+function ProgressBar({ surveyModel, pageNoSetter, pageNo}) {
     const [progress, setProgress] = useState<Progress[]>([]);
 
-
     const filterCallback = (question) => {
         if (question.value === null || question.value === undefined || question.value === "") {
             return false;
@@ -29,8 +27,6 @@ function ProgressBar({ surveyModel, pageNoSetter }) {
         return true;
     };
 
-
-
     useEffect(() => {
         const calculateProgress = (survey) => {
             if (survey && survey.pages) {
@@ -44,7 +40,6 @@ function ProgressBar({ surveyModel, pageNoSetter }) {
                     const unansweredCount = questionCount - answeredCount;
                     const completionPercentage = answeredCount / questionCount;
 
-
                     progressArray.push({
                         completionPercentage: completionPercentage * 100,
                         unansweredPercentage: (unansweredCount / questionCount) * 100,
@@ -63,7 +58,6 @@ function ProgressBar({ surveyModel, pageNoSetter }) {
         calculateProgress(surveyModel);
     }, [surveyModel]);
 
-
     const progressBarStyle: React.CSSProperties = {
         height: "0.5rem",
         transition: "width 0.3s ease",
@@ -84,7 +78,7 @@ function ProgressBar({ surveyModel, pageNoSetter }) {
                             }}>{index + 1}</span>
                             <span style={{
                                 whiteSpace: "nowrap",
-                                ...(surveyModel.currentPageNo == index) && {
+                                ...(pageNo == index) && {
                                     fontWeight: "bold",
                                 },
                             }}>{sectionProgress.pageTitle}</span>
diff --git a/compendium-frontend/src/survey/Prompt.tsx b/compendium-frontend/src/survey/Prompt.tsx
index f2ce6b0d8cefef8d303fbdc1afb2dd414154d78d..713b2171429786401adf07812acd096c7bfa7ffe 100644
--- a/compendium-frontend/src/survey/Prompt.tsx
+++ b/compendium-frontend/src/survey/Prompt.tsx
@@ -1,4 +1,3 @@
-import React from "react";
 import { useBlocker } from "react-router-dom";
 
 // adapted from https://stackoverflow.com/a/75920683
diff --git a/compendium-frontend/src/survey/ShowUser.tsx b/compendium-frontend/src/survey/ShowUser.tsx
index 24111805ba1f4d99638a04ecc2505fae03f6df1c..d56a91be7d7064ccc54fea208c4e744401dadf88 100644
--- a/compendium-frontend/src/survey/ShowUser.tsx
+++ b/compendium-frontend/src/survey/ShowUser.tsx
@@ -18,7 +18,6 @@ async function fetchUser(): Promise<User> {
     }
 }
 
-
 function ShowUser() {
     const [user, setUser] = useState<User | null>(null);
 
diff --git a/compendium-frontend/src/survey/StatusButton.tsx b/compendium-frontend/src/survey/StatusButton.tsx
index f9fafc40d789731ad03d3c8aa59e70a60a84c07d..f5bca4c4ee6254e39fb1e82a2d54d19c91121df1 100644
--- a/compendium-frontend/src/survey/StatusButton.tsx
+++ b/compendium-frontend/src/survey/StatusButton.tsx
@@ -1,7 +1,5 @@
-import React from "react";
-import { IoIosCheckmarkCircle, IoIosCheckmarkCircleOutline, IoIosCloseCircle, IoIosCloseCircleOutline } from "react-icons/io";
-
-
+import { IoIosCheckmarkCircle, IoIosCloseCircle } from "react-icons/io";
+import { Button } from "react-bootstrap";
 
 interface StatusButtonProps {
     status: string;
@@ -9,10 +7,16 @@ interface StatusButtonProps {
 
 function StatusButton({ status }: StatusButtonProps) {
     const statusIcon = {
-        "completed": <IoIosCheckmarkCircle title={status} size={24} color="green" />,
-        "started": <IoIosCheckmarkCircleOutline title={status} size={24} color="rgb(217, 117, 10)" />,
-        "did not respond": <IoIosCloseCircle title={status} size={24} color="red" />,
-        "not started": <IoIosCloseCircleOutline title={status} size={24} />,
+        "completed": <Button variant="success" size="sm"><strong>Completed</strong></Button>,
+        // "completed": <IoIosCheckmarkCircle title={status} size={24} color="green" />,
+        "started": <Button variant="warning" size="sm"><strong>Started</strong></Button>,
+        // "started": <IoIosCheckmarkCircleOutline title={status} size={24} color="rgb(217, 117, 10)" />,
+        "did not respond": <Button variant="danger" size="sm"><strong>Did not respond</strong></Button>,
+        // "did not respond": <IoIosCloseCircle title={status} size={24} color="red" />,
+        "not started": <Button variant="info" size="sm"><strong>Not started</strong></Button>,
+        // "not started": <IoIosCloseCircleOutline title={status} size={24} />,
+        "true": <IoIosCheckmarkCircle size={24} color="green" />,
+        "false": <IoIosCloseCircle size={24} color="red" />,
     };
     return (
         statusIcon[status] || status
diff --git a/compendium-frontend/src/survey/SurveyComponent.tsx b/compendium-frontend/src/survey/SurveyComponent.tsx
index 97e4cf7098091b7fe1120874025df94367c97db9..70c8033108286d711a342f28b81f850242c2bb79 100644
--- a/compendium-frontend/src/survey/SurveyComponent.tsx
+++ b/compendium-frontend/src/survey/SurveyComponent.tsx
@@ -1,8 +1,7 @@
-import { useCallback } from "react";
+import { useEffect } from "react";
 import { Question } from "survey-core";
 import { Survey } from "survey-react-ui";
-import { VerificationStatus } from './Schema';
-
+import { VerificationStatus } from 'compendium/survey/Schema';
 
 function customDescriptionCallback(_, options) {
     // get the customDescription for matrix rows and set it in the title
@@ -144,52 +143,53 @@ function setVerifyButton(question: Question, state: VerificationStatus, surveyMo
     }
 }
 
-
 function SurveyComponent({ surveyModel }) {
-
-    const alwaysSetVerify = useCallback((_, options) => {
-        const status = surveyModel.verificationStatus.get(options.question.name);
-        const readonly = options.question?.readOnly;
-
-        if (status && !readonly) {
-            setVerifyButton(options.question, status, surveyModel);
+    
+    useEffect(() => {
+        const updateFromUnverified = (_, options) => {
+            const currentStatus = surveyModel.verificationStatus.get(options.question.name);
+            if (currentStatus == VerificationStatus.Unverified) {
+                setVerifyButton(options.question, VerificationStatus.Edited, surveyModel);
+            }
         }
-        else if (readonly) {
-            strikeThroughOrHide(options.question);
+        
+        const alwaysSetVerify = (_, options) => {
+            const status = surveyModel.verificationStatus.get(options.question.name);
+            const readonly = options.question?.readOnly;
+    
+            if (status && !readonly) {
+                setVerifyButton(options.question, status, surveyModel);
+            }
+            else if (readonly) {
+                strikeThroughOrHide(options.question);
+            }
         }
-    }, [surveyModel])
 
-    const updateFromUnverified = useCallback((_, options) => {
-        const currentStatus = surveyModel.verificationStatus.get(options.question.name);
-        if (currentStatus == VerificationStatus.Unverified) {
-            setVerifyButton(options.question, VerificationStatus.Edited, surveyModel);
+        if (!surveyModel.onAfterRenderQuestion.hasFunc(alwaysSetVerify)) {
+            surveyModel.onAfterRenderQuestion.add(alwaysSetVerify);
+            surveyModel.onAfterRenderQuestion.add(fixTitleCss);
         }
-    }, [surveyModel])
-
-    if (!surveyModel.onAfterRenderQuestion.hasFunc(alwaysSetVerify)) {
-        surveyModel.onAfterRenderQuestion.add(alwaysSetVerify);
-        surveyModel.onAfterRenderQuestion.add(fixTitleCss);
-    }
 
-    if (!surveyModel.onValueChanged.hasFunc(updateFromUnverified)) {
-        surveyModel.onValueChanged.add(updateFromUnverified);
-    }
+        if (!surveyModel.onValueChanged.hasFunc(updateFromUnverified)) {
+            surveyModel.onValueChanged.add(updateFromUnverified);
+        }
 
-    if (!surveyModel.onUpdateQuestionCssClasses.hasFunc(hideCheckboxLabels)) {
-        surveyModel.onUpdateQuestionCssClasses.add(hideCheckboxLabels);
-    }
+        if (!surveyModel.onUpdateQuestionCssClasses.hasFunc(hideCheckboxLabels)) {
+            surveyModel.onUpdateQuestionCssClasses.add(hideCheckboxLabels);
+        }
 
-    if (!surveyModel.onMatrixAfterCellRender.hasFunc(customDescriptionCallback)) {
-        // NB I would have preferred using onAfterRenderQuestion, but unfortunately that is
-        // not always triggered on re-renders (specifically when extra columns become visble or invisible)
-        surveyModel.onMatrixAfterCellRender.add(customDescriptionCallback);
-    }
+        if (!surveyModel.onMatrixAfterCellRender.hasFunc(customDescriptionCallback)) {
+            // NB I would have preferred using onAfterRenderQuestion, but unfortunately that is
+            // not always triggered on re-renders (specifically when extra columns become visble or invisible)
+            surveyModel.onMatrixAfterCellRender.add(customDescriptionCallback);
+        }
 
-    if (!surveyModel.onTextMarkdown.hasFunc(setDescriptionHTML)) {
-        // WARNING: THIS ASSUMES THAT THE QUESTION DESCRIPTION IS NOT USER-PROVIDED.
-        // SETTING THE HTML HERE IS A SECURITY RISK IF NOT PROPERLY SANITISED
-        surveyModel.onTextMarkdown.add(setDescriptionHTML);
-    }
+        if (!surveyModel.onTextMarkdown.hasFunc(setDescriptionHTML)) {
+            // WARNING: THIS ASSUMES THAT THE QUESTION DESCRIPTION IS NOT USER-PROVIDED.
+            // SETTING THE HTML HERE IS A SECURITY RISK IF NOT PROPERLY SANITISED
+            surveyModel.onTextMarkdown.add(setDescriptionHTML);
+        }
+    }, [surveyModel]);
 
     return <Survey model={surveyModel} />
 }
diff --git a/compendium-frontend/src/survey/SurveyContainerComponent.tsx b/compendium-frontend/src/survey/SurveyContainerComponent.tsx
index a63e5a9ea4105ef4b17bc63e2c122bda2f6c1131..1b080acbdad24d5817185fcd710a563999ff704c 100644
--- a/compendium-frontend/src/survey/SurveyContainerComponent.tsx
+++ b/compendium-frontend/src/survey/SurveyContainerComponent.tsx
@@ -3,83 +3,17 @@ import { Container } from "react-bootstrap";
 import toast, { Toaster } from "react-hot-toast";
 import { Model, Serializer } from "survey-core";
 import { useParams } from "react-router-dom";
-import SurveyComponent from "./SurveyComponent";
-import SurveyNavigationComponent from "./SurveyNavigationComponent";
-import { VerificationStatus } from './Schema';
-import Prompt from "./Prompt";
+import SurveyComponent from "compendium/survey/SurveyComponent";
+import SurveyNavigationComponent from "compendium/survey/SurveyNavigationComponent";
+import { VerificationStatus } from 'compendium/survey/Schema';
+import Prompt from "compendium/survey/Prompt";
 import "survey-core/modern.min.css";
-import './survey.scss';
-import useMatomo from "../matomo/UseMatomo";
+import 'compendium/survey/survey.scss';
+import useMatomo from "compendium/matomo/UseMatomo";
 import { FunctionFactory } from "survey-core";
-import { validationFunctions } from "./validation/validation";
-import SurveySidebar from "./management/SurveySidebar";
-import { userContext } from "../providers/UserProvider";
-
-interface ValidationQuestion {
-    name?: string;
-    value?: string | number | null;
-    data?: ValidationQuestion;
-}
-
-// Overrides for questions that need to be validated differently from the default expression in their group
-const questionOverrides = {
-    data_protection_contact: (..._args) => true, // don't validate the contact field, anything goes..
-}
-
-function oldValidateWebsiteUrl(params) {
-    let value = params[0];
-    if ((value == undefined || value == null || value == '')) {
-        return true;
-    }
-    try {
-        value = value.trim();
-        if (value.includes(" ")) {
-            return false;
-        }
-        // if there's not a protocol, add one for the test
-        if (!value.includes(":/")) {
-            value = "https://" + value;
-        }
-
-        const url = new URL(value);
-        return !!url
-    } catch {
-        return false;
-    }
-}
-
-function validateQuestion(this: { question: ValidationQuestion, row?}, params) {
-    try {
-        const question = this.question;
-        const validator = params[0] || undefined;
-
-        const matrix = question.data && 'name' in question.data;
-
-        let questionName;
-
-        if (matrix) {
-            questionName = question.data!.name;
-        } else {
-            questionName = question.name;
-        }
-        const value = question.value
-
-        const hasOverride = questionOverrides[questionName];
-        if (hasOverride) {
-            return hasOverride(value, ...params.slice(1));
-        }
-
-        const validationFunction = validationFunctions[validator];
-        if (!validationFunction) {
-            throw new Error(`Validation function ${validator} not found for question ${questionName}`);
-        }
-
-        return validationFunction(value, ...params.slice(1));
-    } catch (e) {
-        console.error(e);
-        return false;
-    }
-}
+import { validateQuestion, oldValidateWebsiteUrl } from "compendium/survey/validation/validation";
+import SurveySidebar from "compendium/survey/management/SurveySidebar";
+import { userContext } from "compendium/providers/UserProvider";
 
 Serializer.addProperty("itemvalue", "customDescription:text");
 Serializer.addProperty("question", "hideCheckboxLabels:boolean");
@@ -101,7 +35,6 @@ function SurveyContainerComponent({ loadFrom }) {
         FunctionFactory.Instance.register("validateWebsiteUrl", oldValidateWebsiteUrl);
     }
 
-
     const { trackPageView } = useMatomo();
 
     const beforeUnloadListener = useCallback((event) => {
@@ -148,6 +81,7 @@ function SurveyContainerComponent({ loadFrom }) {
             survey.data = json['data'];
             survey.clearIncorrectValues(true);
             survey.currentPageNo = json['page'];
+            // setPageNo(json['page']);
             survey.mode = json['mode'];
 
             survey['lockedBy'] = json['locked_by'];
@@ -309,7 +243,9 @@ function SurveyContainerComponent({ loadFrom }) {
     }
 
     const onPageChange = (page) => {
+        if (!surveyModel) return;
         surveyModel.currentPageNo = page;
+        setSurveyModel(Object.create(surveyModel));
     }
 
     return (
@@ -317,8 +253,9 @@ function SurveyContainerComponent({ loadFrom }) {
             {isAdmin ? <SurveySidebar /> : null}
             <Container className="survey-container">
                 <Toaster />
-                <Prompt message="Are you sure you want to leave this page? Information you've entered may not be saved." when={() => { return surveyModel.mode == 'edit' && !!nren; }} onPageExit={onPageExitThroughRouter} />
-                <SurveyNavigationComponent onPageChange={onPageChange} surveyModel={surveyModel} surveyActions={surveyActions} year={year} nren={nren}>
+                <Prompt message="Are you sure you want to leave this page? Information you've entered may not be saved."
+                    when={() => { return surveyModel.mode == 'edit' && !!nren; }} onPageExit={onPageExitThroughRouter} />
+                <SurveyNavigationComponent surveyModel={surveyModel} surveyActions={surveyActions} year={year} nren={nren} onPageChange={onPageChange}>
                     <SurveyComponent surveyModel={surveyModel} />
                 </SurveyNavigationComponent>
             </Container>
diff --git a/compendium-frontend/src/survey/SurveyNavigationComponent.tsx b/compendium-frontend/src/survey/SurveyNavigationComponent.tsx
index 699153d14a7e6211b260e40d0c96bde3d6e83361..d03af8f4211f1492eeff32343a1a8f953433d1a1 100644
--- a/compendium-frontend/src/survey/SurveyNavigationComponent.tsx
+++ b/compendium-frontend/src/survey/SurveyNavigationComponent.tsx
@@ -1,47 +1,24 @@
-import { useContext, useEffect, useState, useCallback } from "react";
-import ProgressBar from './ProgressBar';
+import { useContext } from "react";
+import ProgressBar from 'compendium/survey/ProgressBar';
 import { Container, Row } from "react-bootstrap";
-import { userContext } from "../providers/UserProvider";
+import { userContext } from "compendium/providers/UserProvider";
 
-
-function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, children, onPageChange }) {
-    // We use some state variables that are directly derived from the surveyModel to
-    // ensure React rerenders properly. It would honestly be just as easy to remove the state
-    // and force the rerender ourselves, because we know exactly when the rerender is necessary.
-    const [pageNo, setPageNo] = useState(0);
-    const [editing, setEditing] = useState(false);
-    const [lockedBy, setLockedBy] = useState("");
-    const [responseStatus, setResponseStatus] = useState("");
+function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, children, onPageChange
+ }) {   
     const { user: loggedInUser } = useContext(userContext);
+    const pageNo = surveyModel?.currentPageNo ?? 0;
+    const editing = surveyModel?.mode === 'edit';
+    const lockedBy = surveyModel?.["lockedBy"] ?? "";
+    const responseStatus = surveyModel?.["status"] ?? "";
 
-    // useCallback to keep the linter happy with the useEffect dependencies below
-    const copySurveyState = useCallback(() => {
-        setEditing(surveyModel.mode == 'edit');
-        setLockedBy(surveyModel.lockedBy);
-        setPageNo(surveyModel.currentPageNo);
-        setResponseStatus(surveyModel.status);
-    }, [surveyModel]);
-
-    useEffect(() => {
-        copySurveyState();
-    }, [copySurveyState]);
-
-    const pageNoSetter = (page) => {
-        setPageNo(page);
-        onPageChange(page);
-    }
-    // const decrementPageNo = () => { pageNoSetter(surveyModel.currentPageNo - 1); };
-    const incrementPageNo = () => { pageNoSetter(surveyModel.currentPageNo + 1); };
+    const incrementPageNo = () => { onPageChange(surveyModel.currentPageNo + 1); };
 
     const doSurveyAction = async (action) => {
         await surveyActions[action]();
-        copySurveyState();
+        // onPageChange triggers a re-render, just keep the same page number
+        onPageChange(surveyModel.currentPageNo);
     }
 
-    const renderActionButton = (text, action) => {
-        return renderButton(text, () => doSurveyAction(action));
-    };
-
     const renderButton = (text, action) => {
         return (
             <button className="sv-btn sv-btn--navigation" onClick={action}>
@@ -50,6 +27,9 @@ function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, chi
         );
     };
 
+    const renderActionButton = (text, action) => {
+        return renderButton(text, () => doSurveyAction(action));
+    };
 
     const saveAndStopEdit = 'Save and stop editing';
     const save = 'Save progress';
@@ -65,8 +45,6 @@ function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, chi
                 {editing && renderActionButton(saveAndStopEdit, 'saveAndStopEdit')}
                 {editing && renderActionButton(completeSurvey, 'complete')}
                 {(pageNo !== surveyModel.visiblePages.length - 1) && renderButton('Next Section', incrementPageNo)}
-                {/* {renderActionButton('Validate Page', 'validatePage')} */}
-                {/* {pageNo !== 0 && renderButton('Previous Page', decrementPageNo)} */}
             </div>
         );
     };
@@ -76,7 +54,6 @@ function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, chi
             <Row className="survey-content">
                 <h2><span className="survey-title">{year} Compendium Survey </span><span className="survey-title-nren"> {nren} </span><span> - {responseStatus}</span></h2>
 
-
                 <div style={{ marginTop: '1rem', textAlign: 'justify' }}>
                     <p>
                         To get started, click “{startEditing}” to end read-only mode. Different people from your NREN (Compendium administrators) can contribute to the survey if needed, but agreement should be reached internally before completing the survey as the administration team will treat responses as a single source of truth from the NREN.
@@ -106,7 +83,7 @@ function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, chi
                 )}
             </Row>
             <Row>
-                <ProgressBar surveyModel={surveyModel} pageNoSetter={pageNoSetter} />
+                <ProgressBar surveyModel={surveyModel} pageNoSetter={onPageChange} pageNo={pageNo} />
                 {children}
             </Row>
             <Row>
diff --git a/compendium-frontend/src/survey/api/survey.ts b/compendium-frontend/src/survey/api/survey.ts
index e61e6ceb5d75fab51fb161fd24c16214c6871e71..fb7eb60cda973c302bb0037148867c259223d25f 100644
--- a/compendium-frontend/src/survey/api/survey.ts
+++ b/compendium-frontend/src/survey/api/survey.ts
@@ -1,4 +1,4 @@
-import { Survey } from './types';
+import { Survey } from 'compendium/survey/api/types';
 
 export async function fetchSurveys(): Promise<Survey[]> {
     try {
diff --git a/compendium-frontend/src/survey/api/types.ts b/compendium-frontend/src/survey/api/types.ts
index 56b96584823886cb17133ee123ef13141ab1d147..4a50c17acbcc6c3f2a8c2b546240c3d6dae35963 100644
--- a/compendium-frontend/src/survey/api/types.ts
+++ b/compendium-frontend/src/survey/api/types.ts
@@ -6,6 +6,7 @@ interface SurveyResponse {
     status: string
     lock_description: string
     notes?: string
+    valid: boolean
 }
 
 interface Survey {
diff --git a/compendium-frontend/src/survey/index.tsx b/compendium-frontend/src/survey/index.tsx
deleted file mode 100644
index 5aa6d5bf91bd75c00a572688559bd14ad634f182..0000000000000000000000000000000000000000
--- a/compendium-frontend/src/survey/index.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import React from 'react';
-import { createRoot } from 'react-dom/client';
-import App from "./App";
-import 'bootstrap/dist/css/bootstrap.min.css';
-import '../main.scss';
-
-const container = document.getElementById('root') as HTMLElement;
-const root = createRoot(container);
-root.render(
-  <React.StrictMode>
-    <App />
-  </React.StrictMode>
-)
\ No newline at end of file
diff --git a/compendium-frontend/src/survey/management/SurveyManagementComponent.tsx b/compendium-frontend/src/survey/management/SurveyManagementComponent.tsx
index 241c0f0b0302b0a17684c8a096572f268eb2d30f..f31ef549d3aecc540c13d1c0ab70c4718f6c5b32 100644
--- a/compendium-frontend/src/survey/management/SurveyManagementComponent.tsx
+++ b/compendium-frontend/src/survey/management/SurveyManagementComponent.tsx
@@ -5,14 +5,15 @@ import Row from 'react-bootstrap/Row';
 import Table from 'react-bootstrap/Table';
 import Container from "react-bootstrap/Container";
 import toast, { Toaster } from "react-hot-toast";
-import { SurveyStatus } from "../Schema";
-import { fetchSurveys } from "../api/survey";
-import { Survey } from "../api/types";
-import SurveySidebar from "./SurveySidebar";
+import { SurveyStatus } from "compendium/survey/Schema";
+import { fetchSurveys } from "compendium/survey/api/survey";
+import { Survey } from "compendium/survey/api/types";
+import SurveySidebar from "compendium/survey/management/SurveySidebar";
 import { Spinner } from "react-bootstrap";
-import StatusButton from "../StatusButton";
+import StatusButton from "compendium/survey/StatusButton";
 import { Link } from "react-router-dom";
 import { debounce } from "lodash"
+import { validateSurvey } from "compendium/survey/utils";
 
 function updateSurveyNotes(year: number, nren_id: number, notes: string) {
     fetch('/api/survey/' + year + '/' + nren_id + '/notes', {
@@ -57,7 +58,6 @@ function ApiCallButton({ text, helpText, onClick, enabled }) {
     );
 }
 
-
 function SurveyManagementComponent() {
     const [surveys, setSurveys] = useState<Survey[]>([]);
     const surveyStatusUpdating = useRef(false);
@@ -151,37 +151,64 @@ function SurveyManagementComponent() {
                                                     Try Survey
                                                 </Button>
                                             </Link>
-                                            <ApiCallButton text="Mark as open"
-                                                helpText="Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore."
-                                                enabled={survey.status == SurveyStatus.closed}
-                                                onClick={() => postSurveyStatus(survey.year, 'open')}
-                                            />
-                                            <ApiCallButton text="Mark as closed"
-                                                helpText="Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed."
-                                                enabled={survey.status == SurveyStatus.open}
-                                                onClick={() => postSurveyStatus(survey.year, 'close')}
-                                            />
-                                            <ApiCallButton text="Preview results"
-                                                helpText="Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already."
-                                                enabled={survey.status == SurveyStatus.closed || survey.status == SurveyStatus.preview}
-                                                onClick={() => postSurveyStatus(survey.year, 'preview')}
-                                            />
-                                            <ApiCallButton text="Publish results (dry run)"
-                                                helpText="Performs a dry-run of the publish operation, without actually publishing the results. Changes are logged in the browser console (F12)."
-                                                enabled={survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published}
-                                                onClick={() => postSurveyStatus(survey.year, 'publish', true)}
-                                            />
-                                            <ApiCallButton text="Publish results"
-                                                helpText="Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already."
-                                                enabled={survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published}
-                                                onClick={() => postSurveyStatus(survey.year, 'publish')}
-                                            />
-                                            {survey.status == SurveyStatus.preview && <span>&nbsp; Preview link: <a href={previewLink}>{previewLink}</a></span>}
+                                            {survey.status == SurveyStatus.closed &&
+                                                <ApiCallButton text="Mark as open"
+                                                    helpText="Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore."
+                                                    enabled={survey.status == SurveyStatus.closed}
+                                                    onClick={() => postSurveyStatus(survey.year, 'open')}
+                                                />}
+                                            {survey.status == SurveyStatus.open &&
+                                                <ApiCallButton text="Mark as closed"
+                                                    helpText="Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed."
+                                                    enabled={survey.status == SurveyStatus.open}
+                                                    onClick={() => postSurveyStatus(survey.year, 'close')}
+                                                />}
+                                            {(survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published) &&
+                                                <ApiCallButton text="Validate surveys"
+                                                    helpText="Validate all survey responses. This will check if all required questions are answered and if the answers are in the correct format."
+                                                    enabled={survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published}
+                                                    onClick={async () => {
+                                                        const responses = [...survey.responses].sort((a, b) => a.nren.name.localeCompare(b.nren.name));
+                                                        const values = await Promise.all(responses.map(response => validateSurvey(survey.year, response.nren.name)));
+                                                        const valid = values.every(value => value);
+
+                                                        if (!valid) {
+                                                            toast.error("Some surveys are not valid.\nPlease check the responses")
+                                                        } else {
+                                                            toast.success("All surveys are valid")
+                                                        }
+
+                                                        fetchSurveys().then((surveyList) => {
+                                                            setSurveys(surveyList);
+                                                        });
+                                                    }}
+                                                />}
+                                            {(survey.status == SurveyStatus.closed || survey.status == SurveyStatus.preview) &&
+                                                <ApiCallButton text="Preview results"
+                                                    helpText="Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already."
+                                                    enabled={survey.status == SurveyStatus.closed || survey.status == SurveyStatus.preview}
+                                                    onClick={() => postSurveyStatus(survey.year, 'preview')}
+                                                />}
+                                            {(survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published) &&
+                                                <>
+                                                    <ApiCallButton text="Publish results (dry run)"
+                                                        helpText="Performs a dry-run of the publish operation, without actually publishing the results. Changes are logged in the browser console (F12)."
+                                                        enabled={survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published}
+                                                        onClick={() => postSurveyStatus(survey.year, 'publish', true)}
+                                                    />
+                                                    <ApiCallButton text="Publish results"
+                                                        helpText="Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already."
+                                                        enabled={survey.status == SurveyStatus.preview || survey.status == SurveyStatus.published}
+                                                        onClick={() => postSurveyStatus(survey.year, 'publish')}
+                                                    />
+                                                    {survey.status == SurveyStatus.preview && <span>&nbsp; Preview link: <a href={previewLink}>{previewLink}</a></span>}
+                                                </>}
                                         </div>
                                         <Table>
                                             <colgroup>
                                                 <col style={{ width: '10%' }} />
-                                                <col style={{ width: '20%' }} />
+                                                <col style={{ width: '10%' }} />
+                                                <col style={{ width: '10%' }} />
                                                 <col style={{ width: '20%' }} />
                                                 <col style={{ width: '30%' }} />
                                                 <col style={{ width: '20%' }} />
@@ -190,7 +217,8 @@ function SurveyManagementComponent() {
 
                                                 <tr>
                                                     <th>NREN</th>
-                                                    <th>Status</th>
+                                                    <th>Response Status</th>
+                                                    <th>Response Valid</th>
                                                     <th>Lock</th>
                                                     <th>Management Notes</th>
                                                     <th>Actions</th>
@@ -201,6 +229,7 @@ function SurveyManagementComponent() {
                                                     <tr key={response.nren.id}>
                                                         <td>{response.nren.name}</td>
                                                         <td><StatusButton status={response.status} /></td>
+                                                        <td><StatusButton status={response.valid ? "true" : "false"} /></td>
                                                         <td style={{ textWrap: "wrap", wordWrap: "break-word", maxWidth: "10rem" }}>{response.lock_description}</td>
                                                         <td>
                                                             {'notes' in response && <textarea onInput={debounce((e) => updateSurveyNotes(survey.year, response.nren.id, e.target.value), 1000)}
@@ -219,6 +248,28 @@ function SurveyManagementComponent() {
                                                                 title="Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be able to save their changes anymore once someone else starts editing!">
                                                                 remove lock
                                                             </Button>
+                                                            {response.status == 'completed' &&
+                                                                <Button onClick={() => {
+
+                                                                    validateSurvey(survey.year, response.nren.name).then((isValid => {
+
+                                                                        if (!isValid) {
+                                                                            toast.error(`${response.nren.name} ${survey.year} survey is not valid.\nPlease check the response`)
+                                                                        } else {
+                                                                            toast.success("Survey is valid")
+                                                                        }
+
+                                                                        // Update the survey list, so that the valid status is updated
+                                                                        fetchSurveys().then((surveyList) => {
+                                                                            setSurveys(surveyList);
+                                                                        });
+                                                                    })).catch((error) => {
+                                                                        toast.error("Failed validating survey: " + error);
+                                                                    });
+                                                                }
+                                                                } style={{ pointerEvents: 'auto' }}>
+                                                                    Validate Survey
+                                                                </Button>}
                                                         </td>
                                                     </tr>
                                                 ))}
diff --git a/compendium-frontend/src/survey/management/SurveySidebar.tsx b/compendium-frontend/src/survey/management/SurveySidebar.tsx
index 2b22a4f3e478129359eaa971b0eb751c280e5eeb..6a70d6e733ed1dc13aee1b618b8f6146c36442ec 100644
--- a/compendium-frontend/src/survey/management/SurveySidebar.tsx
+++ b/compendium-frontend/src/survey/management/SurveySidebar.tsx
@@ -1,6 +1,5 @@
-import React from 'react';
-import Link from '../../components/sidebar/LinkWithHighlight';
-import Sidebar from '../../components/sidebar/SideBar';
+import Link from 'compendium/components/LinkWithHighlight';
+import Sidebar from 'compendium/components/sidebar/SideBar';
 
 const SurveySidebar = () => {
     return (
diff --git a/compendium-frontend/src/survey/management/UserManagementComponent.tsx b/compendium-frontend/src/survey/management/UserManagementComponent.tsx
index 60c59d36065757065340caf4aa2509e147b36728..690704040cf7b23a87f467c6d5be6dfd5b6a7771 100644
--- a/compendium-frontend/src/survey/management/UserManagementComponent.tsx
+++ b/compendium-frontend/src/survey/management/UserManagementComponent.tsx
@@ -1,14 +1,13 @@
 import React, { useState, useEffect, useContext } from "react";
 import { Container, Table, Row, Form, InputGroup, Accordion, Button } from "react-bootstrap";
 import toast, { Toaster } from "react-hot-toast";
-import { userContext } from "../../providers/UserProvider";
-import { useConfig } from "../../helpers/useConfig";
-import { User, Nren } from "../Schema";
-import SurveySidebar from "./SurveySidebar";
+import { userContext } from "compendium/providers/UserProvider";
+import { useConfig } from "compendium/helpers/useConfig";
+import { User, Nren } from "compendium/Schema";
+import SurveySidebar from "compendium/survey/management/SurveySidebar";
 import { FaCheck } from "react-icons/fa";
 import { debounce } from "lodash";
 
-
 async function fetchUsers(): Promise<User[]> {
     try {
         const response = await fetch("/api/user/list");
@@ -210,7 +209,6 @@ function UserManagementComponent() {
         }
     }
 
-
     const columns = ["ID", "Active", "Role", "Email", "Full Name", "OIDC Sub", "NREN", "Actions"]
     const sortFunctions = {
         [columns[1]]: sortByActive,
diff --git a/compendium-frontend/src/survey/utils.ts b/compendium-frontend/src/survey/utils.ts
new file mode 100644
index 0000000000000000000000000000000000000000..9adc720ced504298bdd659bb160e72a07f3c1840
--- /dev/null
+++ b/compendium-frontend/src/survey/utils.ts
@@ -0,0 +1,72 @@
+import { validateQuestion, oldValidateWebsiteUrl } from 'compendium/survey/validation/validation';
+
+export async function validateSurvey(year, nren) {
+    const { Model, FunctionFactory, Serializer } = await import('survey-core');
+
+    function setupProperties() {
+        const descriptionProperty = Serializer.getAllPropertiesByName("customDescription");
+        const hideCheckboxLabelsProperty = Serializer.getAllPropertiesByName("hideCheckboxLabels");
+
+        if (!descriptionProperty.length) {
+            Serializer.addProperty("itemvalue", "customDescription:text");
+        }
+        if (!hideCheckboxLabelsProperty.length) {
+            Serializer.addProperty("question", "hideCheckboxLabels:boolean");
+        }
+    }
+
+    if (!FunctionFactory.Instance.hasFunction("validateQuestion")) {
+        FunctionFactory.Instance.register("validateQuestion", validateQuestion);
+    }
+
+    if (!FunctionFactory.Instance.hasFunction("validateWebsiteUrl")) {
+        FunctionFactory.Instance.register("validateWebsiteUrl", oldValidateWebsiteUrl);
+    }
+
+    if (!year || !nren) {
+        return true;
+    }
+    const url = `/api/response/load/${year}/${nren}`;
+
+    const response = await fetch(url);
+    const json = await response.json();
+
+    if (!response.ok) {
+
+        if ('message' in json) {
+            throw new Error(json.message);
+        } else {
+            throw new Error(`Request failed with status ${response.status}`);
+        }
+    }
+
+    // Setup custom properties that allow the survey to work
+    setupProperties();
+
+    const survey = new Model(json['model']);
+    survey.setVariable('surveyyear', year);
+    survey.setVariable('previousyear', parseInt(year!) - 1);
+
+    survey.showNavigationButtons = false;
+    survey.requiredText = '';
+
+    survey.data = json['data'];
+    survey.clearIncorrectValues(true);
+
+    const valid = survey.validate.bind(survey, true, true)();
+
+    const validResponse = await fetch(`/api/response/validate/${year}/${nren}`, {
+        method: 'POST',
+        headers: {
+            'Content-Type': 'application/json',
+        },
+        body: JSON.stringify({ 'valid': valid }),
+    });
+
+    if (!validResponse.ok) {
+        // we might attempt validation for surveys that don't exist yet, so just ignore the error
+        return true;
+    }
+
+    return valid;
+}
\ No newline at end of file
diff --git a/compendium-frontend/src/survey/validation/validation.ts b/compendium-frontend/src/survey/validation/validation.ts
index 59c60e564f0ec442cb57e6f84ab48b28a2e6a627..f968223b7d77494d972b770e868f2f8fe19a29bb 100644
--- a/compendium-frontend/src/survey/validation/validation.ts
+++ b/compendium-frontend/src/survey/validation/validation.ts
@@ -1,3 +1,9 @@
+interface ValidationQuestion {
+    name?: string;
+    value?: string | number | null;
+    data?: ValidationQuestion;
+}
+
 function validateWebsiteUrl(value, nonEmpty = false) {
     if (!nonEmpty && (value == undefined || value == null || value == '')) {
         return true;
@@ -11,7 +17,6 @@ function validateWebsiteUrl(value, nonEmpty = false) {
         if (!value.includes(":/")) {
             value = "https://" + value;
         }
-
         const url = new URL(value);
         return !!url
     } catch {
@@ -19,6 +24,65 @@ function validateWebsiteUrl(value, nonEmpty = false) {
     }
 }
 
+// Overrides for questions that need to be validated differently from the default expression in their group
+const questionOverrides = {
+    data_protection_contact: (..._args) => true, // don't validate the contact field, anything goes..
+}
+
+export function validateQuestion(this: { question: ValidationQuestion, row?}, params) {
+    try {
+        const question = this.question;
+        const validator = params[0] || undefined;
+
+        const matrix = question.data && 'name' in question.data;
+
+        let questionName;
+
+        if (matrix) {
+            questionName = question.data!.name;
+        } else {
+            questionName = question.name;
+        }
+        const value = question.value
+
+        const hasOverride = questionOverrides[questionName];
+        if (hasOverride) {
+            return hasOverride(value, ...params.slice(1));
+        }
+
+        const validationFunction = validationFunctions[validator];
+        if (!validationFunction) {
+            throw new Error(`Validation function ${validator} not found for question ${questionName}`);
+        }
+
+        return validationFunction(value, ...params.slice(1));
+    } catch (e) {
+        console.error(e);
+        return false;
+    }
+}
+
+export function oldValidateWebsiteUrl(params) {
+    let value = params[0];
+    if ((value == undefined || value == null || value == '')) {
+        return true;
+    }
+    try {
+        value = value.trim();
+        if (value.includes(" ")) {
+            return false;
+        }
+        // if there's not a protocol, add one for the test
+        if (!value.includes(":/")) {
+            value = "https://" + value;
+        }
+
+        const url = new URL(value);
+        return !!url
+    } catch {
+        return false;
+    }
+}
 
 export const validationFunctions = {
     validateWebsiteUrl,
diff --git a/compendium-frontend/src/titles.ts b/compendium-frontend/src/titles.ts
new file mode 100644
index 0000000000000000000000000000000000000000..58c483e3e232ec2c3a8a6e7286db0e89a08d1085
--- /dev/null
+++ b/compendium-frontend/src/titles.ts
@@ -0,0 +1,73 @@
+export default {
+    // Organization
+    "budget": "Budget of NRENs per Year",
+    "funding": "Income Source of NRENs",
+    "charging": "Charging Mechanism of NRENs",
+    "employee-count": "Number of NREN Employees",
+    "roles": "Roles of NREN employees (Technical v. Non-Technical)",
+    "employment": "Types of Employment within NRENs",
+    "suborganisations": "NREN Sub-Organisations",
+    "parentorganisation": "NREN Parent Organisations",
+    "ec-projects": "NREN Involvement in European Commission Projects",
+
+    // Policy
+    "policy": "NREN Policies",
+    "audits": "External and Internal Audits of Information Security Management Systems",
+    "business-continuity": "NREN Business Continuity Planning",
+    "central-procurement": "Value of Software Procured for Customers by NRENs",
+    "crisis-management": "Crisis Management Procedures",
+    "crisis-exercise": "Crisis Exercises - NREN Operation and Participation",
+    "eosc_listings": "NREN Services Listed on the EOSC Portal",
+    "security-control": "Security Controls Used by NRENs",
+    "services-offered": "Services Offered by NRENs by Types of Users",
+    "corporate-strategy": "NREN Corporate Strategies",
+    "service-level-targets": "NRENs Offering Service Level Targets",
+    "service-management-framework": "NRENs Operating a Formal Service Management Framework",
+
+    // Connected Users
+    "institutions-urls": "Webpages Listing Institutions and Organisations Connected to NREN Networks",
+    "connected-proportion": "Proportion of Different Categories of Institutions Served by NRENs",
+    "connectivity-level": "Level of IP Connectivity by Institution Type",
+    "connection-carrier": "Methods of Carrying IP Traffic to Users",
+    "connectivity-load": "Connectivity Load",
+    "connectivity-growth": "Connectivity Growth",
+    "remote-campuses": "NREN Connectivity to Remote Campuses in Other Countries",
+    "commercial-charging-level": "Commercial Charging Level",
+    "commercial-connectivity": "Commercial Connectivity",
+
+    // Network
+    "traffic-volume": "NREN Traffic - NREN Customers & External Networks",
+    "iru-duration": "Average Duration of IRU leases of Fibre by NRENs",
+    "fibre-light": "Approaches to lighting NREN fibre networks",
+    "dark-fibre-lease": "Kilometres of Leased Dark Fibre (National)",
+    "dark-fibre-lease-international": "Kilometres of Leased Dark Fibre (International)",
+    "dark-fibre-installed": "Kilometres of Installed Dark Fibre",
+    "network-map": "NREN Network Maps",
+    "monitoring-tools": "Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions",
+    "pert-team": "NRENs with Performance Enhancement Response Teams",
+    "passive-monitoring": "Methods for Passively Monitoring International Traffic",
+    "traffic-stats": "Traffic Statistics",
+    "weather-map": "NREN Online Network Weather Maps",
+    "certificate-provider": "Certification Services used by NRENs",
+    "siem-vendors": "Vendors of SIEM/SOC systems used by NRENs",
+    "alien-wave": "NREN Use of 3rd Party Alienwave/Lightpath Services",
+    "alien-wave-internal": "Internal NREN Use of Alien Waves",
+    "capacity-largest-link": "Capacity of the Largest Link in an NREN Network",
+    "external-connections": "NREN External IP Connections",
+    "capacity-core-ip": "NREN Core IP Capacity",
+    "non-rne-peers": "Number of Non-R&E Networks NRENs Peer With",
+    "traffic-ratio": "Types of traffic in NREN networks (Commodity v. Research & Education)",
+    "ops-automation": "NREN Automation of Operational Processes",
+    "network-automation": "Network Tasks for which NRENs Use Automation",
+    "nfv": "Kinds of Network Function Virtualisation used by NRENs",
+
+    // Services
+    "network-services": "NREN Network services matrix",
+    "isp-support-services": "NREN ISP support services matrix",
+    "security-services": "NREN Security services matrix",
+    "identity-services": "NREN Identity services matrix",
+    "collaboration-services": "NREN Collaboration services matrix",
+    "multimedia-services": "NREN Multimedia services matrix",
+    "storage-and-hosting-services": "NREN Storage and hosting services matrix",
+    "professional-services": "NREN Professional services matrix",
+} as const
\ No newline at end of file
diff --git a/compendium-frontend/survey.html b/compendium-frontend/survey.html
deleted file mode 100644
index 0b50b4accf9ace201254975fb22a96dfa30010bb..0000000000000000000000000000000000000000
--- a/compendium-frontend/survey.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8"/>
-  <title>Compendium Survey</title>
-</head>
-<body>
-  <div id="root"></div>
-  <script type="module" src="./src/survey/index.tsx"></script>
-</body>
-</html>
\ No newline at end of file
diff --git a/compendium-frontend/tsconfig.json b/compendium-frontend/tsconfig.json
index d4521f340cba01242893dfbef90fd14d68d78d19..02cac5bc90aaee0e167c2b199148a598be1a3a5b 100644
--- a/compendium-frontend/tsconfig.json
+++ b/compendium-frontend/tsconfig.json
@@ -1,7 +1,7 @@
 {
   "compilerOptions": {
     "paths": {
-      "@/*": ["./src/*"],
+      "compendium/*": ["./src/*"],
     },
     "target": "ESNext",
     "lib": ["dom", "dom.iterable", "ESNext"],
diff --git a/compendium-frontend/vite.config.ts b/compendium-frontend/vite.config.ts
index 49fb80997b050623584b4ffe7a2c0be426f7ec27..325058f7fcecd17049444937df45914934e2aa17 100644
--- a/compendium-frontend/vite.config.ts
+++ b/compendium-frontend/vite.config.ts
@@ -28,6 +28,7 @@ export default defineConfig({
     base: isProduction ? '/static/' : '/',
     server: {
         port: 4000,
+        host: '::',
         proxy: {
             '/api': {
                 target: 'http://127.0.0.1:5000',
@@ -53,10 +54,6 @@ export default defineConfig({
         outDir: outDir,
         sourcemap: process.env.NODE_ENV !== 'production',
         rollupOptions: {
-            input: {
-                report: path.resolve(__dirname, 'index.html'),
-                survey: path.resolve(__dirname, 'survey.html'),
-            },
             output: {
                 entryFileNames: '[name].js',
                 assetFileNames: function (assetInfo) {
@@ -77,7 +74,7 @@ export default defineConfig({
     },
     resolve: {
         alias: {
-            '@': path.resolve(__dirname, 'src'),
+            'compendium': path.resolve(__dirname, 'src'),
         }
     },
 })
\ No newline at end of file
diff --git a/compendium_v2/db/survey_models.py b/compendium_v2/db/survey_models.py
index 99b422fc12733aea2debb0008458b939ce433ddb..4f369a1d923a253b2be6a268a26d3cb2a72c23bd 100644
--- a/compendium_v2/db/survey_models.py
+++ b/compendium_v2/db/survey_models.py
@@ -72,6 +72,7 @@ class SurveyResponse(db.Model):
     locked_by: Mapped[uuid_nullable_fkUser]
     locked_by_user: Mapped[User] = relationship(lazy='joined')
     lock_uuid: Mapped[Optional[UUID]]
+    valid: Mapped[bool] = mapped_column(default=False)
     notes: Mapped[SurveyNotes] = relationship("SurveyNotes", back_populates="survey", uselist=False, lazy='joined')
 
     @property
diff --git a/compendium_v2/migrations/versions/7d1a8783770d_add_valid_field_to_survey_response.py b/compendium_v2/migrations/versions/7d1a8783770d_add_valid_field_to_survey_response.py
new file mode 100644
index 0000000000000000000000000000000000000000..5119668815547e8bc87dc5adbe38f27842bd9799
--- /dev/null
+++ b/compendium_v2/migrations/versions/7d1a8783770d_add_valid_field_to_survey_response.py
@@ -0,0 +1,26 @@
+"""Add valid field to survey response
+
+Revision ID: 7d1a8783770d
+Revises: 4b531785f8d4
+Create Date: 2025-02-12 11:15:09.744560
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = '7d1a8783770d'
+down_revision = '4b531785f8d4'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+    with op.batch_alter_table('survey_response', schema=None) as batch_op:
+        batch_op.add_column(sa.Column('valid', sa.Boolean(), nullable=False, server_default='false'))
+
+
+def downgrade():
+    with op.batch_alter_table('survey_response', schema=None) as batch_op:
+        batch_op.drop_column('valid')
diff --git a/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_db.py b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_db.py
index 4d12a84e01cf8b4a5ed04d3b98becbd49dd1783b..63b86f35239bedd4cbd3681bbd96bb7ce7dac655 100644
--- a/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_db.py
+++ b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_db.py
@@ -6,13 +6,15 @@ This module loads the survey data from 2022 from the old survey database and ret
 ready to be used to generate new-style surveys.
 
 """
-from decimal import Decimal
 import logging
 import enum
 import json
 import html
 import itertools
+import os
+import csv
 
+from decimal import Decimal
 from sqlalchemy import text
 from collections import defaultdict
 
@@ -88,6 +90,8 @@ RECURSIVE_QUERY = """
     ORDER BY n.id, answers.question_id, answers.updated_at DESC;
 """
 
+SECURITY_CONTROLS_CSV = os.path.join(os.path.dirname(__file__), "../../resources/security_controls_parsed.csv")
+
 
 class FundingSource(enum.Enum):
     CLIENT_INSTITUTIONS = 16405
@@ -212,19 +216,21 @@ def funding_sources(nren_dict):
         if nren_name not in nren_dict:
             continue
 
-        if nren_name == 'HEANET':
-            nren_info[FundingSource.OTHER] = nren_info[FundingSource.OTHER] + nren_info[FundingSource.COMMERCIAL]
+        nren = nren_dict[nren_name]
+
+        if nren.name.lower() == 'heanet':
+            nren_info[FundingSource.OTHER] = 77.78
             nren_info[FundingSource.COMMERCIAL] = 0
 
         data = {
-            'client_institutions': nren_info[FundingSource.CLIENT_INSTITUTIONS],
-            'european_funding': nren_info[FundingSource.EUROPEAN_FUNDING],
-            'commercial': nren_info[FundingSource.COMMERCIAL],
-            'other': nren_info[FundingSource.OTHER],
-            'gov_public_bodies': nren_info[FundingSource.GOV_PUBLIC_BODIES],
+            'client_institutions': round(nren_info[FundingSource.CLIENT_INSTITUTIONS], 2),
+            'european_funding': round(nren_info[FundingSource.EUROPEAN_FUNDING], 2),
+            'commercial': round(nren_info[FundingSource.COMMERCIAL], 2),
+            'other': round(nren_info[FundingSource.OTHER], 2),
+            'gov_public_bodies': round(nren_info[FundingSource.GOV_PUBLIC_BODIES], 2),
         }
 
-        yield ('income_sources', nren_dict[nren_name], nren_dict[nren_name].id, 2022, data)
+        yield ('income_sources', nren, nren.id, 2022, data)
 
 
 def charging_structure(nren_dict):
@@ -690,11 +696,11 @@ def security_controls(nren_dict):
         if year < 2021:  # prior to 2022, the mapping is different, use a different data source
             continue
 
-        # TODO: import the pre-2022 data from a handmade CSV.
-
         if nren_name not in nren_dict:
             continue
 
+        nren = nren_dict[nren_name]
+
         full_list = sc.get((nren_name, year), [])
         other_entries = [e.strip() for e in sc_other.get((nren_name, year), [])
                          if e.strip() and e.lower() not in ["n/a", "-"]]
@@ -709,9 +715,35 @@ def security_controls(nren_dict):
         if other_entry:
             full_list.append('other')
 
-        yield ('security_controls', nren_dict[nren_name], nren_dict[nren_name].id, year, full_list)
+        yield ('security_controls', nren, nren.id, year, full_list)
         if other_entry:
-            yield ('security_controls-Comment', nren_dict[nren_name], nren_dict[nren_name].id, year, other_entry)
+            yield ('security_controls-Comment', nren, nren.id, year, other_entry)
+
+    # pop on data manually fixed from free-text fields for <2021
+    with open(SECURITY_CONTROLS_CSV, 'r') as f:
+        reader = csv.DictReader(f)
+        for row in reader:
+            nren_name = row['nren'].upper()
+            year = int(row['year'])
+            if nren_name not in nren_dict:
+                continue
+
+            nren = nren_dict[nren_name]
+
+            controls = {**row}
+            del controls['nren']
+            del controls['year']
+
+            other = ''
+            if controls.get('other'):
+                other = controls['other'].strip()
+                del controls['other']
+
+            controls_for_year = [k for k, v in controls.items() if v]
+
+            yield ('security_controls', nren, nren.id, year, controls_for_year)
+            if other:
+                yield ('security_controls-Comment', nren, nren.id, year, other)
 
 
 def institutions_urls(nren_dict):
diff --git a/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_excel.py b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_excel.py
index f43507415c6d4d6ca2cfd224e48831320fbb0d4a..e4b8faa336765566bb2f70819beb376658f2dd27 100644
--- a/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_excel.py
+++ b/compendium_v2/publishers/legacy_publisher/survey_publisher_legacy_excel.py
@@ -68,15 +68,21 @@ def funding(nren_dict):
         if abbrev not in nren_dict:
             continue
 
+        nren = nren_dict[helpers.map_nren(abbrev)]
+
         _data = {
-            'client_institutions': client_institution,
-            'european_funding': european_funding,
-            'commercial': commercial,
-            'other': other,
-            'gov_public_bodies': gov_public_bodies,
+            'client_institutions': round(client_institution, 2),
+            'european_funding': round(european_funding, 2),
+            'commercial': round(commercial, 2),
+            'other': round(other, 2),
+            'gov_public_bodies': round(gov_public_bodies, 2),
         }
 
-        nren = nren_dict[helpers.map_nren(abbrev)]
+        if nren.name.lower() == 'heanet':
+            if year == 2016:
+                _data['other'] = 1.0
+            if year == 2018:
+                _data['other'] = 3.0
 
         if sum(_data.values()) == 0:
             continue
diff --git a/compendium_v2/publishers/survey_publisher_legacy_excel.py b/compendium_v2/publishers/survey_publisher_legacy_excel.py
index c73ef1aff54c14256539e06161df9a0be90cd004..65b3542496553017e0ebdf0858120c77de64b98e 100644
--- a/compendium_v2/publishers/survey_publisher_legacy_excel.py
+++ b/compendium_v2/publishers/survey_publisher_legacy_excel.py
@@ -12,6 +12,8 @@ import itertools
 import logging
 import math
 import click
+import os
+import csv
 
 from sqlalchemy import select, delete
 from collections import defaultdict
@@ -27,6 +29,8 @@ setup_logging()
 
 logger = logging.getLogger('survey-publisher-legacy-excel')
 
+SECURITY_CONTROLS_CSV = os.path.join(os.path.dirname(__file__), "../resources/security_controls_parsed.csv")
+
 
 def db_budget_migration(nren_dict):
     # move data from Survey DB budget table
@@ -94,24 +98,32 @@ def db_funding_migration(nren_dict):
             gov_public_bodies,
             commercial, other) in data:
 
+        if abbrev not in nren_dict:
+            logger.warning(f'{abbrev} unknown. Skipping.')
+            continue
+        nren = nren_dict[abbrev]
+
+        if nren.name.lower() == 'heanet':
+            if year == 2016:
+                other = 1.0
+            if year == 2018:
+                other = 3.0
+
         _data = [client_institution, european_funding, gov_public_bodies, commercial, other]
         total = sum(_data)
         if not math.isclose(total, 100, abs_tol=0.01):
             logger.warning(f'{abbrev} funding sources for {year} do not sum to 100% ({total})')
             continue
 
-        if abbrev not in nren_dict:
-            logger.warning(f'{abbrev} unknown. Skipping.')
-            continue
         inserts.append({
-            'nren': nren_dict[abbrev],
-            'nren_id': nren_dict[abbrev].id,
+            'nren': nren,
+            'nren_id': nren.id,
             'year': year,
-            'client_institutions': client_institution,
-            'european_funding': european_funding,
-            'gov_public_bodies': gov_public_bodies,
-            'commercial': commercial,
-            'other': other
+            'client_institutions': round(client_institution, 2),
+            'european_funding': round(european_funding, 2),
+            'gov_public_bodies': round(gov_public_bodies, 2),
+            'commercial': round(commercial, 2),
+            'other': round(other, 2),
         })
     db.session.bulk_insert_mappings(presentation_models.FundingSource, inserts)
     db.session.commit()
@@ -595,6 +607,42 @@ def db_ops_automation_migration(nren_dict):
     db.session.commit()
 
 
+def security_controls_migration(nren_dict):
+    db.session.execute(delete(presentation_models.SecurityControls).where(
+        presentation_models.SecurityControls.year < 2021))
+
+    # pop on data manually fixed from free-text fields
+    with open(SECURITY_CONTROLS_CSV, 'r') as f:
+        reader = csv.DictReader(f)
+        for row in reader:
+            nren_name = row['nren'].upper()
+            year = int(row['year'])
+            if nren_name not in nren_dict:
+                continue
+
+            nren = nren_dict[nren_name]
+
+            controls = {**row}
+            del controls['nren']
+            del controls['year']
+
+            other = ''
+            if controls.get('other'):
+                other = controls['other'].strip()
+                del controls['other']
+
+            controls_for_year = [k for k, v in controls.items() if v]
+
+            new_entry = presentation_models.SecurityControls(
+                nren=nren,
+                nren_id=nren.id,
+                year=year,
+                security_control_descriptions=[*controls_for_year, other] if other else controls_for_year
+            )
+            db.session.merge(new_entry)
+    db.session.commit()
+
+
 def _cli(app):
     with app.app_context():
         nren_dict = helpers.get_uppercase_nren_dict()
@@ -620,6 +668,7 @@ def _cli(app):
         db_capacity_migration(nren_dict)
         db_non_r_e_peers_migration(nren_dict)
         db_ops_automation_migration(nren_dict)
+        security_controls_migration(nren_dict)
 
 
 @click.command()
diff --git a/compendium_v2/publishers/survey_publisher_old_db_2022.py b/compendium_v2/publishers/survey_publisher_old_db_2022.py
index c49d86ac4780bb31abff1bf9abaeea523149e9bd..e12689af2b32edc428cc4620e028d94ea3c3b158 100644
--- a/compendium_v2/publishers/survey_publisher_old_db_2022.py
+++ b/compendium_v2/publishers/survey_publisher_old_db_2022.py
@@ -290,29 +290,34 @@ def transfer_funding_sources(nren_dict):
             nren_info[source] = value
 
     for nren_name, nren_info in sourcedata.items():
-        total = sum(nren_info.values())
-
-        if not math.isclose(total, 100, abs_tol=0.01):
-            logger.info(f'{nren_name} funding sources do not sum to 100%. ({total})')
-            continue
 
         if nren_name not in nren_dict:
             logger.info(f'{nren_name} unknown. Skipping.')
             continue
 
-        if nren_name == 'HEANET':
-            nren_info[FundingSource.OTHER] = nren_info[FundingSource.OTHER] + nren_info[FundingSource.COMMERCIAL]
+        nren = nren_dict[nren_name]
+
+        if nren.name.lower() == 'heanet':
+            nren_info[FundingSource.OTHER] = round(
+                nren_info[FundingSource.COMMERCIAL] + nren_info[FundingSource.OTHER], 2)
             nren_info[FundingSource.COMMERCIAL] = 0
+            nren_info[FundingSource.GOV_PUBLIC_BODIES] = 77.78
+
+        total = sum(nren_info.values())
+
+        if not math.isclose(total, 100, abs_tol=0.01):
+            logger.info(f'{nren_name} funding sources do not sum to 100%. ({total})')
+            continue
 
         funding_source = presentation_models.FundingSource(
-            nren=nren_dict[nren_name],
-            nren_id=nren_dict[nren_name].id,
+            nren=nren,
+            nren_id=nren.id,
             year=2022,
-            client_institutions=nren_info[FundingSource.CLIENT_INSTITUTIONS],
-            european_funding=nren_info[FundingSource.EUROPEAN_FUNDING],
-            gov_public_bodies=nren_info[FundingSource.GOV_PUBLIC_BODIES],
-            commercial=nren_info[FundingSource.COMMERCIAL],
-            other=nren_info[FundingSource.OTHER],
+            client_institutions=round(nren_info[FundingSource.CLIENT_INSTITUTIONS], 2),
+            european_funding=round(nren_info[FundingSource.EUROPEAN_FUNDING], 2),
+            gov_public_bodies=round(nren_info[FundingSource.GOV_PUBLIC_BODIES], 2),
+            commercial=round(nren_info[FundingSource.COMMERCIAL], 2),
+            other=round(nren_info[FundingSource.OTHER], 2),
         )
         db.session.merge(funding_source)
     db.session.commit()
diff --git a/compendium_v2/resources/security_controls_parsed.csv b/compendium_v2/resources/security_controls_parsed.csv
new file mode 100644
index 0000000000000000000000000000000000000000..dfb080bf50377f6932c331bf8c3c9eb18f43044b
--- /dev/null
+++ b/compendium_v2/resources/security_controls_parsed.csv
@@ -0,0 +1,117 @@
+"nren","year","anti_virus","anti_spam","firewall","ddos_mitigation","monitoring","ips_ids","acl","segmentation","integrity_checking","other"
+"ACONET",2017,,,1,1,,,,,,
+"ACONET",2018,,,1,1,,,,,,
+"ACONET",2019,,,1,1,,,,,,
+"ACONET",2020,,,1,,,,,,,
+"BELNET",2018,1,1,1,,,,1,,1,"version management"
+"BELNET",2019,1,1,1,1,,,1,,1,"version management"
+"BELNET",2020,,,1,1,,,,,,"Anti-malware, vulnerability management"
+"CARNET",2017,1,,1,1,,,1,,,
+"CARNET",2018,1,,1,1,,,1,,,
+"CARNET",2019,1,,1,1,,,1,,,
+"CARNET",2020,1,,1,,,,1,,,
+"CYNET",2020,,,,,,1,,,,"Endpoint security"
+"CESNET",2016,,,,,,,,,,"Not a public information."
+"CESNET",2017,1,1,1,,,1,,,,"active monitoring, honeypots"
+"CESNET",2018,1,1,1,,,1,,,,"active monitoring, honeypots, Rate-limiting, RTBH filtering (BGP community)"
+"CESNET",2019,1,1,1,,,1,,,,"active monitoring, honeypots, Rate-limiting, RTBH filtering, Flowspec, RPKI - BGP zone signed, DDoS Protector (in-house research)"
+"CESNET",2020,,,,,,,,,,"Regular penetration testing of the infrastructure, Monitoring and application of FlowSpec, rate-limiting, RTBH communities etc."
+"DEIC",2016,,1,,,,,,,,
+"DEIC",2017,,1,,,,,,,,
+"DEIC",2018,1,1,1,,,,,,,
+"DEIC",2020,,,1,,,1,1,,,"log analysis"
+"EENET",2016,1,,,,,,,,,
+"EENET",2017,1,,,,,,,,,
+"EENET",2018,1,,1,,,,,,,
+"EENET",2019,1,,1,,,,,,,
+"FUNET",2017,,,,,,,,,,
+"FUNET",2018,,,,,,,,,,
+"FUNET",2019,,,,,,,,,,
+"FUNET",2020,,,,,,,,,,
+"RENATER",2016,1,,1,,,,,,1,
+"RENATER",2018,1,,1,,,,,,1,"anti-malware. All servers are behind at least one firewall, two firewalls if they are back-office servers"
+"RENATER",2019,1,,1,,,,,,1,"anti-malware. All servers are behind at least one firewall, two firewalls if they are back-office servers"
+"MARNET",2018,,,1,,,,,,,
+"MARNET",2019,,,1,,,,,,,
+"GRENA",2016,1,,1,,,,,,,
+"GRENA",2017,1,,1,,,,,,,
+"GRENA",2018,1,1,1,,,,,,,
+"GRENA",2019,1,1,1,1,,,,,,
+"GRENA",2020,1,1,1,1,,,,,,
+"DFN",2018,1,1,1,,,,,,1,
+"DFN",2019,1,1,1,,,,,,1,
+"DFN",2020,1,,1,,,,,,1,"VPN, Strong Password, server root-kit detection, 4-eyes-principle for changes"
+"GRNET S.A.",2020,1,,1,,,1,,,,"PeakFlow DDoS monitoring"
+"KIFU",2016,1,,,,,,,,,
+"KIFU",2017,1,,,,,,,,,
+"KIFU",2018,1,,,,,,,,,
+"KIFU",2019,1,,,,,,,,,
+"KIFU",2020,1,,1,,,,,,1,
+"HEANET",2017,1,,1,,,,1,1,,
+"HEANET",2018,1,,1,,,,1,1,,
+"HEANET",2019,1,,,,,,1,1,,"Flowspec"
+"HEANET",2020,,,1,,,,1,,,
+"IUCC",2018,,,,,,,,,,"WAF"
+"IUCC",2019,1,,,,,,,,,"WAF"
+"IUCC",2020,1,,1,,,,,,,
+"GARR",2017,1,,,,,,1,,,
+"GARR",2018,1,,,,,,1,,,
+"GARR",2019,1,,,,,,1,,,
+"GARR",2020,1,1,,,,,1,,,
+"LITNET",2018,1,1,,,,,,,,
+"LITNET",2019,1,1,1,,,,1,,,
+"LITNET",2020,,,1,,,,,,,"Next generation end point protection Forti-client, Integrated security, performance, and availability monitoring FortiSIEM, Windows Defender"
+"RESTENA",2016,,,,,,,,,,
+"RENAM",2018,,,,,,,,,,
+"RENAM",2019,,,,,,,,,,
+"SURF",2016,1,,1,,,,,,,"device encryption, mail encryption"
+"SURF",2017,1,,1,,,,,,,"device encryption, mail encryption"
+"SURF",2018,1,,1,,,,,,,"device encryption, mail encryption"
+"SURF",2019,1,,1,,,,,,,"device encryption, mail encryption"
+"PIONIER",2016,1,,1,,,,,,,
+"PIONIER",2017,1,,1,,,,,,,
+"PIONIER",2018,1,,1,,,,,,,
+"PIONIER",2019,1,,1,,,,,,,
+"PIONIER",2020,,,,,,1,,,,"VPNs"
+"FCCN",2016,1,,,,,,,,," Network analyzer"
+"FCCN",2017,1,,,,,,,,,"Network analyzer"
+"FCCN",2018,1,,,,,,,,,"Network analyzer"
+"FCCN",2019,1,,1,,,1,,,,"Network analyzer"
+"FCCN",2020,1,,1,,,,,,,"VPN"
+"SANET",2017,1,,,,,,,,,
+"SANET",2018,1,,,,,,,,,
+"SANET",2019,1,,,,,,,,,
+"ARNES",2016,1,,,,,,,,,
+"ARNES",2017,1,,,,,,,,,
+"ARNES",2018,1,,,,,,,,,
+"ARNES",2019,1,,,,,,,,,
+"REDIRIS",2016,1,,1,,,,,,,
+"REDIRIS",2019,1,,1,,,,,,,
+"SWITCH",2016,1,,1,,,,,,,
+"SWITCH",2017,1,,1,,1,,,,,"Log Management"
+"SWITCH",2018,1,,1,,1,,,,,"Log Management"
+"SWITCH",2019,1,,1,,1,,,,,"Log Management"
+"ULAKBIM",2017,,,1,,,,,,,
+"ULAKBIM",2018,,,1,,,,,,,
+"ULAKBIM",2019,,,1,,,,,,,
+"URAN",2020,,,,,,,,,,"RIPE RPKI validation tool"
+"JISC",2018,1,,1,,,,,,,"DLP, MFA, SAML, DMARC, netflow, flowspec"
+"JISC",2019,1,,1,,,,,,,"DLP, MFA, SAML, DMARC, netflow, flowspec, RPZ, STIX/TAXI, MFA"
+"AMRES",2018,1,,1,,,,1,,,"web content filtering"
+"AMRES",2019,1,,1,,,,1,,,"web content filtering"
+"AMRES",2020,1,,1,1,,,,,,
+"AZSCIENCENET",2016,1,,,,,,,,,
+"AZSCIENCENET",2017,1,,,,,,,,,
+"AZSCIENCENET",2018,1,,1,,,,,,,
+"AZSCIENCENET",2019,,,1,,,,,,,"own authentication system, traffic log system, monitoring system"
+"LAT",2019,,,,1,,,,,,
+"ROEDUNET",2020,1,,1,,,1,,,,
+"BASNET",2016,1,,,,,,,,1,
+"BASNET",2017,1,,,,,,,,1,
+"BASNET",2018,1,,1,,,,,,1,
+"BASNET",2019,1,,1,,,,,,1,
+"MREN",2020,,,1,,,,,,,
+"ASNET-AM",2016,1,,,,,,,,,
+"ASNET-AM",2017,1,,,,,,,,,
+"ASNET-AM",2018,1,,,,,,,,,
+"ASNET-AM",2019,1,1,1,,,,,,,
diff --git a/compendium_v2/routes/common.py b/compendium_v2/routes/common.py
index 9c4cbc0e9d22a5b5819f55ecda92148cd1ae1f92..2d1b7bae6622acc413270b33ee01a176e759fcc2 100644
--- a/compendium_v2/routes/common.py
+++ b/compendium_v2/routes/common.py
@@ -37,7 +37,9 @@ def after_request(response):
     :param response:
     :return:
     """
-    if response.status_code != 200:
+
+    # direct_passthrough is set to True when the response is a file (e.g serving the front-end)
+    if response.status_code >= 400 and not response.direct_passthrough:
 
         try:
             data = response.data.decode('utf-8')
diff --git a/compendium_v2/routes/default.py b/compendium_v2/routes/default.py
index 9563d5150346c6862b2a5fc67f13b5cde16c98cd..fc08573f325f13cf08117818652da155298b5b5a 100644
--- a/compendium_v2/routes/default.py
+++ b/compendium_v2/routes/default.py
@@ -67,7 +67,7 @@ def survey_index(path):
 
     # fallback to serving the SPA through index.html for all other requests
     # https://flask.palletsprojects.com/en/2.0.x/patterns/singlepageapplications/
-    return current_app.send_static_file("survey.html")
+    return current_app.send_static_file("index.html")
 
 
 @routes.route('/version', methods=['GET', 'POST'])
diff --git a/compendium_v2/routes/response.py b/compendium_v2/routes/response.py
index 1be8c3f02e6c78b77b8604a6935d4d8871ac6f15..ee9ccda249f6c9636e06ed860c071240c2c978ed 100644
--- a/compendium_v2/routes/response.py
+++ b/compendium_v2/routes/response.py
@@ -371,6 +371,7 @@ def save_survey(year, nren_name) -> Any:
     elif (new_state == NewState.Completed):
         response.locked_by = None
         response.status = ResponseStatus.completed
+        response.valid = True  # only valid responses can be completed
     elif (new_state == NewState.ReadOnly):
         response.locked_by = None
     else:
@@ -424,3 +425,47 @@ def unlock_survey(year, nren_name) -> Any:
     db.session.commit()
 
     return {'locked_by': response.lock_username, 'mode': SurveyMode.Display, 'status': response.status.value}
+
+
+@routes.route('/validate/<int:year>/<string:nren_name>', methods=['POST'])
+@common.require_accepts_json
+@admin_required
+def validate_survey(year, nren_name) -> Any:
+    """
+
+    Endpoint to mark whether a survey response is valid or not. The validation can only be done in the frontend.
+    Surveys that are completed within the normal flow are automatically marked as valid.
+    This endpoint is used by admins to mark surveys that are completed/generated outside of the normal flow as valid.
+
+    """
+    nren = db.session.scalar(select(NREN).filter(NREN.name == nren_name))
+    if not nren:
+        return {'message': 'NREN not found'}, 404
+
+    survey = db.session.scalar(select(Survey).where(Survey.year == year))
+    if not survey:
+        return {'message': 'Survey not found'}, 404
+
+    response = db.session.scalar(
+        select(SurveyResponse).where(SurveyResponse.survey_year == year)
+                              .where(SurveyResponse.nren_id == nren.id)
+                              .options(lazyload("*"))
+                              .with_for_update()
+    )
+
+    if not response:
+        return {'message': 'Survey response not found'}, 404
+
+    post_data = request.json
+    if not post_data or not isinstance(post_data, dict) or 'valid' not in post_data:
+        return {'message': 'Expected valid field in body'}, 400
+
+    if not isinstance(post_data['valid'], bool):
+        return {'message': 'Expected valid field to be a boolean'}, 400
+
+    valid = post_data['valid']
+    response.valid = valid
+
+    db.session.commit()
+
+    return {'message': f'Survey response for {nren_name} in {year} marked as {"valid" if valid else "invalid"}'}
diff --git a/compendium_v2/routes/survey.py b/compendium_v2/routes/survey.py
index c96fd31ab14e6fd2545325a66205360a1553cfe7..32ba5d69e9f3e2449a80387414af769babab396a 100644
--- a/compendium_v2/routes/survey.py
+++ b/compendium_v2/routes/survey.py
@@ -7,6 +7,7 @@ from sqlalchemy import delete, select
 from sqlalchemy.orm import joinedload, load_only
 
 from compendium_v2.db import db
+from compendium_v2.db.auth_model import User
 from compendium_v2.db.presentation_models import NREN, PreviewYear
 from compendium_v2.db.survey_models import Survey, SurveyResponse, SurveyNotes, SurveyStatus, \
     RESPONSE_NOT_STARTED, RESPONSE_NOT_COMPLETED
@@ -34,9 +35,10 @@ LIST_SURVEYS_RESPONSE_SCHEMA = {
                 },
                 'status': {'type': 'string'},
                 'lock_description': {'type': 'string'},
-                'notes': {'type': 'string'}
+                'notes': {'type': 'string'},
+                'valid': {'type': 'boolean'}
             },
-            'required': ['nren', 'status', 'lock_description'],
+            'required': ['nren', 'status', 'lock_description', 'valid'],
             'additionalProperties': False
         },
         'survey': {
@@ -108,24 +110,26 @@ def list_surveys() -> Any:
     if not (current_user.is_admin or current_user.is_observer):
         return {'message': 'Insufficient privileges to access this resource'}, 403
 
+    loader = joinedload(Survey.responses).load_only(SurveyResponse.status, SurveyResponse.valid)
+    nren_loader = loader.joinedload(SurveyResponse.nren).load_only(NREN.name)
+    notes_loader = loader.joinedload(SurveyResponse.notes).load_only(SurveyNotes.notes)
+    user_loader = loader.joinedload(SurveyResponse.locked_by_user).load_only(User.fullname, User.email)
+
     surveys = db.session.scalars(
         select(Survey).options(
             load_only(Survey.year, Survey.status),
-            joinedload(Survey.responses).load_only(SurveyResponse.status)
-            .joinedload(SurveyResponse.nren).load_only(NREN.name)
+            loader,
+            nren_loader,
+            notes_loader,
+            user_loader
         ).order_by(Survey.year.desc())
     ).unique()
 
-    def response_key(response):
-        return response.status.value + response.nren.name.lower()
-
     class SurveyDict(TypedDict):
         year: int
         status: str
         responses: List[Dict[str, Any]]
 
-    entries: List[SurveyDict] = []
-
     def _get_response(response: SurveyResponse) -> Dict[str, Any]:
         res = {
             "nren": {
@@ -134,44 +138,47 @@ def list_surveys() -> Any:
             },
             "status": response.status.value,
             "lock_description": response.lock_description,
-            "notes": response.notes.notes if response.notes else ""
+            "notes": response.notes.notes if response.notes else "",
+            "valid": response.valid
         }
-        if current_user.is_observer:
-            res["lock_description"] = response.lock_description
         return res
 
-    for entry in surveys:
-        # only include lock description if the user is an admin
-        entries.append(
-            {
-                "year": entry.year,
-                "status": entry.status.value,
-                "responses": [_get_response(r) for r in sorted(entry.responses, key=response_key)]
-            })
+    def sort_key(response: SurveyResponse):
+        return response.status.value + response.nren.name.lower()
+
     all_nrens = db.session.scalars(select(NREN)).all()
     nrens = {nren.name: nren.id for nren in all_nrens}
     nren_names = set(nrens.keys())
-    for survey_dict in entries:
-        # add in nrens without a response if the survey is open
-        if survey_dict["status"] == SurveyStatus.open.value:
-            nrens_with_responses = set([r["nren"]['name'] for r in survey_dict["responses"]])
-            for nren_name in sorted(nren_names.difference(nrens_with_responses), key=str.lower):
-                survey_dict["responses"].append(
-                    {"nren": {
-                        'name': nren_name,
-                        'id': nrens[nren_name]
-                    }, "status": RESPONSE_NOT_STARTED, "lock_description": ""})
-        # add in nrens without a response if the survey is closed
-        if survey_dict["status"] in [SurveyStatus.closed.value, SurveyStatus.published.value]:
-            nrens_with_responses = set([r["nren"]['name'] for r in survey_dict["responses"]])
-            for nren_name in sorted(nren_names.difference(nrens_with_responses), key=str.lower):
-                survey_dict["responses"].append(
-                    {"nren": {
+
+    all_surveys: List[SurveyDict] = []
+
+    for survey in surveys:
+        status = survey.status
+        responses = [_get_response(r) for r in sorted(survey.responses, key=sort_key)]
+        survey_dict: SurveyDict = {
+            "year": survey.year,
+            "status": status.value,
+            "responses": responses
+        }
+
+        if status in [SurveyStatus.open, SurveyStatus.closed, SurveyStatus.published]:
+            # add in nrens without a response and set a custom response status depending on the survey status
+            nrens_with_responses = set([r["nren"]["name"] for r in survey_dict["responses"]])
+            missing_responses = nren_names.difference(nrens_with_responses)
+            for nren_name in sorted(missing_responses, key=str.lower):
+                responses.append({
+                    "status": RESPONSE_NOT_STARTED if status == SurveyStatus.open else RESPONSE_NOT_COMPLETED,
+                    "lock_description": "",
+                    "valid": False,
+                    "nren": {
                         'name': nren_name,
                         'id': nrens[nren_name]
-                    }, "status": RESPONSE_NOT_COMPLETED, "lock_description": ""})
+                    },
+                })
+
+        all_surveys.append(survey_dict)
 
-    return entries
+    return all_surveys
 
 
 @routes.route('/new', methods=['POST'])
diff --git a/compendium_v2/static/AlienWave-BToV9QLE.js b/compendium_v2/static/AlienWave-BToV9QLE.js
deleted file mode 100644
index 41fff2a69fce94a5c031250ebe5ed02b0befaee2..0000000000000000000000000000000000000000
--- a/compendium_v2/static/AlienWave-BToV9QLE.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import{a as T,r as S,F as Y,j as v}from"./main-BIBsTO5W.js";import{u as E,g as j,n as P,D as R,F as W,f as C}from"./useData-BDYwoQEh.js";import{S as F}from"./report.js";import{P as L}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function H(){const e=T.c(30);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=d=>d.alien_wave_third_party!==null,e[0]=a):a=e[0];const x=a,{filterSelection:t,setFilterSelection:h}=S.useContext(Y),{data:_,years:w,nrens:y}=E("/api/alien-wave",h,x);let s,p;if(e[1]!==_||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let d;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(d=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=d):d=e[8],s=_.filter(d);const D=j(s,"alien_wave_third_party");p=P(D,M),e[1]=_,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=p}else s=e[4],p=e[5];const N=p;let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","Planned","No"],m=new Map([[r[0],"yes"],[r[1],"planned"],[r[2],"no"]]),e[9]=r,e[10]=m):(r=e[9],m=e[10]);const k=m;let i;e[11]!==w?(i=[...w],e[11]=w,e[12]=i):i=e[12];let n;e[13]!==y?(n=y.values(),e[13]=y,e[14]=n):n=e[14];let l;e[15]!==n?(l=[...n],e[15]=n,e[16]=l):l=e[16];let o;e[17]!==i||e[18]!==l?(o={availableYears:i,availableNrens:l},e[17]=i,e[18]=l,e[19]=o):o=e[19];let u;e[20]!==t||e[21]!==h||e[22]!==o?(u=v.jsx(W,{filterOptions:o,filterSelection:t,setFilterSelection:h,coloredYears:!0}),e[20]=t,e[21]=h,e[22]=o,e[23]=u):u=e[23];const b=u;let c;e[24]!==N?(c=v.jsx(C,{children:v.jsx(L,{columns:r,columnLookup:k,dataLookup:N})}),e[24]=N,e[25]=c):c=e[25];let f;return e[26]!==b||e[27]!==s||e[28]!==c?(f=v.jsx(R,{title:"NREN Use of 3rd Party Alienwave/Lightpath Services",description:`The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. 
-            It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. 
-            In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a 
-            DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s 
-            equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source 
-            (transponder) operates in the same management domain as the amplifiers.
-
-            Where NRENs have given the number of individual alien wavelength services, the figure is available in a hover-over 
-            box. These are indicated by a black line around the coloured marker.`,category:F.Network,filter:b,data:s,filename:"alien_wave_nrens_per_year",children:c}),e[26]=b,e[27]=s,e[28]=c,e[29]=f):f=e[29],f}function M(e,a){if(a.nr_of_alien_wave_third_party_services)return`No. of alien wavelength services: ${a.nr_of_alien_wave_third_party_services} `}export{H as default};
diff --git a/compendium_v2/static/AlienWave-DO1S2459.js b/compendium_v2/static/AlienWave-DO1S2459.js
new file mode 100644
index 0000000000000000000000000000000000000000..c39131de1903f4086b0abc4ec5c5790832744e8c
--- /dev/null
+++ b/compendium_v2/static/AlienWave-DO1S2459.js
@@ -0,0 +1,9 @@
+import{c as T,r as Y,F as S,j as v,t as j,S as E}from"./index.js";import{u as W,g as C,n as F,D as M,F as P,f as R}from"./useData-CxftshCa.js";import{P as L}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function K(){const e=T.c(30);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=d=>d.alien_wave_third_party!==null,e[0]=a):a=e[0];const x=a,{filterSelection:t,setFilterSelection:p}=Y.useContext(S),{data:_,years:w,nrens:y}=W("/api/alien-wave",p,x);let s,h;if(e[1]!==_||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let d;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(d=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=d):d=e[8],s=_.filter(d);const D=C(s,"alien_wave_third_party");h=F(D,A),e[1]=_,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=h}else s=e[4],h=e[5];const b=h;let n,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=["Yes","Planned","No"],m=new Map([[n[0],"yes"],[n[1],"planned"],[n[2],"no"]]),e[9]=n,e[10]=m):(n=e[9],m=e[10]);const k=m;let i;e[11]!==w?(i=[...w],e[11]=w,e[12]=i):i=e[12];let r;e[13]!==y?(r=y.values(),e[13]=y,e[14]=r):r=e[14];let l;e[15]!==r?(l=[...r],e[15]=r,e[16]=l):l=e[16];let o;e[17]!==i||e[18]!==l?(o={availableYears:i,availableNrens:l},e[17]=i,e[18]=l,e[19]=o):o=e[19];let u;e[20]!==t||e[21]!==p||e[22]!==o?(u=v.jsx(P,{filterOptions:o,filterSelection:t,setFilterSelection:p,coloredYears:!0}),e[20]=t,e[21]=p,e[22]=o,e[23]=u):u=e[23];const N=u;let c;e[24]!==b?(c=v.jsx(R,{children:v.jsx(L,{columns:n,columnLookup:k,dataLookup:b})}),e[24]=b,e[25]=c):c=e[25];let f;return e[26]!==N||e[27]!==s||e[28]!==c?(f=v.jsx(M,{title:j["alien-wave"],description:`The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. 
+            It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. 
+            In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a 
+            DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s 
+            equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source 
+            (transponder) operates in the same management domain as the amplifiers.
+
+            Where NRENs have given the number of individual alien wavelength services, the figure is available in a hover-over 
+            box. These are indicated by a black line around the coloured marker.`,category:E.Network,filter:N,data:s,filename:"alien_wave_nrens_per_year",children:c}),e[26]=N,e[27]=s,e[28]=c,e[29]=f):f=e[29],f}function A(e,a){if(a.nr_of_alien_wave_third_party_services)return`No. of alien wavelength services: ${a.nr_of_alien_wave_third_party_services} `}export{K as default};
diff --git a/compendium_v2/static/AlienWaveInternal-BhuqQCyf.js b/compendium_v2/static/AlienWaveInternal-BhuqQCyf.js
new file mode 100644
index 0000000000000000000000000000000000000000..7042b855dabf50f49c071e1e9b70a7d16a610699
--- /dev/null
+++ b/compendium_v2/static/AlienWaveInternal-BhuqQCyf.js
@@ -0,0 +1,9 @@
+import{c as k,r as Y,F as S,j as w,t as j,S as F}from"./index.js";import{u as M,g as T,D as W,F as C,f as E}from"./useData-CxftshCa.js";import{P}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function B(){const e=k.c(30);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=c=>c.alien_wave_internal!==null,e[0]=m):m=e[0];const N=m,{filterSelection:t,setFilterSelection:d}=Y.useContext(S),{data:v,years:g,nrens:x}=M("/api/alien-wave",d,N);let s,p;if(e[1]!==v||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let c;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(c=D=>t.selectedYears.includes(D.year)&&t.selectedNrens.includes(D.nren),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=c):c=e[8],s=v.filter(c),p=T(s,"alien_wave_internal"),e[1]=v,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=p}else s=e[4],p=e[5];const y=p;let n,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=["Yes","No"],u=new Map([[n[0],"True"],[n[1],"False"]]),e[9]=n,e[10]=u):(n=e[9],u=e[10]);const b=u;let a;e[11]!==g?(a=[...g],e[11]=g,e[12]=a):a=e[12];let l;e[13]!==x?(l=x.values(),e[13]=x,e[14]=l):l=e[14];let i;e[15]!==l?(i=[...l],e[15]=l,e[16]=i):i=e[16];let r;e[17]!==a||e[18]!==i?(r={availableYears:a,availableNrens:i},e[17]=a,e[18]=i,e[19]=r):r=e[19];let h;e[20]!==t||e[21]!==d||e[22]!==r?(h=w.jsx(C,{filterOptions:r,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[20]=t,e[21]=d,e[22]=r,e[23]=h):h=e[23];const _=h;let o;e[24]!==y?(o=w.jsx(E,{children:w.jsx(P,{columns:n,columnLookup:b,dataLookup:y})}),e[24]=y,e[25]=o):o=e[25];let f;return e[26]!==_||e[27]!==s||e[28]!==o?(f=w.jsx(W,{title:j["alien-wave-internal"],description:`The table below shows NREN usage of alien waves internally within their own networks. 
+            This includes, for example, alien waves used between two equipment vendors, 
+            eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment.
+
+            In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe 
+            wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated 
+            by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional 
+            DWDM systems, where the DWDM light source (transponder) operates in the same management domain 
+            as the amplifiers.`,category:F.Network,filter:_,data:s,filename:"alien_wave_internal_nrens_per_year",children:o}),e[26]=_,e[27]=s,e[28]=o,e[29]=f):f=e[29],f}export{B as default};
diff --git a/compendium_v2/static/AlienWaveInternal-CYmkCEA6.js b/compendium_v2/static/AlienWaveInternal-CYmkCEA6.js
deleted file mode 100644
index 955abf72f55ca6dc978e5b05ae7090084293ef98..0000000000000000000000000000000000000000
--- a/compendium_v2/static/AlienWaveInternal-CYmkCEA6.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import{a as k,r as Y,F as S,j as w}from"./main-BIBsTO5W.js";import{u as W,g as j,D as F,F as M,f as T}from"./useData-BDYwoQEh.js";import{S as C}from"./report.js";import{P as E}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function $(){const e=k.c(30);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=c=>c.alien_wave_internal!==null,e[0]=m):m=e[0];const D=m,{filterSelection:t,setFilterSelection:d}=Y.useContext(S),{data:v,years:N,nrens:g}=W("/api/alien-wave",d,D);let s,p;if(e[1]!==v||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let c;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(c=_=>t.selectedYears.includes(_.year)&&t.selectedNrens.includes(_.nren),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=c):c=e[8],s=v.filter(c),p=j(s,"alien_wave_internal"),e[1]=v,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=p}else s=e[4],p=e[5];const x=p;let n,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=["Yes","No"],u=new Map([[n[0],"True"],[n[1],"False"]]),e[9]=n,e[10]=u):(n=e[9],u=e[10]);const b=u;let a;e[11]!==N?(a=[...N],e[11]=N,e[12]=a):a=e[12];let l;e[13]!==g?(l=g.values(),e[13]=g,e[14]=l):l=e[14];let i;e[15]!==l?(i=[...l],e[15]=l,e[16]=i):i=e[16];let r;e[17]!==a||e[18]!==i?(r={availableYears:a,availableNrens:i},e[17]=a,e[18]=i,e[19]=r):r=e[19];let f;e[20]!==t||e[21]!==d||e[22]!==r?(f=w.jsx(M,{filterOptions:r,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[20]=t,e[21]=d,e[22]=r,e[23]=f):f=e[23];const y=f;let o;e[24]!==x?(o=w.jsx(T,{children:w.jsx(E,{columns:n,columnLookup:b,dataLookup:x})}),e[24]=x,e[25]=o):o=e[25];let h;return e[26]!==y||e[27]!==s||e[28]!==o?(h=w.jsx(F,{title:"Internal NREN Use of Alien Waves",description:`The table below shows NREN usage of alien waves internally within their own networks. 
-            This includes, for example, alien waves used between two equipment vendors, 
-            eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment.
-
-            In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe 
-            wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated 
-            by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional 
-            DWDM systems, where the DWDM light source (transponder) operates in the same management domain 
-            as the amplifiers.`,category:C.Network,filter:y,data:s,filename:"alien_wave_internal_nrens_per_year",children:o}),e[26]=y,e[27]=s,e[28]=o,e[29]=h):h=e[29],h}export{$ as default};
diff --git a/compendium_v2/static/Audits-DfjcC9VL.js b/compendium_v2/static/Audits-DfjcC9VL.js
new file mode 100644
index 0000000000000000000000000000000000000000..dd643cf070f9b6d1533b2ed93dca17b5233de768
--- /dev/null
+++ b/compendium_v2/static/Audits-DfjcC9VL.js
@@ -0,0 +1,5 @@
+import{c as Y,r as w,F as j,j as x,t as F,S as P}from"./index.js";import{u as C,g as D,n as E,D as L,F as R,f as M}from"./useData-CxftshCa.js";import{P as A}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function K(){const e=Y.c(30);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d=>d.audits!==null,e[0]=s):s=e[0];const k=s,{filterSelection:t,setFilterSelection:u}=w.useContext(j),{data:b,years:y,nrens:N}=C("/api/standards",u,k);let i,m;if(e[1]!==b||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let d;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(d=_=>t.selectedYears.includes(_.year)&&t.selectedNrens.includes(_.nren)&&_.audits!==null,e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=d):d=e[8],i=b.filter(d);const T=D(i,"audits");m=E(T,I),e[1]=b,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=i,e[5]=m}else i=e[4],m=e[5];const g=m;let a,p;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=["Yes","No"],p=new Map([[a[0],"True"],[a[1],"False"]]),e[9]=a,e[10]=p):(a=e[9],p=e[10]);const S=p;let r;e[11]!==y?(r=[...y],e[11]=y,e[12]=r):r=e[12];let l;e[13]!==N?(l=N.values(),e[13]=N,e[14]=l):l=e[14];let o;e[15]!==l?(o=[...l],e[15]=l,e[16]=o):o=e[16];let n;e[17]!==r||e[18]!==o?(n={availableYears:r,availableNrens:o},e[17]=r,e[18]=o,e[19]=n):n=e[19];let f;e[20]!==t||e[21]!==u||e[22]!==n?(f=x.jsx(R,{filterOptions:n,filterSelection:t,setFilterSelection:u,coloredYears:!0}),e[20]=t,e[21]=u,e[22]=n,e[23]=f):f=e[23];const v=f;let c;e[24]!==g?(c=x.jsx(M,{children:x.jsx(A,{columns:a,columnLookup:S,dataLookup:g})}),e[24]=g,e[25]=c):c=e[25];let h;return e[26]!==v||e[27]!==i||e[28]!==c?(h=x.jsx(L,{title:F.audits,description:`The table below shows whether NRENs have external and/or internal audits 
+            of the information security management systems (eg. risk management and policies). 
+            Where extra information has been provided, such as whether a certified security auditor 
+            on ISP 27001 is performing the audits, it can be viewed by hovering over the indicator 
+            mark ringed in black.`,category:P.Policy,filter:v,data:i,filename:"audits_nrens_per_year",children:c}),e[26]=v,e[27]=i,e[28]=c,e[29]=h):h=e[29],h}function I(e,s){if(s.audit_specifics)return s.audit_specifics}export{K as default};
diff --git a/compendium_v2/static/Audits-z541eU6T.js b/compendium_v2/static/Audits-z541eU6T.js
deleted file mode 100644
index 11f0ab43a9e06fe77f654dae2224885402140645..0000000000000000000000000000000000000000
--- a/compendium_v2/static/Audits-z541eU6T.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import{a as Y,r as w,F as j,j as x}from"./main-BIBsTO5W.js";import{u as F,g as P,n as C,D as E,F as D,f as L}from"./useData-BDYwoQEh.js";import{S as I}from"./report.js";import{P as M}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function J(){const e=Y.c(30);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d=>d.audits!==null,e[0]=s):s=e[0];const _=s,{filterSelection:t,setFilterSelection:u}=w.useContext(j),{data:y,years:b,nrens:g}=F("/api/standards",u,_);let i,m;if(e[1]!==y||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let d;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(d=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren)&&v.audits!==null,e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=d):d=e[8],i=y.filter(d);const T=P(i,"audits");m=C(T,R),e[1]=y,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=i,e[5]=m}else i=e[4],m=e[5];const N=m;let a,f;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=["Yes","No"],f=new Map([[a[0],"True"],[a[1],"False"]]),e[9]=a,e[10]=f):(a=e[9],f=e[10]);const k=f;let r;e[11]!==b?(r=[...b],e[11]=b,e[12]=r):r=e[12];let l;e[13]!==g?(l=g.values(),e[13]=g,e[14]=l):l=e[14];let n;e[15]!==l?(n=[...l],e[15]=l,e[16]=n):n=e[16];let o;e[17]!==r||e[18]!==n?(o={availableYears:r,availableNrens:n},e[17]=r,e[18]=n,e[19]=o):o=e[19];let p;e[20]!==t||e[21]!==u||e[22]!==o?(p=x.jsx(D,{filterOptions:o,filterSelection:t,setFilterSelection:u,coloredYears:!0}),e[20]=t,e[21]=u,e[22]=o,e[23]=p):p=e[23];const S=p;let c;e[24]!==N?(c=x.jsx(L,{children:x.jsx(M,{columns:a,columnLookup:k,dataLookup:N})}),e[24]=N,e[25]=c):c=e[25];let h;return e[26]!==S||e[27]!==i||e[28]!==c?(h=x.jsx(E,{title:"External and Internal Audits of Information Security Management Systems",description:`The table below shows whether NRENs have external and/or internal audits 
-            of the information security management systems (eg. risk management and policies). 
-            Where extra information has been provided, such as whether a certified security auditor 
-            on ISP 27001 is performing the audits, it can be viewed by hovering over the indicator 
-            mark ringed in black.`,category:I.Policy,filter:S,data:i,filename:"audits_nrens_per_year",children:c}),e[26]=S,e[27]=i,e[28]=c,e[29]=h):h=e[29],h}function R(e,s){if(s.audit_specifics)return s.audit_specifics}export{J as default};
diff --git a/compendium_v2/static/Automation-CrHhcUVx.js b/compendium_v2/static/Automation-CrHhcUVx.js
deleted file mode 100644
index c5d4cf92f53f6b692afc1bc798a03361398832b0..0000000000000000000000000000000000000000
--- a/compendium_v2/static/Automation-CrHhcUVx.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import{a as ee,r as te,F as se,j as t}from"./main-BIBsTO5W.js";import{u as ne,g as le,F as oe,D as re,f as ie}from"./useData-BDYwoQEh.js";import{C as K}from"./ColorPill-CqT_mR3a.js";import{S as ae}from"./report.js";import{T as ce}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function ge(){const e=ee.c(69),{filterSelection:l,setFilterSelection:p}=te.useContext(se),{data:Q,years:c,nrens:R}=ne("/api/network-automation",p);let m,f,x,j,u,g,w,y,_,h,d,b,S,Y,v;if(e[0]!==l||e[1]!==R||e[2]!==Q||e[3]!==p||e[4]!==c){let A;e[20]!==l.selectedNrens||e[21]!==l.selectedYears?(A=E=>l.selectedYears.includes(E.year)&&l.selectedNrens.includes(E.nren),e[20]=l.selectedNrens,e[21]=l.selectedYears,e[22]=A):A=e[22];const V=Q.filter(A),X=le(V,"network_automation");let T;e[23]!==c?(T=[...c],e[23]=c,e[24]=T):T=e[24];let C;e[25]!==R?(C=R.values(),e[25]=R,e[26]=C):C=e[26];let D;e[27]!==C?(D=[...C],e[27]=C,e[28]=D):D=e[28];let $;e[29]!==T||e[30]!==D?($={availableYears:T,availableNrens:D},e[29]=T,e[30]=D,e[31]=$):$=e[31];let L;e[32]!==l||e[33]!==p||e[34]!==$?(L=t.jsx(oe,{filterOptions:$,filterSelection:l,setFilterSelection:p,coloredYears:!0}),e[32]=l,e[33]=p,e[34]=$,e[35]=L):L=e[35];const Z=L;let M;e[36]!==c?(M=E=>c.has(E),e[36]=c,e[37]=M):M=e[37];const U=[...l.selectedYears.filter(M)].sort();x=re,b="Network Tasks for which NRENs Use Automation ",S=`The table below shows which NRENs have, or plan to, automate their 
-            operational processes, with specification of which processes, and the names of 
-            software and tools used for this given when appropriate. 
-            Where NRENs indicated that they are using automation for some network tasks, 
-            but did not specify which type of tasks, a marker has been placed in the 'other' column.`,Y=ae.Network,v=Z,g=V,w="network_automation_nrens_per_year",f=ie,m=ce,u="charging-struct-table",y=!0,_=!0;let W;e[38]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx("col",{span:1,style:{width:"16%"}}),e[38]=W):W=e[38];let q;e[39]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("col",{span:2,style:{width:"12%"}}),e[39]=q):q=e[39];let z;e[40]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("col",{span:2,style:{width:"12%"}}),e[40]=z):z=e[40];let B;e[41]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("col",{span:2,style:{width:"12%"}}),e[41]=B):B=e[41];let G;e[42]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx("col",{span:2,style:{width:"12%"}}),e[42]=G):G=e[42];let H;e[43]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsx("col",{span:2,style:{width:"12%"}}),e[43]=H):H=e[43];let J;e[44]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx("col",{span:2,style:{width:"12%"}}),e[44]=J):J=e[44],e[45]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs("colgroup",{children:[W,q,z,B,G,H,J,t.jsx("col",{span:2,style:{width:"12%"}})]}),d=t.jsxs("thead",{children:[t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{colSpan:2,children:"Device Provisioning"}),t.jsx("th",{colSpan:2,children:"Data Collection"}),t.jsx("th",{colSpan:2,children:"Configuration Management"}),t.jsx("th",{colSpan:2,children:"Compliance"}),t.jsx("th",{colSpan:2,children:"Reporting"}),t.jsx("th",{colSpan:2,children:"Troubleshooting"}),t.jsx("th",{colSpan:2,children:"Other"})]}),t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"})]})]}),e[45]=h,e[46]=d):(h=e[45],d=e[46]),j=Array.from(X.entries()).map(E=>{const[F,o]=E;return t.jsxs("tr",{children:[t.jsx("td",{children:F}),["provisioning","data_collection","config_management","compliance","reporting","troubleshooting"].map(n=>t.jsxs(t.Fragment,{children:[t.jsx("td",{children:o.has("yes")&&U.map(s=>{var a,I;const r=(a=o.get("yes"))==null?void 0:a.get(s),i=r?r.network_automation_specifics:null;return t.jsx(K,{year:s,active:!!((I=o.get("yes"))!=null&&I.has(s))&&!!(i&&i.indexOf(n)>-1),tooltip:"",rounded:!0},s)})},`${F}-${n}-yes`),t.jsx("td",{children:o.has("planned")&&U.map(s=>{var a,I;const r=(a=o.get("planned"))==null?void 0:a.get(s),i=r?r.network_automation_specifics:null;return t.jsx(K,{year:s,active:!!((I=o.get("planned"))!=null&&I.has(s))&&!!(i&&i.indexOf(n)>-1),tooltip:"",rounded:!0},s)})},`${F}-${n}-planned`)]})),t.jsx("td",{children:o.has("yes")&&U.map(n=>{var i,a;const s=(i=o.get("yes"))==null?void 0:i.get(n),r=s?s.network_automation_specifics:null;return t.jsx(K,{year:n,active:!!((a=o.get("yes"))!=null&&a.has(n))&&!!(r&&r.length==0),tooltip:"",rounded:!0},n)})},`${F}-other-yes`),t.jsx("td",{children:o.has("planned")&&U.map(n=>{var i,a;const s=(i=o.get("planned"))==null?void 0:i.get(n),r=s?s.network_automation_specifics:null;return t.jsx(K,{year:n,active:!!((a=o.get("planned"))!=null&&a.has(n))&&!!(r&&r.length==0),tooltip:"",rounded:!0},n)})},`${F}-other-planned`)]},F)}),e[0]=l,e[1]=R,e[2]=Q,e[3]=p,e[4]=c,e[5]=m,e[6]=f,e[7]=x,e[8]=j,e[9]=u,e[10]=g,e[11]=w,e[12]=y,e[13]=_,e[14]=h,e[15]=d,e[16]=b,e[17]=S,e[18]=Y,e[19]=v}else m=e[5],f=e[6],x=e[7],j=e[8],u=e[9],g=e[10],w=e[11],y=e[12],_=e[13],h=e[14],d=e[15],b=e[16],S=e[17],Y=e[18],v=e[19];let N;e[47]!==j?(N=t.jsx("tbody",{children:j}),e[47]=j,e[48]=N):N=e[48];let k;e[49]!==m||e[50]!==u||e[51]!==N||e[52]!==y||e[53]!==_||e[54]!==h||e[55]!==d?(k=t.jsxs(m,{className:u,striped:y,bordered:_,children:[h,d,N]}),e[49]=m,e[50]=u,e[51]=N,e[52]=y,e[53]=_,e[54]=h,e[55]=d,e[56]=k):k=e[56];let P;e[57]!==f||e[58]!==k?(P=t.jsx(f,{children:k}),e[57]=f,e[58]=k,e[59]=P):P=e[59];let O;return e[60]!==x||e[61]!==g||e[62]!==w||e[63]!==P||e[64]!==b||e[65]!==S||e[66]!==Y||e[67]!==v?(O=t.jsx(x,{title:b,description:S,category:Y,filter:v,data:g,filename:w,children:P}),e[60]=x,e[61]=g,e[62]=w,e[63]=P,e[64]=b,e[65]=S,e[66]=Y,e[67]=v,e[68]=O):O=e[68],O}export{ge as default};
diff --git a/compendium_v2/static/Automation-DzfRRQiO.js b/compendium_v2/static/Automation-DzfRRQiO.js
new file mode 100644
index 0000000000000000000000000000000000000000..8979b214385063c80dd535ddde71a37bf9c424d9
--- /dev/null
+++ b/compendium_v2/static/Automation-DzfRRQiO.js
@@ -0,0 +1,5 @@
+import{c as ee,r as te,F as se,S as ne,j as t,t as le}from"./index.js";import{u as oe,g as re,F as ie,D as ae,f as ce}from"./useData-CxftshCa.js";import{C as Q}from"./ColorPill-CXvWIfWz.js";import{T as he}from"./Table-ClWM2_rS.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";function we(){const e=ee.c(69),{filterSelection:l,setFilterSelection:p}=te.useContext(se),{data:U,years:c,nrens:R}=oe("/api/network-automation",p);let m,f,x,j,u,g,w,y,_,h,d,b,S,Y,v;if(e[0]!==l||e[1]!==R||e[2]!==U||e[3]!==p||e[4]!==c){let A;e[20]!==l.selectedNrens||e[21]!==l.selectedYears?(A=F=>l.selectedYears.includes(F.year)&&l.selectedNrens.includes(F.nren),e[20]=l.selectedNrens,e[21]=l.selectedYears,e[22]=A):A=e[22];const V=U.filter(A),X=re(V,"network_automation");let C;e[23]!==c?(C=[...c],e[23]=c,e[24]=C):C=e[24];let T;e[25]!==R?(T=R.values(),e[25]=R,e[26]=T):T=e[26];let D;e[27]!==T?(D=[...T],e[27]=T,e[28]=D):D=e[28];let $;e[29]!==C||e[30]!==D?($={availableYears:C,availableNrens:D},e[29]=C,e[30]=D,e[31]=$):$=e[31];let L;e[32]!==l||e[33]!==p||e[34]!==$?(L=t.jsx(ie,{filterOptions:$,filterSelection:l,setFilterSelection:p,coloredYears:!0}),e[32]=l,e[33]=p,e[34]=$,e[35]=L):L=e[35];const Z=L;let M;e[36]!==c?(M=F=>c.has(F),e[36]=c,e[37]=M):M=e[37];const W=[...l.selectedYears.filter(M)].sort();x=ae,b=le["network-automation"],S=`The table below shows which NRENs have, or plan to, automate their 
+            operational processes, with specification of which processes, and the names of 
+            software and tools used for this given when appropriate. 
+            Where NRENs indicated that they are using automation for some network tasks, 
+            but did not specify which type of tasks, a marker has been placed in the 'other' column.`,Y=ne.Network,v=Z,g=V,w="network_automation_nrens_per_year",f=ce,m=he,u="charging-struct-table",y=!0,_=!0;let q;e[38]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("col",{span:1,style:{width:"16%"}}),e[38]=q):q=e[38];let z;e[39]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("col",{span:2,style:{width:"12%"}}),e[39]=z):z=e[39];let B;e[40]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("col",{span:2,style:{width:"12%"}}),e[40]=B):B=e[40];let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx("col",{span:2,style:{width:"12%"}}),e[41]=G):G=e[41];let H;e[42]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsx("col",{span:2,style:{width:"12%"}}),e[42]=H):H=e[42];let J;e[43]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx("col",{span:2,style:{width:"12%"}}),e[43]=J):J=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx("col",{span:2,style:{width:"12%"}}),e[44]=K):K=e[44],e[45]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs("colgroup",{children:[q,z,B,G,H,J,K,t.jsx("col",{span:2,style:{width:"12%"}})]}),d=t.jsxs("thead",{children:[t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{colSpan:2,children:"Device Provisioning"}),t.jsx("th",{colSpan:2,children:"Data Collection"}),t.jsx("th",{colSpan:2,children:"Configuration Management"}),t.jsx("th",{colSpan:2,children:"Compliance"}),t.jsx("th",{colSpan:2,children:"Reporting"}),t.jsx("th",{colSpan:2,children:"Troubleshooting"}),t.jsx("th",{colSpan:2,children:"Other"})]}),t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"})]})]}),e[45]=h,e[46]=d):(h=e[45],d=e[46]),j=Array.from(X.entries()).map(F=>{const[E,o]=F;return t.jsxs("tr",{children:[t.jsx("td",{children:E}),["provisioning","data_collection","config_management","compliance","reporting","troubleshooting"].map(n=>t.jsxs(t.Fragment,{children:[t.jsx("td",{children:o.has("yes")&&W.map(s=>{var a,I;const r=(a=o.get("yes"))==null?void 0:a.get(s),i=r?r.network_automation_specifics:null;return t.jsx(Q,{year:s,active:!!((I=o.get("yes"))!=null&&I.has(s))&&!!(i&&i.indexOf(n)>-1),tooltip:"",rounded:!0},s)})},`${E}-${n}-yes`),t.jsx("td",{children:o.has("planned")&&W.map(s=>{var a,I;const r=(a=o.get("planned"))==null?void 0:a.get(s),i=r?r.network_automation_specifics:null;return t.jsx(Q,{year:s,active:!!((I=o.get("planned"))!=null&&I.has(s))&&!!(i&&i.indexOf(n)>-1),tooltip:"",rounded:!0},s)})},`${E}-${n}-planned`)]})),t.jsx("td",{children:o.has("yes")&&W.map(n=>{var i,a;const s=(i=o.get("yes"))==null?void 0:i.get(n),r=s?s.network_automation_specifics:null;return t.jsx(Q,{year:n,active:!!((a=o.get("yes"))!=null&&a.has(n))&&!!(r&&r.length==0),tooltip:"",rounded:!0},n)})},`${E}-other-yes`),t.jsx("td",{children:o.has("planned")&&W.map(n=>{var i,a;const s=(i=o.get("planned"))==null?void 0:i.get(n),r=s?s.network_automation_specifics:null;return t.jsx(Q,{year:n,active:!!((a=o.get("planned"))!=null&&a.has(n))&&!!(r&&r.length==0),tooltip:"",rounded:!0},n)})},`${E}-other-planned`)]},E)}),e[0]=l,e[1]=R,e[2]=U,e[3]=p,e[4]=c,e[5]=m,e[6]=f,e[7]=x,e[8]=j,e[9]=u,e[10]=g,e[11]=w,e[12]=y,e[13]=_,e[14]=h,e[15]=d,e[16]=b,e[17]=S,e[18]=Y,e[19]=v}else m=e[5],f=e[6],x=e[7],j=e[8],u=e[9],g=e[10],w=e[11],y=e[12],_=e[13],h=e[14],d=e[15],b=e[16],S=e[17],Y=e[18],v=e[19];let k;e[47]!==j?(k=t.jsx("tbody",{children:j}),e[47]=j,e[48]=k):k=e[48];let N;e[49]!==m||e[50]!==u||e[51]!==k||e[52]!==y||e[53]!==_||e[54]!==h||e[55]!==d?(N=t.jsxs(m,{className:u,striped:y,bordered:_,children:[h,d,k]}),e[49]=m,e[50]=u,e[51]=k,e[52]=y,e[53]=_,e[54]=h,e[55]=d,e[56]=N):N=e[56];let P;e[57]!==f||e[58]!==N?(P=t.jsx(f,{children:N}),e[57]=f,e[58]=N,e[59]=P):P=e[59];let O;return e[60]!==x||e[61]!==g||e[62]!==w||e[63]!==P||e[64]!==b||e[65]!==S||e[66]!==Y||e[67]!==v?(O=t.jsx(x,{title:b,description:S,category:Y,filter:v,data:g,filename:w,children:P}),e[60]=x,e[61]=g,e[62]=w,e[63]=P,e[64]=b,e[65]=S,e[66]=Y,e[67]=v,e[68]=O):O=e[68],O}export{we as default};
diff --git a/compendium_v2/static/Budget-BaNd2jtG.js b/compendium_v2/static/Budget-BaNd2jtG.js
deleted file mode 100644
index b0aea8643c485b683bbd4823ceb411f0c0d477bd..0000000000000000000000000000000000000000
--- a/compendium_v2/static/Budget-BaNd2jtG.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as _,r as S,F as j,j as s}from"./main-BIBsTO5W.js";import{L as v}from"./index-BBrAyDR9.js";import{C,a as R,L,P as w,b as D,p as F,c as P,d as B,u as M,e as O,D as T,F as G,f as Y}from"./useData-BDYwoQEh.js";import{S as k}from"./report.js";import{g as q}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";C.register(R,L,w,D,F,P,B);function K(){const e=_.c(24),{filterSelection:t,setFilterSelection:o}=S.useContext(j),{data:m,nrens:b}=M("/api/budget",o);let a,l;if(e[0]!==m||e[1]!==t.selectedNrens){let h;e[4]!==t.selectedNrens?(h=E=>t.selectedNrens.includes(E.nren),e[4]=t.selectedNrens,e[5]=h):h=e[5],a=m.filter(h),l=O(a,"budget"),e[0]=m,e[1]=t.selectedNrens,e[2]=a,e[3]=l}else a=e[2],l=e[3];const N=l;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let i;e[7]!==b?(i=b.values(),e[7]=b,e[8]=i):i=e[8];let r;e[9]!==i?(r={availableYears:c,availableNrens:[...i]},e[9]=i,e[10]=r):r=e[10];let d;e[11]!==t||e[12]!==o||e[13]!==r?(d=s.jsx(G,{filterOptions:r,filterSelection:t,setFilterSelection:o}),e[11]=t,e[12]=o,e[13]=r,e[14]=d):d=e[14];const y=d;let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=q({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"}),e[15]=f):f=e[15];const x=f;let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("br",{}),e[16]=g):g=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("span",{children:["The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.",g,"NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.",s.jsx("br",{}),"Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year."]}),e[17]=p):p=e[17];let n;e[18]!==N?(n=s.jsx(Y,{children:s.jsx(v,{data:N,options:x})}),e[18]=N,e[19]=n):n=e[19];let u;return e[20]!==y||e[21]!==a||e[22]!==n?(u=s.jsx(T,{title:"Budget of NRENs per Year",description:p,category:k.Organisation,filter:y,data:a,filename:"budget_data",children:n}),e[20]=y,e[21]=a,e[22]=n,e[23]=u):u=e[23],u}export{K as default};
diff --git a/compendium_v2/static/Budget-DX8h4kEm.js b/compendium_v2/static/Budget-DX8h4kEm.js
new file mode 100644
index 0000000000000000000000000000000000000000..a6d6cdab2d25b04db690e8f89c42e937232df494
--- /dev/null
+++ b/compendium_v2/static/Budget-DX8h4kEm.js
@@ -0,0 +1 @@
+import{c as _,r as S,F as j,j as s,t as v,S as C}from"./index.js";import{L as R}from"./index-CjWPDfDC.js";import{C as L,a as w,L as D,P as F,b as P,p as M,c as O,d as T,u as B,e as G,D as k,F as q,f as A}from"./useData-CxftshCa.js";import{g as H}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";L.register(w,D,F,P,M,O,T);function Q(){const e=_.c(24),{filterSelection:t,setFilterSelection:o}=S.useContext(j),{data:m,nrens:b}=B("/api/budget",o);let a,l;if(e[0]!==m||e[1]!==t.selectedNrens){let h;e[4]!==t.selectedNrens?(h=E=>t.selectedNrens.includes(E.nren),e[4]=t.selectedNrens,e[5]=h):h=e[5],a=m.filter(h),l=G(a,"budget"),e[0]=m,e[1]=t.selectedNrens,e[2]=a,e[3]=l}else a=e[2],l=e[3];const N=l;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let i;e[7]!==b?(i=b.values(),e[7]=b,e[8]=i):i=e[8];let r;e[9]!==i?(r={availableYears:c,availableNrens:[...i]},e[9]=i,e[10]=r):r=e[10];let d;e[11]!==t||e[12]!==o||e[13]!==r?(d=s.jsx(q,{filterOptions:r,filterSelection:t,setFilterSelection:o}),e[11]=t,e[12]=o,e[13]=r,e[14]=d):d=e[14];const y=d;let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=H({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"}),e[15]=f):f=e[15];const x=f;let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("br",{}),e[16]=g):g=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("span",{children:["The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.",g,"NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.",s.jsx("br",{}),"Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year."]}),e[17]=p):p=e[17];let n;e[18]!==N?(n=s.jsx(A,{children:s.jsx(R,{data:N,options:x})}),e[18]=N,e[19]=n):n=e[19];let u;return e[20]!==y||e[21]!==a||e[22]!==n?(u=s.jsx(k,{title:v.budget,description:p,category:C.Organisation,filter:y,data:a,filename:"budget_data",children:n}),e[20]=y,e[21]=a,e[22]=n,e[23]=u):u=e[23],u}export{Q as default};
diff --git a/compendium_v2/static/BusinessContinuity-BhppOK3E.js b/compendium_v2/static/BusinessContinuity-BhppOK3E.js
deleted file mode 100644
index 6979952e60a9735a50345e083c1437ddd1aa26dd..0000000000000000000000000000000000000000
--- a/compendium_v2/static/BusinessContinuity-BhppOK3E.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import{a as v,r as C,F as E,j as y}from"./main-BIBsTO5W.js";import{u as S,g as j,n as F,D as P,F as R,f as D}from"./useData-BDYwoQEh.js";import{S as L}from"./report.js";import{P as B}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function K(){const e=v.c(30);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=u=>u.business_continuity_plans!==null,e[0]=s):s=e[0];const k=s,{filterSelection:t,setFilterSelection:p}=C.useContext(E),{data:b,years:_,nrens:N}=S("/api/standards",p,k);let n,d;if(e[1]!==b||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let u;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(u=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren)&&g.business_continuity_plans!==null,e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=u):u=e[8],n=b.filter(u);const Y=j(n,"business_continuity_plans");d=F(Y,M),e[1]=b,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=n,e[5]=d}else n=e[4],d=e[5];const x=d;let i,f;e[9]===Symbol.for("react.memo_cache_sentinel")?(i=["Yes","No"],f=new Map([[i[0],"True"],[i[1],"False"]]),e[9]=i,e[10]=f):(i=e[9],f=e[10]);const w=f;let l;e[11]!==_?(l=[..._],e[11]=_,e[12]=l):l=e[12];let o;e[13]!==N?(o=N.values(),e[13]=N,e[14]=o):o=e[14];let a;e[15]!==o?(a=[...o],e[15]=o,e[16]=a):a=e[16];let r;e[17]!==l||e[18]!==a?(r={availableYears:l,availableNrens:a},e[17]=l,e[18]=a,e[19]=r):r=e[19];let m;e[20]!==t||e[21]!==p||e[22]!==r?(m=y.jsx(R,{filterOptions:r,filterSelection:t,setFilterSelection:p,coloredYears:!0}),e[20]=t,e[21]=p,e[22]=r,e[23]=m):m=e[23];const T=m;let c;e[24]!==x?(c=y.jsx(D,{children:y.jsx(B,{columns:i,columnLookup:w,dataLookup:x})}),e[24]=x,e[25]=c):c=e[25];let h;return e[26]!==T||e[27]!==n||e[28]!==c?(h=y.jsx(P,{title:"NREN Business Continuity Planning",description:`The table below shows which NRENs have business continuity plans in place to 
-            ensure business continuation and operations. Extra details about whether the NREN 
-            complies with any international standards, and whether they test the continuity plans 
-            regularly can be seen by hovering over the marker. The presence of this extra information 
-            is denoted by a black ring around the marker.`,category:L.Policy,filter:T,data:n,filename:"business_continuity_nrens_per_year",children:c}),e[26]=T,e[27]=n,e[28]=c,e[29]=h):h=e[29],h}function M(e,s){if(s.business_continuity_plans_specifics)return s.business_continuity_plans_specifics}export{K as default};
diff --git a/compendium_v2/static/BusinessContinuity-CswNIFcO.js b/compendium_v2/static/BusinessContinuity-CswNIFcO.js
new file mode 100644
index 0000000000000000000000000000000000000000..7b2eebad70a414ba0bba6e126a049a71feacf920
--- /dev/null
+++ b/compendium_v2/static/BusinessContinuity-CswNIFcO.js
@@ -0,0 +1,5 @@
+import{c as v,r as S,F as j,j as y,t as C,S as E}from"./index.js";import{u as F,g as P,n as D,D as L,F as R,f as M}from"./useData-CxftshCa.js";import{P as B}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function Q(){const e=v.c(30);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=u=>u.business_continuity_plans!==null,e[0]=s):s=e[0];const w=s,{filterSelection:t,setFilterSelection:p}=S.useContext(j),{data:b,years:_,nrens:x}=F("/api/standards",p,w);let n,d;if(e[1]!==b||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let u;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(u=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.business_continuity_plans!==null,e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=u):u=e[8],n=b.filter(u);const g=P(n,"business_continuity_plans");d=D(g,O),e[1]=b,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=n,e[5]=d}else n=e[4],d=e[5];const N=d;let i,f;e[9]===Symbol.for("react.memo_cache_sentinel")?(i=["Yes","No"],f=new Map([[i[0],"True"],[i[1],"False"]]),e[9]=i,e[10]=f):(i=e[9],f=e[10]);const Y=f;let l;e[11]!==_?(l=[..._],e[11]=_,e[12]=l):l=e[12];let o;e[13]!==x?(o=x.values(),e[13]=x,e[14]=o):o=e[14];let a;e[15]!==o?(a=[...o],e[15]=o,e[16]=a):a=e[16];let r;e[17]!==l||e[18]!==a?(r={availableYears:l,availableNrens:a},e[17]=l,e[18]=a,e[19]=r):r=e[19];let m;e[20]!==t||e[21]!==p||e[22]!==r?(m=y.jsx(R,{filterOptions:r,filterSelection:t,setFilterSelection:p,coloredYears:!0}),e[20]=t,e[21]=p,e[22]=r,e[23]=m):m=e[23];const T=m;let c;e[24]!==N?(c=y.jsx(M,{children:y.jsx(B,{columns:i,columnLookup:Y,dataLookup:N})}),e[24]=N,e[25]=c):c=e[25];let h;return e[26]!==T||e[27]!==n||e[28]!==c?(h=y.jsx(L,{title:C["business-continuity"],description:`The table below shows which NRENs have business continuity plans in place to 
+            ensure business continuation and operations. Extra details about whether the NREN 
+            complies with any international standards, and whether they test the continuity plans 
+            regularly can be seen by hovering over the marker. The presence of this extra information 
+            is denoted by a black ring around the marker.`,category:E.Policy,filter:T,data:n,filename:"business_continuity_nrens_per_year",children:c}),e[26]=T,e[27]=n,e[28]=c,e[29]=h):h=e[29],h}function O(e,s){if(s.business_continuity_plans_specifics)return s.business_continuity_plans_specifics}export{Q as default};
diff --git a/compendium_v2/static/CapacityCoreIP-BzYm9HBi.js b/compendium_v2/static/CapacityCoreIP-BzYm9HBi.js
deleted file mode 100644
index c794933ddad0ae8020c4cc406c427eda14d7c95b..0000000000000000000000000000000000000000
--- a/compendium_v2/static/CapacityCoreIP-BzYm9HBi.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import{a as I,r as D,F,j as y}from"./main-BIBsTO5W.js";import{B as R}from"./index-BBrAyDR9.js";import{C as Y,a as G,L,B as O,p as $,c as A,d as M,u as T,o as U,D as q,F as z,f as H}from"./useData-BDYwoQEh.js";import{S as J}from"./report.js";import{p as K}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{a as Q}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";Y.register(G,L,O,$,A,M);function re(){const e=I.c(39);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=n=>n.typical_backbone_capacity!=null,e[0]=b):b=e[0];const B=b,{filterSelection:t,setFilterSelection:s}=D.useContext(F),{data:S,years:d,nrens:u}=T("/api/capacity",s,B);let i,l,a,g;if(e[1]!==S||e[2]!==t||e[3]!==u||e[4]!==s||e[5]!==d){let n;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(n=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren)&&B(j),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=n):n=e[12],a=S.filter(n),i=U(a,"typical_backbone_capacity","Backbone IP Capacity");let p;e[13]!==d?(p=[...d],e[13]=d,e[14]=p):p=e[14];let f;e[15]!==u?(f=u.values(),e[15]=u,e[16]=f):f=e[16];let m;e[17]!==f?(m=[...f],e[17]=f,e[18]=m):m=e[18];let h;e[19]!==p||e[20]!==m?(h={availableYears:p,availableNrens:m},e[19]=p,e[20]=m,e[21]=h):h=e[21];let N;e[22]!==t||e[23]!==s||e[24]!==h?(N=y.jsx(z,{filterOptions:h,filterSelection:t,setFilterSelection:s}),e[22]=t,e[23]=s,e[24]=h,e[25]=N):N=e[25],l=N,g=Array.from(new Set(a.map(V))),e[1]=S,e[2]=t,e[3]=u,e[4]=s,e[5]=d,e[6]=i,e[7]=l,e[8]=a,e[9]=g}else i=e[6],l=e[7],a=e[8],g=e[9];const E=g.length,P=Math.max(E*t.selectedYears.length*1.5+5,50),v=`The graph below shows the typical core usable backbone IP capacity of 
-    NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over 
-    the network.`;let C;e[26]===Symbol.for("react.memo_cache_sentinel")?(C=Q({title:"NREN Core IP Capacity",tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=C):C=e[26];const w=C,k=`${P}rem`;let r;e[27]!==k?(r={height:k},e[27]=k,e[28]=r):r=e[28];let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=[K],e[29]=_):_=e[29];let o;e[30]!==i?(o=y.jsx(R,{data:i,options:w,plugins:_}),e[30]=i,e[31]=o):o=e[31];let c;e[32]!==r||e[33]!==o?(c=y.jsx(H,{children:y.jsx("div",{className:"chart-container",style:r,children:o})}),e[32]=r,e[33]=o,e[34]=c):c=e[34];let x;return e[35]!==l||e[36]!==a||e[37]!==c?(x=y.jsx(q,{title:"NREN Core IP Capacity",description:v,category:J.Network,filter:l,data:a,filename:"capacity_core_ip",children:c}),e[35]=l,e[36]=a,e[37]=c,e[38]=x):x=e[38],x}function V(e){return e.nren}export{re as default};
diff --git a/compendium_v2/static/CapacityCoreIP-P2rbPvQY.js b/compendium_v2/static/CapacityCoreIP-P2rbPvQY.js
new file mode 100644
index 0000000000000000000000000000000000000000..68ab16b7e4a7b491ee8aa151ebb09882549144bd
--- /dev/null
+++ b/compendium_v2/static/CapacityCoreIP-P2rbPvQY.js
@@ -0,0 +1,3 @@
+import{c as P,r as Y,F as I,j as y,S as G,t as R}from"./index.js";import{B as L}from"./index-CjWPDfDC.js";import{C as O,a as $,L as A,B as M,p as T,c as U,d as q,u as z,o as H,D as J,F as K,f as Q}from"./useData-CxftshCa.js";import{p as V}from"./chartjs-plugin-datalabels.esm-CjG-nxnq.js";import{a as W}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";O.register($,A,M,T,U,q);function oe(){const e=P.c(39);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=n=>n.typical_backbone_capacity!=null,e[0]=b):b=e[0];const B=b,{filterSelection:t,setFilterSelection:s}=Y.useContext(I),{data:N,years:d,nrens:u}=z("/api/capacity",s,B);let i,l,a,g;if(e[1]!==N||e[2]!==t||e[3]!==u||e[4]!==s||e[5]!==d){let n;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(n=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren)&&B(j),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=n):n=e[12],a=N.filter(n),i=H(a,"typical_backbone_capacity","Backbone IP Capacity");let p;e[13]!==d?(p=[...d],e[13]=d,e[14]=p):p=e[14];let f;e[15]!==u?(f=u.values(),e[15]=u,e[16]=f):f=e[16];let m;e[17]!==f?(m=[...f],e[17]=f,e[18]=m):m=e[18];let h;e[19]!==p||e[20]!==m?(h={availableYears:p,availableNrens:m},e[19]=p,e[20]=m,e[21]=h):h=e[21];let S;e[22]!==t||e[23]!==s||e[24]!==h?(S=y.jsx(K,{filterOptions:h,filterSelection:t,setFilterSelection:s}),e[22]=t,e[23]=s,e[24]=h,e[25]=S):S=e[25],l=S,g=Array.from(new Set(a.map(X))),e[1]=N,e[2]=t,e[3]=u,e[4]=s,e[5]=d,e[6]=i,e[7]=l,e[8]=a,e[9]=g}else i=e[6],l=e[7],a=e[8],g=e[9];const w=g.length,D=Math.max(w*t.selectedYears.length*1.5+5,50),v=R["capacity-core-ip"],E=`The graph below shows the typical core usable backbone IP capacity of 
+    NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over 
+    the network.`;let _;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=W({title:v,tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=_):_=e[26];const F=_,k=`${D}rem`;let r;e[27]!==k?(r={height:k},e[27]=k,e[28]=r):r=e[28];let x;e[29]===Symbol.for("react.memo_cache_sentinel")?(x=[V],e[29]=x):x=e[29];let c;e[30]!==i?(c=y.jsx(L,{data:i,options:F,plugins:x}),e[30]=i,e[31]=c):c=e[31];let o;e[32]!==r||e[33]!==c?(o=y.jsx(Q,{children:y.jsx("div",{className:"chart-container",style:r,children:c})}),e[32]=r,e[33]=c,e[34]=o):o=e[34];let C;return e[35]!==l||e[36]!==a||e[37]!==o?(C=y.jsx(J,{title:v,description:E,category:G.Network,filter:l,data:a,filename:"capacity_core_ip",children:o}),e[35]=l,e[36]=a,e[37]=o,e[38]=C):C=e[38],C}function X(e){return e.nren}export{oe as default};
diff --git a/compendium_v2/static/CapacityLargestLink-CGhxu47M.js b/compendium_v2/static/CapacityLargestLink-CGhxu47M.js
new file mode 100644
index 0000000000000000000000000000000000000000..f42b477e054040f32bf2b9b505d5020388132106
--- /dev/null
+++ b/compendium_v2/static/CapacityLargestLink-CGhxu47M.js
@@ -0,0 +1,3 @@
+import{c as L,r as Y,F as G,j as u,S as R,t as O}from"./index.js";import{B as P}from"./index-CjWPDfDC.js";import{C as $,a as A,L as M,B as U,p as W,c as q,d as z,u as H,o as I,D as J,F as K,f as Q}from"./useData-CxftshCa.js";import{p as T}from"./chartjs-plugin-datalabels.esm-CjG-nxnq.js";import{a as V}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";$.register(A,M,U,W,q,z);function ce(){const e=L.c(39);let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=o=>o.largest_link_capacity!=null,e[0]=y):y=e[0];const j=y,{filterSelection:t,setFilterSelection:s}=Y.useContext(G),{data:b,years:h,nrens:g}=H("/api/capacity",s,j);let i,l,a,_;if(e[1]!==b||e[2]!==t||e[3]!==g||e[4]!==s||e[5]!==h){let o;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(o=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren)&&j(v),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=o):o=e[12],a=b.filter(o),i=I(a,"largest_link_capacity","Link capacity");let p;e[13]!==h?(p=[...h],e[13]=h,e[14]=p):p=e[14];let f;e[15]!==g?(f=g.values(),e[15]=g,e[16]=f):f=e[16];let m;e[17]!==f?(m=[...f],e[17]=f,e[18]=m):m=e[18];let d;e[19]!==p||e[20]!==m?(d={availableYears:p,availableNrens:m},e[19]=p,e[20]=m,e[21]=d):d=e[21];let S;e[22]!==t||e[23]!==s||e[24]!==d?(S=u.jsx(K,{filterOptions:d,filterSelection:t,setFilterSelection:s}),e[22]=t,e[23]=s,e[24]=d,e[25]=S):S=e[25],l=S,_=Array.from(new Set(a.map(X))),e[1]=b,e[2]=t,e[3]=g,e[4]=s,e[5]=h,e[6]=i,e[7]=l,e[8]=a,e[9]=_}else i=e[6],l=e[7],a=e[8],_=e[9];const B=_.length,D=Math.max(B*t.selectedYears.length*1.5+5,50),w=O["capacity-largest-link"],E=`NRENs were asked to give the capacity (in Gbits/s) of the largest link in 
+    their network used for internet traffic (either shared or dedicated). While they were invited to 
+    provide the sum of aggregated links, backup capacity was not to be included.`;let k;e[26]===Symbol.for("react.memo_cache_sentinel")?(k=V({title:w,tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=k):k=e[26];const F=k,N=`${D}rem`;let r;e[27]!==N?(r={height:N},e[27]=N,e[28]=r):r=e[28];let x;e[29]===Symbol.for("react.memo_cache_sentinel")?(x=[T],e[29]=x):x=e[29];let n;e[30]!==i?(n=u.jsx(P,{data:i,options:F,plugins:x}),e[30]=i,e[31]=n):n=e[31];let c;e[32]!==r||e[33]!==n?(c=u.jsx(Q,{children:u.jsx("div",{className:"chart-container",style:r,children:n})}),e[32]=r,e[33]=n,e[34]=c):c=e[34];let C;return e[35]!==l||e[36]!==a||e[37]!==c?(C=u.jsx(J,{title:w,description:E,category:R.Network,filter:l,data:a,filename:"capacity_largest_link",children:c}),e[35]=l,e[36]=a,e[37]=c,e[38]=C):C=e[38],C}function X(e){return e.nren}export{ce as default};
diff --git a/compendium_v2/static/CapacityLargestLink-CchKWKUR.js b/compendium_v2/static/CapacityLargestLink-CchKWKUR.js
deleted file mode 100644
index c1436b62911625d49565549bc1a06da68c2d4a80..0000000000000000000000000000000000000000
--- a/compendium_v2/static/CapacityLargestLink-CchKWKUR.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import{a as D,r as F,F as R,j as u}from"./main-BIBsTO5W.js";import{B as Y}from"./index-BBrAyDR9.js";import{C as G,a as O,L as P,B as $,p as A,c as M,d as U,u as W,o as q,D as z,F as H,f as I}from"./useData-BDYwoQEh.js";import{S as J}from"./report.js";import{p as K}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{a as Q}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";G.register(O,P,$,A,M,U);function le(){const e=D.c(39);let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=c=>c.largest_link_capacity!=null,e[0]=y):y=e[0];const v=y,{filterSelection:t,setFilterSelection:i}=F.useContext(R),{data:S,years:h,nrens:g}=W("/api/capacity",i,v);let s,r,a,k;if(e[1]!==S||e[2]!==t||e[3]!==g||e[4]!==i||e[5]!==h){let c;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(c=L=>t.selectedYears.includes(L.year)&&t.selectedNrens.includes(L.nren)&&v(L),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=c):c=e[12],a=S.filter(c),s=q(a,"largest_link_capacity","Link capacity");let p;e[13]!==h?(p=[...h],e[13]=h,e[14]=p):p=e[14];let f;e[15]!==g?(f=g.values(),e[15]=g,e[16]=f):f=e[16];let m;e[17]!==f?(m=[...f],e[17]=f,e[18]=m):m=e[18];let d;e[19]!==p||e[20]!==m?(d={availableYears:p,availableNrens:m},e[19]=p,e[20]=m,e[21]=d):d=e[21];let C;e[22]!==t||e[23]!==i||e[24]!==d?(C=u.jsx(H,{filterOptions:d,filterSelection:t,setFilterSelection:i}),e[22]=t,e[23]=i,e[24]=d,e[25]=C):C=e[25],r=C,k=Array.from(new Set(a.map(T))),e[1]=S,e[2]=t,e[3]=g,e[4]=i,e[5]=h,e[6]=s,e[7]=r,e[8]=a,e[9]=k}else s=e[6],r=e[7],a=e[8],k=e[9];const w=k.length,j=Math.max(w*t.selectedYears.length*1.5+5,50),E=`NRENs were asked to give the capacity (in Gbits/s) of the largest link in 
-    their network used for internet traffic (either shared or dedicated). While they were invited to 
-    provide the sum of aggregated links, backup capacity was not to be included.`;let N;e[26]===Symbol.for("react.memo_cache_sentinel")?(N=Q({title:"Capacity of the Largest Link in an NREN Network",tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=N):N=e[26];const B=N,b=`${j}rem`;let l;e[27]!==b?(l={height:b},e[27]=b,e[28]=l):l=e[28];let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=[K],e[29]=_):_=e[29];let n;e[30]!==s?(n=u.jsx(Y,{data:s,options:B,plugins:_}),e[30]=s,e[31]=n):n=e[31];let o;e[32]!==l||e[33]!==n?(o=u.jsx(I,{children:u.jsx("div",{className:"chart-container",style:l,children:n})}),e[32]=l,e[33]=n,e[34]=o):o=e[34];let x;return e[35]!==r||e[36]!==a||e[37]!==o?(x=u.jsx(z,{title:"Capacity of the Largest Link in an NREN Network",description:E,category:J.Network,filter:r,data:a,filename:"capacity_largest_link",children:o}),e[35]=r,e[36]=a,e[37]=o,e[38]=x):x=e[38],x}function T(e){return e.nren}export{le as default};
diff --git a/compendium_v2/static/CentralProcurement-BK_KYdQw.js b/compendium_v2/static/CentralProcurement-BK_KYdQw.js
deleted file mode 100644
index 22cedba5602b6f77329f30a5da8a89873ef045bc..0000000000000000000000000000000000000000
--- a/compendium_v2/static/CentralProcurement-BK_KYdQw.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as F,r as Y,F as I,j as h}from"./main-BIBsTO5W.js";import{C as T,a as V,L as $,B as L,p as O,c as k,d as A,u as M,o as U,D as Z,F as q,f as z}from"./useData-BDYwoQEh.js";import{p as G}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{B as H}from"./index-BBrAyDR9.js";import{a as J}from"./charthelpers-CCaYPWnR.js";import{S as K}from"./report.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";T.register(V,$,L,O,k,A);function ne(){const e=F.c(40);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=s=>s.amount!=null,e[0]=g):g=e[0];const v=g,{filterSelection:t,setFilterSelection:l}=Y.useContext(I),{data:w,years:d,nrens:y}=M("/api/central-procurement",l,v);let o,n,r,N;if(e[1]!==w||e[2]!==t||e[3]!==y||e[4]!==l||e[5]!==d){let s;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(s=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=s):s=e[12],r=w.filter(s),o=U(r,"amount","Procurement Value");let a;e[13]!==d?(a=[...d],e[13]=d,e[14]=a):a=e[14];let f;e[15]!==y?(f=y.values(),e[15]=y,e[16]=f):f=e[16];let u;e[17]!==f?(u=[...f],e[17]=f,e[18]=u):u=e[18];let p;e[19]!==a||e[20]!==u?(p={availableYears:a,availableNrens:u},e[19]=a,e[20]=u,e[21]=p):p=e[21];let b;e[22]!==t||e[23]!==l||e[24]!==p?(b=h.jsx(q,{filterOptions:p,filterSelection:t,setFilterSelection:l}),e[22]=t,e[23]=l,e[24]=p,e[25]=b):b=e[25],n=b,N=Array.from(new Set(r.map(Q))),e[1]=w,e[2]=t,e[3]=y,e[4]=l,e[5]=d,e[6]=o,e[7]=n,e[8]=r,e[9]=N}else o=e[6],n=e[7],r=e[8],N=e[9];const P=N.length,R=Math.max(P*t.selectedYears.length*1.5+5,50);let S;e[26]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:"Some NRENs centrally procure software for their customers. The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs. Please note you can only see the select NRENs which carry out this type of procurement. Those who do not offer this are not selectable."}),e[26]=S):S=e[26];const B=S;let x;e[27]===Symbol.for("react.memo_cache_sentinel")?(x=J({title:"Software Procurement Value",valueTransform(s){return`${new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"}).format(s)}`}}),e[27]=x):x=e[27];const D=x,E=`${R}rem`;let i;e[28]!==E?(i={height:E},e[28]=E,e[29]=i):i=e[29];let _;e[30]===Symbol.for("react.memo_cache_sentinel")?(_=[G],e[30]=_):_=e[30];let c;e[31]!==o?(c=h.jsx(H,{data:o,options:D,plugins:_}),e[31]=o,e[32]=c):c=e[32];let m;e[33]!==i||e[34]!==c?(m=h.jsx(z,{children:h.jsx("div",{className:"chart-container",style:i,children:c})}),e[33]=i,e[34]=c,e[35]=m):m=e[35];let C;return e[36]!==n||e[37]!==r||e[38]!==m?(C=h.jsx(Z,{title:"Value of Software Procured for Customers by NRENs",description:B,category:K.Policy,filter:n,data:r,filename:"central_procurement",children:m}),e[36]=n,e[37]=r,e[38]=m,e[39]=C):C=e[39],C}function Q(e){return e.nren}export{ne as default};
diff --git a/compendium_v2/static/CentralProcurement-_z44vsb4.js b/compendium_v2/static/CentralProcurement-_z44vsb4.js
new file mode 100644
index 0000000000000000000000000000000000000000..ede8176ed7d472def42cfdc541584c6052d1d029
--- /dev/null
+++ b/compendium_v2/static/CentralProcurement-_z44vsb4.js
@@ -0,0 +1 @@
+import{c as Y,r as I,F as T,j as h,S as $,t as L}from"./index.js";import{C as O,a as V,L as k,B as A,p as M,c as U,d as Z,u as q,o as z,D as G,F as H,f as J}from"./useData-CxftshCa.js";import{p as K}from"./chartjs-plugin-datalabels.esm-CjG-nxnq.js";import{B as Q}from"./index-CjWPDfDC.js";import{a as W}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";O.register(V,k,A,M,U,Z);function ce(){const e=Y.c(40);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=s=>s.amount!=null,e[0]=g):g=e[0];const v=g,{filterSelection:t,setFilterSelection:l}=I.useContext(T),{data:w,years:d,nrens:y}=q("/api/central-procurement",l,v);let o,n,r,x;if(e[1]!==w||e[2]!==t||e[3]!==y||e[4]!==l||e[5]!==d){let s;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(s=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=s):s=e[12],r=w.filter(s),o=z(r,"amount","Procurement Value");let a;e[13]!==d?(a=[...d],e[13]=d,e[14]=a):a=e[14];let f;e[15]!==y?(f=y.values(),e[15]=y,e[16]=f):f=e[16];let u;e[17]!==f?(u=[...f],e[17]=f,e[18]=u):u=e[18];let p;e[19]!==a||e[20]!==u?(p={availableYears:a,availableNrens:u},e[19]=a,e[20]=u,e[21]=p):p=e[21];let b;e[22]!==t||e[23]!==l||e[24]!==p?(b=h.jsx(H,{filterOptions:p,filterSelection:t,setFilterSelection:l}),e[22]=t,e[23]=l,e[24]=p,e[25]=b):b=e[25],n=b,x=Array.from(new Set(r.map(X))),e[1]=w,e[2]=t,e[3]=y,e[4]=l,e[5]=d,e[6]=o,e[7]=n,e[8]=r,e[9]=x}else o=e[6],n=e[7],r=e[8],x=e[9];const P=x.length,B=Math.max(P*t.selectedYears.length*1.5+5,50),D=L["central-procurement"];let N;e[26]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("span",{children:"Some NRENs centrally procure software for their customers. The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs. Please note you can only see the select NRENs which carry out this type of procurement. Those who do not offer this are not selectable."}),e[26]=N):N=e[26];const F=N;let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=W({title:"Software Procurement Value",valueTransform(s){return`${new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"}).format(s)}`}}),e[27]=S):S=e[27];const R=S,E=`${B}rem`;let i;e[28]!==E?(i={height:E},e[28]=E,e[29]=i):i=e[29];let _;e[30]===Symbol.for("react.memo_cache_sentinel")?(_=[K],e[30]=_):_=e[30];let c;e[31]!==o?(c=h.jsx(Q,{data:o,options:R,plugins:_}),e[31]=o,e[32]=c):c=e[32];let m;e[33]!==i||e[34]!==c?(m=h.jsx(J,{children:h.jsx("div",{className:"chart-container",style:i,children:c})}),e[33]=i,e[34]=c,e[35]=m):m=e[35];let C;return e[36]!==n||e[37]!==r||e[38]!==m?(C=h.jsx(G,{title:D,description:F,category:$.Policy,filter:n,data:r,filename:"central_procurement",children:m}),e[36]=n,e[37]=r,e[38]=m,e[39]=C):C=e[39],C}function X(e){return e.nren}export{ce as default};
diff --git a/compendium_v2/static/CertificateProvider-B2MBeNfh.js b/compendium_v2/static/CertificateProvider-B2MBeNfh.js
deleted file mode 100644
index da4dd53c3fd252b337f7a262bfd978abff89dc96..0000000000000000000000000000000000000000
--- a/compendium_v2/static/CertificateProvider-B2MBeNfh.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as _,r as E,F as Y,j as N}from"./main-BIBsTO5W.js";import{u as j,g as k,D,F as P,f as T}from"./useData-BDYwoQEh.js";import{S as w}from"./report.js";import{P as F}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function B(){const e=_.c(29),{filterSelection:t,setFilterSelection:c}=E.useContext(Y),{data:S,years:x,nrens:b}=j("/api/certificate-providers",c);let s,n;if(e[0]!==S||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=y=>t.selectedYears.includes(y.year)&&t.selectedNrens.includes(y.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=S.filter(u),n=k(s,"provider_names"),e[0]=S,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=n}else s=e[3],n=e[4];const C=n;let r;e[8]!==x?(r=[...x],e[8]=x,e[9]=r):r=e[9];let i;e[10]!==b?(i=b.values(),e[10]=b,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let o;e[14]!==r||e[15]!==l?(o={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=o):o=e[16];let f;e[17]!==t||e[18]!==c||e[19]!==o?(f=N.jsx(P,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=o,e[20]=f):f=e[20];const v=f;let d;e[21]===Symbol.for("react.memo_cache_sentinel")?(d=["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],e[21]=d):d=e[21];const g=d;let m;e[22]===Symbol.for("react.memo_cache_sentinel")?(m=new Map([["Sectigo (outside of TCS)","Sectigo"]]),e[22]=m):m=e[22];const h=m;let a;e[23]!==C?(a=N.jsx(T,{children:N.jsx(F,{columns:g,dataLookup:C,circle:!0,columnLookup:h})}),e[23]=C,e[24]=a):a=e[24];let p;return e[25]!==v||e[26]!==s||e[27]!==a?(p=N.jsx(D,{title:"Certification Services used by NRENs ",description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:w.Network,filter:v,data:s,filename:"certificate_provider_nrens_per_year",children:a}),e[25]=v,e[26]=s,e[27]=a,e[28]=p):p=e[28],p}export{B as default};
diff --git a/compendium_v2/static/CertificateProvider-CpWnMPbq.js b/compendium_v2/static/CertificateProvider-CpWnMPbq.js
new file mode 100644
index 0000000000000000000000000000000000000000..fd53cd70634086e944be5654ff1b33be2139b71c
--- /dev/null
+++ b/compendium_v2/static/CertificateProvider-CpWnMPbq.js
@@ -0,0 +1 @@
+import{c as _,r as Y,F as j,j as S,t as k,S as D}from"./index.js";import{u as E,g as P,D as T,F as w,f as F}from"./useData-CxftshCa.js";import{P as L}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function G(){const e=_.c(29),{filterSelection:t,setFilterSelection:c}=Y.useContext(j),{data:N,years:x,nrens:b}=E("/api/certificate-providers",c);let s,n;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=N.filter(u),n=P(s,"provider_names"),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=n}else s=e[3],n=e[4];const v=n;let r;e[8]!==x?(r=[...x],e[8]=x,e[9]=r):r=e[9];let i;e[10]!==b?(i=b.values(),e[10]=b,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let o;e[14]!==r||e[15]!==l?(o={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=o):o=e[16];let f;e[17]!==t||e[18]!==c||e[19]!==o?(f=S.jsx(w,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=o,e[20]=f):f=e[20];const C=f;let d;e[21]===Symbol.for("react.memo_cache_sentinel")?(d=["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],e[21]=d):d=e[21];const h=d;let p;e[22]===Symbol.for("react.memo_cache_sentinel")?(p=new Map([["Sectigo (outside of TCS)","Sectigo"]]),e[22]=p):p=e[22];const y=p;let a;e[23]!==v?(a=S.jsx(F,{children:S.jsx(L,{columns:h,dataLookup:v,circle:!0,columnLookup:y})}),e[23]=v,e[24]=a):a=e[24];let m;return e[25]!==C||e[26]!==s||e[27]!==a?(m=S.jsx(T,{title:k["certificate-provider"],description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:D.Network,filter:C,data:s,filename:"certificate_provider_nrens_per_year",children:a}),e[25]=C,e[26]=s,e[27]=a,e[28]=m):m=e[28],m}export{G as default};
diff --git a/compendium_v2/static/ChargingStructure-BiXVfonj.js b/compendium_v2/static/ChargingStructure-BiXVfonj.js
new file mode 100644
index 0000000000000000000000000000000000000000..cde4fb9fc11a5c1d7b36b5de44d04d4de46e42dc
--- /dev/null
+++ b/compendium_v2/static/ChargingStructure-BiXVfonj.js
@@ -0,0 +1,3 @@
+import{c as Y,r as j,F as v,j as p,t as E,S as F}from"./index.js";import{u as D,g as R,D as k,F as w,f as P}from"./useData-CxftshCa.js";import{P as T}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function G(){const e=Y.c(29),C=L,{filterSelection:t,setFilterSelection:c}=j.useContext(v),{data:g,years:b,nrens:N}=D("/api/charging",c,C);let a,f;if(e[0]!==g||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],a=g.filter(m),f=R(a,"fee_type"),e[0]=g,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=f}else a=e[3],f=e[4];const _=f;let r;e[8]!==b?(r=[...b],e[8]=b,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let n;e[14]!==r||e[15]!==l?(n={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=n):n=e[16];let u;e[17]!==t||e[18]!==c||e[19]!==n?(u=p.jsx(w,{filterOptions:n,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=n,e[20]=u):u=e[20];const y=u;let s,d;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],d=new Map([[s[0],"flat_fee"],[s[1],"usage_based_fee"],[s[2],"combination"],[s[3],"no_charge"],[s[4],"other"]]),e[21]=s,e[22]=d):(s=e[21],d=e[22]);const S=d;let o;e[23]!==_?(o=p.jsx(P,{children:p.jsx(T,{columns:s,dataLookup:_,columnLookup:S})}),e[23]=_,e[24]=o):o=e[24];let h;return e[25]!==y||e[26]!==a||e[27]!==o?(h=p.jsx(k,{title:E.charging,description:`The charging structure is the way in which NRENs charge their customers for the services they provide.
+         The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. 
+         By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.`,category:F.Organisation,filter:y,data:a,filename:"charging_mechanism_of_nrens_per_year",children:o}),e[25]=y,e[26]=a,e[27]=o,e[28]=h):h=e[28],h}function L(e){return e.fee_type!=null}export{G as default};
diff --git a/compendium_v2/static/ChargingStructure-UaYN2mUD.js b/compendium_v2/static/ChargingStructure-UaYN2mUD.js
deleted file mode 100644
index d97aa284912837216b1147f7a38ee6e1213491ea..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ChargingStructure-UaYN2mUD.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import{a as S,r as Y,F as j,j as p}from"./main-BIBsTO5W.js";import{u as v,g as F,D as R,F as D,f as k}from"./useData-BDYwoQEh.js";import{S as w}from"./report.js";import{P}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function A(){const e=S.c(29),C=T,{filterSelection:t,setFilterSelection:c}=Y.useContext(j),{data:g,years:b,nrens:N}=v("/api/charging",c,C);let a,f;if(e[0]!==g||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let h;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(h=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=h):h=e[7],a=g.filter(h),f=F(a,"fee_type"),e[0]=g,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=f}else a=e[3],f=e[4];const _=f;let r;e[8]!==b?(r=[...b],e[8]=b,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let n;e[14]!==r||e[15]!==l?(n={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=n):n=e[16];let u;e[17]!==t||e[18]!==c||e[19]!==n?(u=p.jsx(D,{filterOptions:n,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=n,e[20]=u):u=e[20];const y=u;let s,d;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],d=new Map([[s[0],"flat_fee"],[s[1],"usage_based_fee"],[s[2],"combination"],[s[3],"no_charge"],[s[4],"other"]]),e[21]=s,e[22]=d):(s=e[21],d=e[22]);const E=d;let o;e[23]!==_?(o=p.jsx(k,{children:p.jsx(P,{columns:s,dataLookup:_,columnLookup:E})}),e[23]=_,e[24]=o):o=e[24];let m;return e[25]!==y||e[26]!==a||e[27]!==o?(m=p.jsx(R,{title:"Charging Mechanism of NRENs",description:`The charging structure is the way in which NRENs charge their customers for the services they provide.
-         The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. 
-         By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.`,category:w.Organisation,filter:y,data:a,filename:"charging_mechanism_of_nrens_per_year",children:o}),e[25]=y,e[26]=a,e[27]=o,e[28]=m):m=e[28],m}function T(e){return e.fee_type!=null}export{A as default};
diff --git a/compendium_v2/static/ColorPill-CXvWIfWz.js b/compendium_v2/static/ColorPill-CXvWIfWz.js
new file mode 100644
index 0000000000000000000000000000000000000000..8a6c0af388c700b170e37c55a5cc5e009fc7a7f7
--- /dev/null
+++ b/compendium_v2/static/ColorPill-CXvWIfWz.js
@@ -0,0 +1 @@
+import{c as m,j as a}from"./index.js";function f(p){const t=m.c(10),{year:e,active:s,tooltip:i,rounded:c}=p,n=(c===void 0?!1:c)?"30px":"75px";let d;t[0]!==n?(d={width:n,height:"30px",margin:"2px"},t[0]=n,t[1]=d):d=t[1];const l=d;let o;t[2]!==s||t[3]!==l||t[4]!==i||t[5]!==e?(o=s&&i?a.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip pill-shadow`,style:l,"data-description":`${e}: ${i}`}):s?a.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip-small`,style:l,"data-description":e}):a.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:l}),t[2]=s,t[3]=l,t[4]=i,t[5]=e,t[6]=o):o=t[6];let r;return t[7]!==o||t[8]!==e?(r=a.jsx("div",{className:"d-inline-block",children:o},e),t[7]=o,t[8]=e,t[9]=r):r=t[9],r}export{f as C};
diff --git a/compendium_v2/static/ColorPill-CqT_mR3a.js b/compendium_v2/static/ColorPill-CqT_mR3a.js
deleted file mode 100644
index 71a660aff4adaad66df0a2e9bf28168cf6b7c9ad..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ColorPill-CqT_mR3a.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as m,j as r}from"./main-BIBsTO5W.js";function f(p){const t=m.c(10),{year:e,active:s,tooltip:i,rounded:c}=p,n=(c===void 0?!1:c)?"30px":"75px";let a;t[0]!==n?(a={width:n,height:"30px",margin:"2px"},t[0]=n,t[1]=a):a=t[1];const l=a;let o;t[2]!==s||t[3]!==l||t[4]!==i||t[5]!==e?(o=s&&i?r.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip pill-shadow`,style:l,"data-description":`${e}: ${i}`}):s?r.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip-small`,style:l,"data-description":e}):r.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:l}),t[2]=s,t[3]=l,t[4]=i,t[5]=e,t[6]=o):o=t[6];let d;return t[7]!==o||t[8]!==e?(d=r.jsx("div",{className:"d-inline-block",children:o},e),t[7]=o,t[8]=e,t[9]=d):d=t[9],d}export{f as C};
diff --git a/compendium_v2/static/ConnectedInstitutionsURLs-BSBw8xZy.js b/compendium_v2/static/ConnectedInstitutionsURLs-BSBw8xZy.js
new file mode 100644
index 0000000000000000000000000000000000000000..3648f8eaaa987c83728b7ff72ed803305bff87d0
--- /dev/null
+++ b/compendium_v2/static/ConnectedInstitutionsURLs-BSBw8xZy.js
@@ -0,0 +1 @@
+import{c as g,r as y,F as C,j as x,t as L,S as R}from"./index.js";import{u as S,q as k,k as v,i as F,D as T,F as U,f as w,s as E}from"./useData-CxftshCa.js";import{N as O}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function G(){const t=g.c(24),{filterSelection:e,setFilterSelection:s}=y.useContext(C),{data:i,nrens:a}=S("/api/institution-urls",s);let n,o,u;if(t[0]!==i||t[1]!==e||t[2]!==a||t[3]!==s){const j=i?k(i):[];let d;t[7]!==e.selectedNrens?(d=N=>e.selectedNrens.includes(N.nren),t[7]=e.selectedNrens,t[8]=d):d=t[8];const D=j.filter(d),h=v(D);n=F(h,_);let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=[],t[9]=m):m=t[9];let l;t[10]!==a?(l=a.values(),t[10]=a,t[11]=l):l=t[11];let c;t[12]!==l?(c={availableYears:m,availableNrens:[...l]},t[12]=l,t[13]=c):c=t[13];let p;t[14]!==e||t[15]!==s||t[16]!==c?(p=x.jsx(U,{filterOptions:c,filterSelection:e,setFilterSelection:s}),t[14]=e,t[15]=s,t[16]=c,t[17]=p):p=t[17],o=p,u=D.map(Y),t[0]=i,t[1]=e,t[2]=a,t[3]=s,t[4]=n,t[5]=o,t[6]=u}else n=t[4],o=t[5],u=t[6];const b=u;let r;t[18]!==n?(r=x.jsx(w,{children:x.jsx(O,{data:n,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})}),t[18]=n,t[19]=r):r=t[19];let f;return t[20]!==b||t[21]!==o||t[22]!==r?(f=x.jsx(T,{title:L["institutions-urls"],description:"Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.",category:R.ConnectedUsers,filter:o,data:b,filename:"institution_urls",children:r}),t[20]=b,t[21]=o,t[22]=r,t[23]=f):f=t[23],f}function Y(t){return{...t,urls:(t.urls??[]).join(", ")}}function _(t,e){const s=E(e);if(s!=null)for(const[i,a]of Object.entries(s))t[i]=a}export{G as default};
diff --git a/compendium_v2/static/ConnectedInstitutionsURLs-BSMQXsFI.js b/compendium_v2/static/ConnectedInstitutionsURLs-BSMQXsFI.js
deleted file mode 100644
index e679f0910e05e03a736f12db590719e96a7b33ec..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ConnectedInstitutionsURLs-BSMQXsFI.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as h,r as y,F as C,j as x}from"./main-BIBsTO5W.js";import{u as L,q as R,k,i as S,D as v,F as w,f as E,s as F}from"./useData-BDYwoQEh.js";import{S as O}from"./report.js";import{N as T}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function $(){const t=h.c(24),{filterSelection:e,setFilterSelection:s}=y.useContext(C),{data:n,nrens:a}=L("/api/institution-urls",s);let i,o,u;if(t[0]!==n||t[1]!==e||t[2]!==a||t[3]!==s){const g=n?R(n):[];let d;t[7]!==e.selectedNrens?(d=j=>e.selectedNrens.includes(j.nren),t[7]=e.selectedNrens,t[8]=d):d=t[8];const N=g.filter(d),D=k(N);i=S(D,Y);let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=[],t[9]=m):m=t[9];let l;t[10]!==a?(l=a.values(),t[10]=a,t[11]=l):l=t[11];let c;t[12]!==l?(c={availableYears:m,availableNrens:[...l]},t[12]=l,t[13]=c):c=t[13];let p;t[14]!==e||t[15]!==s||t[16]!==c?(p=x.jsx(w,{filterOptions:c,filterSelection:e,setFilterSelection:s}),t[14]=e,t[15]=s,t[16]=c,t[17]=p):p=t[17],o=p,u=N.map(U),t[0]=n,t[1]=e,t[2]=a,t[3]=s,t[4]=i,t[5]=o,t[6]=u}else i=t[4],o=t[5],u=t[6];const b=u;let r;t[18]!==i?(r=x.jsx(E,{children:x.jsx(T,{data:i,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})}),t[18]=i,t[19]=r):r=t[19];let f;return t[20]!==b||t[21]!==o||t[22]!==r?(f=x.jsx(v,{title:"Webpages Listing Institutions and Organisations Connected to NREN Networks",description:"Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.",category:O.ConnectedUsers,filter:o,data:b,filename:"institution_urls",children:r}),t[20]=b,t[21]=o,t[22]=r,t[23]=f):f=t[23],f}function U(t){return{...t,urls:(t.urls??[]).join(", ")}}function Y(t,e){const s=F(e);if(s!=null)for(const[n,a]of Object.entries(s))t[n]=a}export{$ as default};
diff --git a/compendium_v2/static/ConnectedUser-BEMGNK1Q.js b/compendium_v2/static/ConnectedUser-BEMGNK1Q.js
deleted file mode 100644
index 641919a80ce192d40a4bad28c22520218c0802cc..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ConnectedUser-BEMGNK1Q.js
+++ /dev/null
@@ -1 +0,0 @@
-import{j as o,L as O,a as U,r as Y,F}from"./main-BIBsTO5W.js";import{C as t,S as D,a as I,b as P,U as L}from"./report.js";import{u as G,r as m,D as A,F as $,f as q}from"./useData-BDYwoQEh.js";import{S as B}from"./ScrollableMatrix-Cdgj4J9X.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";const S={[t.ConnectedProportion]:"Proportion of Different Categories of Institutions Served by NRENs",[t.ConnectivityLevel]:"Level of IP Connectivity by Institution Type",[t.ConnectionCarrier]:"Methods of Carrying IP Traffic to Users",[t.ConnectivityLoad]:"Connectivity Load",[t.ConnectivityGrowth]:"Connectivity Growth",[t.CommercialChargingLevel]:"Commercial Charging Level",[t.CommercialConnectivity]:"Commercial Connectivity"},z={[t.ConnectedProportion]:o.jsxs("span",{children:["European NRENs all have different connectivity remits, as is shown in the table below. The categories of institutions make use of the ISCED 2011 classification system, the UNESCO scheme for International Standard Classification of Education.",o.jsx("br",{}),"The table shows whether a particular category of institution falls within the connectivity remit of the NREN, the actual number of such institutions connected, the % market share this represents, and the actual number of end users served in the category."]}),[t.ConnectivityLevel]:o.jsxs("span",{children:["The table below shows the average level of connectivity for each category of institution. The connectivity remit of different NRENs is shown on a different page, and NRENs are asked, at a minimum, to provide information about the typical and highest capacities (in Mbit/s) at which Universities and Research Institutes are connected.",o.jsx("br",{}),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer."]}),[t.ConnectionCarrier]:o.jsxs("span",{children:["The table below shows the different mechanisms employed by NRENs to carry traffic to the different types of users they serve. Not all NRENs connect all of the types of institution listed below - details of connectivity remits can be found here: ",o.jsx(O,{to:"/connected-proportion",className:"",children:o.jsx("span",{children:S[t.ConnectedProportion]})})]}),[t.ConnectivityLoad]:o.jsx("span",{children:"The table below shows the traffic load in Mbit/s to and from institutions served by NRENs; both the average load, and peak load, when given. The types of institutions are broken down using the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education), plus other types."}),[t.ConnectivityGrowth]:o.jsx("span",{children:"The table below illustrates the anticipated traffic growth within NREN networks over the next three years."}),[t.CommercialChargingLevel]:o.jsx("span",{children:"The table below outlines the typical charging levels for various types of commercial connections."}),[t.CommercialConnectivity]:o.jsx("span",{children:"The table below outlines the types of commercial organizations NRENs connect."})},R={[t.ConnectedProportion]:{"Remit cover connectivity":"coverage","Number of institutions connected":"number_connected","Percentage market share of institutions connected":"market_share","Number of users served":"users_served"},[t.ConnectivityLevel]:{"Typical link speed (Mbit/s):":"typical_speed","Highest speed link (Mbit/s):":"highest_speed","Proportionally how many institutions in this category are connected at the highest capacity? (%):":"highest_speed_proportion"},[t.ConnectionCarrier]:{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"},[t.ConnectivityLoad]:{"Average Load From Institutions (Mbit/s)":"average_load_from_institutions","Average Load To Institutions (Mbit/s)":"average_load_to_institutions","Peak Load To Institution (Mbit/s)":"peak_load_to_institutions","Peak Load From Institution (Mbit/s)":"peak_load_from_institutions"},[t.ConnectivityGrowth]:{"Percentage growth":"growth"},[t.CommercialChargingLevel]:{"No charges applied if requested by R&E users":"no_charges_if_r_e_requested","Same charging model as for R&E users":"same_as_r_e_charges","Charges typically higher than for R&E users":"higher_than_r_e_charges","Charges typically lower than for R&E users":"lower_than_r_e_charges"},[t.CommercialConnectivity]:{"No - but we offer a direct or IX peering":"no_but_direct_peering","No - not eligible for policy reasons":"no_policy","No - financial restrictions (NREN is unable to charge/recover costs)":"no_financial","No - other reason / unsure":"no_other","Yes - National NREN access only":"yes_national_nren","Yes - Including transit to other networks":"yes_incl_other","Yes - only if sponsored by a connected institution":"yes_if_sponsored"}};function ee(T){const e=U.c(36),{page:i}=T,M=`/api/connected-${i.toString()}`,{filterSelection:n,setFilterSelection:u}=Y.useContext(F),{data:v,years:b,nrens:_}=G(M,u);let r,a,c,s;if(e[0]!==v||e[1]!==n.selectedNrens||e[2]!==n.selectedYears||e[3]!==i){let C;e[8]!==n.selectedNrens||e[9]!==n.selectedYears?(C=j=>n.selectedYears.includes(j.year)&&n.selectedNrens.includes(j.nren),e[8]=n.selectedNrens,e[9]=n.selectedYears,e[10]=C):C=e[10],s=v.filter(C),c=!1,i==t.CommercialConnectivity?(r=I,c=!0,a=m(s,Object.keys(I),void 0)):i==t.CommercialChargingLevel?(r=P,c=!0,a=m(s,Object.keys(P),void 0)):i==t.ConnectionCarrier?(r=L,c=!0,a=m(s,["carry_mechanism"],"user_category")):i==t.ConnectedProportion?(r=L,a=m(s,Object.values(R[i]),"user_category",!1)):(r=L,a=m(s,Object.values(R[i]),"user_category",!1)),e[0]=v,e[1]=n.selectedNrens,e[2]=n.selectedYears,e[3]=i,e[4]=r,e[5]=a,e[6]=c,e[7]=s}else r=e[4],a=e[5],c=e[6],s=e[7];let l;e[11]!==b?(l=[...b],e[11]=b,e[12]=l):l=e[12];let h;e[13]!==_?(h=_.values(),e[13]=_,e[14]=h):h=e[14];let d;e[15]!==h?(d=[...h],e[15]=h,e[16]=d):d=e[16];let f;e[17]!==l||e[18]!==d?(f={availableYears:l,availableNrens:d},e[17]=l,e[18]=d,e[19]=f):f=e[19];let y;e[20]!==n||e[21]!==u||e[22]!==f?(y=o.jsx($,{filterOptions:f,filterSelection:n,setFilterSelection:u}),e[20]=n,e[21]=u,e[22]=f,e[23]=y):y=e[23];const N=y,w=R[i],E=`nren_connected_${i.toString()}`,k=S[i],x=z[i];let p;e[24]!==r||e[25]!==a||e[26]!==c||e[27]!==w?(p=o.jsx(q,{children:o.jsx(B,{dataLookup:a,rowInfo:w,isTickIcon:c,categoryLookup:r})}),e[24]=r,e[25]=a,e[26]=c,e[27]=w,e[28]=p):p=e[28];let g;return e[29]!==E||e[30]!==N||e[31]!==s||e[32]!==k||e[33]!==x||e[34]!==p?(g=o.jsx(A,{title:k,description:x,category:D.ConnectedUsers,filter:N,data:s,filename:E,children:p}),e[29]=E,e[30]=N,e[31]=s,e[32]=k,e[33]=x,e[34]=p,e[35]=g):g=e[35],g}export{ee as default};
diff --git a/compendium_v2/static/ConnectedUser-DXYx3bSL.js b/compendium_v2/static/ConnectedUser-DXYx3bSL.js
new file mode 100644
index 0000000000000000000000000000000000000000..c01b304d783d4fe1a986b6d5b0f640fa98b81156
--- /dev/null
+++ b/compendium_v2/static/ConnectedUser-DXYx3bSL.js
@@ -0,0 +1 @@
+import{a as t,t as l,j as o,L as Y,c as F,r as U,F as D,S as A,b as T,d as P,U as j}from"./index.js";import{u as G,r as u,D as $,F as q,f as B}from"./useData-CxftshCa.js";import{S as z}from"./ScrollableMatrix-Dxr22l4i.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";const I={[t.ConnectedProportion]:l["connected-proportion"],[t.ConnectivityLevel]:l["connectivity-level"],[t.ConnectionCarrier]:l["connection-carrier"],[t.ConnectivityLoad]:l["connectivity-load"],[t.ConnectivityGrowth]:l["connectivity-growth"],[t.CommercialChargingLevel]:l["commercial-charging-level"],[t.CommercialConnectivity]:l["commercial-connectivity"]},H={[t.ConnectedProportion]:o.jsxs("span",{children:["European NRENs all have different connectivity remits, as is shown in the table below. The categories of institutions make use of the ISCED 2011 classification system, the UNESCO scheme for International Standard Classification of Education.",o.jsx("br",{}),"The table shows whether a particular category of institution falls within the connectivity remit of the NREN, the actual number of such institutions connected, the % market share this represents, and the actual number of end users served in the category."]}),[t.ConnectivityLevel]:o.jsxs("span",{children:["The table below shows the average level of connectivity for each category of institution. The connectivity remit of different NRENs is shown on a different page, and NRENs are asked, at a minimum, to provide information about the typical and highest capacities (in Mbit/s) at which Universities and Research Institutes are connected.",o.jsx("br",{}),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer."]}),[t.ConnectionCarrier]:o.jsxs("span",{children:["The table below shows the different mechanisms employed by NRENs to carry traffic to the different types of users they serve. Not all NRENs connect all of the types of institution listed below - details of connectivity remits can be found here: ",o.jsx(Y,{to:"/connected-proportion",className:"",children:o.jsx("span",{children:I[t.ConnectedProportion]})})]}),[t.ConnectivityLoad]:o.jsx("span",{children:"The table below shows the traffic load in Mbit/s to and from institutions served by NRENs; both the average load, and peak load, when given. The types of institutions are broken down using the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education), plus other types."}),[t.ConnectivityGrowth]:o.jsx("span",{children:"The table below illustrates the anticipated traffic growth within NREN networks over the next three years."}),[t.CommercialChargingLevel]:o.jsx("span",{children:"The table below outlines the typical charging levels for various types of commercial connections."}),[t.CommercialConnectivity]:o.jsx("span",{children:"The table below outlines the types of commercial organizations NRENs connect."})},L={[t.ConnectedProportion]:{"Remit cover connectivity":"coverage","Number of institutions connected":"number_connected","Percentage market share of institutions connected":"market_share","Number of users served":"users_served"},[t.ConnectivityLevel]:{"Typical link speed (Mbit/s):":"typical_speed","Highest speed link (Mbit/s):":"highest_speed","Proportionally how many institutions in this category are connected at the highest capacity? (%):":"highest_speed_proportion"},[t.ConnectionCarrier]:{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"},[t.ConnectivityLoad]:{"Average Load From Institutions (Mbit/s)":"average_load_from_institutions","Average Load To Institutions (Mbit/s)":"average_load_to_institutions","Peak Load To Institution (Mbit/s)":"peak_load_to_institutions","Peak Load From Institution (Mbit/s)":"peak_load_from_institutions"},[t.ConnectivityGrowth]:{"Percentage growth":"growth"},[t.CommercialChargingLevel]:{"No charges applied if requested by R&E users":"no_charges_if_r_e_requested","Same charging model as for R&E users":"same_as_r_e_charges","Charges typically higher than for R&E users":"higher_than_r_e_charges","Charges typically lower than for R&E users":"lower_than_r_e_charges"},[t.CommercialConnectivity]:{"No - but we offer a direct or IX peering":"no_but_direct_peering","No - not eligible for policy reasons":"no_policy","No - financial restrictions (NREN is unable to charge/recover costs)":"no_financial","No - other reason / unsure":"no_other","Yes - National NREN access only":"yes_national_nren","Yes - Including transit to other networks":"yes_incl_other","Yes - only if sponsored by a connected institution":"yes_if_sponsored"}};function te(M){const e=F.c(36),{page:n}=M,O=`/api/connected-${n.toString()}`,{filterSelection:i,setFilterSelection:y}=U.useContext(D),{data:_,years:b,nrens:N}=G(O,y);let r,a,c,s;if(e[0]!==_||e[1]!==i.selectedNrens||e[2]!==i.selectedYears||e[3]!==n){let C;e[8]!==i.selectedNrens||e[9]!==i.selectedYears?(C=S=>i.selectedYears.includes(S.year)&&i.selectedNrens.includes(S.nren),e[8]=i.selectedNrens,e[9]=i.selectedYears,e[10]=C):C=e[10],s=_.filter(C),c=!1,n==t.CommercialConnectivity?(r=T,c=!0,a=u(s,Object.keys(T),void 0)):n==t.CommercialChargingLevel?(r=P,c=!0,a=u(s,Object.keys(P),void 0)):n==t.ConnectionCarrier?(r=j,c=!0,a=u(s,["carry_mechanism"],"user_category")):n==t.ConnectedProportion?(r=j,a=u(s,Object.values(L[n]),"user_category",!1)):(r=j,a=u(s,Object.values(L[n]),"user_category",!1)),e[0]=_,e[1]=i.selectedNrens,e[2]=i.selectedYears,e[3]=n,e[4]=r,e[5]=a,e[6]=c,e[7]=s}else r=e[4],a=e[5],c=e[6],s=e[7];let h;e[11]!==b?(h=[...b],e[11]=b,e[12]=h):h=e[12];let d;e[13]!==N?(d=N.values(),e[13]=N,e[14]=d):d=e[14];let f;e[15]!==d?(f=[...d],e[15]=d,e[16]=f):f=e[16];let p;e[17]!==h||e[18]!==f?(p={availableYears:h,availableNrens:f},e[17]=h,e[18]=f,e[19]=p):p=e[19];let g;e[20]!==i||e[21]!==y||e[22]!==p?(g=o.jsx(q,{filterOptions:p,filterSelection:i,setFilterSelection:y}),e[20]=i,e[21]=y,e[22]=p,e[23]=g):g=e[23];const w=g,E=L[n],k=`nren_connected_${n.toString()}`,x=I[n],R=H[n];let m;e[24]!==r||e[25]!==a||e[26]!==c||e[27]!==E?(m=o.jsx(B,{children:o.jsx(z,{dataLookup:a,rowInfo:E,isTickIcon:c,categoryLookup:r})}),e[24]=r,e[25]=a,e[26]=c,e[27]=E,e[28]=m):m=e[28];let v;return e[29]!==k||e[30]!==w||e[31]!==s||e[32]!==x||e[33]!==R||e[34]!==m?(v=o.jsx($,{title:x,description:R,category:A.ConnectedUsers,filter:w,data:s,filename:k,children:m}),e[29]=k,e[30]=w,e[31]=s,e[32]=x,e[33]=R,e[34]=m,e[35]=v):v=e[35],v}export{te as default};
diff --git a/compendium_v2/static/CorporateStrategy-BrErbevP.js b/compendium_v2/static/CorporateStrategy-BrErbevP.js
new file mode 100644
index 0000000000000000000000000000000000000000..81eaf37ea401be92a2a1ab2b087a41b225fb0435
--- /dev/null
+++ b/compendium_v2/static/CorporateStrategy-BrErbevP.js
@@ -0,0 +1,3 @@
+import{c as k,r as C,F as j,j as y,t as E,S as F}from"./index.js";import{u as R,q as T,k as Y,i as w,D as L,F as P,f as B}from"./useData-CxftshCa.js";import{N as q}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function J(){const e=k.c(23);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=x=>!!x.strategic_plan,e[0]=l):l=e[0];const b=l,{filterSelection:t,setFilterSelection:i}=C.useContext(j),{data:n,nrens:h}=R("/api/policy",i,b);let a,c;if(e[1]!==n||e[2]!==t.selectedNrens){const x=n?T(n):[];let d;e[5]!==t.selectedNrens?(d=D=>t.selectedNrens.includes(D.nren),e[5]=t.selectedNrens,e[6]=d):d=e[6],a=x.filter(d);const v=Y(a);let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=(D,S)=>{const _=S.strategic_plan;D[_]=_},e[7]=u):u=e[7],c=w(v,u),e[1]=n,e[2]=t.selectedNrens,e[3]=a,e[4]=c}else a=e[3],c=e[4];const g=c;let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[8]=p):p=e[8];let s;e[9]!==h?(s=h.values(),e[9]=h,e[10]=s):s=e[10];let r;e[11]!==s?(r={availableYears:p,availableNrens:[...s]},e[11]=s,e[12]=r):r=e[12];let m;e[13]!==t||e[14]!==i||e[15]!==r?(m=y.jsx(P,{filterOptions:r,filterSelection:t,setFilterSelection:i}),e[13]=t,e[14]=i,e[15]=r,e[16]=m):m=e[16];const N=m;let o;e[17]!==g?(o=y.jsx(B,{children:y.jsx(q,{data:g,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[17]=g,e[18]=o):o=e[18];let f;return e[19]!==N||e[20]!==a||e[21]!==o?(f=y.jsx(L,{title:E["corporate-strategy"],description:`The table below contains links to the NRENs most recent corporate strategic plans. 
+            NRENs are asked if updates have been made to their corporate strategy over the previous year. 
+            To avoid showing outdated links, only the most recent responses are shown.`,category:F.Policy,filter:N,data:a,filename:"nren_corporate_strategy",children:o}),e[19]=N,e[20]=a,e[21]=o,e[22]=f):f=e[22],f}export{J as default};
diff --git a/compendium_v2/static/CorporateStrategy-Doz2JleE.js b/compendium_v2/static/CorporateStrategy-Doz2JleE.js
deleted file mode 100644
index 4680cf3ccbdcdc7f4312a0234c4d397a14d79176..0000000000000000000000000000000000000000
--- a/compendium_v2/static/CorporateStrategy-Doz2JleE.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import{a as C,r as k,F as j,j as y}from"./main-BIBsTO5W.js";import{u as E,q as R,k as F,i as T,D as Y,F as w,f as L}from"./useData-BDYwoQEh.js";import{S as P}from"./report.js";import{N as B}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function I(){const e=C.c(23);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=x=>!!x.strategic_plan,e[0]=l):l=e[0];const _=l,{filterSelection:t,setFilterSelection:i}=k.useContext(j),{data:n,nrens:h}=E("/api/policy",i,_);let a,c;if(e[1]!==n||e[2]!==t.selectedNrens){const x=n?R(n):[];let d;e[5]!==t.selectedNrens?(d=D=>t.selectedNrens.includes(D.nren),e[5]=t.selectedNrens,e[6]=d):d=e[6],a=x.filter(d);const b=F(a);let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=(D,v)=>{const S=v.strategic_plan;D[S]=S},e[7]=u):u=e[7],c=T(b,u),e[1]=n,e[2]=t.selectedNrens,e[3]=a,e[4]=c}else a=e[3],c=e[4];const N=c;let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[8]=p):p=e[8];let s;e[9]!==h?(s=h.values(),e[9]=h,e[10]=s):s=e[10];let r;e[11]!==s?(r={availableYears:p,availableNrens:[...s]},e[11]=s,e[12]=r):r=e[12];let m;e[13]!==t||e[14]!==i||e[15]!==r?(m=y.jsx(w,{filterOptions:r,filterSelection:t,setFilterSelection:i}),e[13]=t,e[14]=i,e[15]=r,e[16]=m):m=e[16];const g=m;let o;e[17]!==N?(o=y.jsx(L,{children:y.jsx(B,{data:N,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[17]=N,e[18]=o):o=e[18];let f;return e[19]!==g||e[20]!==a||e[21]!==o?(f=y.jsx(Y,{title:"NREN Corporate Strategies",description:`The table below contains links to the NRENs most recent corporate strategic plans. 
-            NRENs are asked if updates have been made to their corporate strategy over the previous year. 
-            To avoid showing outdated links, only the most recent responses are shown.`,category:P.Policy,filter:g,data:a,filename:"nren_corporate_strategy",children:o}),e[19]=g,e[20]=a,e[21]=o,e[22]=f):f=e[22],f}export{I as default};
diff --git a/compendium_v2/static/CrisisExercises-DIq1DMCc.js b/compendium_v2/static/CrisisExercises-DIq1DMCc.js
deleted file mode 100644
index af8e057fd9050109eb9d707e945b092080ccd8f2..0000000000000000000000000000000000000000
--- a/compendium_v2/static/CrisisExercises-DIq1DMCc.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{a as F,r as R,F as S,j}from"./main-BIBsTO5W.js";import{u as D,g as L,F as M,D as O,f as A}from"./useData-BDYwoQEh.js";import{S as G}from"./report.js";import{P as V}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function X(){const e=F.c(51),{filterSelection:t,setFilterSelection:i}=R.useContext(S),{data:C,years:W,nrens:T}=D("/api/crisis-exercises",i);let s,w;if(e[0]!==C||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=P=>t.selectedYears.includes(P.year)&&t.selectedNrens.includes(P.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=C.filter(r),w=L(s,"exercise_descriptions"),e[0]=C,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=w}else s=e[3],w=e[4];const Y=w;let a;e[8]!==W?(a=[...W],e[8]=W,e[9]=a):a=e[9];let l;e[10]!==T?(l=T.values(),e[10]=T,e[11]=l):l=e[11];let n;e[12]!==l?(n=[...l],e[12]=l,e[13]=n):n=e[13];let o;e[14]!==a||e[15]!==n?(o={availableYears:a,availableNrens:n},e[14]=a,e[15]=n,e[16]=o):o=e[16];let v;e[17]!==t||e[18]!==i||e[19]!==o?(v=j.jsx(M,{filterOptions:o,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=o,e[20]=v):v=e[20];const k=v;let c,p,u,d,m,x,f,h,N,_,y;if(e[21]!==k||e[22]!==s){const r={geant_workshops:"We participate in GEANT Crisis workshops such as CLAW",national_excercises:"We participated in National crisis exercises ",tabletop_exercises:"We run our own tabletop exercises",simulation_excercises:"We run our own simulation exercises",other_excercises:"We have done/participated in other exercises or trainings",real_crisis:"We had a real crisis",internal_security_programme:"We run an internal security awareness programme",none:"No, we have not done any crisis exercises or trainings"};d=new Map(Object.entries(r).map($)),u=O,N="Crisis Exercises - NREN Operation and Participation",_=`Many NRENs run or participate in crisis exercises to test procedures and train employees. 
-            The table below shows whether NRENs have run or participated in an exercise in the previous year. `,y=G.Policy,m=k,x=s,f="crisis_exercise_nrens_per_year",p=A,c=V,h=Object.values(r),e[21]=k,e[22]=s,e[23]=c,e[24]=p,e[25]=u,e[26]=d,e[27]=m,e[28]=x,e[29]=f,e[30]=h,e[31]=N,e[32]=_,e[33]=y}else c=e[23],p=e[24],u=e[25],d=e[26],m=e[27],x=e[28],f=e[29],h=e[30],N=e[31],_=e[32],y=e[33];let b;e[34]!==c||e[35]!==d||e[36]!==Y||e[37]!==h?(b=j.jsx(c,{columns:h,dataLookup:Y,circle:!0,columnLookup:d}),e[34]=c,e[35]=d,e[36]=Y,e[37]=h,e[38]=b):b=e[38];let g;e[39]!==p||e[40]!==b?(g=j.jsx(p,{children:b}),e[39]=p,e[40]=b,e[41]=g):g=e[41];let E;return e[42]!==u||e[43]!==m||e[44]!==x||e[45]!==f||e[46]!==g||e[47]!==N||e[48]!==_||e[49]!==y?(E=j.jsx(u,{title:N,description:_,category:y,filter:m,data:x,filename:f,children:g}),e[42]=u,e[43]=m,e[44]=x,e[45]=f,e[46]=g,e[47]=N,e[48]=_,e[49]=y,e[50]=E):E=e[50],E}function $(e){const[t,i]=e;return[i,t]}export{X as default};
diff --git a/compendium_v2/static/CrisisExercises-mu7CJTN3.js b/compendium_v2/static/CrisisExercises-mu7CJTN3.js
new file mode 100644
index 0000000000000000000000000000000000000000..9fac7defa7ddf111a5facde0718836ffe0d62ddc
--- /dev/null
+++ b/compendium_v2/static/CrisisExercises-mu7CJTN3.js
@@ -0,0 +1,2 @@
+import{c as P,r as S,F as D,S as L,j as W,t as M}from"./index.js";import{u as R,g as O,F as A,D as G,f as V}from"./useData-CxftshCa.js";import{P as $}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function Z(){const e=P.c(51),{filterSelection:t,setFilterSelection:i}=S.useContext(D),{data:C,years:E,nrens:T}=R("/api/crisis-exercises",i);let s,w;if(e[0]!==C||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=F=>t.selectedYears.includes(F.year)&&t.selectedNrens.includes(F.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=C.filter(r),w=O(s,"exercise_descriptions"),e[0]=C,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=w}else s=e[3],w=e[4];const Y=w;let a;e[8]!==E?(a=[...E],e[8]=E,e[9]=a):a=e[9];let l;e[10]!==T?(l=T.values(),e[10]=T,e[11]=l):l=e[11];let n;e[12]!==l?(n=[...l],e[12]=l,e[13]=n):n=e[13];let o;e[14]!==a||e[15]!==n?(o={availableYears:a,availableNrens:n},e[14]=a,e[15]=n,e[16]=o):o=e[16];let v;e[17]!==t||e[18]!==i||e[19]!==o?(v=W.jsx(A,{filterOptions:o,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=o,e[20]=v):v=e[20];const k=v;let c,p,u,d,m,x,f,h,N,_,y;if(e[21]!==k||e[22]!==s){const r={geant_workshops:"We participate in GEANT Crisis workshops such as CLAW",national_excercises:"We participated in National crisis exercises ",tabletop_exercises:"We run our own tabletop exercises",simulation_excercises:"We run our own simulation exercises",other_excercises:"We have done/participated in other exercises or trainings",real_crisis:"We had a real crisis",internal_security_programme:"We run an internal security awareness programme",none:"No, we have not done any crisis exercises or trainings"};d=new Map(Object.entries(r).map(q)),u=G,N=M["crisis-exercise"],_=`Many NRENs run or participate in crisis exercises to test procedures and train employees. 
+            The table below shows whether NRENs have run or participated in an exercise in the previous year. `,y=L.Policy,m=k,x=s,f="crisis_exercise_nrens_per_year",p=V,c=$,h=Object.values(r),e[21]=k,e[22]=s,e[23]=c,e[24]=p,e[25]=u,e[26]=d,e[27]=m,e[28]=x,e[29]=f,e[30]=h,e[31]=N,e[32]=_,e[33]=y}else c=e[23],p=e[24],u=e[25],d=e[26],m=e[27],x=e[28],f=e[29],h=e[30],N=e[31],_=e[32],y=e[33];let b;e[34]!==c||e[35]!==d||e[36]!==Y||e[37]!==h?(b=W.jsx(c,{columns:h,dataLookup:Y,circle:!0,columnLookup:d}),e[34]=c,e[35]=d,e[36]=Y,e[37]=h,e[38]=b):b=e[38];let g;e[39]!==p||e[40]!==b?(g=W.jsx(p,{children:b}),e[39]=p,e[40]=b,e[41]=g):g=e[41];let j;return e[42]!==u||e[43]!==m||e[44]!==x||e[45]!==f||e[46]!==g||e[47]!==N||e[48]!==_||e[49]!==y?(j=W.jsx(u,{title:N,description:_,category:y,filter:m,data:x,filename:f,children:g}),e[42]=u,e[43]=m,e[44]=x,e[45]=f,e[46]=g,e[47]=N,e[48]=_,e[49]=y,e[50]=j):j=e[50],j}function q(e){const[t,i]=e;return[i,t]}export{Z as default};
diff --git a/compendium_v2/static/CrisisManagement-B-4V900E.js b/compendium_v2/static/CrisisManagement-B-4V900E.js
deleted file mode 100644
index 45f6277118263170b07133101f8f91680dc16563..0000000000000000000000000000000000000000
--- a/compendium_v2/static/CrisisManagement-B-4V900E.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as j,r as F,F as P,j as x}from"./main-BIBsTO5W.js";import{u as v,g as k,D as w,F as D,f as E}from"./useData-BDYwoQEh.js";import{S as M}from"./report.js";import{P as T}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function G(){const e=j.c(30);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=c=>c.crisis_management_procedure!==null,e[0]=m):m=e[0];const C=m,{filterSelection:t,setFilterSelection:d}=F.useContext(P),{data:N,years:_,nrens:g}=v("/api/standards",d,C);let s,f;if(e[1]!==N||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let c;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(c=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&C(Y),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=c):c=e[8],s=N.filter(c),f=k(s,"crisis_management_procedure"),e[1]=N,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=f}else s=e[4],f=e[5];const b=f;let r,p;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","No"],p=new Map([[r[0],"True"],[r[1],"False"]]),e[9]=r,e[10]=p):(r=e[9],p=e[10]);const S=p;let l;e[11]!==_?(l=[..._],e[11]=_,e[12]=l):l=e[12];let a;e[13]!==g?(a=g.values(),e[13]=g,e[14]=a):a=e[14];let i;e[15]!==a?(i=[...a],e[15]=a,e[16]=i):i=e[16];let o;e[17]!==l||e[18]!==i?(o={availableYears:l,availableNrens:i},e[17]=l,e[18]=i,e[19]=o):o=e[19];let u;e[20]!==t||e[21]!==d||e[22]!==o?(u=x.jsx(D,{filterOptions:o,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[20]=t,e[21]=d,e[22]=o,e[23]=u):u=e[23];const y=u;let n;e[24]!==b?(n=x.jsx(E,{children:x.jsx(T,{columns:r,columnLookup:S,dataLookup:b})}),e[24]=b,e[25]=n):n=e[25];let h;return e[26]!==y||e[27]!==s||e[28]!==n?(h=x.jsx(w,{title:"Crisis Management Procedures",description:"The table below shows whether NRENs have a formal crisis management procedure.",category:M.Policy,filter:y,data:s,filename:"crisis_management_nrens_per_year",children:n}),e[26]=y,e[27]=s,e[28]=n,e[29]=h):h=e[29],h}export{G as default};
diff --git a/compendium_v2/static/CrisisManagement-BxTFYm8e.js b/compendium_v2/static/CrisisManagement-BxTFYm8e.js
new file mode 100644
index 0000000000000000000000000000000000000000..de3346273b26b6958c9b90761a790b6cb7e17e79
--- /dev/null
+++ b/compendium_v2/static/CrisisManagement-BxTFYm8e.js
@@ -0,0 +1 @@
+import{c as C,r as F,F as v,j as x,t as P,S as k}from"./index.js";import{u as w,g as D,D as E,F as T,f as L}from"./useData-CxftshCa.js";import{P as M}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function H(){const e=C.c(30);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=c=>c.crisis_management_procedure!==null,e[0]=m):m=e[0];const S=m,{filterSelection:t,setFilterSelection:d}=F.useContext(v),{data:N,years:_,nrens:g}=w("/api/standards",d,S);let s,f;if(e[1]!==N||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let c;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(c=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&S(Y),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=c):c=e[8],s=N.filter(c),f=D(s,"crisis_management_procedure"),e[1]=N,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=f}else s=e[4],f=e[5];const b=f;let l,p;e[9]===Symbol.for("react.memo_cache_sentinel")?(l=["Yes","No"],p=new Map([[l[0],"True"],[l[1],"False"]]),e[9]=l,e[10]=p):(l=e[9],p=e[10]);const j=p;let a;e[11]!==_?(a=[..._],e[11]=_,e[12]=a):a=e[12];let r;e[13]!==g?(r=g.values(),e[13]=g,e[14]=r):r=e[14];let i;e[15]!==r?(i=[...r],e[15]=r,e[16]=i):i=e[16];let n;e[17]!==a||e[18]!==i?(n={availableYears:a,availableNrens:i},e[17]=a,e[18]=i,e[19]=n):n=e[19];let u;e[20]!==t||e[21]!==d||e[22]!==n?(u=x.jsx(T,{filterOptions:n,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[20]=t,e[21]=d,e[22]=n,e[23]=u):u=e[23];const y=u;let o;e[24]!==b?(o=x.jsx(L,{children:x.jsx(M,{columns:l,columnLookup:j,dataLookup:b})}),e[24]=b,e[25]=o):o=e[25];let h;return e[26]!==y||e[27]!==s||e[28]!==o?(h=x.jsx(E,{title:P["crisis-management"],description:"The table below shows whether NRENs have a formal crisis management procedure.",category:k.Policy,filter:y,data:s,filename:"crisis_management_nrens_per_year",children:o}),e[26]=y,e[27]=s,e[28]=o,e[29]=h):h=e[29],h}export{H as default};
diff --git a/compendium_v2/static/Bx5HfHBo.css b/compendium_v2/static/DZ9kPoxi.css
similarity index 97%
rename from compendium_v2/static/Bx5HfHBo.css
rename to compendium_v2/static/DZ9kPoxi.css
index f7c3cae39bd7c4181feadf49048451118b0bcce5..223b68e46621fe2ada7e271027e7a1ae1663506b 100644
--- a/compendium_v2/static/Bx5HfHBo.css
+++ b/compendium_v2/static/DZ9kPoxi.css
@@ -1,5 +1,5 @@
 @charset "UTF-8";/*!
-* surveyjs - Survey JavaScript library v1.12.20
+* surveyjs - Survey JavaScript library v1.12.23
 * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
-*/@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqhPAMif.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPAA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISQ.woff) format("woff")}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBg.woff) format("woff")}.sv-dragdrop-movedown{transform:translate(0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translateY(-50px)}to{transform:translate(0)}}.sv-dragdrop-moveup{transform:translate(0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translateY(50px)}to{transform:translate(0)}}.sv_progress-buttons__container-center{text-align:center}.sv_progress-buttons__container{display:inline-block;font-size:0;width:100%;max-width:1100px;white-space:nowrap;overflow:hidden}.sv_progress-buttons__image-button-left{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=)}.sv_progress-buttons__image-button-right{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==)}.sv_progress-buttons__image-button--hidden{visibility:hidden}.sv_progress-buttons__list-container{max-width:calc(100% - 36px);display:inline-block;overflow:hidden}.sv_progress-buttons__list{display:inline-block;width:max-content;padding-left:28px;padding-right:28px;margin-top:14px;margin-bottom:14px}.sv_progress-buttons__list li{width:138px;font-size:calc(.875*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));position:relative;text-align:center;vertical-align:top;display:inline-block}.sv_progress-buttons__list li:before{width:24px;height:24px;content:"";line-height:30px;display:block;margin:0 auto 10px;border:3px solid;border-radius:50%;box-sizing:content-box;cursor:pointer}.sv_progress-buttons__list li:after{width:73%;height:3px;content:"";position:absolute;top:15px;left:-36.5%}.sv_progress-buttons__list li:first-child:after{content:none}.sv_progress-buttons__list .sv_progress-buttons__page-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.sv_progress-buttons__list .sv_progress-buttons__page-description{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before{cursor:not-allowed}.sv_progress-toc{padding:var(--sjs-base-unit, var(--base-unit, 8px));max-width:336px;height:100%;background:#fff;box-sizing:border-box;min-width:calc(32*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body{background:#19b3941a;color:#161616;font-weight:400}.sv_progress-toc .sv-list__item span{white-space:break-spaces}.sv_progress-toc .sv-list__item-body{padding-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-corner-radius, 4px);padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_progress-toc--left{border-right:1px solid #d6d6d6}.sv_progress-toc--right{border-left:1px solid #d6d6d6}.sv_progress-toc--mobile{position:fixed;top:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));width:auto;min-width:auto;height:auto;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));z-index:15;border-radius:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile>div{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sd-title+.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),.sd-title~.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile){margin-top:2px}.sv_progress-toc.sv_progress-toc--sticky{position:sticky;height:auto;overflow-y:auto;top:0}.sv-container-modern{color:var(--text-color, #404040);font-size:var(--font-size, var(--sjs-font-size, 16px));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-container-modern__title{color:var(--main-color, #1ab394);padding-left:.55em;padding-top:5em;padding-bottom:.9375em}@media only screen and (min-width: 1000px){.sv-container-modern__title{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-container-modern__title{margin-right:10px;margin-left:10px}}.sv-container-modern__title h3{margin:0;font-size:1.875em}.sv-container-modern__title h5{margin:0}.sv-container-modern__close{clear:right}.sv-container-modern fieldset,.sv-container-modern legend{border:none;padding:0;margin:0}.sv-body{width:100%;padding-bottom:calc(10*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-top:2em}@media only screen and (min-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:10px;margin-left:10px}}.sv-body__timer{padding:0 var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box}.sv-body__progress{margin-bottom:4.5em}.sv-body__progress:not(:first-child){margin-top:2.5em}.sv-root-modern{width:100%;--sv-mobile-width: 600px}.sv-page__title{margin:0 0 1.333em;font-size:1.875em;padding-left:.293em}.sv-page__description{min-height:2.8em;font-size:1em;padding-left:.55em}.sv-page__title+.sv-page__description{margin-top:-2.8em}.sv-panel{box-sizing:border-box;width:100%}.sv-panel__title{font-size:1.25em;margin:0;padding:0 .44em .1em;position:relative}.sv-panel__footer{margin:0;padding:1em .44em 1em 0}.sv-panel__description{padding-left:.55em}.sv-panel__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-panel__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-panel__title--expandable.sv-panel__title--expanded:after{transform:rotate(180deg)}.sv-panel__icon{outline:none}.sv-panel__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-panel__icon--expanded:before{transform:rotate(180deg)}.sv-panel .sv-question__title{font-size:1em;padding-left:.55em}.sv-panel__content:not(:first-child){margin-top:.75em}.sv-panel .sv-row:not(:last-child){padding-bottom:1.875em}.sv-panel__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-paneldynamic__progress-container{position:relative;margin-left:.75em;margin-right:250px;margin-top:20px}.sv-paneldynamic__add-btn{background-color:var(--add-button-color, #1948b3);float:right;margin-top:-18px}[dir=rtl] .sv-paneldynamic__add-btn,[style*="direction:rtl"] .sv-paneldynamic__add-btn,[style*="direction: rtl"] .sv-paneldynamic__add-btn{float:left}.sv-paneldynamic__add-btn--list-mode{float:none;margin-top:1em}.sv-paneldynamic__remove-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-paneldynamic__remove-btn--right{margin-top:0;margin-left:1.25em}.sv-paneldynamic__prev-btn,.sv-paneldynamic__next-btn{box-sizing:border-box;display:inline-block;fill:var(--text-color, #404040);cursor:pointer;width:.7em;top:-.28em;position:absolute}.sv-paneldynamic__prev-btn svg,.sv-paneldynamic__next-btn svg{display:block;height:.7em;width:.7em}.sv-paneldynamic__prev-btn{left:-1.3em;transform:rotate(90deg)}.sv-paneldynamic__next-btn{right:-1.3em;transform:rotate(270deg)}.sv-paneldynamic__prev-btn--disabled,.sv-paneldynamic__next-btn--disabled{fill:var(--disable-color, #dbdbdb);cursor:auto}.sv-paneldynamic__progress-text{color:var(--progress-text-color, #9d9d9d);font-weight:700;font-size:.87em;margin-top:.69em;margin-left:1em}.sv-paneldynamic__separator{border:none;margin:0}.sv-paneldynamic__progress--top{margin-bottom:1em}.sv-paneldynamic__progress--bottom{margin-top:1em}.sv-paneldynamic__panel-wrapper~.sv-paneldynamic__panel-wrapper{padding-top:2.5em}.sv-paneldynamic__panel-wrapper--in-row{display:flex;flex-direction:row;align-items:center}@supports (display: flex){.sv-row{display:flex;flex-wrap:wrap}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){float:left}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){padding-bottom:2.5em;float:none}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){[dir=rtl] .sv-row__question:not(:last-child),[style*="direction:rtl"] .sv-row__question:not(:last-child),[style*="direction: rtl"] .sv-row__question:not(:last-child){float:right}}@media only screen and (-ms-high-contrast: active)and (max-width: 6000px),only screen and (-ms-high-contrast: none)and (max-width: 6000px){.sv-row__question--small:only-child{max-width:3000px}}@media only screen and (-ms-high-contrast: active)and (max-width: 3000px),only screen and (-ms-high-contrast: none)and (max-width: 3000px){.sv-row__question--small:only-child{max-width:1200px}}@media only screen and (-ms-high-contrast: active)and (max-width: 2000px),only screen and (-ms-high-contrast: none)and (max-width: 2000px){.sv-row__question--small:only-child{max-width:700px}}@media only screen and (-ms-high-contrast: active)and (max-width: 1000px),only screen and (-ms-high-contrast: none)and (max-width: 1000px){.sv-row__question--small:only-child{max-width:500px}}@media only screen and (-ms-high-contrast: active)and (max-width: 500px),only screen and (-ms-high-contrast: none)and (max-width: 500px){.sv-row__question--small:only-child{max-width:300px}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question{width:100%!important;padding-right:0!important}}.sv-row>.sv-row__panel,.sv-row__question{vertical-align:top;white-space:normal}.sv-row__question:first-child:last-child{flex:none!important}.sv-row:not(:last-child){padding-bottom:2.5em}.sv-question{overflow:auto;box-sizing:border-box;font-family:inherit;padding-left:var(--sv-element-add-padding-left, 0px);padding-right:var(--sv-element-add-padding-right, 0px)}.sv-question__title{position:relative;box-sizing:border-box;margin:0;padding:.25em .44em;cursor:default;font-size:1.25em}.sv-question__required-text{line-height:.8em;font-size:1.4em}.sv-question__description{margin:0;padding-left:.55em;font-size:1em}.sv-question__input{width:100%;height:1.81em}.sv-question__content{margin-left:.55em}.sv-question__erbox{color:var(--error-color, #d52901);font-size:.74em;font-weight:700}.sv-question__erbox--location--top{margin-bottom:.4375em}.sv-question__erbox--location--bottom{margin-top:.4375em}.sv-question__footer{padding:.87em 0}.sv-question__title--answer{background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-question__header--location--top{margin-bottom:.65em}.sv-question__header--location--left{float:left;width:27%;margin-right:.875em}[dir=rtl] .sv-question__header--location--left,[style*="direction:rtl"] .sv-question__header--location--left,[style*="direction: rtl"] .sv-question__header--location--left{float:right}.sv-question__header--location--bottom{margin-top:.8em}.sv-question__content--left{overflow:hidden}.sv-question__other,.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, .5))}.sv-image{display:inline-block}.sv-question__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-question__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-question__title--expandable.sv-question__title--expanded:after{transform:rotate(180deg)}.sv-question__icon{outline:none}.sv-question__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-question__icon--expanded:before{transform:rotate(180deg)}.sv-progress{height:.19em;background-color:var(--header-background-color, #e7e7e7);position:relative}.sv-progress__bar{position:relative;height:100%;background-color:var(--main-color, #1ab394)}.sv-progress__text{position:absolute;margin-top:.69em;color:var(--progress-text-color, #9d9d9d);font-size:.87em;font-weight:700;padding-left:.6321em}@media only screen and (min-width: 1000px){.sv-progress__text{margin-left:5%}}@media only screen and (max-width: 1000px){.sv-progress__text{margin-left:10px}}.sv_progress-buttons__list li:before{border-color:var(--progress-buttons-color, #8dd9ca);background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li:after{background-color:var(--text-border-color, #d4d4d4)}.sv_progress-buttons__list .sv_progress-buttons__page-title,.sv_progress-buttons__list .sv_progress-buttons__page-description{color:var(--text-color, #404040)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before{border-color:var(--main-color, #1ab394);background-color:var(--main-color, #1ab394)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed+li:after{background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv-title{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.sv-description{color:var(--disabled-text-color, rgba(64, 64, 64, .5))}.sv-question .sv-selectbase{margin-bottom:4px}.sv-selectbase__item{margin-bottom:.425em;vertical-align:top}.sv-selectbase__item--inline{display:inline-block;padding-right:5%}.sv-selectbase__column{min-width:140px;vertical-align:top}.sv-selectbase__label{position:relative;display:block;box-sizing:border-box;cursor:inherit;margin-left:41px;min-height:30px}[dir=rtl] .sv-selectbase__label,[style*="direction:rtl"] .sv-selectbase__label,[style*="direction: rtl"] .sv-selectbase__label{margin-right:41px;margin-left:0}.sv-selectbase__decorator.sv-item__decorator{position:absolute;left:-41px}[dir=rtl] .sv-selectbase__decorator.sv-item__decorator,[style*="direction:rtl"] .sv-selectbase__decorator.sv-item__decorator,[style*="direction: rtl"] .sv-selectbase__decorator.sv-item__decorator{left:initial;right:-41px}.sv-selectbase__clear-btn{margin-top:.9em;background-color:var(--clean-button-color, #1948b3)}.sv-selectbase .sv-selectbase__item.sv-q-col-1{padding-right:0}.sv-question .sv-q-column-1{width:100%;max-width:100%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-2{max-width:50%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-3{max-width:33.33333%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-4{max-width:25%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-5{max-width:20%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-multipletext{width:100%;table-layout:fixed}.sv-multipletext__item-label{display:flex;align-items:center}.sv-multipletext__item{flex:1}.sv-multipletext__item-title{margin-right:1em;width:33%}.sv-multipletext__cell:not(:first-child){padding-left:.5em}.sv-multipletext__cell:not(:last-child){padding-right:.5em}.sv-matrix{overflow-x:auto}.sv-matrix .sv-table__cell--header{text-align:center}.sv-matrix__label{display:inline-block;margin:0}.sv-matrix__cell{min-width:10em;text-align:center}.sv-matrix__cell:first-child{text-align:left}.sv-matrix__text{cursor:pointer}.sv-matrix__text--checked{color:var(--body-background-color, white);background-color:var(--main-color, #1ab394)}.sv-matrix__text--disabled{cursor:default}.sv-matrix__text--disabled.sv-matrix__text--checked{background-color:var(--disable-color, #dbdbdb)}.sv-matrix__row--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-matrixdynamic__add-btn{background-color:var(--add-button-color, #1948b3)}.sv-matrixdynamic__remove-btn{background-color:var(--remove-button-color, #ff1800)}.sv-detail-panel__icon{display:block;position:absolute;left:50%;top:50%;height:13px;width:24px;transform:translate(-50%,-50%) rotate(270deg)}.sv-detail-panel__icon--expanded{transform:translate(-50%,-50%)}.sv-detail-panel__icon:before{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' style='enable-background:new 0 0 20 20;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='19,6 17,4 10,11 3,4 1,6 10,15 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:18px;width:24px}.sv-root-modern ::-webkit-scrollbar{height:6px;width:6px;background-color:var(--main-hover-color, #9f9f9f)}.sv-root-modern ::-webkit-scrollbar-thumb{background:var(--main-color, #1ab394)}.sv-table{width:100%;background-color:rgba(var(--main-hover-color, #9f9f9f),.1);border-collapse:separate;border-spacing:0}.sv-table tbody tr:last-child .sv-table__cell{padding-bottom:2.5em}.sv-table tr:first-child .sv-table__cell{padding-top:1.875em}.sv-table td:first-child,.sv-table th:first-child{padding-left:1.875em}.sv-table td:last-child,.sv-table th:last-child{padding-right:1.875em}.sv-table__row--detail{background-color:var(--header-background-color, #e7e7e7)}.sv-table__row--detail td{border-top:1px solid var(--text-border-color, #d4d4d4);border-bottom:1px solid var(--text-border-color, #d4d4d4);padding:1em 0}.sv-table__cell{padding:.9375em 0;box-sizing:content-box;vertical-align:top}.sv-table__cell:not(:last-child){padding-right:1em}.sv-table__cell:not(:first-child){padding-left:1em}.sv-table__cell--header{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;text-align:left}.sv-table__cell--rowText{vertical-align:middle}.sv-table__cell--detail{text-align:center;vertical-align:middle;width:32px}.sv-table__cell--detail-rowtext{vertical-align:middle}.sv-table__cell--detail-panel{padding-left:1em}.sv-table__cell--detail-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:#0000}.sv-table__empty--rows--section{text-align:center;vertical-align:middle}.sv-table__empty--rows--text{padding:20px}.sv-table__cell--actions sv-action-bar,.sv-table__cell--actions .sv-action-bar{margin-left:0;padding-left:0}.sv-footer.sv-action-bar{display:block;min-height:var(--base-line-height, 2em);padding:2.5em 0 .87em;margin-left:auto}.sv-footer.sv-action-bar .sv-action__content{display:block}.sv-footer.sv-action-bar .sv-action:not(:last-child) .sv-action__content{padding-right:0}.sv-btn--navigation{margin:0 1em;float:right;background-color:var(--main-color, #1ab394)}.sv-footer__complete-btn,.sv-footer__next-btn,.sv-footer__preview-btn{float:right}.sv-footer__prev-btn,.sv-footer__edit-btn,[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn,[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn,[dir=rtl] .sv-footer__next-btn,[style*="direction:rtl"] .sv-footer__next-btn,[style*="direction: rtl"] .sv-footer__next-btn{float:left}[dir=rtl] .sv-footer__prev-btn,[style*="direction:rtl"] .sv-footer__prev-btn,[style*="direction: rtl"] .sv-footer__prev-btn,[dir=rtl] .sv-footer__edit-btn,[style*="direction:rtl"] .sv-footer__edit-btn,[style*="direction: rtl"] .sv-footer__edit-btn{float:right}.sv-btn.sv-action-bar-item,.sv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:1.214em;color:var(--body-background-color, white);cursor:pointer;font-family:inherit;font-size:.875em;font-weight:700;outline:none;padding:.5em 2.786em .6em;text-align:start}.sv-btn--navigation{background-color:var(--main-color, #1ab394)}.sv-item{position:relative;cursor:pointer}.sv-item--disabled{cursor:default}.sv-item__decorator{position:relative;display:inline-block;box-sizing:border-box;width:30px;height:30px;border:solid 1px rgba(0,0,0,0);vertical-align:middle}.sv-item__svg{position:absolute;top:50%;left:50%;display:inline-block;box-sizing:border-box;width:24px;height:24px;margin-right:-50%;transform:translate(-50%,-50%)}.sv-item__control:focus+.sv-item__decorator{border-color:var(--main-color, #1ab394);outline:none}.sv-item__control-label{position:relative;top:4px}.sv-checkbox__decorator{border-radius:2px}.sv-checkbox__svg{border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:2px;fill:#0000}.sv-checkbox--allowhover:hover .sv-checkbox__svg{border:none;background-color:var(--main-hover-color, #9f9f9f);fill:#fff}.sv-checkbox--checked .sv-checkbox__svg{border:none;background-color:var(--main-color, #1ab394);fill:#fff}.sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg{border:none;background-color:var(--disable-color, #dbdbdb);fill:#fff}.sv-checkbox--disabled .sv-checkbox__svg{border:3px solid var(--disable-color, #dbdbdb)}.sv-radio__decorator{border-radius:100%}.sv-radio__svg{border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:100%;fill:#0000}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, .5))}.sv-radio--checked .sv-radio__svg{border-color:var(--radio-checked-color, #404040);fill:var(--radio-checked-color, #404040)}.sv-radio--disabled .sv-radio__svg{border-color:var(--disable-color, #dbdbdb)}.sv-radio--disabled.sv-radio--checked .sv-radio__svg{fill:var(--disable-color, #dbdbdb)}.sv-boolean{display:block;position:relative;line-height:1.5em}.sv-boolean__switch{float:left;box-sizing:border-box;width:4em;height:1.5em;margin-right:1.0625em;margin-left:1.3125em;padding:.125em .1875em;border-radius:.75em;margin-bottom:2px}.sv-boolean input:focus~.sv-boolean__switch{outline:1px solid var(--main-color, #1ab394);outline-offset:1px}[dir=rtl] .sv-boolean__switch,[style*="direction:rtl"] .sv-boolean__switch,[style*="direction: rtl"] .sv-boolean__switch{float:right}.sv-boolean__slider{display:block;width:1.25em;height:1.25em;transition-duration:.1s;transition-property:margin-left;transition-timing-function:linear;border:none;border-radius:100%}.sv-boolean--indeterminate .sv-boolean__slider{margin-left:calc(50% - .625em)}.sv-boolean--checked .sv-boolean__slider{margin-left:calc(100% - 1.25em)}.sv-boolean__label{cursor:pointer;float:left}[dir=rtl] .sv-boolean__label,[style*="direction:rtl"] .sv-boolean__label,[style*="direction: rtl"] .sv-boolean__label{float:right}[dir=rtl] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--indeterminate .sv-boolean__slider{margin-right:calc(50% - .625em)}[dir=rtl] .sv-boolean--checked .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--checked .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--checked .sv-boolean__slider{margin-right:calc(100% - 1.25em)}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, .5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-imagepicker__item{border:none;padding:.24em}.sv-imagepicker__item--inline{display:inline-block}.sv-imagepicker__item--inline:not(:last-child){margin-right:4%}.sv-imagepicker__image{border:.24em solid rgba(0,0,0,0);display:block;pointer-events:none}.sv-imagepicker__label{cursor:inherit}.sv-imagepicker__text{font-size:1.14em;padding-left:.24em}.sv-imagepicker__item--allowhover:hover .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item:not(.sv-imagepicker__item--checked) .sv-imagepicker__control:focus~div .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--main-color, #1ab394);border-color:var(--main-color, #1ab394)}.sv-imagepicker__item{cursor:pointer}.sv-imagepicker__item--disabled{cursor:default}.sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-dropdown{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:block;background:#0000;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.57em 100%;border:none;border-bottom:.06em solid var(--text-border-color, #d4d4d4);box-sizing:border-box;font-family:inherit;font-size:inherit;padding-block:.25em;padding-inline-end:1.5em;padding-inline-start:.87em;height:2.19em;width:100%;display:flex;justify-content:space-between}.sv-dropdown input[readonly]{pointer-events:none}.sv-dropdown:focus,.sv-dropdown:focus-within{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ");border-color:var(--text-border-color, #d4d4d4);outline:none}.sv-dropdown::-ms-expand{display:none}.sv-dropdown--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-dropdown--error::placeholder,.sv-dropdown--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-dropdown option{color:var(--text-color, #404040)}.sv-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;color:var(--text-color, #404040);position:relative}.sv-dropdown__value .sv-string-viewer{line-height:28px}.sv_dropdown_control__input-field-component{height:auto}.sv-dropdown__hint-prefix{opacity:.5}.sv-dropdown__hint-prefix span{word-break:unset;line-height:28px}.sv-dropdown__hint-suffix{display:flex;opacity:.5}.sv-dropdown__hint-suffix span{word-break:unset;line-height:28px}.sv-dropdown_clean-button{padding:3px 12px;margin:auto 0}.sv-dropdown_clean-button-svg{width:12px;height:12px}.sv-input.sv-dropdown:focus-within .sv-dropdown__filter-string-input{z-index:2000}.sv-dropdown__filter-string-input{border:none;outline:none;padding:0;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;background-color:#0000;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;left:0;top:0;height:100%}.sv-dropdown--empty:not(.sv-input--disabled) .sv-dropdown__filter-string-input::placeholder{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));color:var(--text-color, #404040)}.sv-dropdown__filter-string-input::placeholder{color:var(--disabled-text-color, rgba(64, 64, 64, .5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none}[dir=rtl] .sv-dropdown,[style*="direction:rtl"] .sv-dropdown,[style*="direction: rtl"] .sv-dropdown{background-position:left .7em top 50%,0 0}.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled){height:auto;padding:.5em;padding-inline-end:2em}.sv-tagbox_clean-button{height:1.5em;padding:.5em;margin:auto 0}.sv-tagbox__value.sv-dropdown__value{position:relative;gap:.25em;display:flex;flex-wrap:wrap;flex-grow:1;padding-inline:unset;margin-inline:unset;margin-block:unset}.sv-tagbox__item{position:relative;display:flex;color:var(--text-color, #404040);height:1.5em;padding-block:.25em;padding-inline-end:.4em;padding-inline-start:.87em;border:solid .1875em #9f9f9f;border-radius:2px;min-width:2.3125em}.sv-tagbox__item:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use{fill:var(--body-background-color, white)}.sv-tagbox__item-text{color:inherit;font-size:1em}.sv-tagbox__item_clean-button-svg{margin:.3125em;width:1em;height:1em}.sv-tagbox__item_clean-button-svg use{fill:var(--text-color, #404040)}.sv-tagbox__filter-string-input{width:auto;display:flex;flex-grow:1;position:initial}.sv-tagbox__placeholder{position:absolute;top:0;left:0;max-width:100%;width:auto;height:100%;text-align:start;cursor:text;pointer-events:none;color:var(--main-hover-color, #9f9f9f)}.sv-tagbox{border-bottom:.06em solid var(--text-border-color, #d4d4d4)}.sv-tagbox:focus{border-color:var(--text-border-color, #d4d4d4)}.sv-tagbox--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-tagbox--error::placeholder{color:var(--error-color, #d52901)}.sv-tagbox--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-tagbox .sv-dropdown__filter-string-input{height:auto}.sv-text{box-sizing:border-box;width:100%;height:2.19em;padding:.25em 0 .25em .87em;border:none;border-radius:0;border-bottom:.07em solid var(--text-border-color, #d4d4d4);box-shadow:none;background-color:#0000;font-family:inherit;font-size:1em}.sv-text:focus{border-color:var(--main-color, #1ab394);outline:none;box-shadow:none}.sv-text:invalid{box-shadow:none}.sv-text:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #fff inset}.sv-text::placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text:-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text::-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text[type=date]{padding-right:2px;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .61em top 50%,0 0;background-size:.57em auto,100%}.sv-text[type=date]:focus{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ")}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:#0000;background:#0000}.sv-text[type=date]::-webkit-clear-button{display:none}.sv-text[type=date]::-webkit-inner-spin-button{display:none}.sv-text--error{color:var(--error-color, #d52901);border-color:var(--error-color, #d52901)}.sv-text--error::placeholder{color:var(--error-color, #d52901)}.sv-text--error::-ms-input-placeholder{color:var(--error-color, #d52901)}input.sv-text,textarea.sv-comment,select.sv-dropdown{color:var(--text-color, #404040);background-color:var(--inputs-background-color, white)}.sv-rating{color:var(--text-color, #404040);padding-bottom:3px}.sv-rating input:focus+.sv-rating__min-text+.sv-rating__item-text,.sv-rating input:focus+.sv-rating__item-text{outline:1px solid var(--main-color, #1ab394);outline-offset:2px}.sv-rating__item{position:relative;display:inline}.sv-rating__item-text{min-width:2.3125em;height:2.3125em;display:inline-block;color:var(--main-hover-color, #9f9f9f);padding:0 .3125em;border:solid .1875em var(--main-hover-color, #9f9f9f);text-align:center;font-size:1em;font-weight:700;line-height:1.13;cursor:pointer;margin:3px .26em 3px 0;box-sizing:border-box}.sv-rating__item-text>span{margin-top:.44em;display:inline-block}.sv-rating__item-text:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-rating__item--selected .sv-rating__item-text{background-color:var(--main-color, #1ab394);color:var(--body-background-color, white);border-color:var(--main-color, #1ab394)}.sv-rating__item--selected .sv-rating__item-text:hover{background-color:var(--main-color, #1ab394)}.sv-rating__item-star>svg{fill:var(--text-color, #404040);height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0)}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star>svg.sv-star-2{display:none}.sv-rating__item-star--selected>svg{fill:var(--main-color, #1ab394)}.sv-rating__item-smiley>svg{height:24px;width:24px;padding:4px;display:inline-block;vertical-align:middle;border:3px solid var(--border-color, rgba(64, 64, 64, .5));margin:3px .26em 3px 0;fill:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley>svg>use{display:block}.sv-rating__item-smiley>svg:hover{border:3px solid var(--main-hover-color, #9f9f9f);background-color:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley--selected>svg{background-color:var(--main-color, #1ab394);fill:var(--body-background-color, white);border:3px solid var(--main-color, #1ab394)}.sv-rating__min-text{font-size:1em;margin-right:1.25em;cursor:pointer}.sv-rating__max-text{font-size:1em;margin-left:.87em;cursor:pointer}.sv-question--disabled .sv-rating__item-text{cursor:default;color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-question--disabled .sv-rating__item-text:hover{background-color:#0000}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text,.sv-question--disabled .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__min-text,.sv-question--disabled .sv-rating__max-text{cursor:default}.sv-comment{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.06em solid var(--text-border-color, #d4d4d4);border-radius:0;box-sizing:border-box;padding:.25em .87em;font-family:inherit;font-size:1em;outline:none;width:100%;max-width:100%}.sv-comment:focus{border-color:var(--main-color, #1ab394)}.sv-file{position:relative}.sv-file__decorator{background-color:var(--body-container-background-color, #f4f4f4);padding:1.68em 0}.sv-file__clean-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-file__choose-btn:not(.sv-file__choose-btn--disabled){background-color:var(--add-button-color, #1948b3);display:inline-block}.sv-file__choose-btn--disabled{cursor:default;background-color:var(--disable-color, #dbdbdb);display:inline-block}.sv-file__no-file-chosen{display:inline-block;font-size:.87em;margin-left:1em}.sv-file__preview{display:inline-block;padding-right:23px;position:relative;margin-top:1.25em;vertical-align:top}.sv-file__preview:not(:last-child){margin-right:31px}.sv-file__remove-svg{position:absolute;fill:#ff1800;cursor:pointer;height:16px;top:0;right:0;width:16px}.sv-file__remove-svg .sv-svg-icon{width:16px;height:16px}.sv-file__sign a{color:var(--text-color, #404040);text-align:left;text-decoration:none}.sv-file__wrapper{position:relative;display:inline-block;margin:0 0 0 50%;transform:translate(-50%);padding:0}.sv-clearfix:after{content:"";display:table;clear:both}.sv-completedpage{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:1.875em;font-weight:700;box-sizing:border-box;height:14em;padding-top:4.5em;padding-bottom:4.5em;text-align:center;color:var(--text-color, #404040);background-color:var(--body-container-background-color, #f4f4f4)}.sv-completedpage:before{display:block;content:"";background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 72 72' style='enable-background:new 0 0 72 72;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M11.9,72c-0.6-0.1-1.2-0.3-1.8-0.4C4.2,70.1,0,64.7,0,58.6c0-15.1,0-30.1,0-45.2C0,6,6,0,13.4,0 c12,0,24,0,36,0c2.4,0,4.4,1.7,4.6,4c0.2,2.4-1.3,4.4-3.6,4.9C50,9,49.7,9,49.4,9C37.6,9,25.8,9,14,9c-1.5,0-2.8,0.4-3.9,1.5 c-0.8,0.9-1.2,2-1.2,3.2c0,8.2,0,16.4,0,24.6C9,45,9,51.6,9,58.2c0,2.9,1.9,4.8,4.8,4.8c14.9,0,29.7,0,44.6,0c2.6,0,4.6-2,4.6-4.6 c0-5.9,0-11.8,0-17.7c0-2.4,1.6-4.3,3.9-4.6c2.3-0.3,4.3,1,5,3.4c0,0.1,0.1,0.2,0.1,0.2c0,6.8,0,13.6,0,20.4c0,0.1-0.1,0.3-0.1,0.4 c-0.8,5.4-4.7,9.8-10.1,11.2c-0.6,0.1-1.2,0.3-1.8,0.4C44,72,28,72,11.9,72z'/%3E%3Cpath class='st0' d='M35.9,38.8c0.4-0.4,0.5-0.7,0.7-0.9c8.4-8.4,16.8-16.8,25.2-25.2c1.9-1.9,4.5-2,6.3-0.4 c1.9,1.6,2.1,4.6,0.4,6.4c-0.2,0.2-0.3,0.3-0.5,0.5c-9.5,9.5-19.1,19.1-28.6,28.6c-2.2,2.2-4.8,2.2-7,0 c-5.1-5.1-10.2-10.2-15.4-15.4c-1.3-1.3-1.7-2.8-1.2-4.5c0.5-1.7,1.6-2.8,3.4-3.1c1.6-0.4,3.1,0.1,4.2,1.3c4,4,7.9,7.9,11.9,11.9 C35.6,38.2,35.7,38.5,35.9,38.8z'/%3E%3C/g%3E%3C/svg%3E%0A");width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0;box-sizing:border-box}@media only screen and (min-width: 1000px){.sv-completedpage{margin-right:5%;margin-left:calc(5% + .293em)}}@media only screen and (max-width: 1000px){.sv-completedpage{margin-left:calc(10px + .293em);margin-right:10px}}.sv-header{white-space:nowrap}.sv-logo--left{display:inline-block;vertical-align:top;margin-right:2em}.sv-logo--right{vertical-align:top;margin-left:2em;float:right}.sv-logo--top,.sv-logo--bottom{display:block;width:100%;text-align:center}.sv-header__text{display:inline-block;vertical-align:top}.sjs_sp_container{border:1px dashed var(--disable-color, #dbdbdb)}.sjs_sp_placeholder{color:var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)))}.sv-action-bar{display:flex;box-sizing:content-box;position:relative;align-items:center;margin-left:auto;overflow:hidden;white-space:nowrap}.sv-action-bar-separator{display:inline-block;width:1px;height:24px;vertical-align:middle;margin-right:16px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-action-bar--default-size-mode .sv-action-bar-separator{margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-separator{margin:0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));overflow-x:hidden;white-space:nowrap}button.sv-action-bar-item{overflow:hidden}.sv-action-bar--default-size-mode .sv-action-bar-item{height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:calc(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);margin:0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action:first-of-type .sv-action-bar-item{margin-inline-start:0}.sv-action:last-of-type .sv-action-bar-item{margin-inline-end:0}.sv-action-bar--default-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item__icon svg{display:block}.sv-action-bar-item__icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-action-bar-item:not(.sv-action-bar-item--pressed):hover:enabled,.sv-action-bar-item:not(.sv-action-bar-item--pressed):focus:enabled{outline:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-action-bar-item--active.sv-action-bar-item--pressed:focus,.sv-action-bar-item--active.sv-action-bar-item--pressed:focus-visible{outline:none}.sv-action-bar-item:not(.sv-action-bar-item--pressed):active:enabled{opacity:.5}.sv-action-bar-item:disabled{opacity:.25;cursor:default}.sv-action-bar-item__title{color:inherit;vertical-align:middle;white-space:nowrap}.sv-action-bar-item--secondary .sv-action-bar-item__icon use{fill:var(--sjs-secondary-backcolor, var(--secondary, #ff9814))}.sv-action-bar-item--active .sv-action-bar-item__icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-action-bar-item-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;cursor:pointer;line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-expand-action:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:10px;width:12px;margin:auto 8px}.sv-expand-action--expanded:before{transform:rotate(180deg)}.sv-dots{width:48px}.sv-dots__item{width:100%}.sv-dots__item .sv-action-bar-item__icon{margin:auto}.sv-action--hidden{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-action--hidden .sv-action__content{min-width:fit-content}.sv-action__content{display:flex;flex-direction:row;align-items:center}.sv-action__content>*{flex:0 0 auto}.sv-action--space{margin-left:auto}.sv-action-bar-item--pressed:not(.sv-action-bar-item--active){background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));opacity:50%}.sv-dragged-element-shortcut{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));min-width:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(4.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:grabbing;position:absolute;z-index:10000;box-shadow:0 8px 16px #0000001a;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);padding-left:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-matrixdynamic__drag-icon{padding-top:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:calc(.75*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border:1px solid #e7e7e7;box-sizing:border-box;border-radius:calc(1.25*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:move;margin-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic-dragged-row{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-matrixdynamic-dragged-row .sd-table__row{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));display:flex;flex-grow:0;flex-shrink:0;align-items:center;line-height:0}.sv-matrixdynamic-dragged-row .sd-table__cell.sd-table__cell--drag>div{background-color:var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));min-height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-table__cell--header.sd-table__cell--drag,.sd-table__cell.sd-table__cell--drag{padding-right:0;padding-left:0}.sd-question--mobile .sd-table__cell--header.sd-table__cell--drag,.sd-question--mobile .sd-table__cell.sd-table__cell--drag{display:none}.sv-matrix-row--drag-drop-ghost-mod td{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-matrix-row--drag-drop-ghost-mod td>*{visibility:hidden}.sv-drag-drop-choices-shortcut{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));min-width:100px;max-width:400px}.sv-drag-drop-choices-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.sv-drag-drop-choices-shortcut__content.sv-drag-drop-choices-shortcut__content{min-width:100px;box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:calc(4.5*var(--sjs-base-unit, var(--base-unit, 8px)));padding-right:calc(2*var(--sjs-base-unit, var(--base-unit, 8px)));margin-left:0}sv-popup{display:block;position:absolute}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup,.sv-popup.sv-popup-inner{height:0}.sv-popup-inner>.sv-popup__container{margin-top:calc(-1*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item--with-icon .sv-popup-inner>.sv-popup__container{margin-top:calc(-.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__container{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:var(--sjs-corner-radius, 4px);position:absolute;padding:0}.sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:var(--sjs-corner-radius, 4px);width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, .5));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(15*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-popup--modal>.sv-popup__container{position:static;display:flex}.sv-popup--modal>.sv-popup__container>.sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;gap:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar{overflow:visible}.sv-popup--confirm .sv-popup__container{border-radius:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--confirm .sv-popup__body-content{border-radius:var(--sjs-base-unit, var(--base-unit, 8px));max-width:min-content;align-items:flex-end;min-width:452px}.sv-popup--confirm .sv-popup__body-header{color:var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, .91)));align-self:self-start;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);font-style:normal;font-weight:400;line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-popup--confirm .sv-popup__scrolling-content{display:none}.sv-popup--confirm .sv-popup__body-footer{max-width:max-content}.sv-popup--confirm .sv-popup__body-footer .sv-action-bar{gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-root-modern--mobile .sv-popup--confirm .sv-popup__body-content{min-width:auto}.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, .5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));width:100%;padding-top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border:unset;box-shadow:unset;box-sizing:content-box}.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4*(var(--sjs-corner-radius, 4px))) calc(4*(var(--sjs-corner-radius, 4px))) 0px 0px;background:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(100% - 1*var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay .sv-popup__body-footer .sv-action-bar,.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay .sv-popup__body-footer .sv-action{flex:1 0 0}.sv-popup--overlay .sv-popup__button.sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0;position:relative}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))),calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container{transform:translate(var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container .sv-popup__pointer{transform:translate(-12px,-4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left .sv-popup__container{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--left .sv-popup__container .sv-popup__pointer{transform:translate(-4px,-4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:var(--sjs-base-unit, var(--base-unit, 8px)) solid var(--sjs-general-backcolor, var(--background, #fff));align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5*(var(--sjs-font-size, 16px)));line-height:calc(2*(var(--sjs-font-size, 16px)));font-style:normal;font-weight:700;color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown .sv-list__filter{margin-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown .sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:100%}.sv-popup--dropdown>.sv-popup__container>.sv-popup__body-content .sv-list{background-color:#0000}.sv-dropdown-popup .sv-popup__body-content{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0}.sv-dropdown-popup .sv-list__filter{margin-bottom:0}.sv-popup--overlay .sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay{z-index:2001;padding:0}.sv-popup--dropdown-overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar .sv-action{flex:0 0 auto}.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{background-color:#0000;color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-popup--dropdown-overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh));gap:0}.sv-popup--dropdown-overlay .sv-popup__body-footer{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-popup--dropdown-overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__container{padding:0}.sv-popup--dropdown-overlay .sv-list{flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0}.sv-popup--dropdown-overlay .sv-list__filter{display:flex;align-items:center;margin-bottom:0;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-icon{position:static;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-popup--dropdown-overlay .sv-list__filter-clear-button{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:100%;background-color:#0000}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-popup--dropdown-overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:max(16px,var(--sjs-font-size, 16px));line-height:max(24px,1.5*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__item:hover .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused .sv-list__item-body{background:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar{justify-content:flex-start}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__body-footer{padding-top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__input{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);--sv-popup-overlay-max-width: calc(100% - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);position:absolute;transform:translate(-50%,-50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),30*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;width:auto;min-width:min(40*(var(--sjs-base-unit, var(--base-unit, 8px))),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:var(--sjs-corner-radius, 4px);overflow:hidden;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1))}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-popup--visible{opacity:1}.sv-popup--enter{animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--enter{animation-timing-function:cubic-bezier(0,0,.58,1);animation-duration:.25s}.sv-popup--leave{animation-direction:reverse;animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--leave{animation-timing-function:cubic-bezier(.42,0,1,1);animation-duration:.25s}.sv-popup--hidden{opacity:0}@keyframes modalMoveUp{0%{transform:translateY(64px)}to{transform:translateY(0)}}.sv-popup--modal.sv-popup--leave .sv-popup__container,.sv-popup--modal.sv-popup--enter .sv-popup__container{animation-name:modalMoveUp;animation-timing-function:cubic-bezier(0,0,.58,1);animation-fill-mode:forwards;animation-duration:.25s}.sv-popup--modal.sv-popup--leave .sv-popup__container{animation-direction:reverse;animation-timing-function:cubic-bezier(.42,0,1,1)}.sv-button-group{display:flex;align-items:center;flex-direction:row;font-size:var(--sjs-font-size, 16px);overflow:auto;border:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:11px calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));outline:none;font-size:var(--sjs-font-size, 16px);font-weight:400;background:var(--sjs-general-backcolor, var(--background, #fff));cursor:pointer;overflow:hidden;color:var(--sjs-general-forecolor, var(--foreground, #161616));position:relative}.sv-button-group__item:not(:last-of-type){border-right:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item--hover:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-button-group__item-icon{display:block;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-button-group__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-button-group__item--selected{font-weight:600;color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected .sv-button-group__item-icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group__item-decorator{display:flex;align-items:center;max-width:100%}.sv-button-group__item-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-button-group__item-icon+.sv-button-group__item-caption{margin-left:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-button-group__item--disabled{color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:default}.sv-button-group__item--disabled .sv-button-group__item-decorator{opacity:.25;font-weight:400}.sv-button-group__item--disabled .sv-button-group__item-icon use{fill:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-button-group__item--disabled:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-visuallyhidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sv-hidden{display:none!important}.sv-title-actions{display:flex;align-items:center;width:100%}.sv-title-actions__title{flex-wrap:wrap;max-width:90%;min-width:50%;white-space:initial}.sv-action-title-bar{min-width:56px}.sv-title-actions .sv-title-actions__title{flex-wrap:wrap;flex:0 1 auto;max-width:unset;min-width:unset}.sv-title-actions .sv-action-title-bar{flex:1 1 auto;justify-content:flex-end;min-width:unset}.sv_window{position:fixed;bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));border:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16)));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-clip:padding-box;z-index:100;max-height:50vh;overflow:auto;box-sizing:border-box;background:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));width:calc(100% - 4*(var(--sjs-base-unit, var(--base-unit, 8px))))!important}@-moz-document url-prefix(){.sv_window,.sv_window *{scrollbar-width:thin;scrollbar-color:var(--sjs-border-default, var(--border, #d6d6d6)) rgba(0,0,0,0)}}.sv_window::-webkit-scrollbar,.sv_window *::-webkit-scrollbar{width:12px;height:12px;background-color:#0000}.sv_window::-webkit-scrollbar-thumb,.sv_window *::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:32px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv_window::-webkit-scrollbar-track,.sv_window *::-webkit-scrollbar-track{background:#0000}.sv_window::-webkit-scrollbar-thumb:hover,.sv_window *::-webkit-scrollbar-thumb:hover{border:2px solid rgba(0,0,0,0);background-color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_window_root-content{height:100%}.sv_window--full-screen{top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));max-height:100%;width:initial!important;max-width:initial!important}.sv_window_header{display:flex;justify-content:flex-end}.sv_window_content{overflow:hidden}.sv_window--collapsed{height:initial}.sv_window--collapsed .sv_window_header{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-sizing:content-box}.sv_window--collapsed .sv_window_content{display:none}.sv_window--collapsed .sv_window_buttons_container{margin-top:0;margin-right:0}.sv_window_header_title_collapsed{color:var(--sjs-general-dim-forecolor, rgba(0, 0, 0, .91));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));flex:1;display:flex;justify-content:flex-start;align-items:center}.sv_window_header_description{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, .45)));font-feature-settings:"salt" on;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sv_window_buttons_container{position:fixed;margin-top:var(--sjs-base-unit, var(--base-unit, 8px));margin-right:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;gap:var(--sjs-base-unit, var(--base-unit, 8px));z-index:10000}.sv_window_button{display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));justify-content:center;align-items:center;border-radius:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:pointer}.sv_window_button:hover,.sv_window_button:active{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)))}.sv_window_button:hover svg use,.sv_window_button:hover svg path,.sv_window_button:active svg use,.sv_window_button:active svg path{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv_window_button:active{opacity:.5}.sv_window_button svg use,.sv_window_button svg path{fill:var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, .45))}sv-brand-info,.sv-brand-info{z-index:1;position:relative;margin-top:1px}.sv-brand-info{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));text-align:right;color:#161616;padding:24px 40px}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sd-body--static .sv-brand-info{padding-top:0;margin-top:16px}.sd-body--responsive .sv-brand-info{padding-top:16px;margin-top:-8px}.sd-root-modern--mobile .sv-brand-info{padding:48px 24px 8px;margin-top:0;text-align:center}.sv-brand-info__text{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));color:#161616}.sv-brand-info__logo{display:inline-block}.sv-brand-info__logo img{width:118px}.sv-brand-info__terms{font-weight:400;font-size:calc(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);padding-top:4px}.sv-brand-info__terms a{color:#909090}.sd-body--responsive .sv-brand-info{padding-right:0;padding-left:0}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative;opacity:1}.sv-ranking-item:focus .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:hover:not(:focus) .sv-ranking-item__icon--hover{visibility:visible}.sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:focus{outline:none}.sv-ranking-item:focus .sv-ranking-item__icon--focus{visibility:visible;top:calc(.6*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item:focus .sv-ranking-item__index{background:var(--sjs-general-backcolor, var(--background, #fff));outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-item__content.sv-ranking-item__content{display:flex;align-items:center;line-height:1em;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0px;border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__icon-container{position:relative;left:0;bottom:0;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));align-self:flex-start;padding-left:var(--sjs-base-unit, var(--base-unit, 8px));padding-right:var(--sjs-base-unit, var(--base-unit, 8px));margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.sv-ranking-item--disabled.sv-ranking-item--disabled,.sv-ranking-item--readonly.sv-ranking-item--readonly,.sv-ranking-item--preview.sv-ranking-item--preview{cursor:initial;user-select:initial;-webkit-user-select:initial}.sv-ranking-item--disabled.sv-ranking-item--disabled .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--readonly.sv-ranking-item--readonly .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--preview.sv-ranking-item--preview .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden}.sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden;fill:var(--sjs-primary-backcolor, var(--primary, #19b394));position:absolute;top:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__index.sv-ranking-item__index{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);border-radius:100%;border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));box-sizing:border-box;font-weight:600;margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))));transition:outline var(--sjs-transition-duration, .15s),background var(--sjs-transition-duration, .15s);outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);align-self:self-start}.sv-ranking-item__index.sv-ranking-item__index svg{fill:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));width:var(--sjs-internal-font-editorfont-size);height:var(--sjs-internal-font-editorfont-size)}.sv-ranking-item__text{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);line-height:calc(1.5*(var(--sjs-internal-font-editorfont-size)));margin:0 calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));overflow-wrap:break-word;word-break:normal;align-self:self-start;padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-item__text .sv-string-viewer,.sv-ranking-item__text .sv-string-editor{overflow:initial;white-space:pre-line}.sd-ranking--disabled .sv-ranking-item__text{color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));opacity:.25}.sv-ranking-item--disabled .sv-ranking-item__text{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, .45)));opacity:.25}.sv-ranking-item--readonly .sv-ranking-item__index{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-ranking-item--preview .sv-ranking-item__index{background-color:#0000;border:1px solid var(--sjs-general-forecolor, var(--foreground, #161616));box-sizing:border-box}.sv-ranking-item__ghost.sv-ranking-item__ghost{display:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(31*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));z-index:1;position:absolute;left:0;top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}[dir=rtl] .sv-ranking-item__ghost{left:initilal;right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-viewer,.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-editor{white-space:unset}.sv-ranking-item--ghost .sv-ranking-item__ghost{display:block}.sv-ranking-item--ghost .sv-ranking-item__content{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__content{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking--mobile .sv-ranking-item__icon--hover{visibility:visible;fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking--mobile.sv-ranking-shortcut{max-width:80%}.sv-ranking--mobile .sv-ranking-item__index.sv-ranking-item__index,.sv-ranking--mobile .sd-element--with-frame .sv-ranking-item__icon{margin-left:0}.sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking--disabled{opacity:.8}.sv-ranking-shortcut[hidden]{display:none}.sv-ranking-shortcut .sv-ranking-item__icon{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-shortcut .sv-ranking-item__text{margin-right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking-shortcut .sv-ranking-item__icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__content{padding-left:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut{cursor:grabbing;position:absolute;z-index:10000;border-radius:calc(12.5*var(--sjs-base-unit, var(--base-unit, 8px)));min-width:100px;max-width:400px;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-ranking-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.sv-ranking--select-to-rank{display:flex}.sv-ranking--select-to-rank-vertical{flex-direction:column-reverse}.sv-ranking--select-to-rank-vertical .sv-ranking__containers-divider{margin:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0;height:1px}.sv-ranking--select-to-rank-vertical .sv-ranking__container--empty{padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;justify-content:center;align-items:center}.sv-ranking-item--animate-item-removing{animation-name:moveIn,fadeIn;animation-direction:reverse;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-out-duration, .15s),var(--sjs-ranking-fade-out-duration, .1s);animation-delay:var(--sjs-ranking-move-out-delay, 0ms),0s}.sv-ranking-item--animate-item-adding{animation-name:moveIn,fadeIn;opacity:0;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-in-duration, .15s),var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0s,var(--sjs-ranking-fade-in-delay, .15s)}.sv-ranking-item--animate-item-adding-empty{animation-name:fadeIn;opacity:0;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0}.sv-ranking-item--animate-item-removing-empty{animation-name:fadeIn;animation-direction:reverse;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-out-duration, .1s);animation-delay:0}@keyframes sv-animate-item-opacity-reverse-keyframes{0%{opacity:0}to{opacity:1}}@keyframes sv-animate-item-opacity-keyframes{0%{opacity:1}to{opacity:0}}.sv-ranking--select-to-rank-horizontal .sv-ranking__container{max-width:calc(50% - 1px)}.sv-ranking--select-to-rank-horizontal .sv-ranking__containers-divider{width:1px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item{left:initial}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking__container-placeholder{color:var(--sjs-font-questiondescription-color, var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, .45)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:normal;display:flex;justify-content:center;align-items:center;height:100%;padding-top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-ranking__container{flex:1}.sv-ranking__container--empty{box-sizing:border-box;text-align:center}.sv-ranking__containers-divider{background:var(--sjs-border-default, var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16))))}.sv-ranking__container--from .sv-ranking-item__icon--focus{display:none}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:0!important;padding-left:16px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item .sv-ranking-item__ghost{left:initial}.sv-ranking--select-to-rank-swap-areas{flex-direction:row-reverse}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--to .sv-ranking-item{padding-left:0;left:-24px!important}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item{padding-left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item__ghost.sv-ranking-item__ghost{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item__ghost.sv-ranking-item__ghost{right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-right:0}.sd-question--mobile .sv-ranking-item__icon-container,.sd-root-modern.sd-root-modern--mobile .sv-ranking-item__icon-container{margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;justify-content:flex-end;padding:0;width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list{padding:0;margin:0;overflow-y:auto;background:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));list-style-type:none}.sv-list__empty-container{width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));box-sizing:border-box;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__empty-text{line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-weight:400;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item{width:100%;align-items:center;box-sizing:border-box;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item-body{--sjs-list-item-padding-left-default: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));--sjs-list-item-padding-left: calc(var(--sjs-list-item-level) * var(--sjs-list-item-padding-left-default));position:relative;width:100%;align-items:center;box-sizing:border-box;padding-block:var(--sjs-base-unit, var(--base-unit, 8px));padding-inline-end:calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:var(--sjs-list-item-padding-left, calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));cursor:pointer;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;transition:background-color var(--sjs-transition-duration, .15s),color var(--sjs-transition-duration, .15s)}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected){outline:none}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-list__item-body{border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-border-light, var(--border-light, #eaeaea));border-radius:var(--sjs-corner-radius, 4px);padding-block:calc(.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(7.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-string-viewer{margin-inline-start:calc(-.25*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item:hover,.sv-list__item:focus{outline:none}.sv-list__item:focus .sv-list__item-body,.sv-list__item--hovered>.sv-list__item-body{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-list__item--with-icon.sv-list__item--with-icon{padding:0}.sv-list__item--with-icon.sv-list__item--with-icon>.sv-list__item-body{padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex}.sv-list__item-icon{float:left;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item-icon svg{display:block}.sv-list__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list-item__marker-icon{position:absolute;right:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));flex-shrink:0;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.sv-list-item__marker-icon svg{display:block}.sv-list-item__marker-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}[dir=rtl] .sv-list__item-icon,[style*="direction:rtl"] .sv-list__item-icon,[style*="direction: rtl"] .sv-list__item-icon{float:right}.sv-list__item-separator{margin:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:1px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-list--filtering .sv-list__item-separator{display:none}.sv-list__item.sv-list__item--selected>.sv-list__item-body,.sv-list__item.sv-list__item--selected:hover>.sv-list__item-body,.sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,li:focus .sv-list__item.sv-list__item--selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-list__item.sv-list__item--selected .sv-list__item-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list__item-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use{fill:var(--sjs-general-backcolor, var(--background, #fff))}.sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use{fill:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item.sv-list__item--disabled .sv-list__item-body{cursor:default;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item span{white-space:nowrap}.sv-list__item-text--wrap span{white-space:normal;word-wrap:break-word}.sv-list__container{position:relative;height:100%;flex-direction:column;display:flex;min-height:0}.sv-list__filter{border-bottom:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16)));background:var(--sjs-general-backcolor, var(--background, #fff));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-list__filter-icon{display:block;position:absolute;top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));inset-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:var(--sjs-general-backcolor, var(--background, #fff));box-sizing:border-box;width:100%;min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));outline:none;font-size:var(--sjs-font-size, 16px);color:var(--sjs-general-forecolor, var(--foreground, #161616));padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(7*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));border:none}.sv-list__input::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input:disabled,.sv-list__input:disabled::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__loading-indicator{pointer-events:none}.sv-list__loading-indicator .sv-list__item-body{background-color:#0000}:root{--sjs-transition-duration: .15s}.sv-save-data_root{position:fixed;left:50%;bottom:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));background:var(--sjs-general-backcolor, var(--background, #fff));opacity:0;padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));border-radius:calc(2*(var(--sjs-corner-radius, 4px)));color:var(--sjs-general-forecolor, var(--foreground, #161616));min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));text-align:center;z-index:1600;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translate(-50%) translateY(calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px)))));transition-timing-function:ease-in;transition-property:transform,opacity;transition-delay:.25s;transition:.5s}.sv-save-data_root.sv-save-data_root--shown{transition-timing-function:ease-out;transition-property:transform,opacity;transform:translate(-50%) translateY(0);transition-delay:.25s;opacity:.75}.sv-save-data_root span{display:flex;flex-grow:1}.sv-save-data_root .sv-action-bar{display:flex;flex-grow:0;flex-shrink:0}.sv-save-data_root--shown.sv-save-data_success,.sv-save-data_root--shown.sv-save-data_error{opacity:1}.sv-save-data_root.sv-save-data_root--with-buttons{padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error{background-color:var(--sjs-special-red, var(--red, #e60a3e));color:var(--sjs-general-backcolor, var(--background, #fff));font-weight:600;gap:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error .sv-save-data_button{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));color:#fff;background-color:var(--sjs-special-red, var(--red, #e60a3e));border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid #fff;border-radius:calc(1.5*(var(--sjs-corner-radius, 4px)));padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;align-items:center}.sv-save-data_root.sv-save-data_error .sv-save-data_button:hover,.sv-save-data_root.sv-save-data_error .sv-save-data_button:focus{color:var(--sjs-special-red, var(--red, #e60a3e));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-save-data_root.sv-save-data_success{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:#fff;font-weight:600}.sv-string-viewer.sv-string-viewer--multiline{white-space:pre-wrap}.sjs_sp_container{position:relative;max-width:100%}.sjs_sp_controls{position:absolute;left:0;bottom:0}.sjs_sp_controls>button{-webkit-user-select:none;user-select:none}.sjs_sp_container>div>canvas:focus{outline:none}.sjs_sp_placeholder{display:flex;align-items:center;justify-content:center;position:absolute;z-index:1;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%}.sjs_sp_canvas{position:relative;max-width:100%;display:block}.sjs_sp__background-image{position:absolute;top:0;left:0;object-fit:cover;max-width:100%;width:100%;height:100%}:root{--sjs-default-font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif}.sv-boolean__decorator{border-radius:2px}.sv_main .sv-boolean__decorator+.sv-boolean__label{float:none;vertical-align:top;margin-left:.5em}.sv-boolean__svg{border:none;border-radius:2px;background-color:#1ab394;fill:#fff;width:24px;height:24px}.sv-boolean--allowhover:hover .sv-boolean__checked-path{display:inline-block}.sv-boolean--allowhover:hover .sv-boolean__svg{background-color:#9f9f9f;fill:#fff}.sv-boolean--allowhover:hover .sv-boolean__unchecked-path,.sv-boolean--allowhover:hover .sv-boolean__indeterminate-path,.sv-boolean__checked-path,.sv-boolean__indeterminate-path{display:none}.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#1ab394}.sv-boolean--indeterminate .sv-boolean__indeterminate-path{display:inline-block}.sv-boolean--indeterminate .sv-boolean__unchecked-path,.sv-boolean--checked .sv-boolean__unchecked-path{display:none}.sv-boolean--checked .sv-boolean__checked-path{display:inline-block}.sv-boolean--disabled.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#dbdbdb}.sv-boolean--disabled .sv-boolean__svg{background-color:#dbdbdb}td.sv_matrix_cell .sv_qbln,td.td.sv_matrix_cell .sv_qbln{text-align:center}td.sv_matrix_cell .sv_qbln .sv-boolean,td.td.sv_matrix_cell .sv_qbln .sv-boolean{text-align:initial}sv-components-container,.sd-components-container{display:flex}.sv-components-row{display:flex;flex-direction:row;width:100%}.sv-components-column{display:flex;flex-direction:column}.sv-components-column--expandable{flex-grow:1}.sv-components-row>.sv-components-column--expandable{width:1px}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100%!important}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}@media (max-width: 600px){.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100%!important}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}}body{--sv-modern-mark: true}.sv-matrixdynamic__drag-icon{padding-top:16px}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:6px;width:20px;border:1px solid var(--border-color, rgba(64, 64, 64, .5));box-sizing:border-box;border-radius:10px;cursor:move;margin-top:12px}.sv-matrix__drag-drop-ghost-position-top,.sv-matrix__drag-drop-ghost-position-bottom{position:relative}.sv-matrix__drag-drop-ghost-position-top:after,.sv-matrix__drag-drop-ghost-position-bottom:after{content:"";width:100%;height:4px;background-color:var(--main-color, #1ab394);position:absolute;left:0}.sv-matrix__drag-drop-ghost-position-top:after{top:0}.sv-matrix__drag-drop-ghost-position-bottom:after{bottom:0}.sv-skeleton-element{background-color:var(--background-dim, var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3)))}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:400}.bold-20pt{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700}.bold-caps-16pt,.toggle-btn,.toggle-btn-survey,.toggle-btn-matrix,.toggle-btn-table{font-family:Open Sans,sans-serif;font-size:16pt;font-weight:700;text-transform:uppercase}.bold-caps-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:700;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700;text-transform:uppercase}.bold-caps-30pt{font-family:Open Sans,sans-serif;font-size:30pt;font-weight:700;text-transform:uppercase}.dark-teal,.geant-header{color:#003f5f}.bold-grey-12pt{font-family:Open Sans,sans-serif;font-size:12pt;font-weight:700;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px #00000040;border:rgb(247,158,59) 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}.sidebar-wrapper>nav.survey{border:rgb(0,63,95) 2px solid}.sidebar-wrapper>nav.survey a:hover{color:#53bbb4}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn,.toggle-btn-survey{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-survey{background-color:#003f5f}.toggle-btn-wrapper{padding:.7rem .5rem .5rem}.toggle-btn-matrix,.toggle-btn-table{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.7rem .5rem .5rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}:root{--muted-alpha: .2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid rgb(185,190,197)}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:25px 5px 5px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid rgb(247,158,59);padding:10px;width:80rem;max-width:97%}.collapsible-box-matrix{border:2px solid lightblue}.collapsible-box-table{border:unset;border-bottom:2px solid lightblue}.collapsible-content{display:flex;flex-direction:column;opacity:1;padding:1rem}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.collapsible-column{display:flex;flex-direction:row;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:#00000040}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem #000c}.bg-color-of-the-year-blank{background-color:#0000}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{display:flex;flex-direction:row;overflow-x:auto}.scrollable-horizontal>*{position:relative}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse;z-index:1;width:auto}.colored-table table{width:65rem;table-layout:fixed}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:700;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid white;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem!important;background-color:#fff!important}.matrix-table tbody tr:nth-of-type(2n) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(2n){background-color:#66798b2d}.table-bg-highlighted tr:hover{background-color:#66798b85}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border:after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:#9d2872}.color-of-badge-1{background-color:#f1e04f}.color-of-badge-2{background-color:#db2a4c}.color-of-badge-3{background-color:#ed8d18}.color-of-badge-4{background-color:#89a679}.color-of-badge-blank{background-color:#0000}.bottom-tooltip,.bottom-tooltip-small:after,.bottom-tooltip-small{position:relative}.bottom-tooltip:after,.bottom-tooltip-small:after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%,calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small:after{width:5em}.bottom-tooltip-small:hover:after,.bottom-tooltip:hover:after{display:block}.bottom-tooltip:before,.bottom-tooltip-small:before{display:none;position:absolute;transform:translate(-50%,calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover:before,.bottom-tooltip-small:hover:before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00A0C6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg,#d6e8f3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg,#fcdbd5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg,#d4f0d9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg,#fee8d0,#fff);padding:1.5rem;margin:10px}.color-of-the-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg,#d0e5f2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg,#d2f0e2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg,#f3cfd3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg,#c7ece9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg,#fdcfd1,#fff);padding:1.5rem;margin:10px}.color-of-the-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg,#e9e4e3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg,#fdc9e7,#fff);padding:1.5rem;margin:10px}.color-of-the-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg,#e5e5e5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg,#cddcec,#fff);padding:1.5rem;margin:10px}.color-of-the-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:700}.user-management-table{width:100%;table-layout:fixed;max-height:max(50vh,30rem)}@media (max-width: 1920px){.user-management-table{max-width:100vw}}.user-management-table>* th,.user-management-table>* td{word-wrap:break-word}.user-management-table thead th{position:sticky;top:-.1rem;background-color:#fff;z-index:1}.nav-link-entry{border-radius:2px;font-family:Open Sans,sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:Open Sans,sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:700;border:none}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:deepskyblue 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:700}.imageoption>span{margin-left:.25rem}.imageoption:after{content:"";display:block;border-bottom:grey 1px solid}.downloadcontainer{margin-bottom:2rem}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none}.sd-element__title-expandable-svg{height:1.5rem;width:1.5rem;margin-right:.5rem}.sv-multipletext__cell{padding:.5rem}.hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}.survey-title{color:#2db394}.survey-description{color:#262261;font-weight:400}.survey-title:after{content:"";display:inline-block;width:.1rem;height:1em;background-color:#2db394;margin:0 .5rem;vertical-align:middle}.survey-title-nren{color:#262261}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-header-flex{display:flex;align-items:center;border-radius:2rem;color:#2db394;font-weight:700;padding-left:1rem!important;background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-error-color-fix{background-color:var(--error-background-color, rgba(26, 179, 148, .2))}.sv-container-modern__title{display:none}.sv-title.sv-page__title{font-size:1.5rem;font-weight:700;color:#2db394;margin-bottom:.25rem}.sv-title.sv-panel__title{color:#262261}.sv-description{font-weight:700;color:#262261}.sv-text{border-bottom:.2rem dotted var(--text-border-color, #d4d4d4)}.verification{min-height:1.5rem;flex:0 0 auto;margin-left:auto;display:inline-block;border-radius:1rem;padding:0 1rem;margin-top:.25rem;margin-bottom:.25rem;margin-right:.4rem;box-shadow:0 0 2px 2px #2db394}.verification-required{font-size:.85rem;font-weight:700;text-transform:uppercase;background-color:#fff}.verification-ok{color:#fff;font-size:.85rem;font-weight:700;text-transform:uppercase;background-color:#2db394;pointer-events:none}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:#2db394}.survey-content,.survey-progress{padding-right:5rem;padding-left:5rem}.sv-question__num{white-space:nowrap}.survey-container{margin-top:2.5rem;margin-bottom:4rem;max-width:90rem}.survey-edit-buttons-block{display:flex;align-items:center;justify-content:center;padding:1em}.survey-edit-explainer{background-color:var(--error-background-color);color:#262261;padding:1em;font-weight:700;text-align:center}.survey-tooltip{position:relative}.survey-tooltip:after{display:none;position:absolute;padding:10px 15px;transform:translateY(calc(-100% - 10px));left:0;top:0;width:20em;z-index:999;content:attr(description);text-align:center;border-radius:10px;background-color:#d1f0ea}.survey-tooltip:hover:after{display:block}.survey-tooltip:before{display:none;position:absolute;transform:translate(-50%,calc(-100% - 5px)) rotate(45deg);left:50%;top:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.survey-tooltip:hover:before{display:block}.sortable{cursor:pointer}.sortable:hover{text-decoration:dotted underline}th.sortable[aria-sort=descending]:after{content:"▼";color:currentcolor;font-size:100%;margin-left:.25rem}th.sortable[aria-sort=ascending]:after{content:"▲";color:currentcolor;font-size:100%;margin-left:.25rem}
+*/@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqhPAMif.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPAA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISQ.woff) format("woff")}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBg.woff) format("woff")}.sv-dragdrop-movedown{transform:translate(0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translateY(-50px)}to{transform:translate(0)}}.sv-dragdrop-moveup{transform:translate(0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translateY(50px)}to{transform:translate(0)}}.sv_progress-buttons__container-center{text-align:center}.sv_progress-buttons__container{display:inline-block;font-size:0;width:100%;max-width:1100px;white-space:nowrap;overflow:hidden}.sv_progress-buttons__image-button-left{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=)}.sv_progress-buttons__image-button-right{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(.875*(var(--sjs-font-size, 16px)));width:16px;height:16px;cursor:pointer;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==)}.sv_progress-buttons__image-button--hidden{visibility:hidden}.sv_progress-buttons__list-container{max-width:calc(100% - 36px);display:inline-block;overflow:hidden}.sv_progress-buttons__list{display:inline-block;width:max-content;padding-left:28px;padding-right:28px;margin-top:14px;margin-bottom:14px}.sv_progress-buttons__list li{width:138px;font-size:calc(.875*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));position:relative;text-align:center;vertical-align:top;display:inline-block}.sv_progress-buttons__list li:before{width:24px;height:24px;content:"";line-height:30px;display:block;margin:0 auto 10px;border:3px solid;border-radius:50%;box-sizing:content-box;cursor:pointer}.sv_progress-buttons__list li:after{width:73%;height:3px;content:"";position:absolute;top:15px;left:-36.5%}.sv_progress-buttons__list li:first-child:after{content:none}.sv_progress-buttons__list .sv_progress-buttons__page-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.sv_progress-buttons__list .sv_progress-buttons__page-description{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before{cursor:not-allowed}.sv_progress-toc{padding:var(--sjs-base-unit, var(--base-unit, 8px));max-width:336px;height:100%;background:#fff;box-sizing:border-box;min-width:calc(32*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body{background:#19b3941a;color:#161616;font-weight:400}.sv_progress-toc .sv-list__item span{white-space:break-spaces}.sv_progress-toc .sv-list__item-body{padding-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-corner-radius, 4px);padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_progress-toc--left{border-right:1px solid #d6d6d6}.sv_progress-toc--right{border-left:1px solid #d6d6d6}.sv_progress-toc--mobile{position:fixed;top:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));width:auto;min-width:auto;height:auto;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));z-index:15;border-radius:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile>div{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv_progress-toc--mobile:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sd-title+.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),.sd-title~.sv-components-row>.sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile){margin-top:2px}.sv_progress-toc.sv_progress-toc--sticky{position:sticky;height:auto;overflow-y:auto;top:0}.sv-container-modern{color:var(--text-color, #404040);font-size:var(--font-size, var(--sjs-font-size, 16px));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-container-modern__title{color:var(--main-color, #1ab394);padding-left:.55em;padding-top:5em;padding-bottom:.9375em}@media only screen and (min-width: 1000px){.sv-container-modern__title{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-container-modern__title{margin-right:10px;margin-left:10px}}.sv-container-modern__title h3{margin:0;font-size:1.875em}.sv-container-modern__title h5{margin:0}.sv-container-modern__close{clear:right}.sv-container-modern fieldset,.sv-container-modern legend{border:none;padding:0;margin:0}.sv-body{width:100%;padding-bottom:calc(10*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-top:2em}@media only screen and (min-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:10px;margin-left:10px}}.sv-body__timer{padding:0 var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box}.sv-body__progress{margin-bottom:4.5em}.sv-body__progress:not(:first-child){margin-top:2.5em}.sv-root-modern{width:100%;--sv-mobile-width: 600px}.sv-page__title{margin:0 0 1.333em;font-size:1.875em;padding-left:.293em}.sv-page__description{min-height:2.8em;font-size:1em;padding-left:.55em}.sv-page__title+.sv-page__description{margin-top:-2.8em}.sv-panel{box-sizing:border-box;width:100%}.sv-panel__title{font-size:1.25em;margin:0;padding:0 .44em .1em;position:relative}.sv-panel__footer{margin:0;padding:1em .44em 1em 0}.sv-panel__description{padding-left:.55em}.sv-panel__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-panel__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-panel__title--expandable.sv-panel__title--expanded:after{transform:rotate(180deg)}.sv-panel__icon{outline:none}.sv-panel__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-panel__icon--expanded:before{transform:rotate(180deg)}.sv-panel .sv-question__title{font-size:1em;padding-left:.55em}.sv-panel__content:not(:first-child){margin-top:.75em}.sv-panel .sv-row:not(:last-child){padding-bottom:1.875em}.sv-panel__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-paneldynamic__progress-container{position:relative;margin-left:.75em;margin-right:250px;margin-top:20px}.sv-paneldynamic__add-btn{background-color:var(--add-button-color, #1948b3);float:right;margin-top:-18px}[dir=rtl] .sv-paneldynamic__add-btn,[style*="direction:rtl"] .sv-paneldynamic__add-btn,[style*="direction: rtl"] .sv-paneldynamic__add-btn{float:left}.sv-paneldynamic__add-btn--list-mode{float:none;margin-top:1em}.sv-paneldynamic__remove-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-paneldynamic__remove-btn--right{margin-top:0;margin-left:1.25em}.sv-paneldynamic__prev-btn,.sv-paneldynamic__next-btn{box-sizing:border-box;display:inline-block;fill:var(--text-color, #404040);cursor:pointer;width:.7em;top:-.28em;position:absolute}.sv-paneldynamic__prev-btn svg,.sv-paneldynamic__next-btn svg{display:block;height:.7em;width:.7em}.sv-paneldynamic__prev-btn{left:-1.3em;transform:rotate(90deg)}.sv-paneldynamic__next-btn{right:-1.3em;transform:rotate(270deg)}.sv-paneldynamic__prev-btn--disabled,.sv-paneldynamic__next-btn--disabled{fill:var(--disable-color, #dbdbdb);cursor:auto}.sv-paneldynamic__progress-text{color:var(--progress-text-color, #9d9d9d);font-weight:700;font-size:.87em;margin-top:.69em;margin-left:1em}.sv-paneldynamic__separator{border:none;margin:0}.sv-paneldynamic__progress--top{margin-bottom:1em}.sv-paneldynamic__progress--bottom{margin-top:1em}.sv-paneldynamic__panel-wrapper~.sv-paneldynamic__panel-wrapper{padding-top:2.5em}.sv-paneldynamic__panel-wrapper--in-row{display:flex;flex-direction:row;align-items:center}@supports (display: flex){.sv-row{display:flex;flex-wrap:wrap}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){float:left}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){padding-bottom:2.5em;float:none}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){[dir=rtl] .sv-row__question:not(:last-child),[style*="direction:rtl"] .sv-row__question:not(:last-child),[style*="direction: rtl"] .sv-row__question:not(:last-child){float:right}}@media only screen and (-ms-high-contrast: active)and (max-width: 6000px),only screen and (-ms-high-contrast: none)and (max-width: 6000px){.sv-row__question--small:only-child{max-width:3000px}}@media only screen and (-ms-high-contrast: active)and (max-width: 3000px),only screen and (-ms-high-contrast: none)and (max-width: 3000px){.sv-row__question--small:only-child{max-width:1200px}}@media only screen and (-ms-high-contrast: active)and (max-width: 2000px),only screen and (-ms-high-contrast: none)and (max-width: 2000px){.sv-row__question--small:only-child{max-width:700px}}@media only screen and (-ms-high-contrast: active)and (max-width: 1000px),only screen and (-ms-high-contrast: none)and (max-width: 1000px){.sv-row__question--small:only-child{max-width:500px}}@media only screen and (-ms-high-contrast: active)and (max-width: 500px),only screen and (-ms-high-contrast: none)and (max-width: 500px){.sv-row__question--small:only-child{max-width:300px}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question{width:100%!important;padding-right:0!important}}.sv-row>.sv-row__panel,.sv-row__question{vertical-align:top;white-space:normal}.sv-row__question:first-child:last-child{flex:none!important}.sv-row:not(:last-child){padding-bottom:2.5em}.sv-question{overflow:auto;box-sizing:border-box;font-family:inherit;padding-left:var(--sv-element-add-padding-left, 0px);padding-right:var(--sv-element-add-padding-right, 0px)}.sv-question__title{position:relative;box-sizing:border-box;margin:0;padding:.25em .44em;cursor:default;font-size:1.25em}.sv-question__required-text{line-height:.8em;font-size:1.4em}.sv-question__description{margin:0;padding-left:.55em;font-size:1em}.sv-question__input{width:100%;height:1.81em}.sv-question__content{margin-left:.55em}.sv-question__erbox{color:var(--error-color, #d52901);font-size:.74em;font-weight:700}.sv-question__erbox--location--top{margin-bottom:.4375em}.sv-question__erbox--location--bottom{margin-top:.4375em}.sv-question__footer{padding:.87em 0}.sv-question__title--answer{background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-question__header--location--top{margin-bottom:.65em}.sv-question__header--location--left{float:left;width:27%;margin-right:.875em}[dir=rtl] .sv-question__header--location--left,[style*="direction:rtl"] .sv-question__header--location--left,[style*="direction: rtl"] .sv-question__header--location--left{float:right}.sv-question__header--location--bottom{margin-top:.8em}.sv-question__content--left{overflow:hidden}.sv-question__other,.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, .5))}.sv-image{display:inline-block}.sv-question__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-question__title--expandable:after{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-question__title--expandable.sv-question__title--expanded:after{transform:rotate(180deg)}.sv-question__icon{outline:none}.sv-question__icon:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-question__icon--expanded:before{transform:rotate(180deg)}.sv-progress{height:.19em;background-color:var(--header-background-color, #e7e7e7);position:relative}.sv-progress__bar{position:relative;height:100%;background-color:var(--main-color, #1ab394)}.sv-progress__text{position:absolute;margin-top:.69em;color:var(--progress-text-color, #9d9d9d);font-size:.87em;font-weight:700;padding-left:.6321em}@media only screen and (min-width: 1000px){.sv-progress__text{margin-left:5%}}@media only screen and (max-width: 1000px){.sv-progress__text{margin-left:10px}}.sv_progress-buttons__list li:before{border-color:var(--progress-buttons-color, #8dd9ca);background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li:after{background-color:var(--text-border-color, #d4d4d4)}.sv_progress-buttons__list .sv_progress-buttons__page-title,.sv_progress-buttons__list .sv_progress-buttons__page-description{color:var(--text-color, #404040)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before{border-color:var(--main-color, #1ab394);background-color:var(--main-color, #1ab394)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed+li:after{background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv-title{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.sv-description{color:var(--disabled-text-color, rgba(64, 64, 64, .5))}.sv-question .sv-selectbase{margin-bottom:4px}.sv-selectbase__item{margin-bottom:.425em;vertical-align:top}.sv-selectbase__item--inline{display:inline-block;padding-right:5%}.sv-selectbase__column{min-width:140px;vertical-align:top}.sv-selectbase__label{position:relative;display:block;box-sizing:border-box;cursor:inherit;margin-left:41px;min-height:30px}[dir=rtl] .sv-selectbase__label,[style*="direction:rtl"] .sv-selectbase__label,[style*="direction: rtl"] .sv-selectbase__label{margin-right:41px;margin-left:0}.sv-selectbase__decorator.sv-item__decorator{position:absolute;left:-41px}[dir=rtl] .sv-selectbase__decorator.sv-item__decorator,[style*="direction:rtl"] .sv-selectbase__decorator.sv-item__decorator,[style*="direction: rtl"] .sv-selectbase__decorator.sv-item__decorator{left:initial;right:-41px}.sv-selectbase__clear-btn{margin-top:.9em;background-color:var(--clean-button-color, #1948b3)}.sv-selectbase .sv-selectbase__item.sv-q-col-1{padding-right:0}.sv-question .sv-q-column-1{width:100%;max-width:100%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-2{max-width:50%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-3{max-width:33.33333%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-4{max-width:25%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-question .sv-q-column-5{max-width:20%;display:inline-block;padding-right:1em;box-sizing:border-box}.sv-multipletext{width:100%;table-layout:fixed}.sv-multipletext__item-label{display:flex;align-items:center}.sv-multipletext__item{flex:1}.sv-multipletext__item-title{margin-right:1em;width:33%}.sv-multipletext__cell:not(:first-child){padding-left:.5em}.sv-multipletext__cell:not(:last-child){padding-right:.5em}.sv-matrix{overflow-x:auto}.sv-matrix .sv-table__cell--header{text-align:center}.sv-matrix__label{display:inline-block;margin:0}.sv-matrix__cell{min-width:10em;text-align:center}.sv-matrix__cell:first-child{text-align:left}.sv-matrix__text{cursor:pointer}.sv-matrix__text--checked{color:var(--body-background-color, white);background-color:var(--main-color, #1ab394)}.sv-matrix__text--disabled{cursor:default}.sv-matrix__text--disabled.sv-matrix__text--checked{background-color:var(--disable-color, #dbdbdb)}.sv-matrix__row--error{background-color:var(--error-background-color, rgba(213, 41, 1, .2))}.sv-matrixdynamic__add-btn{background-color:var(--add-button-color, #1948b3)}.sv-matrixdynamic__remove-btn{background-color:var(--remove-button-color, #ff1800)}.sv-detail-panel__icon{display:block;position:absolute;left:50%;top:50%;height:13px;width:24px;transform:translate(-50%,-50%) rotate(270deg)}.sv-detail-panel__icon--expanded{transform:translate(-50%,-50%)}.sv-detail-panel__icon:before{content:"";display:block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' style='enable-background:new 0 0 20 20;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='19,6 17,4 10,11 3,4 1,6 10,15 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:18px;width:24px}.sv-root-modern ::-webkit-scrollbar{height:6px;width:6px;background-color:var(--main-hover-color, #9f9f9f)}.sv-root-modern ::-webkit-scrollbar-thumb{background:var(--main-color, #1ab394)}.sv-table{width:100%;background-color:rgba(var(--main-hover-color, #9f9f9f),.1);border-collapse:separate;border-spacing:0}.sv-table tbody tr:last-child .sv-table__cell{padding-bottom:2.5em}.sv-table tr:first-child .sv-table__cell{padding-top:1.875em}.sv-table td:first-child,.sv-table th:first-child{padding-left:1.875em}.sv-table td:last-child,.sv-table th:last-child{padding-right:1.875em}.sv-table__row--detail{background-color:var(--header-background-color, #e7e7e7)}.sv-table__row--detail td{border-top:1px solid var(--text-border-color, #d4d4d4);border-bottom:1px solid var(--text-border-color, #d4d4d4);padding:1em 0}.sv-table__cell{padding:.9375em 0;box-sizing:content-box;vertical-align:top}.sv-table__cell:not(:last-child){padding-right:1em}.sv-table__cell:not(:first-child){padding-left:1em}.sv-table__cell--header{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-weight:700;text-align:left}.sv-table__cell--rowText{vertical-align:middle}.sv-table__cell--detail{text-align:center;vertical-align:middle;width:32px}.sv-table__cell--detail-rowtext{vertical-align:middle}.sv-table__cell--detail-panel{padding-left:1em}.sv-table__cell--detail-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:#0000}.sv-table__empty--rows--section{text-align:center;vertical-align:middle}.sv-table__empty--rows--text{padding:20px}.sv-table__cell--actions sv-action-bar,.sv-table__cell--actions .sv-action-bar{margin-left:0;padding-left:0}.sv-footer.sv-action-bar{display:block;min-height:var(--base-line-height, 2em);padding:2.5em 0 .87em;margin-left:auto}.sv-footer.sv-action-bar .sv-action__content{display:block}.sv-footer.sv-action-bar .sv-action:not(:last-child) .sv-action__content{padding-right:0}.sv-btn--navigation{margin:0 1em;float:right;background-color:var(--main-color, #1ab394)}.sv-footer__complete-btn,.sv-footer__next-btn,.sv-footer__preview-btn{float:right}.sv-footer__prev-btn,.sv-footer__edit-btn,[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn,[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn,[dir=rtl] .sv-footer__next-btn,[style*="direction:rtl"] .sv-footer__next-btn,[style*="direction: rtl"] .sv-footer__next-btn{float:left}[dir=rtl] .sv-footer__prev-btn,[style*="direction:rtl"] .sv-footer__prev-btn,[style*="direction: rtl"] .sv-footer__prev-btn,[dir=rtl] .sv-footer__edit-btn,[style*="direction:rtl"] .sv-footer__edit-btn,[style*="direction: rtl"] .sv-footer__edit-btn{float:right}.sv-btn.sv-action-bar-item,.sv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:1.214em;color:var(--body-background-color, white);cursor:pointer;font-family:inherit;font-size:.875em;font-weight:700;outline:none;padding:.5em 2.786em .6em;text-align:start}.sv-btn--navigation{background-color:var(--main-color, #1ab394)}.sv-item{position:relative;cursor:pointer}.sv-item--disabled{cursor:default}.sv-item__decorator{position:relative;display:inline-block;box-sizing:border-box;width:30px;height:30px;border:solid 1px rgba(0,0,0,0);vertical-align:middle}.sv-item__svg{position:absolute;top:50%;left:50%;display:inline-block;box-sizing:border-box;width:24px;height:24px;margin-right:-50%;transform:translate(-50%,-50%)}.sv-item__control:focus+.sv-item__decorator{border-color:var(--main-color, #1ab394);outline:none}.sv-item__control-label{position:relative;top:4px}.sv-checkbox__decorator{border-radius:2px}.sv-checkbox__svg{border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:2px;fill:#0000}.sv-checkbox--allowhover:hover .sv-checkbox__svg{border:none;background-color:var(--main-hover-color, #9f9f9f);fill:#fff}.sv-checkbox--checked .sv-checkbox__svg{border:none;background-color:var(--main-color, #1ab394);fill:#fff}.sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg{border:none;background-color:var(--disable-color, #dbdbdb);fill:#fff}.sv-checkbox--disabled .sv-checkbox__svg{border:3px solid var(--disable-color, #dbdbdb)}.sv-radio__decorator{border-radius:100%}.sv-radio__svg{border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:100%;fill:#0000}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, .5))}.sv-radio--checked .sv-radio__svg{border-color:var(--radio-checked-color, #404040);fill:var(--radio-checked-color, #404040)}.sv-radio--disabled .sv-radio__svg{border-color:var(--disable-color, #dbdbdb)}.sv-radio--disabled.sv-radio--checked .sv-radio__svg{fill:var(--disable-color, #dbdbdb)}.sv-boolean{display:block;position:relative;line-height:1.5em}.sv-boolean__switch{float:left;box-sizing:border-box;width:4em;height:1.5em;margin-right:1.0625em;margin-left:1.3125em;padding:.125em .1875em;border-radius:.75em;margin-bottom:2px}.sv-boolean input:focus~.sv-boolean__switch{outline:1px solid var(--main-color, #1ab394);outline-offset:1px}[dir=rtl] .sv-boolean__switch,[style*="direction:rtl"] .sv-boolean__switch,[style*="direction: rtl"] .sv-boolean__switch{float:right}.sv-boolean__slider{display:block;width:1.25em;height:1.25em;transition-duration:.1s;transition-property:margin-left;transition-timing-function:linear;border:none;border-radius:100%}.sv-boolean--indeterminate .sv-boolean__slider{margin-left:calc(50% - .625em)}.sv-boolean--checked .sv-boolean__slider{margin-left:calc(100% - 1.25em)}.sv-boolean__label{cursor:pointer;float:left}[dir=rtl] .sv-boolean__label,[style*="direction:rtl"] .sv-boolean__label,[style*="direction: rtl"] .sv-boolean__label{float:right}[dir=rtl] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--indeterminate .sv-boolean__slider{margin-right:calc(50% - .625em)}[dir=rtl] .sv-boolean--checked .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--checked .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--checked .sv-boolean__slider{margin-right:calc(100% - 1.25em)}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, .5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-imagepicker__item{border:none;padding:.24em}.sv-imagepicker__item--inline{display:inline-block}.sv-imagepicker__item--inline:not(:last-child){margin-right:4%}.sv-imagepicker__image{border:.24em solid rgba(0,0,0,0);display:block;pointer-events:none}.sv-imagepicker__label{cursor:inherit}.sv-imagepicker__text{font-size:1.14em;padding-left:.24em}.sv-imagepicker__item--allowhover:hover .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item:not(.sv-imagepicker__item--checked) .sv-imagepicker__control:focus~div .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--main-color, #1ab394);border-color:var(--main-color, #1ab394)}.sv-imagepicker__item{cursor:pointer}.sv-imagepicker__item--disabled{cursor:default}.sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-dropdown{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:block;background:#0000;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.57em 100%;border:none;border-bottom:.06em solid var(--text-border-color, #d4d4d4);box-sizing:border-box;font-family:inherit;font-size:inherit;padding-block:.25em;padding-inline-end:1.5em;padding-inline-start:.87em;height:2.19em;width:100%;display:flex;justify-content:space-between}.sv-dropdown input[readonly]{pointer-events:none}.sv-dropdown:focus,.sv-dropdown:focus-within{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ");border-color:var(--text-border-color, #d4d4d4);outline:none}.sv-dropdown::-ms-expand{display:none}.sv-dropdown--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-dropdown--error::placeholder,.sv-dropdown--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-dropdown option{color:var(--text-color, #404040)}.sv-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;color:var(--text-color, #404040);position:relative}.sv-dropdown__value .sv-string-viewer{line-height:28px}.sv_dropdown_control__input-field-component{height:auto}.sv-dropdown__hint-prefix{opacity:.5}.sv-dropdown__hint-prefix span{word-break:unset;line-height:28px}.sv-dropdown__hint-suffix{display:flex;opacity:.5}.sv-dropdown__hint-suffix span{word-break:unset;line-height:28px}.sv-dropdown_clean-button{padding:3px 12px;margin:auto 0}.sv-dropdown_clean-button-svg{width:12px;height:12px}.sv-input.sv-dropdown:focus-within .sv-dropdown__filter-string-input{z-index:2000}.sv-dropdown__filter-string-input{border:none;outline:none;padding:0;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:inherit;background-color:#0000;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;left:0;top:0;height:100%}.sv-dropdown--empty:not(.sv-input--disabled) .sv-dropdown__filter-string-input::placeholder{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));color:var(--text-color, #404040)}.sv-dropdown__filter-string-input::placeholder{color:var(--disabled-text-color, rgba(64, 64, 64, .5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none}[dir=rtl] .sv-dropdown,[style*="direction:rtl"] .sv-dropdown,[style*="direction: rtl"] .sv-dropdown{background-position:left .7em top 50%,0 0}.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled){height:auto;padding:.5em;padding-inline-end:2em}.sv-tagbox_clean-button{height:1.5em;padding:.5em;margin:auto 0}.sv-tagbox__value.sv-dropdown__value{position:relative;gap:.25em;display:flex;flex-wrap:wrap;flex-grow:1;padding-inline:unset;margin-inline:unset;margin-block:unset}.sv-tagbox__item{position:relative;display:flex;color:var(--text-color, #404040);height:1.5em;padding-block:.25em;padding-inline-end:.4em;padding-inline-start:.87em;border:solid .1875em #9f9f9f;border-radius:2px;min-width:2.3125em}.sv-tagbox__item:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use{fill:var(--body-background-color, white)}.sv-tagbox__item-text{color:inherit;font-size:1em}.sv-tagbox__item_clean-button-svg{margin:.3125em;width:1em;height:1em}.sv-tagbox__item_clean-button-svg use{fill:var(--text-color, #404040)}.sv-tagbox__filter-string-input{width:auto;display:flex;flex-grow:1;position:initial}.sv-tagbox__placeholder{position:absolute;top:0;left:0;max-width:100%;width:auto;height:100%;text-align:start;cursor:text;pointer-events:none;color:var(--main-hover-color, #9f9f9f)}.sv-tagbox{border-bottom:.06em solid var(--text-border-color, #d4d4d4)}.sv-tagbox:focus{border-color:var(--text-border-color, #d4d4d4)}.sv-tagbox--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-tagbox--error::placeholder{color:var(--error-color, #d52901)}.sv-tagbox--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-tagbox .sv-dropdown__filter-string-input{height:auto}.sv-text{box-sizing:border-box;width:100%;height:2.19em;padding:.25em 0 .25em .87em;border:none;border-radius:0;border-bottom:.07em solid var(--text-border-color, #d4d4d4);box-shadow:none;background-color:#0000;font-family:inherit;font-size:1em}.sv-text:focus{border-color:var(--main-color, #1ab394);outline:none;box-shadow:none}.sv-text:invalid{box-shadow:none}.sv-text:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #fff inset}.sv-text::placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text:-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text::-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text[type=date]{padding-right:2px;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat,repeat;background-position:right .61em top 50%,0 0;background-size:.57em auto,100%}.sv-text[type=date]:focus{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ")}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:#0000;background:#0000}.sv-text[type=date]::-webkit-clear-button{display:none}.sv-text[type=date]::-webkit-inner-spin-button{display:none}.sv-text--error{color:var(--error-color, #d52901);border-color:var(--error-color, #d52901)}.sv-text--error::placeholder{color:var(--error-color, #d52901)}.sv-text--error::-ms-input-placeholder{color:var(--error-color, #d52901)}input.sv-text,textarea.sv-comment,select.sv-dropdown{color:var(--text-color, #404040);background-color:var(--inputs-background-color, white)}.sv-rating{color:var(--text-color, #404040);padding-bottom:3px}.sv-rating input:focus+.sv-rating__min-text+.sv-rating__item-text,.sv-rating input:focus+.sv-rating__item-text{outline:1px solid var(--main-color, #1ab394);outline-offset:2px}.sv-rating__item{position:relative;display:inline}.sv-rating__item-text{min-width:2.3125em;height:2.3125em;display:inline-block;color:var(--main-hover-color, #9f9f9f);padding:0 .3125em;border:solid .1875em var(--main-hover-color, #9f9f9f);text-align:center;font-size:1em;font-weight:700;line-height:1.13;cursor:pointer;margin:3px .26em 3px 0;box-sizing:border-box}.sv-rating__item-text>span{margin-top:.44em;display:inline-block}.sv-rating__item-text:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-rating__item--selected .sv-rating__item-text{background-color:var(--main-color, #1ab394);color:var(--body-background-color, white);border-color:var(--main-color, #1ab394)}.sv-rating__item--selected .sv-rating__item-text:hover{background-color:var(--main-color, #1ab394)}.sv-rating__item-star>svg{fill:var(--text-color, #404040);height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0)}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star>svg.sv-star-2{display:none}.sv-rating__item-star--selected>svg{fill:var(--main-color, #1ab394)}.sv-rating__item-smiley>svg{height:24px;width:24px;padding:4px;display:inline-block;vertical-align:middle;border:3px solid var(--border-color, rgba(64, 64, 64, .5));margin:3px .26em 3px 0;fill:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley>svg>use{display:block}.sv-rating__item-smiley>svg:hover{border:3px solid var(--main-hover-color, #9f9f9f);background-color:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley--selected>svg{background-color:var(--main-color, #1ab394);fill:var(--body-background-color, white);border:3px solid var(--main-color, #1ab394)}.sv-rating__min-text{font-size:1em;margin-right:1.25em;cursor:pointer}.sv-rating__max-text{font-size:1em;margin-left:.87em;cursor:pointer}.sv-question--disabled .sv-rating__item-text{cursor:default;color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-question--disabled .sv-rating__item-text:hover{background-color:#0000}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text,.sv-question--disabled .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__min-text,.sv-question--disabled .sv-rating__max-text{cursor:default}.sv-comment{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.06em solid var(--text-border-color, #d4d4d4);border-radius:0;box-sizing:border-box;padding:.25em .87em;font-family:inherit;font-size:1em;outline:none;width:100%;max-width:100%}.sv-comment:focus{border-color:var(--main-color, #1ab394)}.sv-file{position:relative}.sv-file__decorator{background-color:var(--body-container-background-color, #f4f4f4);padding:1.68em 0}.sv-file__clean-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-file__choose-btn:not(.sv-file__choose-btn--disabled){background-color:var(--add-button-color, #1948b3);display:inline-block}.sv-file__choose-btn--disabled{cursor:default;background-color:var(--disable-color, #dbdbdb);display:inline-block}.sv-file__no-file-chosen{display:inline-block;font-size:.87em;margin-left:1em}.sv-file__preview{display:inline-block;padding-right:23px;position:relative;margin-top:1.25em;vertical-align:top}.sv-file__preview:not(:last-child){margin-right:31px}.sv-file__remove-svg{position:absolute;fill:#ff1800;cursor:pointer;height:16px;top:0;right:0;width:16px}.sv-file__remove-svg .sv-svg-icon{width:16px;height:16px}.sv-file__sign a{color:var(--text-color, #404040);text-align:left;text-decoration:none}.sv-file__wrapper{position:relative;display:inline-block;margin:0 0 0 50%;transform:translate(-50%);padding:0}.sv-clearfix:after{content:"";display:table;clear:both}.sv-completedpage{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:1.875em;font-weight:700;box-sizing:border-box;height:14em;padding-top:4.5em;padding-bottom:4.5em;text-align:center;color:var(--text-color, #404040);background-color:var(--body-container-background-color, #f4f4f4)}.sv-completedpage:before{display:block;content:"";background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 72 72' style='enable-background:new 0 0 72 72;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M11.9,72c-0.6-0.1-1.2-0.3-1.8-0.4C4.2,70.1,0,64.7,0,58.6c0-15.1,0-30.1,0-45.2C0,6,6,0,13.4,0 c12,0,24,0,36,0c2.4,0,4.4,1.7,4.6,4c0.2,2.4-1.3,4.4-3.6,4.9C50,9,49.7,9,49.4,9C37.6,9,25.8,9,14,9c-1.5,0-2.8,0.4-3.9,1.5 c-0.8,0.9-1.2,2-1.2,3.2c0,8.2,0,16.4,0,24.6C9,45,9,51.6,9,58.2c0,2.9,1.9,4.8,4.8,4.8c14.9,0,29.7,0,44.6,0c2.6,0,4.6-2,4.6-4.6 c0-5.9,0-11.8,0-17.7c0-2.4,1.6-4.3,3.9-4.6c2.3-0.3,4.3,1,5,3.4c0,0.1,0.1,0.2,0.1,0.2c0,6.8,0,13.6,0,20.4c0,0.1-0.1,0.3-0.1,0.4 c-0.8,5.4-4.7,9.8-10.1,11.2c-0.6,0.1-1.2,0.3-1.8,0.4C44,72,28,72,11.9,72z'/%3E%3Cpath class='st0' d='M35.9,38.8c0.4-0.4,0.5-0.7,0.7-0.9c8.4-8.4,16.8-16.8,25.2-25.2c1.9-1.9,4.5-2,6.3-0.4 c1.9,1.6,2.1,4.6,0.4,6.4c-0.2,0.2-0.3,0.3-0.5,0.5c-9.5,9.5-19.1,19.1-28.6,28.6c-2.2,2.2-4.8,2.2-7,0 c-5.1-5.1-10.2-10.2-15.4-15.4c-1.3-1.3-1.7-2.8-1.2-4.5c0.5-1.7,1.6-2.8,3.4-3.1c1.6-0.4,3.1,0.1,4.2,1.3c4,4,7.9,7.9,11.9,11.9 C35.6,38.2,35.7,38.5,35.9,38.8z'/%3E%3C/g%3E%3C/svg%3E%0A");width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0;box-sizing:border-box}@media only screen and (min-width: 1000px){.sv-completedpage{margin-right:5%;margin-left:calc(5% + .293em)}}@media only screen and (max-width: 1000px){.sv-completedpage{margin-left:calc(10px + .293em);margin-right:10px}}.sv-header{white-space:nowrap}.sv-logo--left{display:inline-block;vertical-align:top;margin-right:2em}.sv-logo--right{vertical-align:top;margin-left:2em;float:right}.sv-logo--top,.sv-logo--bottom{display:block;width:100%;text-align:center}.sv-header__text{display:inline-block;vertical-align:top}.sjs_sp_container{border:1px dashed var(--disable-color, #dbdbdb)}.sjs_sp_placeholder{color:var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)))}.sv-action-bar{display:flex;box-sizing:content-box;position:relative;align-items:center;margin-left:auto;overflow:hidden;white-space:nowrap}.sv-action-bar-separator{display:inline-block;width:1px;height:24px;vertical-align:middle;margin-right:16px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-action-bar--default-size-mode .sv-action-bar-separator{margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-separator{margin:0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));overflow-x:hidden;white-space:nowrap}button.sv-action-bar-item{overflow:hidden}.sv-action-bar--default-size-mode .sv-action-bar-item{height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));margin:0 var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));font-size:calc(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);margin:0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action:first-of-type .sv-action-bar-item{margin-inline-start:0}.sv-action:last-of-type .sv-action-bar-item{margin-inline-end:0}.sv-action-bar--default-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-action-bar-item__icon svg{display:block}.sv-action-bar-item__icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-action-bar-item:not(.sv-action-bar-item--pressed):hover:enabled,.sv-action-bar-item:not(.sv-action-bar-item--pressed):focus:enabled{outline:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-action-bar-item--active.sv-action-bar-item--pressed:focus,.sv-action-bar-item--active.sv-action-bar-item--pressed:focus-visible{outline:none}.sv-action-bar-item:not(.sv-action-bar-item--pressed):active:enabled{opacity:.5}.sv-action-bar-item:disabled{opacity:.25;cursor:default}.sv-action-bar-item__title{color:inherit;vertical-align:middle;white-space:nowrap}.sv-action-bar-item--secondary .sv-action-bar-item__icon use{fill:var(--sjs-secondary-backcolor, var(--secondary, #ff9814))}.sv-action-bar-item--active .sv-action-bar-item__icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-action-bar-item-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;cursor:pointer;line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-expand-action:before{content:"";display:inline-block;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A");background-repeat:no-repeat;background-position:center center;height:10px;width:12px;margin:auto 8px}.sv-expand-action--expanded:before{transform:rotate(180deg)}.sv-dots{width:48px}.sv-dots__item{width:100%}.sv-dots__item .sv-action-bar-item__icon{margin:auto}.sv-action--hidden{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-action--hidden .sv-action__content{min-width:fit-content}.sv-action__content{display:flex;flex-direction:row;align-items:center}.sv-action__content>*{flex:0 0 auto}.sv-action--space{margin-left:auto}.sv-action-bar-item--pressed:not(.sv-action-bar-item--active){background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));opacity:50%}.sv-dragged-element-shortcut{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));min-width:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(4.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:grabbing;position:absolute;z-index:10000;box-shadow:0 8px 16px #0000001a;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);padding-left:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-matrixdynamic__drag-icon{padding-top:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:calc(.75*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))));border:1px solid #e7e7e7;box-sizing:border-box;border-radius:calc(1.25*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:move;margin-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-matrixdynamic-dragged-row{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-matrixdynamic-dragged-row .sd-table__row{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));display:flex;flex-grow:0;flex-shrink:0;align-items:center;line-height:0}.sv-matrixdynamic-dragged-row .sd-table__cell.sd-table__cell--drag>div{background-color:var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));min-height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-table__cell--header.sd-table__cell--drag,.sd-table__cell.sd-table__cell--drag{padding-right:0;padding-left:0}.sd-question--mobile .sd-table__cell--header.sd-table__cell--drag,.sd-question--mobile .sd-table__cell.sd-table__cell--drag{display:none}.sv-matrix-row--drag-drop-ghost-mod td{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-matrix-row--drag-drop-ghost-mod td>*{visibility:hidden}.sv-drag-drop-choices-shortcut{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));min-width:100px;max-width:400px}.sv-drag-drop-choices-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.sv-drag-drop-choices-shortcut__content.sv-drag-drop-choices-shortcut__content{min-width:100px;box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:calc(4.5*var(--sjs-base-unit, var(--base-unit, 8px)));padding-right:calc(2*var(--sjs-base-unit, var(--base-unit, 8px)));margin-left:0}sv-popup{display:block;position:absolute}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup,.sv-popup.sv-popup-inner{height:0}.sv-popup-inner>.sv-popup__container{margin-top:calc(-1*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item--with-icon .sv-popup-inner>.sv-popup__container{margin-top:calc(-.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup__container{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:var(--sjs-corner-radius, 4px);position:absolute;padding:0}.sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));border-radius:var(--sjs-corner-radius, 4px);width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, .5));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(15*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-popup--modal>.sv-popup__container{position:static;display:flex}.sv-popup--modal>.sv-popup__container>.sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;gap:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar{overflow:visible}.sv-popup--confirm .sv-popup__container{border-radius:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--confirm .sv-popup__body-content{border-radius:var(--sjs-base-unit, var(--base-unit, 8px));max-width:min-content;align-items:flex-end;min-width:452px}.sv-popup--confirm .sv-popup__body-header{color:var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, .91)));align-self:self-start;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);font-style:normal;font-weight:400;line-height:calc(1.5*(var(--sjs-font-size, 16px)))}.sv-popup--confirm .sv-popup__scrolling-content{display:none}.sv-popup--confirm .sv-popup__body-footer{max-width:max-content}.sv-popup--confirm .sv-popup__body-footer .sv-action-bar{gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-root-modern--mobile .sv-popup--confirm .sv-popup__body-content{min-width:auto}.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, .5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));height:calc(var(--sv-popup-overlay-height, 100vh) - 1*var(--sjs-base-unit, var(--base-unit, 8px)));width:100%;padding-top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border:unset;box-shadow:unset;box-sizing:content-box}.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4*(var(--sjs-corner-radius, 4px))) calc(4*(var(--sjs-corner-radius, 4px))) 0px 0px;background:var(--sjs-general-backcolor, var(--background, #fff));padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(100% - 1*var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay .sv-popup__body-footer .sv-action-bar,.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay .sv-popup__body-footer .sv-action{flex:1 0 0}.sv-popup--overlay .sv-popup__button.sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0;position:relative}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))),calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container{transform:translate(var(--sjs-base-unit, var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__container .sv-popup__pointer{transform:translate(-12px,-4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left .sv-popup__container{transform:translate(calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px)))))}.sv-popup--show-pointer.sv-popup--left .sv-popup__container .sv-popup__pointer{transform:translate(-4px,-4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:var(--sjs-base-unit, var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:var(--sjs-base-unit, var(--base-unit, 8px)) solid var(--sjs-general-backcolor, var(--background, #fff));align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5*(var(--sjs-font-size, 16px)));line-height:calc(2*(var(--sjs-font-size, 16px)));font-style:normal;font-weight:700;color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown .sv-list__filter{margin-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown .sv-popup__body-content{background-color:var(--sjs-general-backcolor, var(--background, #fff));padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:100%}.sv-popup--dropdown>.sv-popup__container>.sv-popup__body-content .sv-list{background-color:#0000}.sv-dropdown-popup .sv-popup__body-content{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0}.sv-dropdown-popup .sv-list__filter{margin-bottom:0}.sv-popup--overlay .sv-popup__body-content{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay{z-index:2001;padding:0}.sv-popup--dropdown-overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar .sv-action{flex:0 0 auto}.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{background-color:#0000;color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-popup--dropdown-overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh));gap:0}.sv-popup--dropdown-overlay .sv-popup__body-footer{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-popup--dropdown-overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__container{padding:0}.sv-popup--dropdown-overlay .sv-list{flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) 0}.sv-popup--dropdown-overlay .sv-list__filter{display:flex;align-items:center;margin-bottom:0;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-icon{position:static;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-popup--dropdown-overlay .sv-list__filter-clear-button{height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:100%;background-color:#0000}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-popup--dropdown-overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:max(16px,var(--sjs-font-size, 16px));line-height:max(24px,1.5*(var(--sjs-font-size, 16px)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--dropdown-overlay .sv-list__item:hover .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused .sv-list__item-body{background:var(--sjs-general-backcolor, var(--background, #fff))}.sv-popup--dropdown-overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-popup--dropdown-overlay .sv-popup__body-footer .sv-action-bar{justify-content:flex-start}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__button.sv-popup__button{padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(2.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-popup__body-footer{padding-top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));background-color:var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__filter-icon{height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-dropdown-popup.sv-popup--dropdown-overlay .sv-list__input{padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-popup--dropdown-overlay.sv-multi-select-list .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);--sv-popup-overlay-max-width: calc(100% - var(--sjs-base-unit, var(--base-unit, 8px)) * 8);position:absolute;transform:translate(-50%,-50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),30*(var(--sjs-base-unit, var(--base-unit, 8px))));height:auto;width:auto;min-width:min(40*(var(--sjs-base-unit, var(--base-unit, 8px))),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:var(--sjs-corner-radius, 4px);overflow:hidden;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1))}.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-popup--dropdown-overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-popup--visible{opacity:1}.sv-popup--enter{animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--enter{animation-timing-function:cubic-bezier(0,0,.58,1);animation-duration:.25s}.sv-popup--leave{animation-direction:reverse;animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--leave{animation-timing-function:cubic-bezier(.42,0,1,1);animation-duration:.25s}.sv-popup--hidden{opacity:0}@keyframes modalMoveUp{0%{transform:translateY(64px)}to{transform:translateY(0)}}.sv-popup--modal.sv-popup--leave .sv-popup__container,.sv-popup--modal.sv-popup--enter .sv-popup__container{animation-name:modalMoveUp;animation-timing-function:cubic-bezier(0,0,.58,1);animation-fill-mode:forwards;animation-duration:.25s}.sv-popup--modal.sv-popup--leave .sv-popup__container{animation-direction:reverse;animation-timing-function:cubic-bezier(.42,0,1,1)}.sv-button-group{display:flex;align-items:center;flex-direction:row;font-size:var(--sjs-font-size, 16px);overflow:auto;border:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:11px calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));outline:none;font-size:var(--sjs-font-size, 16px);font-weight:400;background:var(--sjs-general-backcolor, var(--background, #fff));cursor:pointer;overflow:hidden;color:var(--sjs-general-forecolor, var(--foreground, #161616));position:relative}.sv-button-group__item:not(:last-of-type){border-right:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item--hover:hover{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3))}.sv-button-group__item-icon{display:block;height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-button-group__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-button-group__item--selected{font-weight:600;color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected .sv-button-group__item-icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group__item-decorator{display:flex;align-items:center;max-width:100%}.sv-button-group__item-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-button-group__item-icon+.sv-button-group__item-caption{margin-left:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-button-group__item--disabled{color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:default}.sv-button-group__item--disabled .sv-button-group__item-decorator{opacity:.25;font-weight:400}.sv-button-group__item--disabled .sv-button-group__item-icon use{fill:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-button-group__item--disabled:hover{background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-visuallyhidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sv-hidden{display:none!important}.sv-title-actions{display:flex;align-items:center;width:100%}.sv-title-actions__title{flex-wrap:wrap;max-width:90%;min-width:50%;white-space:initial}.sv-action-title-bar{min-width:56px}.sv-title-actions .sv-title-actions__title{flex-wrap:wrap;flex:0 1 auto;max-width:unset;min-width:unset}.sv-title-actions .sv-action-title-bar{flex:1 1 auto;justify-content:flex-end;min-width:unset}.sv_window{position:fixed;bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));border:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16)));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-clip:padding-box;z-index:100;max-height:50vh;overflow:auto;box-sizing:border-box;background:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));width:calc(100% - 4*(var(--sjs-base-unit, var(--base-unit, 8px))))!important}@-moz-document url-prefix(){.sv_window,.sv_window *{scrollbar-width:thin;scrollbar-color:var(--sjs-border-default, var(--border, #d6d6d6)) rgba(0,0,0,0)}}.sv_window::-webkit-scrollbar,.sv_window *::-webkit-scrollbar{width:12px;height:12px;background-color:#0000}.sv_window::-webkit-scrollbar-thumb,.sv_window *::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:32px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv_window::-webkit-scrollbar-track,.sv_window *::-webkit-scrollbar-track{background:#0000}.sv_window::-webkit-scrollbar-thumb:hover,.sv_window *::-webkit-scrollbar-thumb:hover{border:2px solid rgba(0,0,0,0);background-color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv_window_root-content{height:100%}.sv_window--full-screen{top:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));bottom:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));max-height:100%;width:initial!important;max-width:initial!important}.sv_window_header{display:flex;justify-content:flex-end}.sv_window_content{overflow:hidden}.sv_window--collapsed{height:initial}.sv_window--collapsed .sv_window_header{height:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))));padding:var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));border-radius:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));box-sizing:content-box}.sv_window--collapsed .sv_window_content{display:none}.sv_window--collapsed .sv_window_buttons_container{margin-top:0;margin-right:0}.sv_window_header_title_collapsed{color:var(--sjs-general-dim-forecolor, rgba(0, 0, 0, .91));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));flex:1;display:flex;justify-content:flex-start;align-items:center}.sv_window_header_description{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, .45)));font-feature-settings:"salt" on;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sv_window_buttons_container{position:fixed;margin-top:var(--sjs-base-unit, var(--base-unit, 8px));margin-right:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;gap:var(--sjs-base-unit, var(--base-unit, 8px));z-index:10000}.sv_window_button{display:flex;padding:var(--sjs-base-unit, var(--base-unit, 8px));justify-content:center;align-items:center;border-radius:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));cursor:pointer}.sv_window_button:hover,.sv_window_button:active{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)))}.sv_window_button:hover svg use,.sv_window_button:hover svg path,.sv_window_button:active svg use,.sv_window_button:active svg path{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv_window_button:active{opacity:.5}.sv_window_button svg use,.sv_window_button svg path{fill:var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, .45))}sv-brand-info,.sv-brand-info{z-index:1;position:relative;margin-top:1px}.sv-brand-info{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));text-align:right;color:#161616;padding:24px 40px}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sd-body--static .sv-brand-info{padding-top:0;margin-top:16px}.sd-body--responsive .sv-brand-info{padding-top:16px;margin-top:-8px}.sd-root-modern--mobile .sv-brand-info{padding:48px 24px 8px;margin-top:0;text-align:center}.sv-brand-info__text{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));color:#161616}.sv-brand-info__logo{display:inline-block}.sv-brand-info__logo img{width:118px}.sv-brand-info__terms{font-weight:400;font-size:calc(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);padding-top:4px}.sv-brand-info__terms a{color:#909090}.sd-body--responsive .sv-brand-info{padding-right:0;padding-left:0}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative;opacity:1}.sv-ranking-item:focus .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:hover:not(:focus) .sv-ranking-item__icon--hover{visibility:visible}.sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:focus{outline:none}.sv-ranking-item:focus .sv-ranking-item__icon--focus{visibility:visible;top:calc(.6*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item:focus .sv-ranking-item__index{background:var(--sjs-general-backcolor, var(--background, #fff));outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-item__content.sv-ranking-item__content{display:flex;align-items:center;line-height:1em;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0px;border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__icon-container{position:relative;left:0;bottom:0;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));align-self:flex-start;padding-left:var(--sjs-base-unit, var(--base-unit, 8px));padding-right:var(--sjs-base-unit, var(--base-unit, 8px));margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.sv-ranking-item--disabled.sv-ranking-item--disabled,.sv-ranking-item--readonly.sv-ranking-item--readonly,.sv-ranking-item--preview.sv-ranking-item--preview{cursor:initial;user-select:initial;-webkit-user-select:initial}.sv-ranking-item--disabled.sv-ranking-item--disabled .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--readonly.sv-ranking-item--readonly .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon,.sv-ranking-item--preview.sv-ranking-item--preview .sv-ranking-item__icon-container.sv-ranking-item__icon-container .sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden}.sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden;fill:var(--sjs-primary-backcolor, var(--primary, #19b394));position:absolute;top:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item__index.sv-ranking-item__index{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);border-radius:100%;border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));box-sizing:border-box;font-weight:600;margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))));transition:outline var(--sjs-transition-duration, .15s),background var(--sjs-transition-duration, .15s);outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);align-self:self-start}.sv-ranking-item__index.sv-ranking-item__index svg{fill:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));width:var(--sjs-internal-font-editorfont-size);height:var(--sjs-internal-font-editorfont-size)}.sv-ranking-item__text{--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-size:var(--sjs-internal-font-editorfont-size);line-height:calc(1.5*(var(--sjs-internal-font-editorfont-size)));margin:0 calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));overflow-wrap:break-word;word-break:normal;align-self:self-start;padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-item__text .sv-string-viewer,.sv-ranking-item__text .sv-string-editor{overflow:initial;white-space:pre-line}.sd-ranking--disabled .sv-ranking-item__text{color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));opacity:.25}.sv-ranking-item--disabled .sv-ranking-item__text{color:var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, .45)));opacity:.25}.sv-ranking-item--readonly .sv-ranking-item__index{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-ranking-item--preview .sv-ranking-item__index{background-color:#0000;border:1px solid var(--sjs-general-forecolor, var(--foreground, #161616));box-sizing:border-box}.sv-ranking-item__ghost.sv-ranking-item__ghost{display:none;background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))));width:calc(31*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));z-index:1;position:absolute;left:0;top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}[dir=rtl] .sv-ranking-item__ghost{left:initilal;right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-viewer,.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-editor{white-space:unset}.sv-ranking-item--ghost .sv-ranking-item__ghost{display:block}.sv-ranking-item--ghost .sv-ranking-item__content{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__content{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:calc(12.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking--mobile .sv-ranking-item__icon--hover{visibility:visible;fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking--mobile.sv-ranking-shortcut{max-width:80%}.sv-ranking--mobile .sv-ranking-item__index.sv-ranking-item__index,.sv-ranking--mobile .sd-element--with-frame .sv-ranking-item__icon{margin-left:0}.sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking--disabled{opacity:.8}.sv-ranking-shortcut[hidden]{display:none}.sv-ranking-shortcut .sv-ranking-item__icon{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-shortcut .sv-ranking-item__text{margin-right:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking-shortcut .sv-ranking-item__icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));top:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__content{padding-left:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:calc(0*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut{cursor:grabbing;position:absolute;z-index:10000;border-radius:calc(12.5*var(--sjs-base-unit, var(--base-unit, 8px)));min-width:100px;max-width:400px;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-ranking-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.sv-ranking--select-to-rank{display:flex}.sv-ranking--select-to-rank-vertical{flex-direction:column-reverse}.sv-ranking--select-to-rank-vertical .sv-ranking__containers-divider{margin:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0;height:1px}.sv-ranking--select-to-rank-vertical .sv-ranking__container--empty{padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px));display:flex;justify-content:center;align-items:center}.sv-ranking-item--animate-item-removing{animation-name:moveIn,fadeIn;animation-direction:reverse;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-out-duration, .15s),var(--sjs-ranking-fade-out-duration, .1s);animation-delay:var(--sjs-ranking-move-out-delay, 0ms),0s}.sv-ranking-item--animate-item-adding{animation-name:moveIn,fadeIn;opacity:0;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-in-duration, .15s),var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0s,var(--sjs-ranking-fade-in-delay, .15s)}.sv-ranking-item--animate-item-adding-empty{animation-name:fadeIn;opacity:0;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0}.sv-ranking-item--animate-item-removing-empty{animation-name:fadeIn;animation-direction:reverse;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-out-duration, .1s);animation-delay:0}@keyframes sv-animate-item-opacity-reverse-keyframes{0%{opacity:0}to{opacity:1}}@keyframes sv-animate-item-opacity-keyframes{0%{opacity:1}to{opacity:0}}.sv-ranking--select-to-rank-horizontal .sv-ranking__container{max-width:calc(50% - 1px)}.sv-ranking--select-to-rank-horizontal .sv-ranking__containers-divider{width:1px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item{left:initial}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking__container-placeholder{color:var(--sjs-font-questiondescription-color, var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, .45)));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-style:normal;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));white-space:normal;display:flex;justify-content:center;align-items:center;height:100%;padding-top:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:border-box}.sv-ranking__container{flex:1}.sv-ranking__container--empty{box-sizing:border-box;text-align:center}.sv-ranking__containers-divider{background:var(--sjs-border-default, var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16))))}.sv-ranking__container--from .sv-ranking-item__icon--focus{display:none}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item{left:0!important;padding-left:16px}.sv-ranking--select-to-rank-horizontal .sv-ranking__container--to .sv-ranking-item .sv-ranking-item__ghost{left:initial}.sv-ranking--select-to-rank-swap-areas{flex-direction:row-reverse}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--to .sv-ranking-item{padding-left:0;left:-24px!important}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item{padding-left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item__ghost.sv-ranking-item__ghost{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item__ghost.sv-ranking-item__ghost{right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-right:0}.sd-question--mobile .sv-ranking-item__icon-container,.sd-root-modern.sd-root-modern--mobile .sv-ranking-item__icon-container{margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;justify-content:flex-end;padding:0;width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list{padding:0;margin:0;overflow-y:auto;background:var(--sjs-general-backcolor, var(--background, #fff));font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));list-style-type:none}.sv-list__empty-container{width:100%;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));box-sizing:border-box;padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__empty-text{line-height:calc(1.5*(var(--sjs-font-size, 16px)));font-size:var(--sjs-font-size, 16px);font-weight:400;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item{width:100%;align-items:center;box-sizing:border-box;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item-body{--sjs-list-item-padding-left-default: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));--sjs-list-item-padding-left: calc(var(--sjs-list-item-level) * var(--sjs-list-item-padding-left-default));position:relative;width:100%;align-items:center;box-sizing:border-box;padding-block:var(--sjs-base-unit, var(--base-unit, 8px));padding-inline-end:calc(8*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:var(--sjs-list-item-padding-left, calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));cursor:pointer;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;transition:background-color var(--sjs-transition-duration, .15s),color var(--sjs-transition-duration, .15s)}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected){outline:none}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-list__item-body{border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid var(--sjs-border-light, var(--border-light, #eaeaea));border-radius:var(--sjs-corner-radius, 4px);padding-block:calc(.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-end:calc(7.75*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(1.75*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-string-viewer{margin-inline-start:calc(-.25*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item:hover,.sv-list__item:focus{outline:none}.sv-list__item:focus .sv-list__item-body,.sv-list__item--hovered>.sv-list__item-body{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-list__item--with-icon.sv-list__item--with-icon{padding:0}.sv-list__item--with-icon.sv-list__item--with-icon>.sv-list__item-body{padding-top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex}.sv-list__item-icon{float:left;flex-shrink:0;width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__item-icon svg{display:block}.sv-list__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list-item__marker-icon{position:absolute;right:var(--sjs-base-unit, var(--base-unit, 8px));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));flex-shrink:0;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.sv-list-item__marker-icon svg{display:block}.sv-list-item__marker-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}[dir=rtl] .sv-list__item-icon,[style*="direction:rtl"] .sv-list__item-icon,[style*="direction: rtl"] .sv-list__item-icon{float:right}.sv-list__item-separator{margin:var(--sjs-base-unit, var(--base-unit, 8px)) 0;height:1px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-list--filtering .sv-list__item-separator{display:none}.sv-list__item.sv-list__item--selected>.sv-list__item-body,.sv-list__item.sv-list__item--selected:hover>.sv-list__item-body,.sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused>.sv-list__item-body,li:focus .sv-list__item.sv-list__item--selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-list__item.sv-list__item--selected .sv-list__item-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list__item-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use{fill:var(--sjs-general-backcolor, var(--background, #fff))}.sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list-item__marker-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use{fill:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item.sv-list__item--disabled .sv-list__item-body{cursor:default;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item span{white-space:nowrap}.sv-list__item-text--wrap span{white-space:normal;word-wrap:break-word}.sv-list__container{position:relative;height:100%;flex-direction:column;display:flex;min-height:0}.sv-list__filter{border-bottom:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, .16)));background:var(--sjs-general-backcolor, var(--background, #fff));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-list__filter-icon{display:block;position:absolute;top:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px))));inset-inline-start:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon{width:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-list__filter-icon .sv-svg-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:var(--sjs-general-backcolor, var(--background, #fff));box-sizing:border-box;width:100%;min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));outline:none;font-size:var(--sjs-font-size, 16px);color:var(--sjs-general-forecolor, var(--foreground, #161616));padding:calc(1.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-inline-start:calc(7*(var(--sjs-base-unit, var(--base-unit, 8px))));line-height:calc(1.5*(var(--sjs-font-size, 16px)));border:none}.sv-list__input::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input:disabled,.sv-list__input:disabled::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__loading-indicator{pointer-events:none}.sv-list__loading-indicator .sv-list__item-body{background-color:#0000}:root{--sjs-transition-duration: .15s}.sv-save-data_root{position:fixed;left:50%;bottom:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));background:var(--sjs-general-backcolor, var(--background, #fff));opacity:0;padding:calc(3*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))));box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));border-radius:calc(2*(var(--sjs-corner-radius, 4px)));color:var(--sjs-general-forecolor, var(--foreground, #161616));min-width:calc(30*(var(--sjs-base-unit, var(--base-unit, 8px))));text-align:center;z-index:1600;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translate(-50%) translateY(calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px)))));transition-timing-function:ease-in;transition-property:transform,opacity;transition-delay:.25s;transition:.5s}.sv-save-data_root.sv-save-data_root--shown{transition-timing-function:ease-out;transition-property:transform,opacity;transform:translate(-50%) translateY(0);transition-delay:.25s;opacity:.75}.sv-save-data_root span{display:flex;flex-grow:1}.sv-save-data_root .sv-action-bar{display:flex;flex-grow:0;flex-shrink:0}.sv-save-data_root--shown.sv-save-data_success,.sv-save-data_root--shown.sv-save-data_error{opacity:1}.sv-save-data_root.sv-save-data_root--with-buttons{padding:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error{background-color:var(--sjs-special-red, var(--red, #e60a3e));color:var(--sjs-general-backcolor, var(--background, #fff));font-weight:600;gap:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-save-data_root.sv-save-data_error .sv-save-data_button{font-weight:600;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));height:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));color:#fff;background-color:var(--sjs-special-red, var(--red, #e60a3e));border:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid #fff;border-radius:calc(1.5*(var(--sjs-corner-radius, 4px)));padding:var(--sjs-base-unit, var(--base-unit, 8px)) calc(3*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;align-items:center}.sv-save-data_root.sv-save-data_error .sv-save-data_button:hover,.sv-save-data_root.sv-save-data_error .sv-save-data_button:focus{color:var(--sjs-special-red, var(--red, #e60a3e));background-color:var(--sjs-general-backcolor, var(--background, #fff))}.sv-save-data_root.sv-save-data_success{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:#fff;font-weight:600}.sv-string-viewer.sv-string-viewer--multiline{white-space:pre-wrap}.sjs_sp_container{position:relative;max-width:100%}.sjs_sp_controls{position:absolute;left:0;bottom:0}.sjs_sp_controls>button{-webkit-user-select:none;user-select:none}.sjs_sp_container>div>canvas:focus{outline:none}.sjs_sp_placeholder{display:flex;align-items:center;justify-content:center;position:absolute;z-index:1;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%}.sjs_sp_canvas{position:relative;max-width:100%;display:block}.sjs_sp__background-image{position:absolute;top:0;left:0;object-fit:cover;max-width:100%;width:100%;height:100%}:root{--sjs-default-font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif}.sv-boolean__decorator{border-radius:2px}.sv_main .sv-boolean__decorator+.sv-boolean__label{float:none;vertical-align:top;margin-left:.5em}.sv-boolean__svg{border:none;border-radius:2px;background-color:#1ab394;fill:#fff;width:24px;height:24px}.sv-boolean--allowhover:hover .sv-boolean__checked-path{display:inline-block}.sv-boolean--allowhover:hover .sv-boolean__svg{background-color:#9f9f9f;fill:#fff}.sv-boolean--allowhover:hover .sv-boolean__unchecked-path,.sv-boolean--allowhover:hover .sv-boolean__indeterminate-path,.sv-boolean__checked-path,.sv-boolean__indeterminate-path{display:none}.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#1ab394}.sv-boolean--indeterminate .sv-boolean__indeterminate-path{display:inline-block}.sv-boolean--indeterminate .sv-boolean__unchecked-path,.sv-boolean--checked .sv-boolean__unchecked-path{display:none}.sv-boolean--checked .sv-boolean__checked-path{display:inline-block}.sv-boolean--disabled.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#dbdbdb}.sv-boolean--disabled .sv-boolean__svg{background-color:#dbdbdb}td.sv_matrix_cell .sv_qbln,td.td.sv_matrix_cell .sv_qbln{text-align:center}td.sv_matrix_cell .sv_qbln .sv-boolean,td.td.sv_matrix_cell .sv_qbln .sv-boolean{text-align:initial}sv-components-container,.sd-components-container{display:flex}.sv-components-row{display:flex;flex-direction:row;width:100%}.sv-components-column{display:flex;flex-direction:column}.sv-components-column--expandable{flex-grow:1}.sv-components-row>.sv-components-column--expandable{width:1px}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100%!important}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}@media (max-width: 600px){.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100%!important}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown .sv-table__responsive-title,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic .sv-table__responsive-title{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}}body{--sv-modern-mark: true}.sv-matrixdynamic__drag-icon{padding-top:16px}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:6px;width:20px;border:1px solid var(--border-color, rgba(64, 64, 64, .5));box-sizing:border-box;border-radius:10px;cursor:move;margin-top:12px}.sv-matrix__drag-drop-ghost-position-top,.sv-matrix__drag-drop-ghost-position-bottom{position:relative}.sv-matrix__drag-drop-ghost-position-top:after,.sv-matrix__drag-drop-ghost-position-bottom:after{content:"";width:100%;height:4px;background-color:var(--main-color, #1ab394);position:absolute;left:0}.sv-matrix__drag-drop-ghost-position-top:after{top:0}.sv-matrix__drag-drop-ghost-position-bottom:after{bottom:0}.sv-skeleton-element{background-color:var(--background-dim, var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3)))}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:400}.bold-20pt{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700}.bold-caps-16pt,.toggle-btn,.toggle-btn-survey,.toggle-btn-matrix,.toggle-btn-table{font-family:Open Sans,sans-serif;font-size:16pt;font-weight:700;text-transform:uppercase}.bold-caps-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:700;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700;text-transform:uppercase}.bold-caps-30pt{font-family:Open Sans,sans-serif;font-size:30pt;font-weight:700;text-transform:uppercase}.dark-teal,.geant-header{color:#003f5f}.bold-grey-12pt{font-family:Open Sans,sans-serif;font-size:12pt;font-weight:700;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px #00000040;border:rgb(247,158,59) 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}.sidebar-wrapper>nav.survey{border:rgb(0,63,95) 2px solid}.sidebar-wrapper>nav.survey a:hover{color:#53bbb4}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn,.toggle-btn-survey{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-survey{background-color:#003f5f}.toggle-btn-wrapper{padding:.7rem .5rem .5rem}.toggle-btn-matrix,.toggle-btn-table{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.7rem .5rem .5rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}:root{--muted-alpha: .2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid rgb(185,190,197)}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:25px 5px 5px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid rgb(247,158,59);padding:10px;width:80rem;max-width:97%}.collapsible-box-matrix{border:2px solid lightblue}.collapsible-box-table{border:unset;border-bottom:2px solid lightblue}.collapsible-content{display:flex;flex-direction:column;opacity:1;padding:1rem}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.collapsible-column{display:flex;flex-direction:row;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:#00000040}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem #000c}.bg-color-of-the-year-blank{background-color:#0000}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{display:flex;flex-direction:row;overflow-x:auto}.scrollable-horizontal>*{position:relative}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse;z-index:1;width:auto}.colored-table table{width:65rem;table-layout:fixed}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:700;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid white;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem!important;background-color:#fff!important}.matrix-table tbody tr:nth-of-type(2n) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(2n){background-color:#66798b2d}.table-bg-highlighted tr:hover{background-color:#66798b85}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border:after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:#9d2872}.color-of-badge-1{background-color:#f1e04f}.color-of-badge-2{background-color:#db2a4c}.color-of-badge-3{background-color:#ed8d18}.color-of-badge-4{background-color:#89a679}.color-of-badge-blank{background-color:#0000}.bottom-tooltip,.bottom-tooltip-small:after,.bottom-tooltip-small{position:relative}.bottom-tooltip:after,.bottom-tooltip-small:after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%,calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small:after{width:5em}.bottom-tooltip-small:hover:after,.bottom-tooltip:hover:after{display:block}.bottom-tooltip:before,.bottom-tooltip-small:before{display:none;position:absolute;transform:translate(-50%,calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover:before,.bottom-tooltip-small:hover:before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00A0C6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg,#d6e8f3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg,#fcdbd5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg,#d4f0d9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg,#fee8d0,#fff);padding:1.5rem;margin:10px}.color-of-the-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg,#d0e5f2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg,#d2f0e2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg,#f3cfd3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg,#c7ece9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg,#fdcfd1,#fff);padding:1.5rem;margin:10px}.color-of-the-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg,#e9e4e3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg,#fdc9e7,#fff);padding:1.5rem;margin:10px}.color-of-the-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg,#e5e5e5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg,#cddcec,#fff);padding:1.5rem;margin:10px}.color-of-the-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:700}.user-management-table{width:100%;table-layout:fixed;max-height:max(50vh,30rem)}@media (max-width: 1920px){.user-management-table{max-width:100vw}}.user-management-table>* th,.user-management-table>* td{word-wrap:break-word}.user-management-table thead th{position:sticky;top:-.1rem;background-color:#fff;z-index:1}.nav-link-entry{border-radius:2px;font-family:Open Sans,sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:Open Sans,sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:700;border:none}@media screen and (max-width: 1080px){.downloadbutton{width:6.5rem}}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{margin:0;padding:0;width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:deepskyblue 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:700}.imageoption>span{margin-left:.25rem}.imageoption:after{content:"";display:block;border-bottom:grey 1px solid}.downloadcontainer{justify-content:end}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none}.sd-element__title-expandable-svg{height:1.5rem;width:1.5rem;margin-right:.5rem}.sv-multipletext__cell{padding:.5rem}.hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}.survey-title{color:#2db394}.survey-description{color:#262261;font-weight:400}.survey-title:after{content:"";display:inline-block;width:.1rem;height:1em;background-color:#2db394;margin:0 .5rem;vertical-align:middle}.survey-title-nren{color:#262261}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-header-flex{display:flex;align-items:center;border-radius:2rem;color:#2db394;font-weight:700;padding-left:1rem!important;background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-error-color-fix{background-color:var(--error-background-color, rgba(26, 179, 148, .2))}.sv-container-modern__title{display:none}.sv-title.sv-page__title{font-size:1.5rem;font-weight:700;color:#2db394;margin-bottom:.25rem}.sv-title.sv-panel__title{color:#262261}.sv-description{font-weight:700;color:#262261}.sv-text{border-bottom:.2rem dotted var(--text-border-color, #d4d4d4)}.verification{min-height:1.5rem;flex:0 0 auto;margin-left:auto;display:inline-block;border-radius:1rem;padding:0 1rem;margin-top:.25rem;margin-bottom:.25rem;margin-right:.4rem;box-shadow:0 0 2px 2px #2db394}.verification-required{font-size:.85rem;font-weight:700;text-transform:uppercase;background-color:#fff}.verification-ok{color:#fff;font-size:.85rem;font-weight:700;text-transform:uppercase;background-color:#2db394;pointer-events:none}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:#2db394}.survey-content,.survey-progress{padding-right:5rem;padding-left:5rem}.sv-question__num{white-space:nowrap}.survey-container{margin-top:2.5rem;margin-bottom:4rem;max-width:90rem}.survey-edit-buttons-block{display:flex;align-items:center;justify-content:center;padding:1em}.survey-edit-explainer{background-color:var(--error-background-color);color:#262261;padding:1em;font-weight:700;text-align:center}.survey-tooltip{position:relative}.survey-tooltip:after{display:none;position:absolute;padding:10px 15px;transform:translateY(calc(-100% - 10px));left:0;top:0;width:20em;z-index:999;content:attr(description);text-align:center;border-radius:10px;background-color:#d1f0ea}.survey-tooltip:hover:after{display:block}.survey-tooltip:before{display:none;position:absolute;transform:translate(-50%,calc(-100% - 5px)) rotate(45deg);left:50%;top:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.survey-tooltip:hover:before{display:block}.sortable{cursor:pointer}.sortable:hover{text-decoration:dotted underline}th.sortable[aria-sort=descending]:after{content:"▼";color:currentcolor;font-size:100%;margin-left:.25rem}th.sortable[aria-sort=ascending]:after{content:"▲";color:currentcolor;font-size:100%;margin-left:.25rem}
diff --git a/compendium_v2/static/DarkFibreInstalled-BG9k0mWY.js b/compendium_v2/static/DarkFibreInstalled-BG9k0mWY.js
deleted file mode 100644
index 03d08198332c61f83aa2c8663b574ad48617f84f..0000000000000000000000000000000000000000
--- a/compendium_v2/static/DarkFibreInstalled-BG9k0mWY.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as N,r as D,F,j as n}from"./main-BIBsTO5W.js";import{L as j}from"./index-BBrAyDR9.js";import{C as L,a as w,L as E,P as v,b as P,p as I,c as K,d as R,u as O,e as T,D as U,F as Y,f as $}from"./useData-BDYwoQEh.js";import{S as q}from"./report.js";import{g as z}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";L.register(w,E,v,P,I,K,R);function W(){const e=N.c(24);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=r=>r.fibre_length_in_country!=null,e[0]=o):o=e[0];const k=o,{filterSelection:t,setFilterSelection:c}=D.useContext(F),{data:u,nrens:_}=O("/api/dark-fibre-installed",c,k);let i,f;if(e[1]!==u||e[2]!==t.selectedNrens){let r;e[5]!==t.selectedNrens?(r=y=>t.selectedNrens.includes(y.nren)&&k(y),e[5]=t.selectedNrens,e[6]=r):r=e[6],i=u.filter(r),f=T(i,"fibre_length_in_country"),e[1]=u,e[2]=t.selectedNrens,e[3]=i,e[4]=f}else i=e[3],f=e[4];const g=f;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[7]=m):m=e[7];let s;e[8]!==_?(s=_.values(),e[8]=_,e[9]=s):s=e[9];let l;e[10]!==s?(l={availableYears:m,availableNrens:[...s]},e[10]=s,e[11]=l):l=e[11];let d;e[12]!==t||e[13]!==c||e[14]!==l?(d=n.jsx(Y,{filterOptions:l,filterSelection:t,setFilterSelection:c}),e[12]=t,e[13]=c,e[14]=l,e[15]=d):d=e[15];const x=d;let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=z({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),e[16]=p):p=e[16];const S=p;let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("span",{children:"This graph shows the number of Kilometres of dark fibre installed by NRENs within their own countries, which they own themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."}),e[17]=h):h=e[17];const C=h;let a;e[18]!==g?(a=n.jsx($,{children:n.jsx(j,{data:g,options:S})}),e[18]=g,e[19]=a):a=e[19];let b;return e[20]!==x||e[21]!==i||e[22]!==a?(b=n.jsx(U,{title:"Kilometres of Installed Dark Fibre",description:C,category:q.Network,filter:x,data:i,filename:"dark_fibre_lease_installed",children:a}),e[20]=x,e[21]=i,e[22]=a,e[23]=b):b=e[23],b}export{W as default};
diff --git a/compendium_v2/static/DarkFibreInstalled-Uox2eGX8.js b/compendium_v2/static/DarkFibreInstalled-Uox2eGX8.js
new file mode 100644
index 0000000000000000000000000000000000000000..ea92281f5464636ffad43918c394800f726b9b83
--- /dev/null
+++ b/compendium_v2/static/DarkFibreInstalled-Uox2eGX8.js
@@ -0,0 +1 @@
+import{c as N,r as j,F as D,j as n,t as F,S as L}from"./index.js";import{L as w}from"./index-CjWPDfDC.js";import{C as E,a as v,L as P,P as R,b as I,p as K,c as O,d as T,u as U,e as Y,D as $,F as q,f as z}from"./useData-CxftshCa.js";import{g as A}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";E.register(v,P,R,I,K,O,T);function X(){const e=N.c(24);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=r=>r.fibre_length_in_country!=null,e[0]=o):o=e[0];const k=o,{filterSelection:t,setFilterSelection:c}=j.useContext(D),{data:u,nrens:_}=U("/api/dark-fibre-installed",c,k);let i,f;if(e[1]!==u||e[2]!==t.selectedNrens){let r;e[5]!==t.selectedNrens?(r=y=>t.selectedNrens.includes(y.nren)&&k(y),e[5]=t.selectedNrens,e[6]=r):r=e[6],i=u.filter(r),f=Y(i,"fibre_length_in_country"),e[1]=u,e[2]=t.selectedNrens,e[3]=i,e[4]=f}else i=e[3],f=e[4];const g=f;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[7]=m):m=e[7];let s;e[8]!==_?(s=_.values(),e[8]=_,e[9]=s):s=e[9];let l;e[10]!==s?(l={availableYears:m,availableNrens:[...s]},e[10]=s,e[11]=l):l=e[11];let d;e[12]!==t||e[13]!==c||e[14]!==l?(d=n.jsx(q,{filterOptions:l,filterSelection:t,setFilterSelection:c}),e[12]=t,e[13]=c,e[14]=l,e[15]=d):d=e[15];const x=d;let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=A({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),e[16]=p):p=e[16];const S=p;let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("span",{children:"This graph shows the number of Kilometres of dark fibre installed by NRENs within their own countries, which they own themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."}),e[17]=h):h=e[17];const C=h;let a;e[18]!==g?(a=n.jsx(z,{children:n.jsx(w,{data:g,options:S})}),e[18]=g,e[19]=a):a=e[19];let b;return e[20]!==x||e[21]!==i||e[22]!==a?(b=n.jsx($,{title:F["dark-fibre-installed"],description:C,category:L.Network,filter:x,data:i,filename:"dark_fibre_lease_installed",children:a}),e[20]=x,e[21]=i,e[22]=a,e[23]=b):b=e[23],b}export{X as default};
diff --git a/compendium_v2/static/DarkFibreLease-DpIHorYZ.js b/compendium_v2/static/DarkFibreLease-DpIHorYZ.js
deleted file mode 100644
index 46ea2a901d1c7530696837874bd81e7ff094993e..0000000000000000000000000000000000000000
--- a/compendium_v2/static/DarkFibreLease-DpIHorYZ.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as E,r as w,F as R,j as c}from"./main-BIBsTO5W.js";import{L as I}from"./index-BBrAyDR9.js";import{C as P,a as K,L as U,P as $,b as O,p as T,c as A,d as Y,u as q,e as z,D as B,F as G,f as H}from"./useData-BDYwoQEh.js";import{S as J}from"./report.js";import{g as M}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";P.register(K,U,$,O,T,A,Y);function se(F){const e=E.c(32),{national:f}=F,s=f?"fibre_length_in_country":"fibre_length_outside_country";let d;e[0]!==s?(d=o=>o[s]!=null,e[0]=s,e[1]=d):d=e[1];const a=d,{filterSelection:t,setFilterSelection:m}=w.useContext(R),{data:N,nrens:x}=q("/api/dark-fibre-lease",m,a);let i,p;if(e[2]!==N||e[3]!==s||e[4]!==t.selectedNrens||e[5]!==a){let o;e[8]!==t.selectedNrens||e[9]!==a?(o=D=>t.selectedNrens.includes(D.nren)&&a(D),e[8]=t.selectedNrens,e[9]=a,e[10]=o):o=e[10],i=N.filter(o),p=z(i,s),e[2]=N,e[3]=s,e[4]=t.selectedNrens,e[5]=a,e[6]=i,e[7]=p}else i=e[6],p=e[7];const k=p;let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[11]=h):h=e[11];let l;e[12]!==x?(l=x.values(),e[12]=x,e[13]=l):l=e[13];let n;e[14]!==l?(n={availableYears:h,availableNrens:[...l]},e[14]=l,e[15]=n):n=e[15];let b;e[16]!==t||e[17]!==m||e[18]!==n?(b=c.jsx(G,{filterOptions:n,filterSelection:t,setFilterSelection:m}),e[16]=t,e[17]=m,e[18]=n,e[19]=b):b=e[19];const y=b;let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=M({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),e[20]=u):u=e[20];const j=u,C=f?"within":"outside";let g;e[21]!==C?(g=c.jsxs("span",{children:["This graph shows the number of Kilometres of dark fibre leased by NRENs ",C," their own countries. Also included is fibre leased via an IRU (Indefeasible Right of Use), a type of long-term lease of a portion of the capacity of a cable. It does not however, include fibre NRENs have installed, and own, themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."]}),e[21]=C,e[22]=g):g=e[22];const L=g,S=`Kilometres of Leased Dark Fibre (${f?"National":"International"})`,v=`dark_fibre_lease_${f?"national":"international"}`;let r;e[23]!==k?(r=c.jsx(H,{children:c.jsx(I,{data:k,options:j})}),e[23]=k,e[24]=r):r=e[24];let _;return e[25]!==L||e[26]!==y||e[27]!==i||e[28]!==S||e[29]!==v||e[30]!==r?(_=c.jsx(B,{title:S,description:L,category:J.Network,filter:y,data:i,filename:v,children:r}),e[25]=L,e[26]=y,e[27]=i,e[28]=S,e[29]=v,e[30]=r,e[31]=_):_=e[31],_}export{se as default};
diff --git a/compendium_v2/static/DarkFibreLease-Nz1_rVx9.js b/compendium_v2/static/DarkFibreLease-Nz1_rVx9.js
new file mode 100644
index 0000000000000000000000000000000000000000..1b7d87f5328ff4ac220705aa01ed10da960284aa
--- /dev/null
+++ b/compendium_v2/static/DarkFibreLease-Nz1_rVx9.js
@@ -0,0 +1 @@
+import{c as w,r as R,F as P,j as c,S as I,t as D}from"./index.js";import{L as U}from"./index-CjWPDfDC.js";import{C as K,a as O,L as T,P as $,b as A,p as Y,c as q,d as z,u as B,e as G,D as H,F as J,f as M}from"./useData-CxftshCa.js";import{g as Q}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";K.register(O,T,$,A,Y,q,z);function ae(E){const e=w.c(32),{national:f}=E,s=f?"fibre_length_in_country":"fibre_length_outside_country";let d;e[0]!==s?(d=o=>o[s]!=null,e[0]=s,e[1]=d):d=e[1];const a=d,{filterSelection:t,setFilterSelection:m}=R.useContext(P),{data:k,nrens:x}=B("/api/dark-fibre-lease",m,a);let i,p;if(e[2]!==k||e[3]!==s||e[4]!==t.selectedNrens||e[5]!==a){let o;e[8]!==t.selectedNrens||e[9]!==a?(o=j=>t.selectedNrens.includes(j.nren)&&a(j),e[8]=t.selectedNrens,e[9]=a,e[10]=o):o=e[10],i=k.filter(o),p=G(i,s),e[2]=k,e[3]=s,e[4]=t.selectedNrens,e[5]=a,e[6]=i,e[7]=p}else i=e[6],p=e[7];const N=p;let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[11]=h):h=e[11];let l;e[12]!==x?(l=x.values(),e[12]=x,e[13]=l):l=e[13];let r;e[14]!==l?(r={availableYears:h,availableNrens:[...l]},e[14]=l,e[15]=r):r=e[15];let b;e[16]!==t||e[17]!==m||e[18]!==r?(b=c.jsx(J,{filterOptions:r,filterSelection:t,setFilterSelection:m}),e[16]=t,e[17]=m,e[18]=r,e[19]=b):b=e[19];const y=b;let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=Q({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),e[20]=u):u=e[20];const F=u,C=f?"within":"outside";let g;e[21]!==C?(g=c.jsxs("span",{children:["This graph shows the number of Kilometres of dark fibre leased by NRENs ",C," their own countries. Also included is fibre leased via an IRU (Indefeasible Right of Use), a type of long-term lease of a portion of the capacity of a cable. It does not however, include fibre NRENs have installed, and own, themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."]}),e[21]=C,e[22]=g):g=e[22];const L=g,S=f?D["dark-fibre-lease"]:D["dark-fibre-lease-international"],v=`dark_fibre_lease_${f?"national":"international"}`;let n;e[23]!==N?(n=c.jsx(M,{children:c.jsx(U,{data:N,options:F})}),e[23]=N,e[24]=n):n=e[24];let _;return e[25]!==L||e[26]!==y||e[27]!==i||e[28]!==S||e[29]!==v||e[30]!==n?(_=c.jsx(H,{title:S,description:L,category:I.Network,filter:y,data:i,filename:v,children:n}),e[25]=L,e[26]=y,e[27]=i,e[28]=S,e[29]=v,e[30]=n,e[31]=_):_=e[31],_}export{ae as default};
diff --git a/compendium_v2/static/ECProjects-C-HN1lwo.js b/compendium_v2/static/ECProjects-C-HN1lwo.js
deleted file mode 100644
index a00c196820f7817aee3eac7454692c7a00a4871f..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ECProjects-C-HN1lwo.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as v,r as Y,F as y,j as u}from"./main-BIBsTO5W.js";import{u as C,h as D,i as T,D as _,F as g,f as F}from"./useData-BDYwoQEh.js";import{S as P}from"./report.js";import{N as R}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function $(){const e=v.c(27),{filterSelection:t,setFilterSelection:s}=Y.useContext(y),{data:a,years:j,nrens:N}=C("/api/ec-project",s);let r,d;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==a){let f;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(f=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=f):f=e[7],r=a.filter(f);const E=D(r);d=T(E,S),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=a,e[3]=r,e[4]=d}else r=e[3],d=e[4];const b=d;let o;e[8]!==j?(o=[...j],e[8]=j,e[9]=o):o=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==o||e[15]!==n?(l={availableYears:o,availableNrens:n},e[14]=o,e[15]=n,e[16]=l):l=e[16];let p;e[17]!==t||e[18]!==s||e[19]!==l?(p=u.jsx(g,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=p):p=e[20];const h=p;let c;e[21]!==b?(c=u.jsx(F,{children:u.jsx(R,{data:b,columnTitle:"EC Project Membership",dottedBorder:!0})}),e[21]=b,e[22]=c):c=e[22];let m;return e[23]!==h||e[24]!==r||e[25]!==c?(m=u.jsx(_,{title:"NREN Involvement in European Commission Projects",description:"Many NRENs are involved in a number of different European Commission project, besides GÉANT. The list of projects in the table below is not necessarily exhaustive, but does contain projects the NRENs consider important or worthy of mention.",category:P.Organisation,filter:h,data:r,filename:"nren_involvement_in_european_commission_projects",children:c}),e[23]=h,e[24]=r,e[25]=c,e[26]=m):m=e[26],m}function S(e,t){const s=t.map(O).sort();s.length&&s.forEach(a=>{e[a]=a})}function O(e){return e.project}export{$ as default};
diff --git a/compendium_v2/static/ECProjects-Ixano_sS.js b/compendium_v2/static/ECProjects-Ixano_sS.js
new file mode 100644
index 0000000000000000000000000000000000000000..3232f21ca80dbb90dfda7bbd019301e6c5925665
--- /dev/null
+++ b/compendium_v2/static/ECProjects-Ixano_sS.js
@@ -0,0 +1 @@
+import{c as v,r as Y,F as y,j as u,S as C}from"./index.js";import{u as D,h as T,i as _,D as g,F,f as P}from"./useData-CxftshCa.js";import{N as R}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function $(){const e=v.c(27),{filterSelection:t,setFilterSelection:s}=Y.useContext(y),{data:a,years:j,nrens:N}=D("/api/ec-project",s);let r,d;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==a){let f;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(f=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=f):f=e[7],r=a.filter(f);const E=T(r);d=_(E,S),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=a,e[3]=r,e[4]=d}else r=e[3],d=e[4];const b=d;let o;e[8]!==j?(o=[...j],e[8]=j,e[9]=o):o=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==o||e[15]!==n?(l={availableYears:o,availableNrens:n},e[14]=o,e[15]=n,e[16]=l):l=e[16];let p;e[17]!==t||e[18]!==s||e[19]!==l?(p=u.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=p):p=e[20];const h=p;let c;e[21]!==b?(c=u.jsx(P,{children:u.jsx(R,{data:b,columnTitle:"EC Project Membership",dottedBorder:!0})}),e[21]=b,e[22]=c):c=e[22];let m;return e[23]!==h||e[24]!==r||e[25]!==c?(m=u.jsx(g,{title:"NREN Involvement in European Commission Projects",description:"Many NRENs are involved in a number of different European Commission project, besides GÉANT. The list of projects in the table below is not necessarily exhaustive, but does contain projects the NRENs consider important or worthy of mention.",category:C.Organisation,filter:h,data:r,filename:"nren_involvement_in_european_commission_projects",children:c}),e[23]=h,e[24]=r,e[25]=c,e[26]=m):m=e[26],m}function S(e,t){const s=t.map(O).sort();s.length&&s.forEach(a=>{e[a]=a})}function O(e){return e.project}export{$ as default};
diff --git a/compendium_v2/static/EOSCListings-DWYL3kBM.js b/compendium_v2/static/EOSCListings-DWYL3kBM.js
new file mode 100644
index 0000000000000000000000000000000000000000..10f2ece7f5658ce5484683f7f08917405905ec4a
--- /dev/null
+++ b/compendium_v2/static/EOSCListings-DWYL3kBM.js
@@ -0,0 +1 @@
+import{c as Y,r as j,F as C,j as f,t as D,S as E}from"./index.js";import{u as _,h as F,i as R,D as L,F as k,f as O}from"./useData-CxftshCa.js";import{N as P}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function H(){const e=Y.c(28),{filterSelection:t,setFilterSelection:l}=j.useContext(C),{data:a,years:N,nrens:x}=_("/api/eosc-listings",l);let s,d;if(e[0]!==a||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let h;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(h=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=h):h=e[7],s=a.filter(h);const y=F(s);d=R(y,T),e[0]=a,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=d}else s=e[3],d=e[4];const S=d;let i;e[8]!==N?(i=[...N],e[8]=N,e[9]=i):i=e[9];let r;e[10]!==x?(r=x.values(),e[10]=x,e[11]=r):r=e[11];let o;e[12]!==r?(o=[...r],e[12]=r,e[13]=o):o=e[13];let n;e[14]!==i||e[15]!==o?(n={availableYears:i,availableNrens:o},e[14]=i,e[15]=o,e[16]=n):n=e[16];let m;e[17]!==t||e[18]!==l||e[19]!==n?(m=f.jsx(k,{filterOptions:n,filterSelection:t,setFilterSelection:l}),e[17]=t,e[18]=l,e[19]=n,e[20]=m):m=e[20];const g=m;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx("span",{children:"Some NRENs choose to list services on the EOSC portal, these can be seen in the table below. Click on the name of the NREN to expand the detail and see the names of the services they list."}),e[21]=p):p=e[21];const v=p;let c;e[22]!==S?(c=f.jsx(O,{children:f.jsx(P,{data:S,columnTitle:"Service Name",dottedBorder:!0,keysAreURLs:!0,noDots:!0})}),e[22]=S,e[23]=c):c=e[23];let u;return e[24]!==g||e[25]!==s||e[26]!==c?(u=f.jsx(L,{title:D.eosc_listings,description:v,category:E.Policy,filter:g,data:s,filename:"nren_eosc_listings",children:c}),e[24]=g,e[25]=s,e[26]=c,e[27]=u):u=e[27],u}function T(e,t){for(const l of t)for(const a of l.service_names)e[a]=a}export{H as default};
diff --git a/compendium_v2/static/EOSCListings-DkHlXFjZ.js b/compendium_v2/static/EOSCListings-DkHlXFjZ.js
deleted file mode 100644
index 5491b6c79b14ed85c6bb1cf86535ed6cb80ac8d5..0000000000000000000000000000000000000000
--- a/compendium_v2/static/EOSCListings-DkHlXFjZ.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as y,r as C,F as Y,j as f}from"./main-BIBsTO5W.js";import{u as j,h as D,i as R,D as F,F as L,f as _}from"./useData-BDYwoQEh.js";import{S as O}from"./report.js";import{N as P}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function G(){const e=y.c(28),{filterSelection:t,setFilterSelection:a}=C.useContext(Y),{data:l,years:N,nrens:x}=j("/api/eosc-listings",a);let s,d;if(e[0]!==l||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=E=>t.selectedYears.includes(E.year)&&t.selectedNrens.includes(E.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=l.filter(u);const g=D(s);d=R(g,k),e[0]=l,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=d}else s=e[3],d=e[4];const S=d;let r;e[8]!==N?(r=[...N],e[8]=N,e[9]=r):r=e[9];let i;e[10]!==x?(i=x.values(),e[10]=x,e[11]=i):i=e[11];let o;e[12]!==i?(o=[...i],e[12]=i,e[13]=o):o=e[13];let n;e[14]!==r||e[15]!==o?(n={availableYears:r,availableNrens:o},e[14]=r,e[15]=o,e[16]=n):n=e[16];let m;e[17]!==t||e[18]!==a||e[19]!==n?(m=f.jsx(L,{filterOptions:n,filterSelection:t,setFilterSelection:a}),e[17]=t,e[18]=a,e[19]=n,e[20]=m):m=e[20];const v=m;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx("span",{children:"Some NRENs choose to list services on the EOSC portal, these can be seen in the table below. Click on the name of the NREN to expand the detail and see the names of the services they list."}),e[21]=p):p=e[21];const b=p;let c;e[22]!==S?(c=f.jsx(_,{children:f.jsx(P,{data:S,columnTitle:"Service Name",dottedBorder:!0,keysAreURLs:!0,noDots:!0})}),e[22]=S,e[23]=c):c=e[23];let h;return e[24]!==v||e[25]!==s||e[26]!==c?(h=f.jsx(F,{title:"NREN Services Listed on the EOSC Portal",description:b,category:O.Policy,filter:v,data:s,filename:"nren_eosc_listings",children:c}),e[24]=v,e[25]=s,e[26]=c,e[27]=h):h=e[27],h}function k(e,t){for(const a of t)for(const l of a.service_names)e[l]=l}export{G as default};
diff --git a/compendium_v2/static/ExternalConnections-BVnV4NEl.js b/compendium_v2/static/ExternalConnections-BVnV4NEl.js
new file mode 100644
index 0000000000000000000000000000000000000000..887261f1395331ceb6411c24507a1ba0339d93f3
--- /dev/null
+++ b/compendium_v2/static/ExternalConnections-BVnV4NEl.js
@@ -0,0 +1 @@
+import{c as _,j as r,e as C,r as S,F as E,t as w,S as D}from"./index.js";import{u as F,h as T,D as Y,F as R,f as L}from"./useData-CxftshCa.js";import{T as O}from"./Table-ClWM2_rS.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";function $(e){const t=_.c(8),{dataLookup:l,columnInfo:a}=e;if(!l){let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"matrix-border-round"}),t[0]=s):s=t[0],s}let d;if(t[1]!==a||t[2]!==l){let s;t[4]!==a?(s=j=>{const[i,h]=j;return r.jsx(C,{title:i,theme:"-table",startCollapsed:!0,children:r.jsx("div",{className:"scrollable-horizontal",children:Array.from(h.entries()).map(m=>{const[o,b]=m,x={"--before-color":`var(--color-of-the-year-muted-${o%9})`};return r.jsxs("div",{children:[r.jsx("span",{className:`scrollable-table-year color-of-the-year-${o%9} bold-caps-16pt pt-3 ps-3`,style:x,children:o}),r.jsx("div",{className:`colored-table bg-muted-color-of-the-year-${o%9}`,children:r.jsxs(O,{children:[r.jsx("thead",{children:r.jsx("tr",{children:Object.keys(a).map(c=>r.jsx("th",{style:{position:"relative"},children:r.jsx("span",{style:x,children:c})},c))})}),r.jsx("tbody",{children:b.map((c,k)=>r.jsx("tr",{children:Object.entries(a).map(u=>{const[g,f]=u,y=c[f];return r.jsx("td",{children:y},g)})},k))})]})})]},o)})})},i)},t[4]=a,t[5]=s):s=t[5],d=Array.from(l.entries()).map(s),t[1]=a,t[2]=l,t[3]=d}else d=t[3];const p=d;let n;return t[6]!==p?(n=r.jsx("div",{className:"matrix-border-round",children:p}),t[6]=p,t[7]=n):n=t[7],n}function q(){const e=_.c(29),{filterSelection:t,setFilterSelection:l}=S.useContext(E),{data:a,years:d,nrens:p}=F("/api/external-connections",l);let n,s;if(e[0]!==a||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let N;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(N=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=N):N=e[7],n=a.filter(N),s=T([...n]),e[0]=a,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=n,e[4]=s}else n=e[3],s=e[4];const j=s;let i;e[8]!==d?(i=[...d],e[8]=d,e[9]=i):i=e[9];let h;e[10]!==p?(h=p.values(),e[10]=p,e[11]=h):h=e[11];let m;e[12]!==h?(m=[...h],e[12]=h,e[13]=m):m=e[13];let o;e[14]!==i||e[15]!==m?(o={availableYears:i,availableNrens:m},e[14]=i,e[15]=m,e[16]=o):o=e[16];let b;e[17]!==t||e[18]!==l||e[19]!==o?(b=r.jsx(R,{filterOptions:o,filterSelection:t,setFilterSelection:l,coloredYears:!0}),e[17]=t,e[18]=l,e[19]=o,e[20]=b):b=e[20];const x=b;let c;e[21]===Symbol.for("react.memo_cache_sentinel")?(c={"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"},e[21]=c):c=e[21];const k=c;let u;e[22]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"The table below shows the operational external IP connections of each NREN. These include links to their regional backbone (ie. GÉANT), to other research locations, to the commercial internet, peerings to internet exchanges, cross-border dark fibre links, and any other links they may have."}),r.jsx("p",{children:"NRENs are asked to state the capacity for production purposes, not any additional link that may be there solely for the purpose of giving resilience. Cross-border fibre links are meant as those links which have been commissioned or established by the NREN from a point on their network, which is near the border to another point near the border on the network of a neighbouring NREN."})]}),e[22]=u):u=e[22];const g=u;let f;e[23]!==j?(f=r.jsx(L,{children:r.jsx($,{dataLookup:j,columnInfo:k})}),e[23]=j,e[24]=f):f=e[24];let y;return e[25]!==x||e[26]!==n||e[27]!==f?(y=r.jsx(Y,{title:w["external-connections"],description:g,category:D.Network,filter:x,data:n,filename:"nren_external_connections",children:f}),e[25]=x,e[26]=n,e[27]=f,e[28]=y):y=e[28],y}export{q as default};
diff --git a/compendium_v2/static/ExternalConnections-CYJLiQ46.js b/compendium_v2/static/ExternalConnections-CYJLiQ46.js
deleted file mode 100644
index f103c81231a263b78fa41b7099645d5d38e669b9..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ExternalConnections-CYJLiQ46.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as _,j as r,r as C,F as E}from"./main-BIBsTO5W.js";import{u as S,h as w,D,F,f as R}from"./useData-BDYwoQEh.js";import{c as T,S as Y}from"./report.js";import{T as I}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function L(e){const t=_.c(8),{dataLookup:l,columnInfo:a}=e;if(!l){let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx("div",{className:"matrix-border-round"}),t[0]=n):n=t[0],n}let d;if(t[1]!==a||t[2]!==l){let n;t[4]!==a?(n=j=>{const[i,h]=j;return r.jsx(T,{title:i,theme:"-table",startCollapsed:!0,children:r.jsx("div",{className:"scrollable-horizontal",children:Array.from(h.entries()).map(m=>{const[o,b]=m,x={"--before-color":`var(--color-of-the-year-muted-${o%9})`};return r.jsxs("div",{children:[r.jsx("span",{className:`scrollable-table-year color-of-the-year-${o%9} bold-caps-16pt pt-3 ps-3`,style:x,children:o}),r.jsx("div",{className:`colored-table bg-muted-color-of-the-year-${o%9}`,children:r.jsxs(I,{children:[r.jsx("thead",{children:r.jsx("tr",{children:Object.keys(a).map(c=>r.jsx("th",{style:{position:"relative"},children:r.jsx("span",{style:x,children:c})},c))})}),r.jsx("tbody",{children:b.map((c,k)=>r.jsx("tr",{children:Object.entries(a).map(u=>{const[g,f]=u,y=c[f];return r.jsx("td",{children:y},g)})},k))})]})})]},o)})})},i)},t[4]=a,t[5]=n):n=t[5],d=Array.from(l.entries()).map(n),t[1]=a,t[2]=l,t[3]=d}else d=t[3];const p=d;let s;return t[6]!==p?(s=r.jsx("div",{className:"matrix-border-round",children:p}),t[6]=p,t[7]=s):s=t[7],s}function M(){const e=_.c(29),{filterSelection:t,setFilterSelection:l}=C.useContext(E),{data:a,years:d,nrens:p}=S("/api/external-connections",l);let s,n;if(e[0]!==a||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let N;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(N=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=N):N=e[7],s=a.filter(N),n=w([...s]),e[0]=a,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=n}else s=e[3],n=e[4];const j=n;let i;e[8]!==d?(i=[...d],e[8]=d,e[9]=i):i=e[9];let h;e[10]!==p?(h=p.values(),e[10]=p,e[11]=h):h=e[11];let m;e[12]!==h?(m=[...h],e[12]=h,e[13]=m):m=e[13];let o;e[14]!==i||e[15]!==m?(o={availableYears:i,availableNrens:m},e[14]=i,e[15]=m,e[16]=o):o=e[16];let b;e[17]!==t||e[18]!==l||e[19]!==o?(b=r.jsx(F,{filterOptions:o,filterSelection:t,setFilterSelection:l,coloredYears:!0}),e[17]=t,e[18]=l,e[19]=o,e[20]=b):b=e[20];const x=b;let c;e[21]===Symbol.for("react.memo_cache_sentinel")?(c={"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"},e[21]=c):c=e[21];const k=c;let u;e[22]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"The table below shows the operational external IP connections of each NREN. These include links to their regional backbone (ie. GÉANT), to other research locations, to the commercial internet, peerings to internet exchanges, cross-border dark fibre links, and any other links they may have."}),r.jsx("p",{children:"NRENs are asked to state the capacity for production purposes, not any additional link that may be there solely for the purpose of giving resilience. Cross-border fibre links are meant as those links which have been commissioned or established by the NREN from a point on their network, which is near the border to another point near the border on the network of a neighbouring NREN."})]}),e[22]=u):u=e[22];const g=u;let f;e[23]!==j?(f=r.jsx(R,{children:r.jsx(L,{dataLookup:j,columnInfo:k})}),e[23]=j,e[24]=f):f=e[24];let y;return e[25]!==x||e[26]!==s||e[27]!==f?(y=r.jsx(D,{title:"NREN External IP Connections",description:g,category:Y.Network,filter:x,data:s,filename:"nren_external_connections",children:f}),e[25]=x,e[26]=s,e[27]=f,e[28]=y):y=e[28],y}export{M as default};
diff --git a/compendium_v2/static/FibreLight-4Mgdokfs.js b/compendium_v2/static/FibreLight-4Mgdokfs.js
deleted file mode 100644
index 88c69507719d55df2c994c57384ebe76e594fb73..0000000000000000000000000000000000000000
--- a/compendium_v2/static/FibreLight-4Mgdokfs.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{a as k,r as E,F as Y,j as h}from"./main-BIBsTO5W.js";import{u as j,g as v,D as F,F as R,f as S}from"./useData-BDYwoQEh.js";import{S as C}from"./report.js";import{P as D}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function z(){const e=k.c(29),{filterSelection:t,setFilterSelection:c}=E.useContext(Y),{data:N,years:_,nrens:g}=j("/api/fibre-light",c);let r,p;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],r=N.filter(m),p=v(r,"light_description"),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=r,e[4]=p}else r=e[3],p=e[4];const w=p;let o;e[8]!==_?(o=[..._],e[8]=_,e[9]=o):o=e[9];let i;e[10]!==g?(i=g.values(),e[10]=g,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let a;e[14]!==o||e[15]!==n?(a={availableYears:o,availableNrens:n},e[14]=o,e[15]=n,e[16]=a):a=e[16];let d;e[17]!==t||e[18]!==c||e[19]!==a?(d=h.jsx(R,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=a,e[20]=d):d=e[20];const x=d;let s,f;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["NREN owns and operates equipment","NREN owns equipment and operation is outsourced","Ownership and management are out-sourced (turn-key model)"],f=new Map([[s[0],"nren_owns_and_operates"],[s[1],"nren_owns_outsourced_operation"],[s[2],"outsourced_ownership_and_operation"]]),e[21]=s,e[22]=f):(s=e[21],f=e[22]);const y=f;let l;e[23]!==w?(l=h.jsx(S,{children:h.jsx(D,{columns:s,dataLookup:w,columnLookup:y,circle:!0})}),e[23]=w,e[24]=l):l=e[24];let u;return e[25]!==x||e[26]!==r||e[27]!==l?(u=h.jsx(F,{title:"Approaches to lighting NREN fibre networks",description:`This graphic shows the different ways NRENs can light their fibre networks. 
-            The option 'Other' is given, with extra information if you hover over the icon.`,category:C.Network,filter:x,data:r,filename:"fibre_light_of_nrens_per_year",children:l}),e[25]=x,e[26]=r,e[27]=l,e[28]=u):u=e[28],u}export{z as default};
diff --git a/compendium_v2/static/FibreLight-UtHnGi0p.js b/compendium_v2/static/FibreLight-UtHnGi0p.js
new file mode 100644
index 0000000000000000000000000000000000000000..914a0c7567a680778f3d8119820a306e43c09975
--- /dev/null
+++ b/compendium_v2/static/FibreLight-UtHnGi0p.js
@@ -0,0 +1,2 @@
+import{c as Y,r as j,F as k,j as h,t as v,S as E}from"./index.js";import{u as F,g as S,D as R,F as C,f as D}from"./useData-CxftshCa.js";import{P as L}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function B(){const e=Y.c(29),{filterSelection:t,setFilterSelection:c}=j.useContext(k),{data:_,years:N,nrens:g}=F("/api/fibre-light",c);let s,p;if(e[0]!==_||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=_.filter(m),p=S(s,"light_description"),e[0]=_,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const w=p;let i;e[8]!==N?(i=[...N],e[8]=N,e[9]=i):i=e[9];let o;e[10]!==g?(o=g.values(),e[10]=g,e[11]=o):o=e[11];let n;e[12]!==o?(n=[...o],e[12]=o,e[13]=n):n=e[13];let l;e[14]!==i||e[15]!==n?(l={availableYears:i,availableNrens:n},e[14]=i,e[15]=n,e[16]=l):l=e[16];let d;e[17]!==t||e[18]!==c||e[19]!==l?(d=h.jsx(C,{filterOptions:l,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=l,e[20]=d):d=e[20];const x=d;let r,f;e[21]===Symbol.for("react.memo_cache_sentinel")?(r=["NREN owns and operates equipment","NREN owns equipment and operation is outsourced","Ownership and management are out-sourced (turn-key model)"],f=new Map([[r[0],"nren_owns_and_operates"],[r[1],"nren_owns_outsourced_operation"],[r[2],"outsourced_ownership_and_operation"]]),e[21]=r,e[22]=f):(r=e[21],f=e[22]);const y=f;let a;e[23]!==w?(a=h.jsx(D,{children:h.jsx(L,{columns:r,dataLookup:w,columnLookup:y,circle:!0})}),e[23]=w,e[24]=a):a=e[24];let u;return e[25]!==x||e[26]!==s||e[27]!==a?(u=h.jsx(R,{title:v["fibre-light"],description:`This graphic shows the different ways NRENs can light their fibre networks. 
+            The option 'Other' is given, with extra information if you hover over the icon.`,category:E.Network,filter:x,data:s,filename:"fibre_light_of_nrens_per_year",children:a}),e[25]=x,e[26]=s,e[27]=a,e[28]=u):u=e[28],u}export{B as default};
diff --git a/compendium_v2/static/FundingSource-DRHIT4Ra.js b/compendium_v2/static/FundingSource-DRHIT4Ra.js
deleted file mode 100644
index b76c54414ea2fef5608ea81698e3e66da7857eab..0000000000000000000000000000000000000000
--- a/compendium_v2/static/FundingSource-DRHIT4Ra.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as D,j as s,r as P,F as z,C as y,R as G}from"./main-BIBsTO5W.js";import{B as M}from"./index-BBrAyDR9.js";import{C as j,a as T,L as H,B as W,p as q,c as I,d as J,u as K,j as Q,D as U,F as V,f as X}from"./useData-BDYwoQEh.js";import{p as Z}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{S as ee}from"./report.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function N(e){const t=D.c(6),{index:i,active:l}=e,n=l===void 0?!0:l;let a;t[0]!==n||t[1]!==i?(a=n?s.jsx("div",{className:`color-of-badge-${i%5}`,style:{width:"20px",height:"35px",margin:"2px"}}):s.jsx("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}),t[0]=n,t[1]=i,t[2]=a):a=t[2];let r;return t[3]!==i||t[4]!==a?(r=s.jsx("div",{className:"d-inline-block m-2",children:a},i),t[3]=i,t[4]=a,t[5]=r):r=t[5],r}j.register(T,H,W,q,I,J);const te={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.y!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0},xBottom:{ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0,grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(j.instances);let i=-999999,l=999999;for(const n of t)j.instances[n]&&e.chart.scales.xBottom&&(l=Math.min(j.instances[n].scales.x.min,l),i=Math.max(j.instances[n].scales.x.max,i));e.chart.scales.xBottom.options.min=l,e.chart.scales.xBottom.options.max=i,e.chart.scales.xBottom.min=l,e.chart.scales.xBottom.max=i}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function $(){const e=D.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:0},0),"Client Institutions"]}),e[0]=t):t=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:1},1),"Commercial"]}),e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:2},2),"European Funding"]}),e[2]=l):l=e[2];let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:3},3),"Gov/Public Bodies"]}),e[3]=n):n=e[3];let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"d-flex justify-content-center bold-grey-12pt",children:s.jsxs(G,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center",children:[t,i,l,n,s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:4},4),"Other"]})]})}),e[4]=a):a=e[4],a}function fe(){const e=D.c(44),{filterSelection:t,setFilterSelection:i}=P.useContext(z),{data:l,years:n,nrens:a}=K("/api/funding",i);let r,c,o,_;if(e[0]!==t||e[1]!==l||e[2]!==a||e[3]!==i||e[4]!==n){let w;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(w=m=>t.selectedYears.includes(m.year)&&t.selectedNrens.includes(m.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=w):w=e[11],o=l.filter(w),c=Q(o),c.datasets.forEach(m=>{m.data=m.data.filter((ie,L)=>t.selectedNrens.includes(c.labels[L]))});let k;e[12]!==t.selectedNrens?(k=m=>t.selectedNrens.includes(m),e[12]=t.selectedNrens,e[13]=k):k=e[13],c.labels=c.labels.filter(k);let x;e[14]!==n?(x=[...n],e[14]=n,e[15]=x):x=e[15];let p;e[16]!==a?(p=a.values(),e[16]=a,e[17]=p):p=e[17];let g;e[18]!==p?(g=[...p],e[18]=p,e[19]=g):g=e[19];let b;e[20]!==x||e[21]!==g?(b={availableYears:x,availableNrens:g},e[20]=x,e[21]=g,e[22]=b):b=e[22];let R;e[23]!==t||e[24]!==i||e[25]!==b?(R=s.jsx(V,{filterOptions:b,filterSelection:t,setFilterSelection:i}),e[23]=t,e[24]=i,e[25]=b,e[26]=R):R=e[26],r=R,_=Array.from(new Set(o.map(se))),e[0]=t,e[1]=l,e[2]=a,e[3]=i,e[4]=n,e[5]=r,e[6]=c,e[7]=o,e[8]=_}else r=e[5],c=e[6],o=e[7],_=e[8];const O=_.length,Y=t.selectedYears.length,A=O*Y*2+5;let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs("span",{children:['The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within "European funding". By "Client institutions" NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. "Commercial services" include services such as being a domain registry, or security support.',s.jsx("br",{}),"Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared."]}),e[27]=S):S=e[27];let v;e[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx($,{}),e[28]=v):v=e[28];const F=`${A}rem`;let d;e[29]!==F?(d={height:F},e[29]=F,e[30]=d):d=e[30];let C;e[31]===Symbol.for("react.memo_cache_sentinel")?(C=[Z],e[31]=C):C=e[31];let f;e[32]!==c?(f=s.jsx(M,{plugins:C,data:c,options:te}),e[32]=c,e[33]=f):f=e[33];let u;e[34]!==d||e[35]!==f?(u=s.jsx("div",{className:"chart-container",style:d,children:f}),e[34]=d,e[35]=f,e[36]=u):u=e[36];let B;e[37]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx($,{}),e[37]=B):B=e[37];let h;e[38]!==u?(h=s.jsxs(X,{children:[v,u,B]}),e[38]=u,e[39]=h):h=e[39];let E;return e[40]!==r||e[41]!==o||e[42]!==h?(E=s.jsx(U,{title:"Income Source Of NRENs",description:S,category:ee.Organisation,filter:r,data:o,filename:"income_source_of_nren_per_year",children:h}),e[40]=r,e[41]=o,e[42]=h,e[43]=E):E=e[43],E}function se(e){return e.nren}export{fe as default};
diff --git a/compendium_v2/static/FundingSource-DoZCzgMa.js b/compendium_v2/static/FundingSource-DoZCzgMa.js
new file mode 100644
index 0000000000000000000000000000000000000000..fc8f2e44b3246dc3c23455d9326d6f64e54b079a
--- /dev/null
+++ b/compendium_v2/static/FundingSource-DoZCzgMa.js
@@ -0,0 +1 @@
+import{c as D,j as s,r as P,F as z,t as G,S as M,C as y,R as T}from"./index.js";import{B as H}from"./index-CjWPDfDC.js";import{C as N,a as W,L as q,B as J,p as K,c as Q,d as U,u as V,j as X,D as Z,F as I,f as ee}from"./useData-CxftshCa.js";import{p as te}from"./chartjs-plugin-datalabels.esm-CjG-nxnq.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";function j(e){const t=D.c(6),{index:i,active:l}=e,n=l===void 0?!0:l;let a;t[0]!==n||t[1]!==i?(a=n?s.jsx("div",{className:`color-of-badge-${i%5}`,style:{width:"20px",height:"35px",margin:"2px"}}):s.jsx("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}),t[0]=n,t[1]=i,t[2]=a):a=t[2];let r;return t[3]!==i||t[4]!==a?(r=s.jsx("div",{className:"d-inline-block m-2",children:a},i),t[3]=i,t[4]=a,t[5]=r):r=t[5],r}N.register(W,q,J,K,Q,U);const se={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.y!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0},xBottom:{ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0,grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(N.instances);let i=-999999,l=999999;for(const n of t)N.instances[n]&&e.chart.scales.xBottom&&(l=Math.min(N.instances[n].scales.x.min,l),i=Math.max(N.instances[n].scales.x.max,i));e.chart.scales.xBottom.options.min=l,e.chart.scales.xBottom.options.max=i,e.chart.scales.xBottom.min=l,e.chart.scales.xBottom.max=i}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function $(){const e=D.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:0},0),"Client Institutions"]}),e[0]=t):t=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:1},1),"Commercial"]}),e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:2},2),"European Funding"]}),e[2]=l):l=e[2];let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:3},3),"Gov/Public Bodies"]}),e[3]=n):n=e[3];let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"d-flex justify-content-center bold-grey-12pt",children:s.jsxs(T,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center",children:[t,i,l,n,s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:4},4),"Other"]})]})}),e[4]=a):a=e[4],a}function ue(){const e=D.c(44),{filterSelection:t,setFilterSelection:i}=P.useContext(z),{data:l,years:n,nrens:a}=V("/api/funding",i);let r,c,o,_;if(e[0]!==t||e[1]!==l||e[2]!==a||e[3]!==i||e[4]!==n){let E;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(E=m=>t.selectedYears.includes(m.year)&&t.selectedNrens.includes(m.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=E):E=e[11],o=l.filter(E),c=X(o),c.datasets.forEach(m=>{m.data=m.data.filter((ne,L)=>t.selectedNrens.includes(c.labels[L]))});let k;e[12]!==t.selectedNrens?(k=m=>t.selectedNrens.includes(m),e[12]=t.selectedNrens,e[13]=k):k=e[13],c.labels=c.labels.filter(k);let x;e[14]!==n?(x=[...n],e[14]=n,e[15]=x):x=e[15];let p;e[16]!==a?(p=a.values(),e[16]=a,e[17]=p):p=e[17];let g;e[18]!==p?(g=[...p],e[18]=p,e[19]=g):g=e[19];let b;e[20]!==x||e[21]!==g?(b={availableYears:x,availableNrens:g},e[20]=x,e[21]=g,e[22]=b):b=e[22];let F;e[23]!==t||e[24]!==i||e[25]!==b?(F=s.jsx(I,{filterOptions:b,filterSelection:t,setFilterSelection:i}),e[23]=t,e[24]=i,e[25]=b,e[26]=F):F=e[26],r=F,_=Array.from(new Set(o.map(ie))),e[0]=t,e[1]=l,e[2]=a,e[3]=i,e[4]=n,e[5]=r,e[6]=c,e[7]=o,e[8]=_}else r=e[5],c=e[6],o=e[7],_=e[8];const O=_.length,Y=t.selectedYears.length,A=O*Y*2+5;let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs("span",{children:['The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within "European funding". By "Client institutions" NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. "Commercial services" include services such as being a domain registry, or security support.',s.jsx("br",{}),"Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared."]}),e[27]=S):S=e[27];let v;e[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx($,{}),e[28]=v):v=e[28];const R=`${A}rem`;let d;e[29]!==R?(d={height:R},e[29]=R,e[30]=d):d=e[30];let C;e[31]===Symbol.for("react.memo_cache_sentinel")?(C=[te],e[31]=C):C=e[31];let f;e[32]!==c?(f=s.jsx(H,{plugins:C,data:c,options:se}),e[32]=c,e[33]=f):f=e[33];let u;e[34]!==d||e[35]!==f?(u=s.jsx("div",{className:"chart-container",style:d,children:f}),e[34]=d,e[35]=f,e[36]=u):u=e[36];let B;e[37]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx($,{}),e[37]=B):B=e[37];let h;e[38]!==u?(h=s.jsxs(ee,{children:[v,u,B]}),e[38]=u,e[39]=h):h=e[39];let w;return e[40]!==r||e[41]!==o||e[42]!==h?(w=s.jsx(Z,{title:G.funding,description:S,category:M.Organisation,filter:r,data:o,filename:"income_source_of_nren_per_year",children:h}),e[40]=r,e[41]=o,e[42]=h,e[43]=w):w=e[43],w}function ie(e){return e.nren}export{ue as default};
diff --git a/compendium_v2/static/HTMLLegendPlugin-BO0IHS_R.js b/compendium_v2/static/HTMLLegendPlugin-BO0IHS_R.js
deleted file mode 100644
index 37254f32f5642fc58de1c727c893e6921330d258..0000000000000000000000000000000000000000
--- a/compendium_v2/static/HTMLLegendPlugin-BO0IHS_R.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as g,j as p}from"./main-BIBsTO5W.js";import{f as m,C as c}from"./useData-BDYwoQEh.js";const C=o=>{const e=g.c(8);let{children:s,location:t}=o;t||(t="both");const r=t==="top"||t==="both",a=t==="bottom"||t==="both";let n;e[0]!==r?(n=r&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),e[0]=r,e[1]=n):n=e[1];let l;e[2]!==a?(l=a&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}),e[2]=a,e[3]=l):l=e[3];let i;return e[4]!==s||e[5]!==n||e[6]!==l?(i=p.jsxs(m,{children:[n,s,l]}),e[4]=s,e[5]=n,e[6]=l,e[7]=i):i=e[7],i},u=(o,e)=>{const s=document.getElementById(e);if(!s)return null;let t=s.querySelector("ul");return t||(t=document.createElement("ul"),t.style.display="flex",t.style.flexDirection="row",t.style.margin="0",t.style.padding="0",s.appendChild(t)),t},b={id:"htmlLegend",afterUpdate(o,e,s){for(const t of s.containerIDs){const r=u(o,t);if(!r)return;for(;r.firstChild;)r.firstChild.remove();o.options.plugins.legend.labels.generateLabels(o).forEach(n=>{const l=document.createElement("li");l.style.alignItems="center",l.style.cursor="pointer",l.style.display="flex",l.style.flexDirection="row",l.style.marginLeft="10px",l.onclick=()=>{const{type:f}=o.config;f==="pie"||f==="doughnut"?o.toggleDataVisibility(n.index):o.setDatasetVisibility(n.datasetIndex,!o.isDatasetVisible(n.datasetIndex)),o.update()};const i=document.createElement("span");i.style.background=n.fillStyle,i.style.borderColor=n.strokeStyle,i.style.borderWidth=n.lineWidth+"px",i.style.display="inline-block",i.style.height="1rem",i.style.marginRight="10px",i.style.width="2.5rem";const d=document.createElement("p");d.style.color=n.fontColor,d.style.margin="0",d.style.padding="0",d.style.textDecoration=n.hidden?"line-through":"",d.style.fontSize=`${c.defaults.font.size}px`,d.style.fontFamily=`${c.defaults.font.family}`,d.style.fontWeight=`${c.defaults.font.weight}`;const y=document.createTextNode(n.text);d.appendChild(y),l.appendChild(i),l.appendChild(d),r.appendChild(l)})}}};export{C as W,b as h};
diff --git a/compendium_v2/static/HTMLLegendPlugin-C-L3dIU1.js b/compendium_v2/static/HTMLLegendPlugin-C-L3dIU1.js
new file mode 100644
index 0000000000000000000000000000000000000000..a773a200b35634fa7833c48955f3f21d49d92632
--- /dev/null
+++ b/compendium_v2/static/HTMLLegendPlugin-C-L3dIU1.js
@@ -0,0 +1 @@
+import{c as g,j as p}from"./index.js";import{f as m,C as c}from"./useData-CxftshCa.js";const C=o=>{const e=g.c(8);let{children:s,location:t}=o;t||(t="both");const r=t==="top"||t==="both",a=t==="bottom"||t==="both";let n;e[0]!==r?(n=r&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),e[0]=r,e[1]=n):n=e[1];let l;e[2]!==a?(l=a&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}),e[2]=a,e[3]=l):l=e[3];let i;return e[4]!==s||e[5]!==n||e[6]!==l?(i=p.jsxs(m,{children:[n,s,l]}),e[4]=s,e[5]=n,e[6]=l,e[7]=i):i=e[7],i},u=(o,e)=>{const s=document.getElementById(e);if(!s)return null;let t=s.querySelector("ul");return t||(t=document.createElement("ul"),t.style.display="flex",t.style.flexDirection="row",t.style.margin="0",t.style.padding="0",s.appendChild(t)),t},b={id:"htmlLegend",afterUpdate(o,e,s){for(const t of s.containerIDs){const r=u(o,t);if(!r)return;for(;r.firstChild;)r.firstChild.remove();o.options.plugins.legend.labels.generateLabels(o).forEach(n=>{const l=document.createElement("li");l.style.alignItems="center",l.style.cursor="pointer",l.style.display="flex",l.style.flexDirection="row",l.style.marginLeft="10px",l.onclick=()=>{const{type:f}=o.config;f==="pie"||f==="doughnut"?o.toggleDataVisibility(n.index):o.setDatasetVisibility(n.datasetIndex,!o.isDatasetVisible(n.datasetIndex)),o.update()};const i=document.createElement("span");i.style.background=n.fillStyle,i.style.borderColor=n.strokeStyle,i.style.borderWidth=n.lineWidth+"px",i.style.display="inline-block",i.style.height="1rem",i.style.marginRight="10px",i.style.width="2.5rem";const d=document.createElement("p");d.style.color=n.fontColor,d.style.margin="0",d.style.padding="0",d.style.textDecoration=n.hidden?"line-through":"",d.style.fontSize=`${c.defaults.font.size}px`,d.style.fontFamily=`${c.defaults.font.family}`,d.style.fontWeight=`${c.defaults.font.weight}`;const y=document.createTextNode(n.text);d.appendChild(y),l.appendChild(i),l.appendChild(d),r.appendChild(l)})}}};export{C as W,b as h};
diff --git a/compendium_v2/static/IRUDuration-CI7E3kyS.js b/compendium_v2/static/IRUDuration-CI7E3kyS.js
new file mode 100644
index 0000000000000000000000000000000000000000..f83919c20e350e0a56261a90d1921b54c4256420
--- /dev/null
+++ b/compendium_v2/static/IRUDuration-CI7E3kyS.js
@@ -0,0 +1 @@
+import{c as C,r as D,F as L,j as n,t as R,S as j}from"./index.js";import{L as E}from"./index-CjWPDfDC.js";import{C as v,a as k,L as F,P as I,b as U,p as P,c as w,d as O,u as Y,e as T,D as $,F as q,f as z}from"./useData-CxftshCa.js";import{g as A}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";v.register(k,F,I,U,P,w,O);function W(){const e=C.c(24);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=r=>r.iru_duration!=null,e[0]=o):o=e[0];const N=o,{filterSelection:t,setFilterSelection:c}=D.useContext(L),{data:g,nrens:_}=Y("/api/dark-fibre-lease",c,N);let a,f;if(e[1]!==g||e[2]!==t.selectedNrens){let r;e[5]!==t.selectedNrens?(r=S=>t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=r):r=e[6],a=g.filter(r),f=T(a,"iru_duration"),e[1]=g,e[2]=t.selectedNrens,e[3]=a,e[4]=f}else a=e[3],f=e[4];const x=f;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[7]=m):m=e[7];let s;e[8]!==_?(s=_.values(),e[8]=_,e[9]=s):s=e[9];let i;e[10]!==s?(i={availableYears:m,availableNrens:[...s]},e[10]=s,e[11]=i):i=e[11];let d;e[12]!==t||e[13]!==c||e[14]!==i?(d=n.jsx(q,{filterOptions:i,filterSelection:t,setFilterSelection:c}),e[12]=t,e[13]=c,e[14]=i,e[15]=d):d=e[15];const y=d;let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=A({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999}),e[16]=p):p=e[16];const b=p;let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("span",{children:"NRENs sometimes take out an IRU (Indefeasible Right of Use), which is essentially a long-term lease, on a portion of the capacity of a cable rather than laying cable themselves. This graph shows the average duration, in years, of the IRUs of NRENs."}),e[17]=u):u=e[17];let l;e[18]!==x?(l=n.jsx(z,{children:n.jsx(E,{data:x,options:b})}),e[18]=x,e[19]=l):l=e[19];let h;return e[20]!==y||e[21]!==a||e[22]!==l?(h=n.jsx($,{title:R["iru-duration"],description:u,category:j.Network,filter:y,data:a,filename:"iru_duration_data",children:l}),e[20]=y,e[21]=a,e[22]=l,e[23]=h):h=e[23],h}export{W as default};
diff --git a/compendium_v2/static/IRUDuration-D50DEG35.js b/compendium_v2/static/IRUDuration-D50DEG35.js
deleted file mode 100644
index ba9b5fda6faf4112d6b00bed177f90e2c67c1114..0000000000000000000000000000000000000000
--- a/compendium_v2/static/IRUDuration-D50DEG35.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as C,r as D,F as R,j as o}from"./main-BIBsTO5W.js";import{L}from"./index-BBrAyDR9.js";import{C as E,a as j,L as v,P as F,b as I,p as U,c as k,d as P,u as w,e as O,D as Y,F as A,f as T}from"./useData-BDYwoQEh.js";import{S as $}from"./report.js";import{g as q}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";E.register(j,v,F,I,U,k,P);function V(){const e=C.c(24);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=l=>l.iru_duration!=null,e[0]=n):n=e[0];const y=n,{filterSelection:t,setFilterSelection:c}=D.useContext(R),{data:g,nrens:_}=w("/api/dark-fibre-lease",c,y);let a,f;if(e[1]!==g||e[2]!==t.selectedNrens){let l;e[5]!==t.selectedNrens?(l=S=>t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=l):l=e[6],a=g.filter(l),f=O(a,"iru_duration"),e[1]=g,e[2]=t.selectedNrens,e[3]=a,e[4]=f}else a=e[3],f=e[4];const N=f;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[7]=m):m=e[7];let s;e[8]!==_?(s=_.values(),e[8]=_,e[9]=s):s=e[9];let i;e[10]!==s?(i={availableYears:m,availableNrens:[...s]},e[10]=s,e[11]=i):i=e[11];let p;e[12]!==t||e[13]!==c||e[14]!==i?(p=o.jsx(A,{filterOptions:i,filterSelection:t,setFilterSelection:c}),e[12]=t,e[13]=c,e[14]=i,e[15]=p):p=e[15];const b=p;let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=q({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999}),e[16]=d):d=e[16];const x=d;let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx("span",{children:"NRENs sometimes take out an IRU (Indefeasible Right of Use), which is essentially a long-term lease, on a portion of the capacity of a cable rather than laying cable themselves. This graph shows the average duration, in years, of the IRUs of NRENs."}),e[17]=u):u=e[17];let r;e[18]!==N?(r=o.jsx(T,{children:o.jsx(L,{data:N,options:x})}),e[18]=N,e[19]=r):r=e[19];let h;return e[20]!==b||e[21]!==a||e[22]!==r?(h=o.jsx(Y,{title:"Average Duration of IRU leases of Fibre by NRENs ",description:u,category:$.Network,filter:b,data:a,filename:"iru_duration_data",children:r}),e[20]=b,e[21]=a,e[22]=r,e[23]=h):h=e[23],h}export{V as default};
diff --git a/compendium_v2/static/Landing-B1Sq71Lu.js b/compendium_v2/static/Landing-B1Sq71Lu.js
new file mode 100644
index 0000000000000000000000000000000000000000..3d53f7158e4c91e2c288fe0664f4bdb40a1e5468
--- /dev/null
+++ b/compendium_v2/static/Landing-B1Sq71Lu.js
@@ -0,0 +1 @@
+import{c as V,Q as q,r as _,a1 as J,D as K,j as t,L as W,E as X,R as Z}from"./index.js";import{f as ee,a as te}from"./survey-3meXCY6T.js";import{S as ne}from"./SurveySidebar-CG0gwQ6b.js";import{u as b,w as re}from"./xlsx-BHRztzV8.js";import{T as se}from"./Table-ClWM2_rS.js";import"./SideBar-CkoMfgfL.js";const oe=()=>{const e=V.c(7),[i,f]=_.useState();let h,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{te().then(s=>{f(s[0])})},r=[],e[0]=h,e[1]=r):(h=e[0],r=e[1]),_.useEffect(h,r);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"(N)REN"}),t.jsx("th",{children:"Link"}),t.jsx("th",{children:"Survey Status"})]})}),e[2]=l):l=e[2];let c;e[3]!==i?(c=i&&i.responses.map(s=>t.jsxs("tr",{children:[t.jsx("td",{children:s.nren.name}),t.jsx("td",{children:t.jsx(W,{to:`/survey/response/${i.year}/${s.nren.name}`,children:t.jsx("span",{children:"Navigate to survey"})})}),t.jsx("td",{children:s.status})]},s.nren.id)),e[3]=i,e[4]=c):c=e[4];let o;return e[5]!==c?(o=t.jsxs(se,{striped:!0,bordered:!0,responsive:!0,children:[l,t.jsx("tbody",{children:c})]}),e[5]=c,e[6]=o):o=e[6],o};function fe(){const e=V.c(37),{trackPageView:i}=q(),{user:f}=_.useContext(J),h=K(),r=!!f.id,l=r?!!f.nrens.length:!1,c=l?f.nrens[0]:"",o=r?f.permissions.admin:!1,s=r?f.role==="observer":!1,[y,z]=_.useState(null);let w,E;e[0]!==i?(w=()=>{(async()=>{const P=await ee();z(P)})(),i({documentTitle:"GEANT Survey Landing Page"})},E=[i],e[0]=i,e[1]=w,e[2]=E):(w=e[1],E=e[2]),_.useEffect(w,E);let N;e[3]!==c||e[4]!==y||e[5]!==h?(N=()=>{try{return h(`/survey/response/${y}/${c}`),t.jsx("li",{children:"Redirecting to survey..."})}catch(I){return console.error("Error navigating:",I),null}},e[3]=c,e[4]=y,e[5]=h,e[6]=N):N=e[6];const B=N;let C;if(e[7]===Symbol.for("react.memo_cache_sentinel")){const I=function(d,x,a){const m=b.decode_range(d["!ref"]??"");let S=-1;for(let n=m.s.c;n<=m.e.c;n++){const u=b.encode_cell({r:m.s.r,c:n}),M=d[u];if(M&&typeof M.v=="string"&&M.v===x){S=n;break}}if(S===-1){console.error(`Column '${x}' not found.`);return}for(let n=m.s.r+1;n<=m.e.r;++n){const u=b.encode_cell({r:n,c:S});d[u]&&d[u].t==="n"&&(d[u].z=a)}},P=function(d){const x=b.book_new();d.forEach(n=>{const u=b.json_to_sheet(n.data);n.meta&&I(u,n.meta.columnName,n.meta.format),b.book_append_sheet(x,u,n.name)});const a=re(x,{bookType:"xlsx",type:"binary"}),m=new ArrayBuffer(a.length),S=new Uint8Array(m);for(let n=0;n<a.length;n++)S[n]=a.charCodeAt(n)&255;return new Blob([m],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})};C=function(){fetch("/api/data-download").then(ae).then(d=>{const x=P(d),a=document.createElement("a");a.href=URL.createObjectURL(x),a.download="data.xlsx",document.body.appendChild(a),a.click(),document.body.removeChild(a)}).catch(le)},e[7]=C}else C=e[7];const Q=C;let p;e[8]!==o?(p=o&&t.jsx(ne,{}),e[8]=o,e[9]=p):p=e[9];let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS SURVEY"}),e[10]=k):k=e[10];let T,A;e[11]===Symbol.for("react.memo_cache_sentinel")?(T={maxWidth:"75rem"},A={textAlign:"left"},e[11]=T,e[12]=A):(T=e[11],A=e[12]);let R;e[13]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("br",{}),e[13]=R):R=e[13];let Y;e[14]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx("a",{href:"/login",children:"here"}),e[14]=Y):Y=e[14];let L;e[15]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("br",{}),e[15]=L):L=e[15];let O;e[16]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("br",{}),e[16]=O):O=e[16];let $,D,U,F;e[17]===Symbol.for("react.memo_cache_sentinel")?($=t.jsxs("p",{style:A,children:["Hello,",R,"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",Y,", which will complete their registration to fill in the latest Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",L,"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",O,"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.jsx("br",{}),"Thank you."]}),D=t.jsx("span",{children:"Current registration status:"}),U=t.jsx("br",{}),F=t.jsx("br",{}),e[17]=$,e[18]=D,e[19]=U,e[20]=F):($=e[17],D=e[18],U=e[19],F=e[20]);let j;e[21]!==y||e[22]!==l||e[23]!==o||e[24]!==s||e[25]!==r||e[26]!==B?(j=o?t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("span",{children:"You are logged in as a Compendium Administrator"})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(W,{to:"/survey/admin/surveys",children:"here"})," to access the survey management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(W,{to:"/survey/admin/users",children:"here"})," to access the user management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx("a",{href:"#",onClick:Q,children:"here"})," to do the full data download."]})})]}):t.jsxs("ul",{children:[y&&!o&&!s&&l&&B(),r?t.jsx("li",{children:t.jsx("span",{children:"You are logged in"})}):t.jsx("li",{children:t.jsx("span",{children:"You are not logged in"})}),r&&!s&&!l&&t.jsx("li",{children:t.jsx("span",{children:"Your access to the survey has not yet been approved"})}),r&&!s&&!l&&t.jsx("li",{children:t.jsx("span",{children:"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page"})}),r&&s&&t.jsx("li",{children:t.jsx("span",{children:"You have read-only access to the following surveys:"})})]}),e[21]=y,e[22]=l,e[23]=o,e[24]=s,e[25]=r,e[26]=B,e[27]=j):j=e[27];let v;e[28]!==s||e[29]!==r?(v=r&&s&&t.jsx(oe,{}),e[28]=s,e[29]=r,e[30]=v):v=e[30];let g;e[31]!==j||e[32]!==v?(g=t.jsx(X,{className:"py-5 grey-container",children:t.jsx(Z,{children:t.jsxs("div",{className:"center-text",children:[k,t.jsxs("div",{className:"wordwrap pt-4",style:T,children:[$,D,U,F,j,v]})]})})}),e[31]=j,e[32]=v,e[33]=g):g=e[33];let G;return e[34]!==g||e[35]!==p?(G=t.jsxs(t.Fragment,{children:[p,g]}),e[34]=g,e[35]=p,e[36]=G):G=e[36],G}function le(e){console.error("Error fetching data:",e),alert("An error occurred while creating the data download Excel file.")}function ae(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()}export{fe as default};
diff --git a/compendium_v2/static/MonitoringTools-BuTC_DRa.js b/compendium_v2/static/MonitoringTools-BuTC_DRa.js
deleted file mode 100644
index fa620fb53fd2cdfe0147a50f8764f922431e3039..0000000000000000000000000000000000000000
--- a/compendium_v2/static/MonitoringTools-BuTC_DRa.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{a as T,r as v,F as S,j as h}from"./main-BIBsTO5W.js";import{u as Y,g as j,n as F,D as C,F as D,f as E}from"./useData-BDYwoQEh.js";import{S as L}from"./report.js";import{P as M}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function B(){const e=T.c(29),{filterSelection:t,setFilterSelection:c}=v.useContext(S),{data:w,years:_,nrens:N}=Y("/api/monitoring-tools",c);let s,f;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=w.filter(m);const y=j(s,"tool_descriptions");f=F(y,P),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const g=f;let o,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],p=new Map([[o[0],"looking_glass"],[o[1],"status_dashboard"],[o[2],"historical_traffic_volumes"],[o[3],"netflow_analysis"]]),e[8]=o,e[9]=p):(o=e[8],p=e[9]);const k=p;let l;e[10]!==_?(l=[..._],e[10]=_,e[11]=l):l=e[11];let r;e[12]!==N?(r=N.values(),e[12]=N,e[13]=r):r=e[13];let i;e[14]!==r?(i=[...r],e[14]=r,e[15]=i):i=e[15];let a;e[16]!==l||e[17]!==i?(a={availableYears:l,availableNrens:i},e[16]=l,e[17]=i,e[18]=a):a=e[18];let d;e[19]!==t||e[20]!==c||e[21]!==a?(d=h.jsx(D,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=a,e[22]=d):d=e[22];const b=d;let n;e[23]!==g?(n=h.jsx(E,{children:h.jsx(M,{columns:o,columnLookup:k,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let u;return e[25]!==b||e[26]!==s||e[27]!==n?(u=h.jsx(C,{title:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions",description:`The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. 
-            Four common tools are named, however NRENs also have the opportunity to add their own tools to the table.`,category:L.Network,filter:b,data:s,filename:"monitoring_tools_nrens_per_year",children:n}),e[25]=b,e[26]=s,e[27]=n,e[28]=u):u=e[28],u}function P(e,t){if(e==="netflow_analysis"&&t.netflow_processing_description)return t.netflow_processing_description}export{B as default};
diff --git a/compendium_v2/static/MonitoringTools-C61NJKaR.js b/compendium_v2/static/MonitoringTools-C61NJKaR.js
new file mode 100644
index 0000000000000000000000000000000000000000..bcc90f2e7ad8ff2f887ef59cc760225a5e928f4f
--- /dev/null
+++ b/compendium_v2/static/MonitoringTools-C61NJKaR.js
@@ -0,0 +1,2 @@
+import{c as v,r as S,F as T,j as h,t as Y,S as j}from"./index.js";import{u as F,g as D,n as E,D as L,F as C,f as P}from"./useData-CxftshCa.js";import{P as R}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function J(){const e=v.c(29),{filterSelection:t,setFilterSelection:c}=S.useContext(T),{data:w,years:_,nrens:N}=F("/api/monitoring-tools",c);let s,f;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=w.filter(u);const k=D(s,"tool_descriptions");f=E(k,M),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const g=f;let o,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],p=new Map([[o[0],"looking_glass"],[o[1],"status_dashboard"],[o[2],"historical_traffic_volumes"],[o[3],"netflow_analysis"]]),e[8]=o,e[9]=p):(o=e[8],p=e[9]);const y=p;let l;e[10]!==_?(l=[..._],e[10]=_,e[11]=l):l=e[11];let i;e[12]!==N?(i=N.values(),e[12]=N,e[13]=i):i=e[13];let r;e[14]!==i?(r=[...i],e[14]=i,e[15]=r):r=e[15];let a;e[16]!==l||e[17]!==r?(a={availableYears:l,availableNrens:r},e[16]=l,e[17]=r,e[18]=a):a=e[18];let d;e[19]!==t||e[20]!==c||e[21]!==a?(d=h.jsx(C,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=a,e[22]=d):d=e[22];const b=d;let n;e[23]!==g?(n=h.jsx(P,{children:h.jsx(R,{columns:o,columnLookup:y,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let m;return e[25]!==b||e[26]!==s||e[27]!==n?(m=h.jsx(L,{title:Y["monitoring-tools"],description:`The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. 
+            Four common tools are named, however NRENs also have the opportunity to add their own tools to the table.`,category:j.Network,filter:b,data:s,filename:"monitoring_tools_nrens_per_year",children:n}),e[25]=b,e[26]=s,e[27]=n,e[28]=m):m=e[28],m}function M(e,t){if(e==="netflow_analysis"&&t.netflow_processing_description)return t.netflow_processing_description}export{J as default};
diff --git a/compendium_v2/static/NetworkFunctionVirtualisation-DLW-vjXN.js b/compendium_v2/static/NetworkFunctionVirtualisation-DLW-vjXN.js
new file mode 100644
index 0000000000000000000000000000000000000000..382fd4618a3e3d2e3ecbf17d062b0730c1e4ff10
--- /dev/null
+++ b/compendium_v2/static/NetworkFunctionVirtualisation-DLW-vjXN.js
@@ -0,0 +1 @@
+import{c as W,r as X,F as Z,S as k,j as t,t as ee}from"./index.js";import{u as te,g as se,F as le,D as re,f as ne}from"./useData-CxftshCa.js";import{C as I}from"./ColorPill-CXvWIfWz.js";import{T as ae}from"./Table-ClWM2_rS.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";function ue(){const e=W.c(67),{filterSelection:n,setFilterSelection:h}=X.useContext(Z),{data:J,years:c,nrens:R}=te("/api/nfv",h);let f,p,x,j,m,u,g,v,b,o,d,w,S,Y,N;if(e[0]!==J||e[1]!==n||e[2]!==R||e[3]!==h||e[4]!==c){let A;e[20]!==n.selectedNrens||e[21]!==n.selectedYears?(A=E=>n.selectedYears.includes(E.year)&&n.selectedNrens.includes(E.nren),e[20]=n.selectedNrens,e[21]=n.selectedYears,e[22]=A):A=e[22];const K=J.filter(A),Q=se(K,"nfv_specifics");let C;e[23]!==c?(C=[...c],e[23]=c,e[24]=C):C=e[24];let T;e[25]!==R?(T=R.values(),e[25]=R,e[26]=T):T=e[26];let $;e[27]!==T?($=[...T],e[27]=T,e[28]=$):$=e[28];let D;e[29]!==C||e[30]!==$?(D={availableYears:C,availableNrens:$},e[29]=C,e[30]=$,e[31]=D):D=e[31];let L;e[32]!==n||e[33]!==h||e[34]!==D?(L=t.jsx(le,{filterOptions:D,filterSelection:n,setFilterSelection:h,coloredYears:!0}),e[32]=n,e[33]=h,e[34]=D,e[35]=L):L=e[35];const U=L;let O;e[36]!==c?(O=E=>c.has(E),e[36]=c,e[37]=O):O=e[37];const M=[...n.selectedYears.filter(O)].sort();x=re,w=ee.nfv,S="The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",Y=k.Network,N=U,u=K,g="network_function_virtualisation_nrens_per_year",p=ne,f=ae,m="charging-struct-table",v=!0,b=!0;let _;e[38]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("col",{span:1,style:{width:"20%"}}),e[38]=_):_=e[38];let q;e[39]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("col",{span:2,style:{width:"16%"}}),e[39]=q):q=e[39];let z;e[40]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("col",{span:2,style:{width:"16%"}}),e[40]=z):z=e[40];let B;e[41]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("col",{span:2,style:{width:"16%"}}),e[41]=B):B=e[41];let G;e[42]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx("col",{span:2,style:{width:"16%"}}),e[42]=G):G=e[42],e[43]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs("colgroup",{children:[_,q,z,B,G,t.jsx("col",{span:2,style:{width:"16%"}})]}),d=t.jsxs("thead",{children:[t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{colSpan:2,children:"Routers/switches"}),t.jsx("th",{colSpan:2,children:"Firewalls"}),t.jsx("th",{colSpan:2,children:"Load balancers"}),t.jsx("th",{colSpan:2,children:"VPN Concentrator Services"}),t.jsx("th",{colSpan:2,children:"Other"})]}),t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"})]})]}),e[43]=o,e[44]=d):(o=e[43],d=e[44]),j=Array.from(Q.entries()).map(E=>{const[H,i]=E;return t.jsxs("tr",{children:[t.jsx("td",{children:H}),["routers","firewalls","load_balancers","vpn_concentrators"].map(l=>t.jsxs(t.Fragment,{children:[t.jsx("td",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&r.nfv=="yes"),tooltip:"",rounded:!0},s)})},`${l}-yes`),t.jsx("td",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&r.nfv=="planned"),tooltip:"",rounded:!0},s)})},`${l}-planned`)]})),t.jsx("td",{children:Array.from(i.keys()).filter(ce).map(l=>t.jsx("div",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="yes"),tooltip:l,rounded:!0},s)})},`${l}-yes`))},`${H}-other-yes`),t.jsx("td",{children:Array.from(i.keys()).filter(ie).map(l=>t.jsx("div",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="planned"),tooltip:l,rounded:!0},s)})},`${l}-planned`))},`${H}-other-planned`)]},H)}),e[0]=J,e[1]=n,e[2]=R,e[3]=h,e[4]=c,e[5]=f,e[6]=p,e[7]=x,e[8]=j,e[9]=m,e[10]=u,e[11]=g,e[12]=v,e[13]=b,e[14]=o,e[15]=d,e[16]=w,e[17]=S,e[18]=Y,e[19]=N}else f=e[5],p=e[6],x=e[7],j=e[8],m=e[9],u=e[10],g=e[11],v=e[12],b=e[13],o=e[14],d=e[15],w=e[16],S=e[17],Y=e[18],N=e[19];let F;e[45]!==j?(F=t.jsx("tbody",{children:j}),e[45]=j,e[46]=F):F=e[46];let y;e[47]!==f||e[48]!==m||e[49]!==F||e[50]!==v||e[51]!==b||e[52]!==o||e[53]!==d?(y=t.jsxs(f,{className:m,striped:v,bordered:b,children:[o,d,F]}),e[47]=f,e[48]=m,e[49]=F,e[50]=v,e[51]=b,e[52]=o,e[53]=d,e[54]=y):y=e[54];let P;e[55]!==p||e[56]!==y?(P=t.jsx(p,{children:y}),e[55]=p,e[56]=y,e[57]=P):P=e[57];let V;return e[58]!==x||e[59]!==u||e[60]!==g||e[61]!==P||e[62]!==w||e[63]!==S||e[64]!==Y||e[65]!==N?(V=t.jsx(x,{title:w,description:S,category:Y,filter:N,data:u,filename:g,children:P}),e[58]=x,e[59]=u,e[60]=g,e[61]=P,e[62]=w,e[63]=S,e[64]=Y,e[65]=N,e[66]=V):V=e[66],V}function ie(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function ce(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}export{ue as default};
diff --git a/compendium_v2/static/NetworkFunctionVirtualisation-DMaSWRo0.js b/compendium_v2/static/NetworkFunctionVirtualisation-DMaSWRo0.js
deleted file mode 100644
index 435d79991688664262e9a15c232ec16ac6163984..0000000000000000000000000000000000000000
--- a/compendium_v2/static/NetworkFunctionVirtualisation-DMaSWRo0.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as W,r as X,F as Z,j as t}from"./main-BIBsTO5W.js";import{u as k,g as ee,F as te,D as se,f as le}from"./useData-BDYwoQEh.js";import{C as H}from"./ColorPill-CqT_mR3a.js";import{S as re}from"./report.js";import{T as ne}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function ue(){const e=W.c(67),{filterSelection:n,setFilterSelection:h}=X.useContext(Z),{data:I,years:o,nrens:V}=k("/api/nfv",h);let f,p,x,j,u,m,g,b,v,c,d,w,N,S,Y;if(e[0]!==I||e[1]!==n||e[2]!==V||e[3]!==h||e[4]!==o){let A;e[20]!==n.selectedNrens||e[21]!==n.selectedYears?(A=R=>n.selectedYears.includes(R.year)&&n.selectedNrens.includes(R.nren),e[20]=n.selectedNrens,e[21]=n.selectedYears,e[22]=A):A=e[22];const J=I.filter(A),Q=ee(J,"nfv_specifics");let C;e[23]!==o?(C=[...o],e[23]=o,e[24]=C):C=e[24];let T;e[25]!==V?(T=V.values(),e[25]=V,e[26]=T):T=e[26];let $;e[27]!==T?($=[...T],e[27]=T,e[28]=$):$=e[28];let E;e[29]!==C||e[30]!==$?(E={availableYears:C,availableNrens:$},e[29]=C,e[30]=$,e[31]=E):E=e[31];let L;e[32]!==n||e[33]!==h||e[34]!==E?(L=t.jsx(te,{filterOptions:E,filterSelection:n,setFilterSelection:h,coloredYears:!0}),e[32]=n,e[33]=h,e[34]=E,e[35]=L):L=e[35];const U=L;let O;e[36]!==o?(O=R=>o.has(R),e[36]=o,e[37]=O):O=e[37];const K=[...n.selectedYears.filter(O)].sort();x=se,w="Kinds of Network Function Virtualisation used by NRENs ",N="The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",S=re.Network,Y=U,m=J,g="network_function_virtualisation_nrens_per_year",p=le,f=ne,u="charging-struct-table",b=!0,v=!0;let M;e[38]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("col",{span:1,style:{width:"20%"}}),e[38]=M):M=e[38];let _;e[39]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("col",{span:2,style:{width:"16%"}}),e[39]=_):_=e[39];let q;e[40]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("col",{span:2,style:{width:"16%"}}),e[40]=q):q=e[40];let z;e[41]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("col",{span:2,style:{width:"16%"}}),e[41]=z):z=e[41];let B;e[42]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("col",{span:2,style:{width:"16%"}}),e[42]=B):B=e[42],e[43]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("colgroup",{children:[M,_,q,z,B,t.jsx("col",{span:2,style:{width:"16%"}})]}),d=t.jsxs("thead",{children:[t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{colSpan:2,children:"Routers/switches"}),t.jsx("th",{colSpan:2,children:"Firewalls"}),t.jsx("th",{colSpan:2,children:"Load balancers"}),t.jsx("th",{colSpan:2,children:"VPN Concentrator Services"}),t.jsx("th",{colSpan:2,children:"Other"})]}),t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"})]})]}),e[43]=c,e[44]=d):(c=e[43],d=e[44]),j=Array.from(Q.entries()).map(R=>{const[G,a]=R;return t.jsxs("tr",{children:[t.jsx("td",{children:G}),["routers","firewalls","load_balancers","vpn_concentrators"].map(l=>t.jsxs(t.Fragment,{children:[t.jsx("td",{children:a.has(l)&&K.map(s=>{const i=a.get(l),r=i.get(s);return t.jsx(H,{year:s,active:i.has(s)&&!!(r&&r.nfv=="yes"),tooltip:"",rounded:!0},s)})},`${l}-yes`),t.jsx("td",{children:a.has(l)&&K.map(s=>{const i=a.get(l),r=i.get(s);return t.jsx(H,{year:s,active:i.has(s)&&!!(r&&r.nfv=="planned"),tooltip:"",rounded:!0},s)})},`${l}-planned`)]})),t.jsx("td",{children:Array.from(a.keys()).filter(ae).map(l=>t.jsx("div",{children:a.has(l)&&K.map(s=>{const i=a.get(l),r=i.get(s);return t.jsx(H,{year:s,active:i.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="yes"),tooltip:l,rounded:!0},s)})},`${l}-yes`))},`${G}-other-yes`),t.jsx("td",{children:Array.from(a.keys()).filter(ie).map(l=>t.jsx("div",{children:a.has(l)&&K.map(s=>{const i=a.get(l),r=i.get(s);return t.jsx(H,{year:s,active:i.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="planned"),tooltip:l,rounded:!0},s)})},`${l}-planned`))},`${G}-other-planned`)]},G)}),e[0]=I,e[1]=n,e[2]=V,e[3]=h,e[4]=o,e[5]=f,e[6]=p,e[7]=x,e[8]=j,e[9]=u,e[10]=m,e[11]=g,e[12]=b,e[13]=v,e[14]=c,e[15]=d,e[16]=w,e[17]=N,e[18]=S,e[19]=Y}else f=e[5],p=e[6],x=e[7],j=e[8],u=e[9],m=e[10],g=e[11],b=e[12],v=e[13],c=e[14],d=e[15],w=e[16],N=e[17],S=e[18],Y=e[19];let F;e[45]!==j?(F=t.jsx("tbody",{children:j}),e[45]=j,e[46]=F):F=e[46];let y;e[47]!==f||e[48]!==u||e[49]!==F||e[50]!==b||e[51]!==v||e[52]!==c||e[53]!==d?(y=t.jsxs(f,{className:u,striped:b,bordered:v,children:[c,d,F]}),e[47]=f,e[48]=u,e[49]=F,e[50]=b,e[51]=v,e[52]=c,e[53]=d,e[54]=y):y=e[54];let P;e[55]!==p||e[56]!==y?(P=t.jsx(p,{children:y}),e[55]=p,e[56]=y,e[57]=P):P=e[57];let D;return e[58]!==x||e[59]!==m||e[60]!==g||e[61]!==P||e[62]!==w||e[63]!==N||e[64]!==S||e[65]!==Y?(D=t.jsx(x,{title:w,description:N,category:S,filter:Y,data:m,filename:g,children:P}),e[58]=x,e[59]=m,e[60]=g,e[61]=P,e[62]=w,e[63]=N,e[64]=S,e[65]=Y,e[66]=D):D=e[66],D}function ie(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function ae(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}export{ue as default};
diff --git a/compendium_v2/static/NetworkMapUrls-B3Qc49It.js b/compendium_v2/static/NetworkMapUrls-B3Qc49It.js
new file mode 100644
index 0000000000000000000000000000000000000000..21422d15d25052c7257d0a9665259d4f5a45a605
--- /dev/null
+++ b/compendium_v2/static/NetworkMapUrls-B3Qc49It.js
@@ -0,0 +1 @@
+import{c as b,r as h,F as j,j as u,t as y,S as _}from"./index.js";import{u as g,q as v,k as S,i as F,D as C,F as E,f as L,s as R}from"./useData-CxftshCa.js";import{N as T}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function z(){const e=b.c(21),{filterSelection:t,setFilterSelection:r}=h.useContext(j),{data:a,nrens:i}=g("/api/network-map-urls",r);let s,c;if(e[0]!==a||e[1]!==t.selectedNrens){const x=a?v(a):[];let d;e[4]!==t.selectedNrens?(d=w=>t.selectedNrens.includes(w.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],s=x.filter(d);const D=S(s);c=F(D,Y),e[0]=a,e[1]=t.selectedNrens,e[2]=s,e[3]=c}else s=e[2],c=e[3];const k=c;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let o;e[7]!==i?(o=i.values(),e[7]=i,e[8]=o):o=e[8];let l;e[9]!==o?(l={availableYears:p,availableNrens:[...o]},e[9]=o,e[10]=l):l=e[10];let f;e[11]!==t||e[12]!==r||e[13]!==l?(f=u.jsx(E,{filterOptions:l,filterSelection:t,setFilterSelection:r,coloredYears:!0}),e[11]=t,e[12]=r,e[13]=l,e[14]=f):f=e[14];const N=f;let n;e[15]!==k?(n=u.jsx(L,{children:u.jsx(T,{data:k,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=k,e[16]=n):n=e[16];let m;return e[17]!==N||e[18]!==s||e[19]!==n?(m=u.jsx(C,{title:y["network-map"],description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:_.Network,filter:N,data:s,filename:"network_map_nrens_per_year",children:n}),e[17]=N,e[18]=s,e[19]=n,e[20]=m):m=e[20],m}function Y(e,t){const r=R(t);if(r!=null)for(const[a,i]of Object.entries(r))e[a]=i}export{z as default};
diff --git a/compendium_v2/static/NetworkMapUrls-YVUXOiQm.js b/compendium_v2/static/NetworkMapUrls-YVUXOiQm.js
deleted file mode 100644
index e8540bbdae99b9f7bcbf7eacc7f768150d7b324a..0000000000000000000000000000000000000000
--- a/compendium_v2/static/NetworkMapUrls-YVUXOiQm.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as b,r as h,F as j,j as u}from"./main-BIBsTO5W.js";import{u as y,q as _,k as g,i as v,D as S,F as E,f as F,s as R}from"./useData-BDYwoQEh.js";import{S as C}from"./report.js";import{N as L}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function $(){const e=b.c(21),{filterSelection:t,setFilterSelection:r}=h.useContext(j),{data:a,nrens:i}=y("/api/network-map-urls",r);let s,c;if(e[0]!==a||e[1]!==t.selectedNrens){const x=a?_(a):[];let d;e[4]!==t.selectedNrens?(d=w=>t.selectedNrens.includes(w.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],s=x.filter(d);const D=g(s);c=v(D,T),e[0]=a,e[1]=t.selectedNrens,e[2]=s,e[3]=c}else s=e[2],c=e[3];const N=c;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[6]=f):f=e[6];let o;e[7]!==i?(o=i.values(),e[7]=i,e[8]=o):o=e[8];let l;e[9]!==o?(l={availableYears:f,availableNrens:[...o]},e[9]=o,e[10]=l):l=e[10];let p;e[11]!==t||e[12]!==r||e[13]!==l?(p=u.jsx(E,{filterOptions:l,filterSelection:t,setFilterSelection:r,coloredYears:!0}),e[11]=t,e[12]=r,e[13]=l,e[14]=p):p=e[14];const k=p;let n;e[15]!==N?(n=u.jsx(F,{children:u.jsx(L,{data:N,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=N,e[16]=n):n=e[16];let m;return e[17]!==k||e[18]!==s||e[19]!==n?(m=u.jsx(S,{title:"NREN Network Maps",description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:C.Network,filter:k,data:s,filename:"network_map_nrens_per_year",children:n}),e[17]=k,e[18]=s,e[19]=n,e[20]=m):m=e[20],m}function T(e,t){const r=R(t);if(r!=null)for(const[a,i]of Object.entries(r))e[a]=i}export{$ as default};
diff --git a/compendium_v2/static/NonRAndEPeer-BvFWiPrM.js b/compendium_v2/static/NonRAndEPeer-BvFWiPrM.js
deleted file mode 100644
index 3865f9f6963e2cdb89ebc8687c0b9421872a38b9..0000000000000000000000000000000000000000
--- a/compendium_v2/static/NonRAndEPeer-BvFWiPrM.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{a as B,r as D,F,j as u}from"./main-BIBsTO5W.js";import{B as Y}from"./index-BBrAyDR9.js";import{C as k,a as v,L as A,B as L,p as O,c as T,d as $,u as G,o as I,D as M,F as W,f as q}from"./useData-BDYwoQEh.js";import{S as z}from"./report.js";import{p as H}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{a as J}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";k.register(v,A,L,O,T,$);function ae(){const e=B.c(38),{filterSelection:t,setFilterSelection:r}=D.useContext(F),{data:b,years:d,nrens:h}=G("/api/non-re-peers",r);let a,l,s,g;if(e[0]!==b||e[1]!==t||e[2]!==h||e[3]!==r||e[4]!==d){let E;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(E=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=E):E=e[11],s=b.filter(E),a=I(s,"nr_of_non_r_and_e_peers","Number of Peers");let c;e[12]!==d?(c=[...d],e[12]=d,e[13]=c):c=e[13];let m;e[14]!==h?(m=h.values(),e[14]=h,e[15]=m):m=e[15];let f;e[16]!==m?(f=[...m],e[16]=m,e[17]=f):f=e[17];let p;e[18]!==c||e[19]!==f?(p={availableYears:c,availableNrens:f},e[18]=c,e[19]=f,e[20]=p):p=e[20];let S;e[21]!==t||e[22]!==r||e[23]!==p?(S=u.jsx(W,{filterOptions:p,filterSelection:t,setFilterSelection:r}),e[21]=t,e[22]=r,e[23]=p,e[24]=S):S=e[24],l=S,g=Array.from(new Set(s.map(K))),e[0]=b,e[1]=t,e[2]=h,e[3]=r,e[4]=d,e[5]=a,e[6]=l,e[7]=s,e[8]=g}else a=e[5],l=e[6],s=e[7],g=e[8];const y=g.length,R=Math.max(y*t.selectedYears.length*1.5+5,50),j=`The graph below shows the number of non-Research and Education networks 
-    NRENs peer with. This includes all direct IP-peerings to commercial networks, eg. Google`;let N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=J({title:"Number of Non-R&E Peers"}),e[25]=N):N=e[25];const P=N,C=`${R}rem`;let n;e[26]!==C?(n={height:C},e[26]=C,e[27]=n):n=e[27];let _;e[28]===Symbol.for("react.memo_cache_sentinel")?(_=[H],e[28]=_):_=e[28];let i;e[29]!==a?(i=u.jsx(Y,{data:a,options:P,plugins:_}),e[29]=a,e[30]=i):i=e[30];let o;e[31]!==n||e[32]!==i?(o=u.jsx(q,{children:u.jsx("div",{className:"chart-container",style:n,children:i})}),e[31]=n,e[32]=i,e[33]=o):o=e[33];let x;return e[34]!==l||e[35]!==s||e[36]!==o?(x=u.jsx(M,{title:"Number of Non-R&E Networks NRENs Peer With",description:j,category:z.Network,filter:l,data:s,filename:"non_r_and_e_peering",children:o}),e[34]=l,e[35]=s,e[36]=o,e[37]=x):x=e[37],x}function K(e){return e.nren}export{ae as default};
diff --git a/compendium_v2/static/NonRAndEPeer-Cg_pAdU8.js b/compendium_v2/static/NonRAndEPeer-Cg_pAdU8.js
new file mode 100644
index 0000000000000000000000000000000000000000..1c211516c0f10bc470e3c9b991ebc852a09d566b
--- /dev/null
+++ b/compendium_v2/static/NonRAndEPeer-Cg_pAdU8.js
@@ -0,0 +1,2 @@
+import{c as D,r as F,F as Y,j as u,S as v,t as k}from"./index.js";import{B as A}from"./index-CjWPDfDC.js";import{C as L,a as O,L as T,B as $,p as G,c as I,d as M,u as q,o as z,D as H,F as J,f as K}from"./useData-CxftshCa.js";import{p as Q}from"./chartjs-plugin-datalabels.esm-CjG-nxnq.js";import{a as U}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";L.register(O,T,$,G,I,M);function ne(){const e=D.c(38),{filterSelection:t,setFilterSelection:r}=F.useContext(Y),{data:b,years:d,nrens:h}=q("/api/non-re-peers",r);let a,l,s,g;if(e[0]!==b||e[1]!==t||e[2]!==h||e[3]!==r||e[4]!==d){let S;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(S=E=>t.selectedYears.includes(E.year)&&t.selectedNrens.includes(E.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=S):S=e[11],s=b.filter(S),a=z(s,"nr_of_non_r_and_e_peers","Number of Peers");let c;e[12]!==d?(c=[...d],e[12]=d,e[13]=c):c=e[13];let m;e[14]!==h?(m=h.values(),e[14]=h,e[15]=m):m=e[15];let p;e[16]!==m?(p=[...m],e[16]=m,e[17]=p):p=e[17];let f;e[18]!==c||e[19]!==p?(f={availableYears:c,availableNrens:p},e[18]=c,e[19]=p,e[20]=f):f=e[20];let C;e[21]!==t||e[22]!==r||e[23]!==f?(C=u.jsx(J,{filterOptions:f,filterSelection:t,setFilterSelection:r}),e[21]=t,e[22]=r,e[23]=f,e[24]=C):C=e[24],l=C,g=Array.from(new Set(s.map(V))),e[0]=b,e[1]=t,e[2]=h,e[3]=r,e[4]=d,e[5]=a,e[6]=l,e[7]=s,e[8]=g}else a=e[5],l=e[6],s=e[7],g=e[8];const j=g.length,w=Math.max(j*t.selectedYears.length*1.5+5,50),B=k["non-rne-peers"],P=`The graph below shows the number of non-Research and Education networks 
+    NRENs peer with. This includes all direct IP-peerings to commercial networks, eg. Google`;let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=U({title:"Number of Non-R&E Peers"}),e[25]=_):_=e[25];const R=_,y=`${w}rem`;let n;e[26]!==y?(n={height:y},e[26]=y,e[27]=n):n=e[27];let N;e[28]===Symbol.for("react.memo_cache_sentinel")?(N=[Q],e[28]=N):N=e[28];let i;e[29]!==a?(i=u.jsx(A,{data:a,options:R,plugins:N}),e[29]=a,e[30]=i):i=e[30];let o;e[31]!==n||e[32]!==i?(o=u.jsx(K,{children:u.jsx("div",{className:"chart-container",style:n,children:i})}),e[31]=n,e[32]=i,e[33]=o):o=e[33];let x;return e[34]!==l||e[35]!==s||e[36]!==o?(x=u.jsx(H,{title:B,description:P,category:v.Network,filter:l,data:s,filename:"non_r_and_e_peering",children:o}),e[34]=l,e[35]=s,e[36]=o,e[37]=x):x=e[37],x}function V(e){return e.nren}export{ne as default};
diff --git a/compendium_v2/static/NrenYearTable-BuqomkXK.js b/compendium_v2/static/NrenYearTable-BuqomkXK.js
deleted file mode 100644
index eeb7466924ac2568077bbb9499baf2e6171b6887..0000000000000000000000000000000000000000
--- a/compendium_v2/static/NrenYearTable-BuqomkXK.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as j,j as r}from"./main-BIBsTO5W.js";import{w as p}from"./useData-BDYwoQEh.js";import{T as u}from"./Table-HH9WOnMU.js";function N(f,e,s,l,t){return f?l.startsWith("http")?r.jsx("li",{children:r.jsx("a",{href:p(l),target:"_blank",rel:"noopener noreferrer",style:e,children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s)}function b(f,{dottedBorder:e=!1,noDots:s=!1,keysAreURLs:l=!1,removeDecoration:t=!1}){return Array.from(f.entries()).map(([i,x])=>Array.from(x.entries()).map(([o,m],d)=>{const n={};return t&&(n.textDecoration="none"),r.jsxs("tr",{className:e?"dotted-border":"",children:[r.jsx("td",{className:"pt-3 nren-column text-nowrap",children:d===0&&i}),r.jsx("td",{className:"pt-3 year-column",children:o}),r.jsx("td",{className:"pt-3 blue-column",children:r.jsx("ul",{className:s?"no-list-style-type":"",children:Array.from(Object.entries(m)).map(([a,c],h)=>N(l,n,h,c,a))})})]},i+o)}))}function _(f){const e=j.c(15),{data:s,columnTitle:l,dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}=f;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("th",{className:"nren-column",children:r.jsx("span",{children:"NREN"})}),e[0]=m):m=e[0];let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx("th",{className:"year-column",children:r.jsx("span",{children:"Year"})}),e[1]=d):d=e[1];let n;e[2]!==l?(n=r.jsx("thead",{children:r.jsxs("tr",{children:[m,d,r.jsx("th",{className:"blue-column",children:r.jsx("span",{children:l})})]})}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==s||e[5]!==t||e[6]!==x||e[7]!==i||e[8]!==o?(a=b(s,{dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}),e[4]=s,e[5]=t,e[6]=x,e[7]=i,e[8]=o,e[9]=a):a=e[9];let c;e[10]!==a?(c=r.jsx("tbody",{children:a}),e[10]=a,e[11]=c):c=e[11];let h;return e[12]!==n||e[13]!==c?(h=r.jsxs(u,{borderless:!0,className:"compendium-table",children:[n,c]}),e[12]=n,e[13]=c,e[14]=h):h=e[14],h}export{_ as N};
diff --git a/compendium_v2/static/NrenYearTable-tQrmAmRo.js b/compendium_v2/static/NrenYearTable-tQrmAmRo.js
new file mode 100644
index 0000000000000000000000000000000000000000..c33e14b826045a7f2b9556ad9b06a3119d25789c
--- /dev/null
+++ b/compendium_v2/static/NrenYearTable-tQrmAmRo.js
@@ -0,0 +1 @@
+import{c as j,j as r}from"./index.js";import{w as p}from"./useData-CxftshCa.js";import{T as u}from"./Table-ClWM2_rS.js";function N(f,e,s,l,t){return f?l.startsWith("http")?r.jsx("li",{children:r.jsx("a",{href:p(l),target:"_blank",rel:"noopener noreferrer",style:e,children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s)}function b(f,{dottedBorder:e=!1,noDots:s=!1,keysAreURLs:l=!1,removeDecoration:t=!1}){return Array.from(f.entries()).map(([i,x])=>Array.from(x.entries()).map(([o,m],d)=>{const n={};return t&&(n.textDecoration="none"),r.jsxs("tr",{className:e?"dotted-border":"",children:[r.jsx("td",{className:"pt-3 nren-column text-nowrap",children:d===0&&i}),r.jsx("td",{className:"pt-3 year-column",children:o}),r.jsx("td",{className:"pt-3 blue-column",children:r.jsx("ul",{className:s?"no-list-style-type":"",children:Array.from(Object.entries(m)).map(([a,c],h)=>N(l,n,h,c,a))})})]},i+o)}))}function _(f){const e=j.c(15),{data:s,columnTitle:l,dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}=f;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("th",{className:"nren-column",children:r.jsx("span",{children:"NREN"})}),e[0]=m):m=e[0];let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx("th",{className:"year-column",children:r.jsx("span",{children:"Year"})}),e[1]=d):d=e[1];let n;e[2]!==l?(n=r.jsx("thead",{children:r.jsxs("tr",{children:[m,d,r.jsx("th",{className:"blue-column",children:r.jsx("span",{children:l})})]})}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==s||e[5]!==t||e[6]!==x||e[7]!==i||e[8]!==o?(a=b(s,{dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}),e[4]=s,e[5]=t,e[6]=x,e[7]=i,e[8]=o,e[9]=a):a=e[9];let c;e[10]!==a?(c=r.jsx("tbody",{children:a}),e[10]=a,e[11]=c):c=e[11];let h;return e[12]!==n||e[13]!==c?(h=r.jsxs(u,{borderless:!0,className:"compendium-table",children:[n,c]}),e[12]=n,e[13]=c,e[14]=h):h=e[14],h}export{_ as N};
diff --git a/compendium_v2/static/OPsAutomation-BoFZP12U.js b/compendium_v2/static/OPsAutomation-BoFZP12U.js
new file mode 100644
index 0000000000000000000000000000000000000000..312070482f966f1f61e50df7a0ae49bdf8cbfb93
--- /dev/null
+++ b/compendium_v2/static/OPsAutomation-BoFZP12U.js
@@ -0,0 +1,3 @@
+import{c as y,r as P,F as S,j as h,t as g,S as k}from"./index.js";import{u as v,g as F,n as C,D,F as E,f as L}from"./useData-CxftshCa.js";import{P as R}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function J(){const e=y.c(29),{filterSelection:t,setFilterSelection:c}=P.useContext(S),{data:N,years:x,nrens:_}=v("/api/ops-automation",c);let s,p;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let d;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(d=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=d):d=e[7],s=N.filter(d);const j=F(s,"ops_automation");p=C(j,M),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const w=p;let o,m;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Yes","Planned","No"],m=new Map([[o[0],"yes"],[o[1],"planned"],[o[2],"no"]]),e[8]=o,e[9]=m):(o=e[8],m=e[9]);const T=m;let a;e[10]!==x?(a=[...x],e[10]=x,e[11]=a):a=e[11];let l;e[12]!==_?(l=_.values(),e[12]=_,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let r;e[16]!==a||e[17]!==i?(r={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=r):r=e[18];let u;e[19]!==t||e[20]!==c||e[21]!==r?(u=h.jsx(E,{filterOptions:r,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=r,e[22]=u):u=e[22];const Y=u;let n;e[23]!==w?(n=h.jsx(L,{children:h.jsx(R,{columns:o,columnLookup:T,dataLookup:w})}),e[23]=w,e[24]=n):n=e[24];let f;return e[25]!==Y||e[26]!==s||e[27]!==n?(f=h.jsx(D,{title:g["ops-automation"],description:`The table below shows which NRENs have, or plan to, automate their 
+            operational processes, with specification of which processes, and the names of 
+            software and tools used for this given when appropriate.`,category:k.Network,filter:Y,data:s,filename:"ops_automation_nrens_per_year",children:n}),e[25]=Y,e[26]=s,e[27]=n,e[28]=f):f=e[28],f}function M(e,t){if(t.ops_automation_specifics)return t.ops_automation_specifics}export{J as default};
diff --git a/compendium_v2/static/OPsAutomation-mleIxb9-.js b/compendium_v2/static/OPsAutomation-mleIxb9-.js
deleted file mode 100644
index efc4ec279acad832d96f4b3f984d981c31b9bf7a..0000000000000000000000000000000000000000
--- a/compendium_v2/static/OPsAutomation-mleIxb9-.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import{a as j,r as y,F as S,j as h}from"./main-BIBsTO5W.js";import{u as g,g as k,n as v,D as E,F,f as C}from"./useData-BDYwoQEh.js";import{S as D}from"./report.js";import{P as L}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function I(){const e=j.c(29),{filterSelection:t,setFilterSelection:c}=y.useContext(S),{data:N,years:x,nrens:_}=g("/api/ops-automation",c);let s,p;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let d;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(d=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=d):d=e[7],s=N.filter(d);const T=k(s,"ops_automation");p=v(T,R),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const w=p;let o,f;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Yes","Planned","No"],f=new Map([[o[0],"yes"],[o[1],"planned"],[o[2],"no"]]),e[8]=o,e[9]=f):(o=e[8],f=e[9]);const P=f;let a;e[10]!==x?(a=[...x],e[10]=x,e[11]=a):a=e[11];let l;e[12]!==_?(l=_.values(),e[12]=_,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let r;e[16]!==a||e[17]!==i?(r={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=r):r=e[18];let m;e[19]!==t||e[20]!==c||e[21]!==r?(m=h.jsx(F,{filterOptions:r,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=r,e[22]=m):m=e[22];const Y=m;let n;e[23]!==w?(n=h.jsx(C,{children:h.jsx(L,{columns:o,columnLookup:P,dataLookup:w})}),e[23]=w,e[24]=n):n=e[24];let u;return e[25]!==Y||e[26]!==s||e[27]!==n?(u=h.jsx(E,{title:"NREN Automation of Operational Processes",description:`The table below shows which NRENs have, or plan to, automate their 
-            operational processes, with specification of which processes, and the names of 
-            software and tools used for this given when appropriate.`,category:D.Network,filter:Y,data:s,filename:"ops_automation_nrens_per_year",children:n}),e[25]=Y,e[26]=s,e[27]=n,e[28]=u):u=e[28],u}function R(e,t){if(t.ops_automation_specifics)return t.ops_automation_specifics}export{I as default};
diff --git a/compendium_v2/static/ParentOrganisation-DJLeH6g7.js b/compendium_v2/static/ParentOrganisation-DJLeH6g7.js
deleted file mode 100644
index 7112723d9e19c4331b4ca268482a181b700b2591..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ParentOrganisation-DJLeH6g7.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as b,r as y,F as j,j as p}from"./main-BIBsTO5W.js";import{u as v,k as E,i as O,D as S,F,f as P}from"./useData-BDYwoQEh.js";import{S as R}from"./report.js";import{N as w}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function q(){const e=b.c(27),{filterSelection:t,setFilterSelection:a}=y.useContext(j),{data:u,years:g,nrens:N}=v("/api/parent-organizations",a);let s,c;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==u){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=h=>t.selectedYears.includes(h.year)&&t.selectedNrens.includes(h.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=u.filter(m);const Y=E(s);c=O(Y,C),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=u,e[3]=s,e[4]=c}else s=e[3],c=e[4];const x=c;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==r||e[15]!==n?(l={availableYears:r,availableNrens:n},e[14]=r,e[15]=n,e[16]=l):l=e[16];let d;e[17]!==t||e[18]!==a||e[19]!==l?(d=p.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:a,max1year:!0}),e[17]=t,e[18]=a,e[19]=l,e[20]=d):d=e[20];const D=d;let o;e[21]!==x?(o=p.jsx(P,{children:p.jsx(w,{data:x,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})}),e[21]=x,e[22]=o):o=e[22];let f;return e[23]!==D||e[24]!==s||e[25]!==o?(f=p.jsx(S,{title:"NREN Parent Organisations",description:"Some NRENs are part of larger organisations, including Ministries or universities. These are shown in the table below. Only NRENs who are managed in this way are available to select.",category:R.Organisation,filter:D,data:s,filename:"nren_parent_organisations",children:o}),e[23]=D,e[24]=s,e[25]=o,e[26]=f):f=e[26],f}function C(e,t){const a=t.name;e[a]=a}export{q as default};
diff --git a/compendium_v2/static/ParentOrganisation-OrE_JaGF.js b/compendium_v2/static/ParentOrganisation-OrE_JaGF.js
new file mode 100644
index 0000000000000000000000000000000000000000..fd644f14107e794119771b6bb2e91fd2fc35f1a0
--- /dev/null
+++ b/compendium_v2/static/ParentOrganisation-OrE_JaGF.js
@@ -0,0 +1 @@
+import{c as b,r as y,F as j,j as p,S as v}from"./index.js";import{u as E,k as O,i as S,D as F,F as P,f as R}from"./useData-CxftshCa.js";import{N as w}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function q(){const e=b.c(27),{filterSelection:t,setFilterSelection:a}=y.useContext(j),{data:u,years:g,nrens:N}=E("/api/parent-organizations",a);let s,c;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==u){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=h=>t.selectedYears.includes(h.year)&&t.selectedNrens.includes(h.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=u.filter(m);const Y=O(s);c=S(Y,C),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=u,e[3]=s,e[4]=c}else s=e[3],c=e[4];const x=c;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==r||e[15]!==n?(l={availableYears:r,availableNrens:n},e[14]=r,e[15]=n,e[16]=l):l=e[16];let d;e[17]!==t||e[18]!==a||e[19]!==l?(d=p.jsx(P,{filterOptions:l,filterSelection:t,setFilterSelection:a,max1year:!0}),e[17]=t,e[18]=a,e[19]=l,e[20]=d):d=e[20];const D=d;let o;e[21]!==x?(o=p.jsx(R,{children:p.jsx(w,{data:x,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})}),e[21]=x,e[22]=o):o=e[22];let f;return e[23]!==D||e[24]!==s||e[25]!==o?(f=p.jsx(F,{title:"NREN Parent Organisations",description:"Some NRENs are part of larger organisations, including Ministries or universities. These are shown in the table below. Only NRENs who are managed in this way are available to select.",category:v.Organisation,filter:D,data:s,filename:"nren_parent_organisations",children:o}),e[23]=D,e[24]=s,e[25]=o,e[26]=f):f=e[26],f}function C(e,t){const a=t.name;e[a]=a}export{q as default};
diff --git a/compendium_v2/static/PassiveMonitoring-BQaZqq7o.js b/compendium_v2/static/PassiveMonitoring-BQaZqq7o.js
deleted file mode 100644
index 494aa92aeec655d8f30765ed40ba391a4791c132..0000000000000000000000000000000000000000
--- a/compendium_v2/static/PassiveMonitoring-BQaZqq7o.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as Y,r as j,F as y,j as N}from"./main-BIBsTO5W.js";import{u as T,g as _,D as F,F as M,f as k}from"./useData-BDYwoQEh.js";import{S as w}from"./report.js";import{P as A}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function $(){const e=Y.c(29),{filterSelection:t,setFilterSelection:c}=j.useContext(y),{data:h,years:x,nrens:P}=T("/api/passive-monitoring",c);let o,p;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],o=h.filter(u),p=_(o,"method",!0),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=p}else o=e[3],p=e[4];const g=p;let r;e[8]!==x?(r=[...x],e[8]=x,e[9]=r):r=e[9];let l;e[10]!==P?(l=P.values(),e[10]=P,e[11]=l):l=e[11];let a;e[12]!==l?(a=[...l],e[12]=l,e[13]=a):a=e[13];let i;e[14]!==r||e[15]!==a?(i={availableYears:r,availableNrens:a},e[14]=r,e[15]=a,e[16]=i):i=e[16];let f;e[17]!==t||e[18]!==c||e[19]!==i?(f=N.jsx(M,{filterOptions:i,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=i,e[20]=f):f=e[20];const v=f;let s,m;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],m=new Map([[s[0],"null"],[s[1],"span_ports"],[s[2],"taps"],[s[3],"both"]]),e[21]=s,e[22]=m):(s=e[21],m=e[22]);const b=m;let n;e[23]!==g?(n=N.jsx(k,{children:N.jsx(A,{columns:s,dataLookup:g,columnLookup:b})}),e[23]=g,e[24]=n):n=e[24];let d;return e[25]!==v||e[26]!==o||e[27]!==n?(d=N.jsx(F,{title:"Methods for Passively Monitoring International Traffic",description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:w.Network,filter:v,data:o,filename:"passive_monitoring_nrens_per_year",children:n}),e[25]=v,e[26]=o,e[27]=n,e[28]=d):d=e[28],d}export{$ as default};
diff --git a/compendium_v2/static/PassiveMonitoring-Cv8zkVr2.js b/compendium_v2/static/PassiveMonitoring-Cv8zkVr2.js
new file mode 100644
index 0000000000000000000000000000000000000000..648af8f27e3554d53d80b6a48f5c2dd2b51cace3
--- /dev/null
+++ b/compendium_v2/static/PassiveMonitoring-Cv8zkVr2.js
@@ -0,0 +1 @@
+import{c as Y,r as j,F as _,j as N,t as y,S as F}from"./index.js";import{u as T,g as k,D as w,F as A,f as C}from"./useData-CxftshCa.js";import{P as D}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function z(){const e=Y.c(29),{filterSelection:t,setFilterSelection:c}=j.useContext(_),{data:h,years:x,nrens:g}=T("/api/passive-monitoring",c);let o,p;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],o=h.filter(u),p=k(o,"method",!0),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=p}else o=e[3],p=e[4];const v=p;let l;e[8]!==x?(l=[...x],e[8]=x,e[9]=l):l=e[9];let r;e[10]!==g?(r=g.values(),e[10]=g,e[11]=r):r=e[11];let i;e[12]!==r?(i=[...r],e[12]=r,e[13]=i):i=e[13];let a;e[14]!==l||e[15]!==i?(a={availableYears:l,availableNrens:i},e[14]=l,e[15]=i,e[16]=a):a=e[16];let m;e[17]!==t||e[18]!==c||e[19]!==a?(m=N.jsx(A,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=a,e[20]=m):m=e[20];const P=m;let s,f;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],f=new Map([[s[0],"null"],[s[1],"span_ports"],[s[2],"taps"],[s[3],"both"]]),e[21]=s,e[22]=f):(s=e[21],f=e[22]);const b=f;let n;e[23]!==v?(n=N.jsx(C,{children:N.jsx(D,{columns:s,dataLookup:v,columnLookup:b})}),e[23]=v,e[24]=n):n=e[24];let d;return e[25]!==P||e[26]!==o||e[27]!==n?(d=N.jsx(w,{title:y["passive-monitoring"],description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:F.Network,filter:P,data:o,filename:"passive_monitoring_nrens_per_year",children:n}),e[25]=P,e[26]=o,e[27]=n,e[28]=d):d=e[28],d}export{z as default};
diff --git a/compendium_v2/static/PertTeam-Cf_GEMUq.js b/compendium_v2/static/PertTeam-Cf_GEMUq.js
new file mode 100644
index 0000000000000000000000000000000000000000..cf7d3c39009e027c2a4c90fd0070b61cd639b57a
--- /dev/null
+++ b/compendium_v2/static/PertTeam-Cf_GEMUq.js
@@ -0,0 +1,2 @@
+import{c as E,r as _,F as b,j as N,t as g,S as k}from"./index.js";import{u as v,g as F,D as R,F as T,f as C}from"./useData-CxftshCa.js";import{P as D}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function B(){const e=E.c(29),{filterSelection:t,setFilterSelection:c}=_.useContext(b),{data:x,years:P,nrens:Y}=v("/api/pert-team",c);let s,m;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=x.filter(u),m=F(s,"pert_team"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const h=m;let r,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","Planned","No"],p=new Map([[r[0],"yes"],[r[1],"planned"],[r[2],"no"]]),e[8]=r,e[9]=p):(r=e[8],p=e[9]);const y=p;let a;e[10]!==P?(a=[...P],e[10]=P,e[11]=a):a=e[11];let l;e[12]!==Y?(l=Y.values(),e[12]=Y,e[13]=l):l=e[13];let n;e[14]!==l?(n=[...l],e[14]=l,e[15]=n):n=e[15];let o;e[16]!==a||e[17]!==n?(o={availableYears:a,availableNrens:n},e[16]=a,e[17]=n,e[18]=o):o=e[18];let f;e[19]!==t||e[20]!==c||e[21]!==o?(f=N.jsx(T,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=f):f=e[22];const S=f;let i;e[23]!==h?(i=N.jsx(C,{children:N.jsx(D,{columns:r,columnLookup:y,dataLookup:h})}),e[23]=h,e[24]=i):i=e[24];let d;return e[25]!==S||e[26]!==s||e[27]!==i?(d=N.jsx(R,{title:g["pert-team"],description:`Some NRENs have an in-house Performance Enhancement Response Team, 
+            or PERT, to investigate network performance issues.`,category:k.Network,filter:S,data:s,filename:"pert_team_nrens_per_year",children:i}),e[25]=S,e[26]=s,e[27]=i,e[28]=d):d=e[28],d}export{B as default};
diff --git a/compendium_v2/static/PertTeam-Dk6-ebg9.js b/compendium_v2/static/PertTeam-Dk6-ebg9.js
deleted file mode 100644
index c3f02f278599c830f2ef7277150387036558ab48..0000000000000000000000000000000000000000
--- a/compendium_v2/static/PertTeam-Dk6-ebg9.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{a as j,r as y,F as T,j as N}from"./main-BIBsTO5W.js";import{u as _,g as b,D as g,F as k,f as v}from"./useData-BDYwoQEh.js";import{S as F}from"./report.js";import{P as w}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function A(){const e=j.c(29),{filterSelection:t,setFilterSelection:c}=y.useContext(T),{data:x,years:h,nrens:P}=_("/api/pert-team",c);let s,m;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=R=>t.selectedYears.includes(R.year)&&t.selectedNrens.includes(R.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=x.filter(u),m=b(s,"pert_team"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const E=m;let r,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","Planned","No"],p=new Map([[r[0],"yes"],[r[1],"planned"],[r[2],"no"]]),e[8]=r,e[9]=p):(r=e[8],p=e[9]);const S=p;let a;e[10]!==h?(a=[...h],e[10]=h,e[11]=a):a=e[11];let l;e[12]!==P?(l=P.values(),e[12]=P,e[13]=l):l=e[13];let n;e[14]!==l?(n=[...l],e[14]=l,e[15]=n):n=e[15];let o;e[16]!==a||e[17]!==n?(o={availableYears:a,availableNrens:n},e[16]=a,e[17]=n,e[18]=o):o=e[18];let f;e[19]!==t||e[20]!==c||e[21]!==o?(f=N.jsx(k,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=f):f=e[22];const Y=f;let i;e[23]!==E?(i=N.jsx(v,{children:N.jsx(w,{columns:r,columnLookup:S,dataLookup:E})}),e[23]=E,e[24]=i):i=e[24];let d;return e[25]!==Y||e[26]!==s||e[27]!==i?(d=N.jsx(g,{title:"NRENs with Performance Enhancement Response Teams",description:`Some NRENs have an in-house Performance Enhancement Response Team, 
-            or PERT, to investigate network performance issues.`,category:F.Network,filter:Y,data:s,filename:"pert_team_nrens_per_year",children:i}),e[25]=Y,e[26]=s,e[27]=i,e[28]=d):d=e[28],d}export{A as default};
diff --git a/compendium_v2/static/PillTable-5pkcg2T9.js b/compendium_v2/static/PillTable-5pkcg2T9.js
deleted file mode 100644
index 1541d98bd2b67bb2f97eee5cbaf68625b7754d60..0000000000000000000000000000000000000000
--- a/compendium_v2/static/PillTable-5pkcg2T9.js
+++ /dev/null
@@ -1 +0,0 @@
-import{j as t}from"./main-BIBsTO5W.js";import{C as c}from"./ColorPill-CqT_mR3a.js";import{T as u}from"./Table-HH9WOnMU.js";function b({columns:h,dataLookup:o,circle:p=!1,columnLookup:n=new Map}){const x=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.keys())))),d=h.map(r=>n.get(r)||r),j=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.values()).flatMap(e=>Array.from(e.keys()))))),f=x.filter(r=>{const e=n.get(r);return e?!d.includes(e):!d.includes(r)}).map(r=>n.get(r)||r);return t.jsxs(u,{className:"charging-struct-table",striped:!0,bordered:!0,children:[t.jsx("colgroup",{children:t.jsx("col",{span:1,style:{width:"12rem"}})}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),h.map(r=>t.jsx("th",{colSpan:1,children:r},r)),f.length?t.jsx("th",{children:"Other"}):null]})}),t.jsx("tbody",{children:Array.from(o.entries()).map(([r,e])=>t.jsxs("tr",{children:[t.jsx("td",{children:r}),d.map(s=>{const a=e.get(s);return a?t.jsx("td",{children:j.map(l=>{const i=a.get(l)||{};return t.jsx(c,{year:l,active:a.has(l),tooltip:i.tooltip,rounded:p},l)})},s):t.jsx("td",{},s)}),!!f.length&&t.jsx("td",{children:f.map(s=>{const a=e.get(s);return a?Array.from(Array.from(a.entries())).map(([i,m])=>t.jsx(c,{year:i,active:!0,tooltip:m.tooltip||s,rounded:p},i)):void 0})},`${r}-other`)]},r))})]})}export{b as P};
diff --git a/compendium_v2/static/PillTable-Cnj0nnFy.js b/compendium_v2/static/PillTable-Cnj0nnFy.js
new file mode 100644
index 0000000000000000000000000000000000000000..85cf6a1d47045567e24a3a758e52cae3fded5d44
--- /dev/null
+++ b/compendium_v2/static/PillTable-Cnj0nnFy.js
@@ -0,0 +1 @@
+import{j as t}from"./index.js";import{C as c}from"./ColorPill-CXvWIfWz.js";import{T as u}from"./Table-ClWM2_rS.js";function b({columns:h,dataLookup:o,circle:p=!1,columnLookup:n=new Map}){const x=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.keys())))),d=h.map(r=>n.get(r)||r),j=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.values()).flatMap(e=>Array.from(e.keys()))))),f=x.filter(r=>{const e=n.get(r);return e?!d.includes(e):!d.includes(r)}).map(r=>n.get(r)||r);return t.jsxs(u,{className:"charging-struct-table",striped:!0,bordered:!0,children:[t.jsx("colgroup",{children:t.jsx("col",{span:1,style:{width:"12rem"}})}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),h.map(r=>t.jsx("th",{colSpan:1,children:r},r)),f.length?t.jsx("th",{children:"Other"}):null]})}),t.jsx("tbody",{children:Array.from(o.entries()).map(([r,e])=>t.jsxs("tr",{children:[t.jsx("td",{children:r}),d.map(s=>{const a=e.get(s);return a?t.jsx("td",{children:j.map(l=>{const i=a.get(l)||{};return t.jsx(c,{year:l,active:a.has(l),tooltip:i.tooltip,rounded:p},l)})},s):t.jsx("td",{},s)}),!!f.length&&t.jsx("td",{children:f.map(s=>{const a=e.get(s);return a?Array.from(Array.from(a.entries())).map(([i,m])=>t.jsx(c,{year:i,active:!0,tooltip:m.tooltip||s,rounded:p},i)):void 0})},`${r}-other`)]},r))})]})}export{b as P};
diff --git a/compendium_v2/static/Policy-C19_KfRY.js b/compendium_v2/static/Policy-C19_KfRY.js
new file mode 100644
index 0000000000000000000000000000000000000000..88533f378e38257a71ac3d261a99d5484f1861ef
--- /dev/null
+++ b/compendium_v2/static/Policy-C19_KfRY.js
@@ -0,0 +1 @@
+import{c as h,r as v,F as E,j as y,t as _,S as b}from"./index.js";import{u as g,q as j,k,i as S,D as q,F as C,f as F}from"./useData-CxftshCa.js";import{N as R}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function W(){const e=h.c(21),{filterSelection:t,setFilterSelection:n}=v.useContext(E),{data:a,nrens:c}=g("/api/policy",n);let i,o;if(e[0]!==a||e[1]!==t.selectedNrens){const D=a?j(a):[];let u;e[4]!==t.selectedNrens?(u=x=>t.selectedNrens.includes(x.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],i=D.filter(u);const P=k(i);o=S(P,T),e[0]=a,e[1]=t.selectedNrens,e[2]=i,e[3]=o}else i=e[2],o=e[3];const d=o;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let l;e[7]!==c?(l=c.values(),e[7]=c,e[8]=l):l=e[8];let s;e[9]!==l?(s={availableYears:p,availableNrens:[...l]},e[9]=l,e[10]=s):s=e[10];let f;e[11]!==t||e[12]!==n||e[13]!==s?(f=y.jsx(C,{filterOptions:s,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=s,e[14]=f):f=e[14];const N=f;let r;e[15]!==d?(r=y.jsx(F,{children:y.jsx(R,{data:d,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=d,e[16]=r):r=e[16];let m;return e[17]!==N||e[18]!==i||e[19]!==r?(m=y.jsx(q,{title:_.policy,description:"The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.",category:b.Policy,filter:N,data:i,filename:"nren_policies",children:r}),e[17]=N,e[18]=i,e[19]=r,e[20]=m):m=e[20],m}function T(e,t){[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["gender_equality","Gender Equality Plan"],["privacy_notice","Privacy Notice"]].forEach(a=>{const[c,i]=a,o=t[c];o&&(e[i]=o)})}export{W as default};
diff --git a/compendium_v2/static/Policy-rfVVQ2MG.js b/compendium_v2/static/Policy-rfVVQ2MG.js
deleted file mode 100644
index fc3377e552d60c147ef8b4960cd82e27b2c0179c..0000000000000000000000000000000000000000
--- a/compendium_v2/static/Policy-rfVVQ2MG.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as h,r as v,F as E,j as y}from"./main-BIBsTO5W.js";import{u as _,q as b,k as g,i as S,D as j,F as k,f as R}from"./useData-BDYwoQEh.js";import{S as q}from"./report.js";import{N as C}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function G(){const e=h.c(21),{filterSelection:t,setFilterSelection:n}=v.useContext(E),{data:o,nrens:c}=_("/api/policy",n);let i,a;if(e[0]!==o||e[1]!==t.selectedNrens){const P=o?b(o):[];let u;e[4]!==t.selectedNrens?(u=x=>t.selectedNrens.includes(x.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],i=P.filter(u);const D=g(i);a=S(D,F),e[0]=o,e[1]=t.selectedNrens,e[2]=i,e[3]=a}else i=e[2],a=e[3];const d=a;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let l;e[7]!==c?(l=c.values(),e[7]=c,e[8]=l):l=e[8];let s;e[9]!==l?(s={availableYears:p,availableNrens:[...l]},e[9]=l,e[10]=s):s=e[10];let f;e[11]!==t||e[12]!==n||e[13]!==s?(f=y.jsx(k,{filterOptions:s,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=s,e[14]=f):f=e[14];const N=f;let r;e[15]!==d?(r=y.jsx(R,{children:y.jsx(C,{data:d,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=d,e[16]=r):r=e[16];let m;return e[17]!==N||e[18]!==i||e[19]!==r?(m=y.jsx(j,{title:"NREN Policies",description:"The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.",category:q.Policy,filter:N,data:i,filename:"nren_policies",children:r}),e[17]=N,e[18]=i,e[19]=r,e[20]=m):m=e[20],m}function F(e,t){[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["gender_equality","Gender Equality Plan"],["privacy_notice","Privacy Notice"],["strategic_plan","Strategic Plan"]].forEach(o=>{const[c,i]=o,a=t[c];a&&(e[i]=a)})}export{G as default};
diff --git a/compendium_v2/static/RemoteCampuses-B7LZiN42.js b/compendium_v2/static/RemoteCampuses-B7LZiN42.js
deleted file mode 100644
index 8044f07c4e04dca965aed48e6db01b82a19b123e..0000000000000000000000000000000000000000
--- a/compendium_v2/static/RemoteCampuses-B7LZiN42.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as v,j as n,r as Y,F as D}from"./main-BIBsTO5W.js";import{u as E,h as g,i as w,D as F,F as k,f as O}from"./useData-BDYwoQEh.js";import{S as T}from"./report.js";import{T as B}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function L({data:e,dottedBorder:t=!1,columns:c}){return Array.from(e.entries()).map(([s,a])=>Array.from(a.entries()).map(([i,d],l)=>n.jsxs("tr",{className:t?"dotted-border":"",children:[n.jsx("td",{className:"pt-3 nren-column text-nowrap",children:l===0&&s}),n.jsx("td",{className:"pt-3 year-column",children:i}),Object.keys(c).map((r,o)=>n.jsx("td",{className:"pt-3 blue-column",children:d[r]},o))]},s+i)))}function $(e){const t=v.c(15),{data:c,dottedBorder:s,columns:a}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("th",{className:"nren-column",children:n.jsx("span",{children:"NREN"})}),t[0]=i):i=t[0];let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("th",{className:"year-column",children:n.jsx("span",{children:"Year"})}),t[1]=d):d=t[1];let l;t[2]!==a?(l=Object.values(a).map(A),t[2]=a,t[3]=l):l=t[3];let r;t[4]!==l?(r=n.jsx("thead",{children:n.jsxs("tr",{children:[i,d,l]})}),t[4]=l,t[5]=r):r=t[5];let o;t[6]!==a||t[7]!==c||t[8]!==s?(o=L({data:c,dottedBorder:s,columns:a}),t[6]=a,t[7]=c,t[8]=s,t[9]=o):o=t[9];let u;t[10]!==o?(u=n.jsx("tbody",{children:o}),t[10]=o,t[11]=u):u=t[11];let m;return t[12]!==r||t[13]!==u?(m=n.jsxs(B,{borderless:!0,className:"compendium-table",children:[r,u]}),t[12]=r,t[13]=u,t[14]=m):m=t[14],m}function A(e,t){return n.jsx("th",{className:"blue-column",children:n.jsx("span",{children:e})},t)}function M(){const e=v.c(29);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x=>!!x.remote_campus_connectivity,e[0]=t):t=e[0];const c=t,{filterSelection:s,setFilterSelection:a}=Y.useContext(D),{data:i,years:d,nrens:l}=E("/api/remote-campuses",a,c);let r,o;if(e[1]!==i||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let x;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(x=C=>s.selectedYears.includes(C.year)&&s.selectedNrens.includes(C.nren),e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=x):x=e[8],r=i.filter(x);const S=g(r);o=w(S,P),e[1]=i,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=r,e[5]=o}else r=e[4],o=e[5];const u=o;let m;e[9]!==d?(m=[...d],e[9]=d,e[10]=m):m=e[10];let f;e[11]!==l?(f=l.values(),e[11]=l,e[12]=f):f=e[12];let p;e[13]!==f?(p=[...f],e[13]=f,e[14]=p):p=e[14];let h;e[15]!==m||e[16]!==p?(h={availableYears:m,availableNrens:p},e[15]=m,e[16]=p,e[17]=h):h=e[17];let j;e[18]!==s||e[19]!==a||e[20]!==h?(j=n.jsx(k,{filterOptions:h,filterSelection:s,setFilterSelection:a}),e[18]=s,e[19]=a,e[20]=h,e[21]=j):j=e[21];const b=j;let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N={countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},e[22]=N):N=e[22];const R=N;let _;e[23]!==u?(_=n.jsx(O,{children:n.jsx($,{data:u,columns:R,dottedBorder:!0})}),e[23]=u,e[24]=_):_=e[24];let y;return e[25]!==b||e[26]!==r||e[27]!==_?(y=n.jsx(F,{title:"NREN Connectivity to Remote Campuses in Other Countries",description:"NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.",category:T.ConnectedUsers,filter:b,data:r,filename:"nren_remote_campuses",children:_}),e[25]=b,e[26]=r,e[27]=_,e[28]=y):y=e[28],y}function P(e,t){for(const c of t){if(!c.remote_campus_connectivity)continue;const s=c.connections.map(U).join(", ");e.countries=s,e.local_r_and_e_connection=c.connections.map(J).join(", ")}}function J(e){return e.local_r_and_e_connection?"Yes":"No"}function U(e){return e.country}export{M as default};
diff --git a/compendium_v2/static/RemoteCampuses-Bu_1Ucwy.js b/compendium_v2/static/RemoteCampuses-Bu_1Ucwy.js
new file mode 100644
index 0000000000000000000000000000000000000000..d6a2417e4b46921ddc7492b25a15e9235c7b877e
--- /dev/null
+++ b/compendium_v2/static/RemoteCampuses-Bu_1Ucwy.js
@@ -0,0 +1 @@
+import{c as S,j as n,r as D,F as R,t as E,S as g}from"./index.js";import{u as w,h as F,i as k,D as T,F as B,f as L}from"./useData-CxftshCa.js";import{T as O}from"./Table-ClWM2_rS.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";function $({data:e,dottedBorder:t=!1,columns:o}){return Array.from(e.entries()).map(([s,a])=>Array.from(a.entries()).map(([i,d],c)=>n.jsxs("tr",{className:t?"dotted-border":"",children:[n.jsx("td",{className:"pt-3 nren-column text-nowrap",children:c===0&&s}),n.jsx("td",{className:"pt-3 year-column",children:i}),Object.keys(o).map((r,l)=>n.jsx("td",{className:"pt-3 blue-column",children:d[r]},l))]},s+i)))}function A(e){const t=S.c(15),{data:o,dottedBorder:s,columns:a}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("th",{className:"nren-column",children:n.jsx("span",{children:"NREN"})}),t[0]=i):i=t[0];let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("th",{className:"year-column",children:n.jsx("span",{children:"Year"})}),t[1]=d):d=t[1];let c;t[2]!==a?(c=Object.values(a).map(P),t[2]=a,t[3]=c):c=t[3];let r;t[4]!==c?(r=n.jsx("thead",{children:n.jsxs("tr",{children:[i,d,c]})}),t[4]=c,t[5]=r):r=t[5];let l;t[6]!==a||t[7]!==o||t[8]!==s?(l=$({data:o,dottedBorder:s,columns:a}),t[6]=a,t[7]=o,t[8]=s,t[9]=l):l=t[9];let u;t[10]!==l?(u=n.jsx("tbody",{children:l}),t[10]=l,t[11]=u):u=t[11];let m;return t[12]!==r||t[13]!==u?(m=n.jsxs(O,{borderless:!0,className:"compendium-table",children:[r,u]}),t[12]=r,t[13]=u,t[14]=m):m=t[14],m}function P(e,t){return n.jsx("th",{className:"blue-column",children:n.jsx("span",{children:e})},t)}function Q(){const e=S.c(29);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x=>!!x.remote_campus_connectivity,e[0]=t):t=e[0];const o=t,{filterSelection:s,setFilterSelection:a}=D.useContext(R),{data:i,years:d,nrens:c}=w("/api/remote-campuses",a,o);let r,l;if(e[1]!==i||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let x;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(x=C=>s.selectedYears.includes(C.year)&&s.selectedNrens.includes(C.nren),e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=x):x=e[8],r=i.filter(x);const v=F(r);l=k(v,J),e[1]=i,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=r,e[5]=l}else r=e[4],l=e[5];const u=l;let m;e[9]!==d?(m=[...d],e[9]=d,e[10]=m):m=e[10];let f;e[11]!==c?(f=c.values(),e[11]=c,e[12]=f):f=e[12];let p;e[13]!==f?(p=[...f],e[13]=f,e[14]=p):p=e[14];let h;e[15]!==m||e[16]!==p?(h={availableYears:m,availableNrens:p},e[15]=m,e[16]=p,e[17]=h):h=e[17];let j;e[18]!==s||e[19]!==a||e[20]!==h?(j=n.jsx(B,{filterOptions:h,filterSelection:s,setFilterSelection:a}),e[18]=s,e[19]=a,e[20]=h,e[21]=j):j=e[21];const b=j;let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N={countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},e[22]=N):N=e[22];const Y=N;let _;e[23]!==u?(_=n.jsx(L,{children:n.jsx(A,{data:u,columns:Y,dottedBorder:!0})}),e[23]=u,e[24]=_):_=e[24];let y;return e[25]!==b||e[26]!==r||e[27]!==_?(y=n.jsx(T,{title:E["remote-campuses"],description:"NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.",category:g.ConnectedUsers,filter:b,data:r,filename:"nren_remote_campuses",children:_}),e[25]=b,e[26]=r,e[27]=_,e[28]=y):y=e[28],y}function J(e,t){for(const o of t){if(!o.remote_campus_connectivity)continue;const s=o.connections.map(X).join(", ");e.countries=s,e.local_r_and_e_connection=o.connections.map(U).join(", ")}}function U(e){return e.local_r_and_e_connection?"Yes":"No"}function X(e){return e.country}export{Q as default};
diff --git a/compendium_v2/static/Schema-BuKG9dA7.js b/compendium_v2/static/Schema-BuKG9dA7.js
deleted file mode 100644
index 966ad752552a05db62547e66940bdf6867acd25d..0000000000000000000000000000000000000000
--- a/compendium_v2/static/Schema-BuKG9dA7.js
+++ /dev/null
@@ -1 +0,0 @@
-var d=(e=>(e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e))(d||{}),i=(e=>(e.closed="closed",e.open="open",e.preview="preview",e.published="published",e))(i||{});export{i as S,d as V};
diff --git a/compendium_v2/static/ScrollableMatrix-Cdgj4J9X.js b/compendium_v2/static/ScrollableMatrix-Cdgj4J9X.js
deleted file mode 100644
index 437f0bbf3df5be17870ddfa79a7d222526a575d1..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ScrollableMatrix-Cdgj4J9X.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as T,j as t}from"./main-BIBsTO5W.js";import{c as k}from"./report.js";import{T as A}from"./Table-HH9WOnMU.js";const L=t.jsx("span",{children:"✔"}),O=8;function Z(r){const e=T.c(12),{dataLookup:n,rowInfo:s,categoryLookup:h,isTickIcon:b}=r,l=b===void 0?!1:b;if(!n){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"matrix-border"}),e[0]=c):c=e[0],c}let m;if(e[1]!==h||e[2]!==n||e[3]!==l||e[4]!==s){let c;e[6]!==n||e[7]!==l||e[8]!==s?(c=v=>{const[p,E]=v,C=Object.entries(s).map(o=>{const[u,a]=o,i=[];return Array.from(n.entries()).sort(F).forEach(y=>{const[,_]=y;_.forEach(g=>{const f=g.get(p);if(!f)return;const N=f[a]!=null?Object.keys(f[a])[0]:null,I=N!=null&&l?L:N;i.push(I)})}),i.length?t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column",children:u}),i.map(D)]},u):null}),j=Array.from(n.entries()).sort(B).reduce((o,u)=>{const[a,i]=u;return Array.from(i.entries()).forEach(y=>{const[_,g]=y;g.get(p)&&(o[a]||(o[a]=[]),o[a].push(_))}),o},{});for(const o in j)j[o].sort($);return t.jsx(k,{title:E,startCollapsed:!0,theme:"-matrix",children:C?t.jsx("div",{className:"table-responsive",children:t.jsxs(A,{className:"matrix-table",bordered:!0,children:[t.jsx("thead",{children:(()=>{const o=Object.entries(j);return t.jsxs(t.Fragment,{children:[t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.map(w)]}),t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.flatMap(S)]})]})})()}),t.jsx("tbody",{children:C})]})}):t.jsx("div",{style:{paddingLeft:"5%"},children:t.jsx("p",{children:"No data available for this section."})})},p)},e[6]=n,e[7]=l,e[8]=s,e[9]=c):c=e[9],m=Object.entries(h).map(c),e[1]=h,e[2]=n,e[3]=l,e[4]=s,e[5]=m}else m=e[5];const x=m;let d;return e[10]!==x?(d=t.jsx("div",{className:"matrix-border",children:x}),e[10]=x,e[11]=d):d=e[11],d}function S(r){const[e,n]=r;return n.map(s=>t.jsx("th",{children:s},`${e}-${s}`))}function w(r){const[e,n]=r;return t.jsx("th",{colSpan:n.length,style:{width:`${n.length*O}rem`},children:e},e)}function $(r,e){return r-e}function B(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}function D(r,e){return t.jsx("td",{children:r},e)}function F(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}export{Z as S};
diff --git a/compendium_v2/static/ScrollableMatrix-Dxr22l4i.js b/compendium_v2/static/ScrollableMatrix-Dxr22l4i.js
new file mode 100644
index 0000000000000000000000000000000000000000..6be0491577b792b29b338a90c023f1169e65842e
--- /dev/null
+++ b/compendium_v2/static/ScrollableMatrix-Dxr22l4i.js
@@ -0,0 +1 @@
+import{c as T,j as t,e as k}from"./index.js";import{T as A}from"./Table-ClWM2_rS.js";const L=t.jsx("span",{children:"✔"}),O=8;function V(r){const e=T.c(12),{dataLookup:n,rowInfo:s,categoryLookup:h,isTickIcon:b}=r,l=b===void 0?!1:b;if(!n){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"matrix-border"}),e[0]=c):c=e[0],c}let d;if(e[1]!==h||e[2]!==n||e[3]!==l||e[4]!==s){let c;e[6]!==n||e[7]!==l||e[8]!==s?(c=v=>{const[p,E]=v,C=Object.entries(s).map(o=>{const[u,a]=o,i=[];return Array.from(n.entries()).sort(F).forEach(y=>{const[,_]=y;_.forEach(g=>{const f=g.get(p);if(!f)return;const N=f[a]!=null?Object.keys(f[a])[0]:null,I=N!=null&&l?L:N;i.push(I)})}),i.length?t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column",children:u}),i.map(D)]},u):null}),j=Array.from(n.entries()).sort(B).reduce((o,u)=>{const[a,i]=u;return Array.from(i.entries()).forEach(y=>{const[_,g]=y;g.get(p)&&(o[a]||(o[a]=[]),o[a].push(_))}),o},{});for(const o in j)j[o].sort($);return t.jsx(k,{title:E,startCollapsed:!0,theme:"-matrix",children:C?t.jsx("div",{className:"table-responsive",children:t.jsxs(A,{className:"matrix-table",bordered:!0,children:[t.jsx("thead",{children:(()=>{const o=Object.entries(j);return t.jsxs(t.Fragment,{children:[t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.map(w)]}),t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.flatMap(S)]})]})})()}),t.jsx("tbody",{children:C})]})}):t.jsx("div",{style:{paddingLeft:"5%"},children:t.jsx("p",{children:"No data available for this section."})})},p)},e[6]=n,e[7]=l,e[8]=s,e[9]=c):c=e[9],d=Object.entries(h).map(c),e[1]=h,e[2]=n,e[3]=l,e[4]=s,e[5]=d}else d=e[5];const x=d;let m;return e[10]!==x?(m=t.jsx("div",{className:"matrix-border",children:x}),e[10]=x,e[11]=m):m=e[11],m}function S(r){const[e,n]=r;return n.map(s=>t.jsx("th",{children:s},`${e}-${s}`))}function w(r){const[e,n]=r;return t.jsx("th",{colSpan:n.length,style:{width:`${n.length*O}rem`},children:e},e)}function $(r,e){return r-e}function B(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}function D(r,e){return t.jsx("td",{children:r},e)}function F(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}export{V as S};
diff --git a/compendium_v2/static/SecurityControls-CkjbRt2j.js b/compendium_v2/static/SecurityControls-CkjbRt2j.js
new file mode 100644
index 0000000000000000000000000000000000000000..53b7f661bcb3858b68e726b49e9c7193b2b73ee7
--- /dev/null
+++ b/compendium_v2/static/SecurityControls-CkjbRt2j.js
@@ -0,0 +1,2 @@
+import{c as T,r as E,F as L,S as A,j,t as I}from"./index.js";import{u as M,g as O,F as R,D as V,f as W}from"./useData-CxftshCa.js";import{P as $}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function Z(){const e=T.c(51),{filterSelection:t,setFilterSelection:i}=E.useContext(L),{data:w,years:D,nrens:Y}=M("/api/security-controls",i);let s,S;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=P=>t.selectedYears.includes(P.year)&&t.selectedNrens.includes(P.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=w.filter(r),S=O(s,"security_control_descriptions"),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=S}else s=e[3],S=e[4];const C=S;let l;e[8]!==D?(l=[...D],e[8]=D,e[9]=l):l=e[9];let o;e[10]!==Y?(o=Y.values(),e[10]=Y,e[11]=o):o=e[11];let n;e[12]!==o?(n=[...o],e[12]=o,e[13]=n):n=e[13];let a;e[14]!==l||e[15]!==n?(a={availableYears:l,availableNrens:n},e[14]=l,e[15]=n,e[16]=a):a=e[16];let b;e[17]!==t||e[18]!==i||e[19]!==a?(b=j.jsx(R,{filterOptions:a,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=a,e[20]=b):b=e[20];const F=b;let c,u,m,p,f,d,y,g,h,N,x;if(e[21]!==F||e[22]!==s){const r={anti_virus:"Anti Virus",anti_spam:"Anti-Spam",firewall:"Firewall",ddos_mitigation:"DDoS mitigation",monitoring:"Network monitoring",ips_ids:"IPS/IDS",acl:"ACL",segmentation:"Network segmentation",integrity_checking:"Integrity checking"};p=new Map(Object.entries(r).map(q)),m=V,h=I["security-control"],N=`The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by 
+            NRENs to protect their assets. Where 'other' controls are mentioned, hover over the marker for more information.`,x=A.Policy,f=F,d=s,y="security_control_nrens_per_year",u=W,c=$,g=Object.values(r),e[21]=F,e[22]=s,e[23]=c,e[24]=u,e[25]=m,e[26]=p,e[27]=f,e[28]=d,e[29]=y,e[30]=g,e[31]=h,e[32]=N,e[33]=x}else c=e[23],u=e[24],m=e[25],p=e[26],f=e[27],d=e[28],y=e[29],g=e[30],h=e[31],N=e[32],x=e[33];let _;e[34]!==c||e[35]!==p||e[36]!==C||e[37]!==g?(_=j.jsx(c,{columns:g,dataLookup:C,circle:!0,columnLookup:p}),e[34]=c,e[35]=p,e[36]=C,e[37]=g,e[38]=_):_=e[38];let k;e[39]!==u||e[40]!==_?(k=j.jsx(u,{children:_}),e[39]=u,e[40]=_,e[41]=k):k=e[41];let v;return e[42]!==m||e[43]!==f||e[44]!==d||e[45]!==y||e[46]!==k||e[47]!==h||e[48]!==N||e[49]!==x?(v=j.jsx(m,{title:h,description:N,category:x,filter:f,data:d,filename:y,children:k}),e[42]=m,e[43]=f,e[44]=d,e[45]=y,e[46]=k,e[47]=h,e[48]=N,e[49]=x,e[50]=v):v=e[50],v}function q(e){const[t,i]=e;return[i,t]}export{Z as default};
diff --git a/compendium_v2/static/SecurityControls-Ct-pN0fH.js b/compendium_v2/static/SecurityControls-Ct-pN0fH.js
deleted file mode 100644
index c03690a4699876f7ba6277cbdcb808d40ebbcb7b..0000000000000000000000000000000000000000
--- a/compendium_v2/static/SecurityControls-Ct-pN0fH.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{a as T,r as E,F as L,j}from"./main-BIBsTO5W.js";import{u as R,g as A,F as I,D as M,f as O}from"./useData-BDYwoQEh.js";import{S as V}from"./report.js";import{P as U}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function X(){const e=T.c(51),{filterSelection:t,setFilterSelection:i}=E.useContext(L),{data:w,years:C,nrens:D}=R("/api/security-controls",i);let s,b;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=P=>t.selectedYears.includes(P.year)&&t.selectedNrens.includes(P.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=w.filter(r),b=A(s,"security_control_descriptions"),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=b}else s=e[3],b=e[4];const Y=b;let l;e[8]!==C?(l=[...C],e[8]=C,e[9]=l):l=e[9];let o;e[10]!==D?(o=D.values(),e[10]=D,e[11]=o):o=e[11];let n;e[12]!==o?(n=[...o],e[12]=o,e[13]=n):n=e[13];let a;e[14]!==l||e[15]!==n?(a={availableYears:l,availableNrens:n},e[14]=l,e[15]=n,e[16]=a):a=e[16];let k;e[17]!==t||e[18]!==i||e[19]!==a?(k=j.jsx(I,{filterOptions:a,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=a,e[20]=k):k=e[20];const F=k;let c,m,u,f,p,d,y,g,h,N,x;if(e[21]!==F||e[22]!==s){const r={anti_virus:"Anti Virus",anti_spam:"Anti-Spam",firewall:"Firewall",ddos_mitigation:"DDoS mitigation",monitoring:"Network monitoring",ips_ids:"IPS/IDS",acl:"ACL",segmentation:"Network segmentation",integrity_checking:"Integrity checking"};f=new Map(Object.entries(r).map(W)),u=M,h="Security Controls Used by NRENs",N=`The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by 
-            NRENs to protect their assets. Where 'other' controls are mentioned, hover over the marker for more information.`,x=V.Policy,p=F,d=s,y="security_control_nrens_per_year",m=O,c=U,g=Object.values(r),e[21]=F,e[22]=s,e[23]=c,e[24]=m,e[25]=u,e[26]=f,e[27]=p,e[28]=d,e[29]=y,e[30]=g,e[31]=h,e[32]=N,e[33]=x}else c=e[23],m=e[24],u=e[25],f=e[26],p=e[27],d=e[28],y=e[29],g=e[30],h=e[31],N=e[32],x=e[33];let S;e[34]!==c||e[35]!==f||e[36]!==Y||e[37]!==g?(S=j.jsx(c,{columns:g,dataLookup:Y,circle:!0,columnLookup:f}),e[34]=c,e[35]=f,e[36]=Y,e[37]=g,e[38]=S):S=e[38];let _;e[39]!==m||e[40]!==S?(_=j.jsx(m,{children:S}),e[39]=m,e[40]=S,e[41]=_):_=e[41];let v;return e[42]!==u||e[43]!==p||e[44]!==d||e[45]!==y||e[46]!==_||e[47]!==h||e[48]!==N||e[49]!==x?(v=j.jsx(u,{title:h,description:N,category:x,filter:p,data:d,filename:y,children:_}),e[42]=u,e[43]=p,e[44]=d,e[45]=y,e[46]=_,e[47]=h,e[48]=N,e[49]=x,e[50]=v):v=e[50],v}function W(e){const[t,i]=e;return[i,t]}export{X as default};
diff --git a/compendium_v2/static/ServiceLevelTargets-BQyQ1ynP.js b/compendium_v2/static/ServiceLevelTargets-BQyQ1ynP.js
new file mode 100644
index 0000000000000000000000000000000000000000..89cd2a3ad9b6b960f7f7d65c49bf758f56d17735
--- /dev/null
+++ b/compendium_v2/static/ServiceLevelTargets-BQyQ1ynP.js
@@ -0,0 +1,2 @@
+import{c as y,r as j,F,j as v,t as T,S as _}from"./index.js";import{u as E,g as L,D as P,F as w,f as C}from"./useData-CxftshCa.js";import{P as D}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function A(){const e=y.c(29),{filterSelection:t,setFilterSelection:n}=j.useContext(F),{data:h,years:N,nrens:x}=E("/api/service-management",n);let s,f;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&Y.service_level_targets!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=h.filter(p),f=L(s,"service_level_targets"),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const g=f;let l,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(l=["Yes","No"],d=new Map([[l[0],"True"],[l[1],"False"]]),e[8]=l,e[9]=d):(l=e[8],d=e[9]);const b=d;let r;e[10]!==N?(r=[...N],e[10]=N,e[11]=r):r=e[11];let a;e[12]!==x?(a=x.values(),e[12]=x,e[13]=a):a=e[13];let i;e[14]!==a?(i=[...a],e[14]=a,e[15]=i):i=e[15];let o;e[16]!==r||e[17]!==i?(o={availableYears:r,availableNrens:i},e[16]=r,e[17]=i,e[18]=o):o=e[18];let m;e[19]!==t||e[20]!==n||e[21]!==o?(m=v.jsx(w,{filterOptions:o,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=o,e[22]=m):m=e[22];const S=m;let c;e[23]!==g?(c=v.jsx(C,{children:v.jsx(D,{columns:l,columnLookup:b,dataLookup:g})}),e[23]=g,e[24]=c):c=e[24];let u;return e[25]!==S||e[26]!==s||e[27]!==c?(u=v.jsx(P,{title:T["service-level-targets"],description:`The table below shows which NRENs offer Service Levels Targets for their services. 
+            If NRENs have never responded to this question in the survey, they are excluded. `,category:_.Policy,filter:S,data:s,filename:"service_level_targets",children:c}),e[25]=S,e[26]=s,e[27]=c,e[28]=u):u=e[28],u}export{A as default};
diff --git a/compendium_v2/static/ServiceLevelTargets-DkcKRrX5.js b/compendium_v2/static/ServiceLevelTargets-DkcKRrX5.js
deleted file mode 100644
index 04c38cf93c9c397da32f2152877e095c46352d32..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ServiceLevelTargets-DkcKRrX5.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{a as y,r as T,F as j,j as v}from"./main-BIBsTO5W.js";import{u as E,g as F,D as L,F as _,f as P}from"./useData-BDYwoQEh.js";import{S as R}from"./report.js";import{P as w}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function z(){const e=y.c(29),{filterSelection:t,setFilterSelection:c}=T.useContext(j),{data:N,years:h,nrens:g}=E("/api/service-management",c);let s,f;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&Y.service_level_targets!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=N.filter(p),f=F(s,"service_level_targets"),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const x=f;let l,m;e[8]===Symbol.for("react.memo_cache_sentinel")?(l=["Yes","No"],m=new Map([[l[0],"True"],[l[1],"False"]]),e[8]=l,e[9]=m):(l=e[8],m=e[9]);const b=m;let r;e[10]!==h?(r=[...h],e[10]=h,e[11]=r):r=e[11];let a;e[12]!==g?(a=g.values(),e[12]=g,e[13]=a):a=e[13];let i;e[14]!==a?(i=[...a],e[14]=a,e[15]=i):i=e[15];let o;e[16]!==r||e[17]!==i?(o={availableYears:r,availableNrens:i},e[16]=r,e[17]=i,e[18]=o):o=e[18];let d;e[19]!==t||e[20]!==c||e[21]!==o?(d=v.jsx(_,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=d):d=e[22];const S=d;let n;e[23]!==x?(n=v.jsx(P,{children:v.jsx(w,{columns:l,columnLookup:b,dataLookup:x})}),e[23]=x,e[24]=n):n=e[24];let u;return e[25]!==S||e[26]!==s||e[27]!==n?(u=v.jsx(L,{title:"NRENs Offering Service Level Targets",description:`The table below shows which NRENs offer Service Levels Targets for their services. 
-            If NRENs have never responded to this question in the survey, they are excluded. `,category:R.Policy,filter:S,data:s,filename:"service_level_targets",children:n}),e[25]=S,e[26]=s,e[27]=n,e[28]=u):u=e[28],u}export{z as default};
diff --git a/compendium_v2/static/ServiceManagementFramework-0pFJ2GJW.js b/compendium_v2/static/ServiceManagementFramework-0pFJ2GJW.js
deleted file mode 100644
index cd9da633da503ac6ec51b15cf4be54d84c29b6fb..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ServiceManagementFramework-0pFJ2GJW.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{a as S,r as Y,F as b,j as N}from"./main-BIBsTO5W.js";import{u as j,g as E,D as _,F as y,f as P}from"./useData-BDYwoQEh.js";import{S as R}from"./report.js";import{P as C}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function A(){const e=S.c(29),{filterSelection:t,setFilterSelection:c}=Y.useContext(b),{data:h,years:v,nrens:g}=j("/api/service-management",c);let s,m;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.service_management_framework!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=h.filter(u),m=E(s,"service_management_framework"),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const w=m;let r,f;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","No"],f=new Map([[r[0],"True"],[r[1],"False"]]),e[8]=r,e[9]=f):(r=e[8],f=e[9]);const F=f;let a;e[10]!==v?(a=[...v],e[10]=v,e[11]=a):a=e[11];let l;e[12]!==g?(l=g.values(),e[12]=g,e[13]=l):l=e[13];let o;e[14]!==l?(o=[...l],e[14]=l,e[15]=o):o=e[15];let i;e[16]!==a||e[17]!==o?(i={availableYears:a,availableNrens:o},e[16]=a,e[17]=o,e[18]=i):i=e[18];let p;e[19]!==t||e[20]!==c||e[21]!==i?(p=N.jsx(y,{filterOptions:i,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=i,e[22]=p):p=e[22];const x=p;let n;e[23]!==w?(n=N.jsx(P,{children:N.jsx(C,{columns:r,columnLookup:F,dataLookup:w})}),e[23]=w,e[24]=n):n=e[24];let d;return e[25]!==x||e[26]!==s||e[27]!==n?(d=N.jsx(_,{title:"NRENs Operating a Formal Service Management Framework",description:`The chart below shows which NRENs operate a formal service management framework 
-            for all of their services. NRENs which have never answered this question cannot be selected.`,category:R.Policy,filter:x,data:s,filename:"service_management_framework",children:n}),e[25]=x,e[26]=s,e[27]=n,e[28]=d):d=e[28],d}export{A as default};
diff --git a/compendium_v2/static/ServiceManagementFramework-DDW7v-XJ.js b/compendium_v2/static/ServiceManagementFramework-DDW7v-XJ.js
new file mode 100644
index 0000000000000000000000000000000000000000..1cd11d839dad9976f19555f836d011e364aaf638
--- /dev/null
+++ b/compendium_v2/static/ServiceManagementFramework-DDW7v-XJ.js
@@ -0,0 +1,2 @@
+import{c as b,r as F,F as S,j as h,t as j,S as _}from"./index.js";import{u as y,g as E,D as P,F as C,f as D}from"./useData-CxftshCa.js";import{P as R}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function B(){const e=b.c(29),{filterSelection:t,setFilterSelection:c}=F.useContext(S),{data:v,years:N,nrens:w}=y("/api/service-management",c);let s,m;if(e[0]!==v||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.service_management_framework!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=v.filter(u),m=E(s,"service_management_framework"),e[0]=v,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const g=m;let r,f;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","No"],f=new Map([[r[0],"True"],[r[1],"False"]]),e[8]=r,e[9]=f):(r=e[8],f=e[9]);const Y=f;let a;e[10]!==N?(a=[...N],e[10]=N,e[11]=a):a=e[11];let l;e[12]!==w?(l=w.values(),e[12]=w,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let o;e[16]!==a||e[17]!==i?(o={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=o):o=e[18];let p;e[19]!==t||e[20]!==c||e[21]!==o?(p=h.jsx(C,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=p):p=e[22];const x=p;let n;e[23]!==g?(n=h.jsx(D,{children:h.jsx(R,{columns:r,columnLookup:Y,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let d;return e[25]!==x||e[26]!==s||e[27]!==n?(d=h.jsx(P,{title:j["service-management-framework"],description:`The chart below shows which NRENs operate a formal service management framework 
+            for all of their services. NRENs which have never answered this question cannot be selected.`,category:_.Policy,filter:x,data:s,filename:"service_management_framework",children:n}),e[25]=x,e[26]=s,e[27]=n,e[28]=d):d=e[28],d}export{B as default};
diff --git a/compendium_v2/static/Services-TWQx7C9G.js b/compendium_v2/static/Services-TWQx7C9G.js
deleted file mode 100644
index 9f690e2775a550a3601638a5493fbd815af4bcc1..0000000000000000000000000000000000000000
--- a/compendium_v2/static/Services-TWQx7C9G.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import{X as te,a as K,j as s,r as se,F as ie}from"./main-BIBsTO5W.js";import{e as g,S as re}from"./report.js";import{u as oe,g as ae,F as le,D as ne,f as ce}from"./useData-BDYwoQEh.js";import{T as de}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function J(h){return te({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(h)}function me(h){const e=K.c(9),{year:i,active:t,serviceInfo:l,tickServiceIndex:u,current:o}=h;let r="No additional information available";if(l!==void 0){const x=l.service_name;let c=l.product_name,d=l.official_description,m=l.additional_information;(c!=""||d!=""||m!="")&&(c=c||"N/A",d=d||"N/A",m=m||"N/A",r=x+`
-`+c+`
-
-Description: `+d+`
-Information: `+m)}let f="";r!=="No additional information available"&&(f="pill-shadow"),r=`${i}: ${r}`;let a;e[0]!==t||e[1]!==o||e[2]!==f||e[3]!==u||e[4]!==r?(a=t&&o?s.jsx("div",{"data-description":r,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:s.jsx(J,{className:`rounded-pill color-of-the-current-service-${u%13} bottom-tooltip ${f}`})}):t&&!o?s.jsx("div",{"data-description":r,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:s.jsx(J,{className:`rounded-pill color-of-the-previous-service-${u%13} bottom-tooltip ${f}`})}):s.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:{width:"30px",height:"30px",margin:"2px"},children:" "}),e[0]=t,e[1]=o,e[2]=f,e[3]=u,e[4]=r,e[5]=a):a=e[5];let n;return e[6]!==a||e[7]!==i?(n=s.jsx("div",{className:"d-inline-block",children:a},i),e[6]=a,e[7]=i,e[8]=n):n=e[8],n}const v={};v[g.network_services]="network";v[g.isp_support]="ISP support";v[g.security]="security";v[g.identity]="identity";v[g.collaboration]="collaboration";v[g.multimedia]="multimedia";v[g.storage_and_hosting]="storage and hosting";v[g.professional_services]="professional";function je(h){const e=K.c(62),{category:i}=h,{filterSelection:t,setFilterSelection:l}=se.useContext(ie),{data:u,years:o,nrens:r}=oe("/api/nren-services",l),f=Math.max(...t.selectedYears);let a,n,x,c,d,m,b,N,j,y,_,w,S;if(e[0]!==i||e[1]!==t||e[2]!==f||e[3]!==r||e[4]!==u||e[5]!==l||e[6]!==o){let L;e[20]!==i||e[21]!==t.selectedNrens||e[22]!==t.selectedYears?(L=p=>t.selectedYears.includes(p.year)&&t.selectedNrens.includes(p.nren)&&p.service_category==i,e[20]=i,e[21]=t.selectedNrens,e[22]=t.selectedYears,e[23]=L):L=e[23];const P=u.filter(L),z={};P.forEach(p=>{z[p.service_name]=p.service_description});const G=Object.entries(z).sort(he),Q=ae(P,"service_name");let $;e[24]!==o?($=[...o],e[24]=o,e[25]=$):$=e[25];let D;e[26]!==r?(D=r.values(),e[26]=r,e[27]=D):D=e[27];let T;e[28]!==D?(T=[...D],e[28]=D,e[29]=T):T=e[29];let E;e[30]!==$||e[31]!==T?(E={availableYears:$,availableNrens:T},e[30]=$,e[31]=T,e[32]=E):E=e[32];let R;e[33]!==t||e[34]!==l||e[35]!==E?(R=s.jsx(le,{filterOptions:E,filterSelection:t,setFilterSelection:l}),e[33]=t,e[34]=l,e[35]=E,e[36]=R):R=e[36];const U=R;let A;e[37]!==o?(A=p=>o.has(p),e[37]=o,e[38]=A):A=e[38];const V=[...t.selectedYears.filter(A)].sort();x=ne,j="NREN "+v[i]+" services matrix",y=`The service matrix shows the services NRENs offer to their users. These 
-            services are grouped thematically, with navigation possible via. the side menu. NRENs 
-            are invited to give extra information about their services; where this is provided, 
-            you will see a black circle around the marker. Hover over the marker to read more.`,_=re.Services,w=U,S=P,d="nren_services",n=ce,a=de,m="service-table",b=!0;let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("th",{}),e[39]=B):B=e[39];const M=s.jsxs("tr",{children:[B,G.map(pe)]});e[40]!==M?(N=s.jsx("thead",{children:M}),e[40]=M,e[41]=N):N=e[41],c=Array.from(Q.entries()).map(p=>{const[H,X]=p;return s.jsxs("tr",{children:[s.jsx("td",{className:"bold-text",children:H}),G.map((W,Z)=>{const[O]=W;return s.jsx("td",{children:X.has(O)&&V.map(I=>{const q=X.get(O),ee=q.get(I);return s.jsx(me,{year:I,active:q.has(I),serviceInfo:ee,tickServiceIndex:Z,current:I==f},I)})},O)})]},H)}),e[0]=i,e[1]=t,e[2]=f,e[3]=r,e[4]=u,e[5]=l,e[6]=o,e[7]=a,e[8]=n,e[9]=x,e[10]=c,e[11]=d,e[12]=m,e[13]=b,e[14]=N,e[15]=j,e[16]=y,e[17]=_,e[18]=w,e[19]=S}else a=e[7],n=e[8],x=e[9],c=e[10],d=e[11],m=e[12],b=e[13],N=e[14],j=e[15],y=e[16],_=e[17],w=e[18],S=e[19];let k;e[42]!==c?(k=s.jsx("tbody",{children:c}),e[42]=c,e[43]=k):k=e[43];let C;e[44]!==a||e[45]!==k||e[46]!==m||e[47]!==b||e[48]!==N?(C=s.jsxs(a,{className:m,bordered:b,children:[N,k]}),e[44]=a,e[45]=k,e[46]=m,e[47]=b,e[48]=N,e[49]=C):C=e[49];let Y;e[50]!==n||e[51]!==C?(Y=s.jsx(n,{children:C}),e[50]=n,e[51]=C,e[52]=Y):Y=e[52];let F;return e[53]!==x||e[54]!==d||e[55]!==Y||e[56]!==j||e[57]!==y||e[58]!==_||e[59]!==w||e[60]!==S?(F=s.jsx(x,{title:j,description:y,category:_,filter:w,data:S,filename:d,children:Y}),e[53]=x,e[54]=d,e[55]=Y,e[56]=j,e[57]=y,e[58]=_,e[59]=w,e[60]=S,e[61]=F):F=e[61],F}function pe(h,e){const[i,t]=h;return s.jsx("th",{"data-description":t,className:`bottom-tooltip color-of-the-service-header-${e%13}`,children:i},i)}function he(h,e){return h[0].toLowerCase()<e[0].toLowerCase()?-1:1}export{je as default};
diff --git a/compendium_v2/static/Services-kzZ5IOvA.js b/compendium_v2/static/Services-kzZ5IOvA.js
new file mode 100644
index 0000000000000000000000000000000000000000..1a7723e878670fb3487a66f6c840eb57cfe76a3b
--- /dev/null
+++ b/compendium_v2/static/Services-kzZ5IOvA.js
@@ -0,0 +1,8 @@
+import{_ as se,c as U,j as s,r as ie,F as re,a0 as g,S as ae,t as N}from"./index.js";import{u as oe,g as le,F as ce,D as ne,f as de}from"./useData-CxftshCa.js";import{T as me}from"./Table-ClWM2_rS.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";function Q(v){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(v)}function pe(v){const e=U.c(9),{year:i,active:t,serviceInfo:l,tickServiceIndex:u,current:a}=v;let r="No additional information available";if(l!==void 0){const x=l.service_name;let n=l.product_name,d=l.official_description,m=l.additional_information;(n!=""||d!=""||m!="")&&(n=n||"N/A",d=d||"N/A",m=m||"N/A",r=x+`
+`+n+`
+
+Description: `+d+`
+Information: `+m)}let h="";r!=="No additional information available"&&(h="pill-shadow"),r=`${i}: ${r}`;let o;e[0]!==t||e[1]!==a||e[2]!==h||e[3]!==u||e[4]!==r?(o=t&&a?s.jsx("div",{"data-description":r,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:s.jsx(Q,{className:`rounded-pill color-of-the-current-service-${u%13} bottom-tooltip ${h}`})}):t&&!a?s.jsx("div",{"data-description":r,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:s.jsx(Q,{className:`rounded-pill color-of-the-previous-service-${u%13} bottom-tooltip ${h}`})}):s.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:{width:"30px",height:"30px",margin:"2px"},children:" "}),e[0]=t,e[1]=a,e[2]=h,e[3]=u,e[4]=r,e[5]=o):o=e[5];let c;return e[6]!==o||e[7]!==i?(c=s.jsx("div",{className:"d-inline-block",children:o},i),e[6]=o,e[7]=i,e[8]=c):c=e[8],c}function ke(v){const e=U.c(62),{category:i}=v,{filterSelection:t,setFilterSelection:l}=ie.useContext(re),{data:u,years:a,nrens:r}=oe("/api/nren-services",l),h=Math.max(...t.selectedYears);let o,c,x,n,d,m,j,b,k,_,y,w,S;if(e[0]!==i||e[1]!==t||e[2]!==h||e[3]!==r||e[4]!==u||e[5]!==l||e[6]!==a){let A;e[20]!==i||e[21]!==t.selectedNrens||e[22]!==t.selectedYears?(A=p=>t.selectedYears.includes(p.year)&&t.selectedNrens.includes(p.nren)&&p.service_category==i,e[20]=i,e[21]=t.selectedNrens,e[22]=t.selectedYears,e[23]=A):A=e[23];const O=u.filter(A),G={};O.forEach(p=>{G[p.service_name]=p.service_description});const H=Object.entries(G).sort(he),V=le(O,"service_name");let D;e[24]!==a?(D=[...a],e[24]=a,e[25]=D):D=e[25];let T;e[26]!==r?(T=r.values(),e[26]=r,e[27]=T):T=e[27];let E;e[28]!==T?(E=[...T],e[28]=T,e[29]=E):E=e[29];let I;e[30]!==D||e[31]!==E?(I={availableYears:D,availableNrens:E},e[30]=D,e[31]=E,e[32]=I):I=e[32];let R;e[33]!==t||e[34]!==l||e[35]!==I?(R=s.jsx(ce,{filterOptions:I,filterSelection:t,setFilterSelection:l}),e[33]=t,e[34]=l,e[35]=I,e[36]=R):R=e[36];const W=R;let B;e[37]!==a?(B=p=>a.has(p),e[37]=a,e[38]=B):B=e[38];const X=[...t.selectedYears.filter(B)].sort();let f="";e:switch(i){case g.network_services:{f=N["network-services"];break e}case g.isp_support:{f=N["isp-support-services"];break e}case g.security:{f=N["security-services"];break e}case g.identity:{f=N["identity-services"];break e}case g.collaboration:{f=N["collaboration-services"];break e}case g.multimedia:{f=N["multimedia-services"];break e}case g.storage_and_hosting:{f=N["storage-and-hosting-services"];break e}case g.professional_services:f=N["professional-services"]}x=ne,k=f,_=`The service matrix shows the services NRENs offer to their users. These 
+            services are grouped thematically, with navigation possible via. the side menu. NRENs 
+            are invited to give extra information about their services; where this is provided, 
+            you will see a black circle around the marker. Hover over the marker to read more.`,y=ae.Services,w=W,S=O,d="nren_services",c=de,o=me,m="service-table",j=!0;let M;e[39]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx("th",{}),e[39]=M):M=e[39];const P=s.jsxs("tr",{children:[M,H.map(ve)]});e[40]!==P?(b=s.jsx("thead",{children:P}),e[40]=P,e[41]=b):b=e[41],n=Array.from(V.entries()).map(p=>{const[q,J]=p;return s.jsxs("tr",{children:[s.jsx("td",{className:"bold-text",children:q}),H.map((Z,ee)=>{const[z]=Z;return s.jsx("td",{children:J.has(z)&&X.map(L=>{const K=J.get(z),te=K.get(L);return s.jsx(pe,{year:L,active:K.has(L),serviceInfo:te,tickServiceIndex:ee,current:L==h},L)})},z)})]},q)}),e[0]=i,e[1]=t,e[2]=h,e[3]=r,e[4]=u,e[5]=l,e[6]=a,e[7]=o,e[8]=c,e[9]=x,e[10]=n,e[11]=d,e[12]=m,e[13]=j,e[14]=b,e[15]=k,e[16]=_,e[17]=y,e[18]=w,e[19]=S}else o=e[7],c=e[8],x=e[9],n=e[10],d=e[11],m=e[12],j=e[13],b=e[14],k=e[15],_=e[16],y=e[17],w=e[18],S=e[19];let C;e[42]!==n?(C=s.jsx("tbody",{children:n}),e[42]=n,e[43]=C):C=e[43];let Y;e[44]!==o||e[45]!==C||e[46]!==m||e[47]!==j||e[48]!==b?(Y=s.jsxs(o,{className:m,bordered:j,children:[b,C]}),e[44]=o,e[45]=C,e[46]=m,e[47]=j,e[48]=b,e[49]=Y):Y=e[49];let $;e[50]!==c||e[51]!==Y?($=s.jsx(c,{children:Y}),e[50]=c,e[51]=Y,e[52]=$):$=e[52];let F;return e[53]!==x||e[54]!==d||e[55]!==$||e[56]!==k||e[57]!==_||e[58]!==y||e[59]!==w||e[60]!==S?(F=s.jsx(x,{title:k,description:_,category:y,filter:w,data:S,filename:d,children:$}),e[53]=x,e[54]=d,e[55]=$,e[56]=k,e[57]=_,e[58]=y,e[59]=w,e[60]=S,e[61]=F):F=e[61],F}function ve(v,e){const[i,t]=v;return s.jsx("th",{"data-description":t,className:`bottom-tooltip color-of-the-service-header-${e%13}`,children:i},i)}function he(v,e){return v[0].toLowerCase()<e[0].toLowerCase()?-1:1}export{ke as default};
diff --git a/compendium_v2/static/ServicesOffered-BnmNlrgs.js b/compendium_v2/static/ServicesOffered-BnmNlrgs.js
new file mode 100644
index 0000000000000000000000000000000000000000..1c3803e2a36a4dc2c3ec7981326f99cc421d646b
--- /dev/null
+++ b/compendium_v2/static/ServicesOffered-BnmNlrgs.js
@@ -0,0 +1 @@
+import{c as b,r as w,F as j,j as c,t as k,S as C,U as E}from"./index.js";import{u as Y,r as F,D as I,F as P,f as R}from"./useData-CxftshCa.js";import{S as D}from"./ScrollableMatrix-Dxr22l4i.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function z(){const e=b.c(29),{filterSelection:t,setFilterSelection:n}=w.useContext(j),{data:h,years:g,nrens:v}=Y("/api/services-offered",n);let s,f;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==h){let y;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(y=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=y):y=e[7],s=h.filter(y),f=F(s,["service_category"],"user_category"),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=h,e[3]=s,e[4]=f}else s=e[3],f=e[4];const x=f;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==v?(i=v.values(),e[10]=v,e[11]=i):i=e[11];let o;e[12]!==i?(o=[...i],e[12]=i,e[13]=o):o=e[13];let a;e[14]!==r||e[15]!==o?(a={availableYears:r,availableNrens:o},e[14]=r,e[15]=o,e[16]=a):a=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==a?(d=c.jsx(P,{filterOptions:a,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=a,e[20]=d):d=e[20];const N=d;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p={"Identity/T&I":"identity",Multimedia:"multimedia","Professional services":"professional_services","Network services":"network_services",Collaboration:"collaboration",Security:"security","Storage and Hosting":"storage_and_hosting","ISP support":"isp_support"},e[21]=p):p=e[21];const _=p;let u;e[22]===Symbol.for("react.memo_cache_sentinel")?(u=c.jsx("span",{children:"The table below shows the different types of users served by NRENs. Selecting the institution type will expand the detail to show the categories of services offered by NRENs, with a tick indicating that the NREN offers a specific category of service to the type of user."}),e[22]=u):u=e[22];let l;e[23]!==x?(l=c.jsx(R,{children:c.jsx(D,{dataLookup:x,rowInfo:_,categoryLookup:E,isTickIcon:!0})}),e[23]=x,e[24]=l):l=e[24];let m;return e[25]!==N||e[26]!==s||e[27]!==l?(m=c.jsx(I,{title:k["services-offered"],description:u,category:C.Policy,filter:N,data:s,filename:"nren_services_offered",children:l}),e[25]=N,e[26]=s,e[27]=l,e[28]=m):m=e[28],m}export{z as default};
diff --git a/compendium_v2/static/ServicesOffered-DAgKmLaL.js b/compendium_v2/static/ServicesOffered-DAgKmLaL.js
deleted file mode 100644
index b9273ff0e1e468604db53a9bf706218083410e3b..0000000000000000000000000000000000000000
--- a/compendium_v2/static/ServicesOffered-DAgKmLaL.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as _,r as w,F as j,j as c}from"./main-BIBsTO5W.js";import{u as k,r as C,D as E,F as R,f as Y}from"./useData-BDYwoQEh.js";import{S as F,U as I}from"./report.js";import{S as P}from"./ScrollableMatrix-Cdgj4J9X.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function q(){const e=_.c(29),{filterSelection:t,setFilterSelection:n}=w.useContext(j),{data:h,years:g,nrens:v}=k("/api/services-offered",n);let s,f;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==h){let y;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(y=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=y):y=e[7],s=h.filter(y),f=C(s,["service_category"],"user_category"),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=h,e[3]=s,e[4]=f}else s=e[3],f=e[4];const N=f;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==v?(i=v.values(),e[10]=v,e[11]=i):i=e[11];let o;e[12]!==i?(o=[...i],e[12]=i,e[13]=o):o=e[13];let a;e[14]!==r||e[15]!==o?(a={availableYears:r,availableNrens:o},e[14]=r,e[15]=o,e[16]=a):a=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==a?(d=c.jsx(R,{filterOptions:a,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=a,e[20]=d):d=e[20];const x=d;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p={"Identity/T&I":"identity",Multimedia:"multimedia","Professional services":"professional_services","Network services":"network_services",Collaboration:"collaboration",Security:"security","Storage and Hosting":"storage_and_hosting","ISP support":"isp_support"},e[21]=p):p=e[21];const b=p;let m;e[22]===Symbol.for("react.memo_cache_sentinel")?(m=c.jsx("span",{children:"The table below shows the different types of users served by NRENs. Selecting the institution type will expand the detail to show the categories of services offered by NRENs, with a tick indicating that the NREN offers a specific category of service to the type of user."}),e[22]=m):m=e[22];let l;e[23]!==N?(l=c.jsx(Y,{children:c.jsx(P,{dataLookup:N,rowInfo:b,categoryLookup:I,isTickIcon:!0})}),e[23]=N,e[24]=l):l=e[24];let u;return e[25]!==x||e[26]!==s||e[27]!==l?(u=c.jsx(E,{title:"Services Offered by NRENs by Types of Users",description:m,category:F.Policy,filter:x,data:s,filename:"nren_services_offered",children:l}),e[25]=x,e[26]=s,e[27]=l,e[28]=u):u=e[28],u}export{q as default};
diff --git a/compendium_v2/static/SideBar-CkoMfgfL.js b/compendium_v2/static/SideBar-CkoMfgfL.js
new file mode 100644
index 0000000000000000000000000000000000000000..cc62725bd772885cf691133066a01b6996db9eb1
--- /dev/null
+++ b/compendium_v2/static/SideBar-CkoMfgfL.js
@@ -0,0 +1 @@
+import{c as N,r as y,j as t,Y as S,Z as k}from"./index.js";const _=E=>{const e=N.c(23),{children:x,survey:m}=E,[s,b]=y.useState(!1);let d;e[0]!==s?(d=a=>{a.stopPropagation(),a.preventDefault(),b(!s)},e[0]=s,e[1]=d):d=e[1];const l=d;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=a=>{a.target.closest("#sidebar")||a.target.closest(".toggle-btn")||b(!1)},e[2]=f):f=e[2];const j=f;let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>(document.addEventListener("click",j),()=>{document.removeEventListener("click",j)}),e[3]=p):p=e[3],y.useEffect(p);let i;e[4]!==s||e[5]!==m?(i=[],s||i.push("no-sidebar"),m&&i.push("survey"),e[4]=s,e[5]=m,e[6]=i):i=e[6];const g=i.join(" ");let o;e[7]!==x?(o=t.jsx("div",{className:"menu-items",children:x}),e[7]=x,e[8]=o):o=e[8];let c;e[9]!==g||e[10]!==o?(c=t.jsx("nav",{className:g,id:"sidebar",children:o}),e[9]=g,e[10]=o,e[11]=c):c=e[11];const v=`toggle-btn${m?"-survey":""}`;let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("span",{children:"MENU"}),e[12]=u):u=e[12];let n;e[13]!==s||e[14]!==l?(n=t.jsxs("div",{className:"toggle-btn-wrapper",children:[u," ",s?t.jsx(S,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:l}):t.jsx(k,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:l})]}),e[13]=s,e[14]=l,e[15]=n):n=e[15];let r;e[16]!==v||e[17]!==n||e[18]!==l?(r=t.jsx("div",{className:v,onClick:l,children:n}),e[16]=v,e[17]=n,e[18]=l,e[19]=r):r=e[19];let h;return e[20]!==r||e[21]!==c?(h=t.jsxs("div",{className:"sidebar-wrapper",children:[c,r]}),e[20]=r,e[21]=c,e[22]=h):h=e[22],h};export{_ as S};
diff --git a/compendium_v2/static/SiemVendors-AspEWRsK.js b/compendium_v2/static/SiemVendors-AspEWRsK.js
deleted file mode 100644
index 17d64ce2c227cb8b4b32ff86815ee4c851cc369c..0000000000000000000000000000000000000000
--- a/compendium_v2/static/SiemVendors-AspEWRsK.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as v,r as Y,F as j,j as u}from"./main-BIBsTO5W.js";import{u as C,g as _,D as g,F as k,f as F}from"./useData-BDYwoQEh.js";import{S as R}from"./report.js";import{P as D}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function Q(){const e=v.c(28),{filterSelection:t,setFilterSelection:n}=Y.useContext(j),{data:x,years:N,nrens:S}=C("/api/siem-vendors",n);let s,c;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=h=>t.selectedYears.includes(h.year)&&t.selectedNrens.includes(h.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=x.filter(p),c=_(s,"vendor_names"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=c}else s=e[3],c=e[4];const b=c;let r;e[8]!==N?(r=[...N],e[8]=N,e[9]=r):r=e[9];let l;e[10]!==S?(l=S.values(),e[10]=S,e[11]=l):l=e[11];let a;e[12]!==l?(a=[...l],e[12]=l,e[13]=a):a=e[13];let o;e[14]!==r||e[15]!==a?(o={availableYears:r,availableNrens:a},e[14]=r,e[15]=a,e[16]=o):o=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==o?(d=u.jsx(k,{filterOptions:o,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=o,e[20]=d):d=e[20];const y=d;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],e[21]=m):m=e[21];const E=m;let i;e[22]!==b?(i=u.jsx(F,{children:u.jsx(D,{columns:E,dataLookup:b,circle:!0})}),e[22]=b,e[23]=i):i=e[23];let f;return e[24]!==y||e[25]!==s||e[26]!==i?(f=u.jsx(g,{title:"Vendors of SIEM/SOC systems used by NRENs",description:"The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs.",category:R.Network,filter:y,data:s,filename:"siem_vendor_nrens_per_year",children:i}),e[24]=y,e[25]=s,e[26]=i,e[27]=f):f=e[27],f}export{Q as default};
diff --git a/compendium_v2/static/SiemVendors-pjqFJlX2.js b/compendium_v2/static/SiemVendors-pjqFJlX2.js
new file mode 100644
index 0000000000000000000000000000000000000000..58029631393fe1800970d454b237d01277abed5a
--- /dev/null
+++ b/compendium_v2/static/SiemVendors-pjqFJlX2.js
@@ -0,0 +1 @@
+import{c as Y,r as j,F as E,j as u,t as _,S as g}from"./index.js";import{u as k,g as C,D as F,F as D,f as P}from"./useData-CxftshCa.js";import{P as R}from"./PillTable-Cnj0nnFy.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./ColorPill-CXvWIfWz.js";import"./Table-ClWM2_rS.js";function $(){const e=Y.c(28),{filterSelection:t,setFilterSelection:n}=j.useContext(E),{data:x,years:N,nrens:S}=k("/api/siem-vendors",n);let s,c;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=x.filter(p),c=C(s,"vendor_names"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=c}else s=e[3],c=e[4];const b=c;let r;e[8]!==N?(r=[...N],e[8]=N,e[9]=r):r=e[9];let l;e[10]!==S?(l=S.values(),e[10]=S,e[11]=l):l=e[11];let a;e[12]!==l?(a=[...l],e[12]=l,e[13]=a):a=e[13];let i;e[14]!==r||e[15]!==a?(i={availableYears:r,availableNrens:a},e[14]=r,e[15]=a,e[16]=i):i=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==i?(d=u.jsx(D,{filterOptions:i,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=i,e[20]=d):d=e[20];const h=d;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],e[21]=m):m=e[21];const y=m;let o;e[22]!==b?(o=u.jsx(P,{children:u.jsx(R,{columns:y,dataLookup:b,circle:!0})}),e[22]=b,e[23]=o):o=e[23];let f;return e[24]!==h||e[25]!==s||e[26]!==o?(f=u.jsx(F,{title:_["siem-vendors"],description:"The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs.",category:g.Network,filter:h,data:s,filename:"siem_vendor_nrens_per_year",children:o}),e[24]=h,e[25]=s,e[26]=o,e[27]=f):f=e[27],f}export{$ as default};
diff --git a/compendium_v2/static/StaffGraph-CRnD7Dbf.js b/compendium_v2/static/StaffGraph-CRnD7Dbf.js
deleted file mode 100644
index 927f5c1410a06d3ba69af11a0cba53b3bb90f74d..0000000000000000000000000000000000000000
--- a/compendium_v2/static/StaffGraph-CRnD7Dbf.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as O,r as $,F as B,j as x}from"./main-BIBsTO5W.js";import{B as A}from"./index-BBrAyDR9.js";import{C as g,a as M,L as P,B as q,p as W,c as G,d as V,u as z,l as H,D as J,F as K}from"./useData-BDYwoQEh.js";import{S as Q}from"./report.js";import{h as U,W as X}from"./HTMLLegendPlugin-BO0IHS_R.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";g.register(M,P,q,W,G,V);const Z={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(t){let e=t.dataset.label||"";return t.parsed.x!==null&&(e+=`: ${t.parsed.x}%`),e}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(t,e)=>`${e*10}%`}},x2:{ticks:{callback:t=>typeof t=="number"?`${t}%`:t},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const e=Object.keys(g.instances);let i=-999999,s=999999;for(const n of e)g.instances[n]&&t.chart.scales.x2&&(s=Math.min(g.instances[n].scales.x.min,s),i=Math.max(g.instances[n].scales.x.max,i));t.chart.scales.x2.options.min=s,t.chart.scales.x2.options.max=i,t.chart.scales.x2.min=s,t.chart.scales.x2.max=i}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function re(t){const e=O.c(39),{roles:i}=t,s=i===void 0?!1:i;let n;e[0]!==s?(n=function(r){return s&&r.technical_fte>0&&r.non_technical_fte>0||!s&&r.permanent_fte>0&&r.subcontracted_fte>0},e[0]=s,e[1]=n):n=e[1];const D=n,{filterSelection:a,setFilterSelection:y}=$.useContext(B),{data:k,years:S,nrens:T}=z("/api/staff",y,D);let l,N;if(e[2]!==k||e[3]!==a.selectedNrens||e[4]!==a.selectedYears||e[5]!==s){let u;e[8]!==a.selectedNrens||e[9]!==a.selectedYears?(u=r=>a.selectedYears.includes(r.year)&&a.selectedNrens.includes(r.nren),e[8]=a.selectedNrens,e[9]=a.selectedYears,e[10]=u):u=e[10],l=k.filter(u),N=H(l,s,a.selectedYears[0]),e[2]=k,e[3]=a.selectedNrens,e[4]=a.selectedYears,e[5]=s,e[6]=l,e[7]=N}else l=e[6],N=e[7];const w=N;let o;e[11]!==S?(o=[...S],e[11]=S,e[12]=o):o=e[12];let c;e[13]!==T?(c=T.values(),e[13]=T,e[14]=c):c=e[14];let f;e[15]!==c?(f=[...c],e[15]=c,e[16]=f):f=e[16];let d;e[17]!==o||e[18]!==f?(d={availableYears:o,availableNrens:f},e[17]=o,e[18]=f,e[19]=d):d=e[19];let b;e[20]!==a||e[21]!==y||e[22]!==d?(b=x.jsx(K,{max1year:!0,filterOptions:d,filterSelection:a,setFilterSelection:y}),e[20]=a,e[21]=y,e[22]=d,e[23]=b):b=e[23];const R=b,Y=l.length,L=Math.max(Y*1.5,20),v=s?"Roles of NREN employees (Technical v. Non-Technical)":"Types of Employment within NRENs",F=s?"The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN. The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format":"The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted. The structures and models of NRENs differ across the community, which is reflected in the types of employment offered. The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.",C=s?"roles_of_nren_employees":"types_of_employment_for_nrens",j=`${L}rem`;let m;e[24]!==j?(m={height:j},e[24]=j,e[25]=m):m=e[25];let E;e[26]===Symbol.for("react.memo_cache_sentinel")?(E=[U],e[26]=E):E=e[26];let h;e[27]!==w?(h=x.jsx(A,{data:w,options:Z,plugins:E}),e[27]=w,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=x.jsx(X,{children:x.jsx("div",{className:"chart-container",style:m,children:h})}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let _;return e[32]!==F||e[33]!==C||e[34]!==R||e[35]!==l||e[36]!==p||e[37]!==v?(_=x.jsx(J,{title:v,description:F,category:Q.Organisation,filter:R,data:l,filename:C,children:p}),e[32]=F,e[33]=C,e[34]=R,e[35]=l,e[36]=p,e[37]=v,e[38]=_):_=e[38],_}export{re as default};
diff --git a/compendium_v2/static/StaffGraph-D3mBN476.js b/compendium_v2/static/StaffGraph-D3mBN476.js
new file mode 100644
index 0000000000000000000000000000000000000000..fe78258908f88b7133fb3ee93637eebab5cc83d3
--- /dev/null
+++ b/compendium_v2/static/StaffGraph-D3mBN476.js
@@ -0,0 +1,4 @@
+import{c as $,r as B,F as A,j as x,S as M,t as R}from"./index.js";import{B as P}from"./index-CjWPDfDC.js";import{C as g,a as q,L as W,B as G,p as V,c as z,d as H,u as J,l as K,D as Q,F as U}from"./useData-CxftshCa.js";import{h as X,W as Z}from"./HTMLLegendPlugin-C-L3dIU1.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";g.register(q,W,G,V,z,H);const I={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(t){let e=t.dataset.label||"";return t.parsed.x!==null&&(e+=`: ${t.parsed.x}%`),e}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(t,e)=>`${e*10}%`}},x2:{ticks:{callback:t=>typeof t=="number"?`${t}%`:t},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const e=Object.keys(g.instances);let r=-999999,s=999999;for(const n of e)g.instances[n]&&t.chart.scales.x2&&(s=Math.min(g.instances[n].scales.x.min,s),r=Math.max(g.instances[n].scales.x.max,r));t.chart.scales.x2.options.min=s,t.chart.scales.x2.options.max=r,t.chart.scales.x2.min=s,t.chart.scales.x2.max=r}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function ce(t){const e=$.c(39),{roles:r}=t,s=r===void 0?!1:r;let n;e[0]!==s?(n=function(i){return s&&i.technical_fte>0&&i.non_technical_fte>0||!s&&i.permanent_fte>0&&i.subcontracted_fte>0},e[0]=s,e[1]=n):n=e[1];const Y=n,{filterSelection:a,setFilterSelection:y}=B.useContext(A),{data:k,years:S,nrens:w}=J("/api/staff",y,Y);let l,b;if(e[2]!==k||e[3]!==a.selectedNrens||e[4]!==a.selectedYears||e[5]!==s){let u;e[8]!==a.selectedNrens||e[9]!==a.selectedYears?(u=i=>a.selectedYears.includes(i.year)&&a.selectedNrens.includes(i.nren),e[8]=a.selectedNrens,e[9]=a.selectedYears,e[10]=u):u=e[10],l=k.filter(u),b=K(l,s,a.selectedYears[0]),e[2]=k,e[3]=a.selectedNrens,e[4]=a.selectedYears,e[5]=s,e[6]=l,e[7]=b}else l=e[6],b=e[7];const F=b;let c;e[11]!==S?(c=[...S],e[11]=S,e[12]=c):c=e[12];let o;e[13]!==w?(o=w.values(),e[13]=w,e[14]=o):o=e[14];let f;e[15]!==o?(f=[...o],e[15]=o,e[16]=f):f=e[16];let d;e[17]!==c||e[18]!==f?(d={availableYears:c,availableNrens:f},e[17]=c,e[18]=f,e[19]=d):d=e[19];let N;e[20]!==a||e[21]!==y||e[22]!==d?(N=x.jsx(U,{max1year:!0,filterOptions:d,filterSelection:a,setFilterSelection:y}),e[20]=a,e[21]=y,e[22]=d,e[23]=N):N=e[23];const T=N,L=l.length,O=Math.max(L*1.5,20),v=s?R.roles:R.employment,C=s?`The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN.
+        The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format`:`The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted.
+        The structures and models of NRENs differ across the community, which is reflected in the types of employment offered.
+        The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.`,j=s?"roles_of_nren_employees":"types_of_employment_for_nrens",D=`${O}rem`;let m;e[24]!==D?(m={height:D},e[24]=D,e[25]=m):m=e[25];let _;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=[X],e[26]=_):_=e[26];let h;e[27]!==F?(h=x.jsx(P,{data:F,options:I,plugins:_}),e[27]=F,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=x.jsx(Z,{children:x.jsx("div",{className:"chart-container",style:m,children:h})}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let E;return e[32]!==C||e[33]!==j||e[34]!==T||e[35]!==l||e[36]!==p||e[37]!==v?(E=x.jsx(Q,{title:v,description:C,category:M.Organisation,filter:T,data:l,filename:j,children:p}),e[32]=C,e[33]=j,e[34]=T,e[35]=l,e[36]=p,e[37]=v,e[38]=E):E=e[38],E}export{ce as default};
diff --git a/compendium_v2/static/StaffGraphAbsolute-1_iTYcqR.js b/compendium_v2/static/StaffGraphAbsolute-1_iTYcqR.js
deleted file mode 100644
index 999e17ced2764eea075165f546870ba427d88e43..0000000000000000000000000000000000000000
--- a/compendium_v2/static/StaffGraphAbsolute-1_iTYcqR.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as j,r as D,F as Y,j as d}from"./main-BIBsTO5W.js";import{B}from"./index-BBrAyDR9.js";import{C as T,a as P,L as A,B as O,p as q,c as L,d as $,u as k,m as G,D as M,F as W,f as z}from"./useData-BDYwoQEh.js";import{S as H}from"./report.js";import{p as I}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{a as J}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";T.register(P,A,O,q,L,$);function ie(){const e=j.c(38),{filterSelection:t,setFilterSelection:a}=D.useContext(Y),{data:S,years:p,nrens:u}=k("/api/staff",a);let i,n,s,g;if(e[0]!==S||e[1]!==t||e[2]!==u||e[3]!==a||e[4]!==p){let y;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(y=_=>t.selectedYears.includes(_.year)&&t.selectedNrens.includes(_.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=y):y=e[11],s=S.filter(y),n=G(s,t.selectedYears);let c;e[12]!==p?(c=[...p],e[12]=p,e[13]=c):c=e[13];let f;e[14]!==u?(f=u.values(),e[14]=u,e[15]=f):f=e[15];let m;e[16]!==f?(m=[...f],e[16]=f,e[17]=m):m=e[17];let h;e[18]!==c||e[19]!==m?(h={availableYears:c,availableNrens:m},e[18]=c,e[19]=m,e[20]=h):h=e[20];let b;e[21]!==t||e[22]!==a||e[23]!==h?(b=d.jsx(W,{filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=b):b=e[24],i=b,g=Array.from(new Set(s.map(K))),e[0]=S,e[1]=t,e[2]=u,e[3]=a,e[4]=p,e[5]=i,e[6]=n,e[7]=s,e[8]=g}else i=e[5],n=e[6],s=e[7],g=e[8];const v=g.length,w=Math.max(v*t.selectedYears.length*1.5+5,50),C='The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.';let N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=J({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"}),e[25]=N):N=e[25];const F=N,R=`${w}rem`;let r;e[26]!==R?(r={height:R},e[26]=R,e[27]=r):r=e[27];let E;e[28]===Symbol.for("react.memo_cache_sentinel")?(E=[I],e[28]=E):E=e[28];let l;e[29]!==n?(l=d.jsx(B,{data:n,options:F,plugins:E}),e[29]=n,e[30]=l):l=e[30];let o;e[31]!==r||e[32]!==l?(o=d.jsx(z,{children:d.jsx("div",{className:"chart-container",style:r,children:l})}),e[31]=r,e[32]=l,e[33]=o):o=e[33];let x;return e[34]!==i||e[35]!==s||e[36]!==o?(x=d.jsx(M,{title:"Number of NREN Employees",description:C,category:H.Organisation,filter:i,data:s,filename:"number_of_nren_employees",children:o}),e[34]=i,e[35]=s,e[36]=o,e[37]=x):x=e[37],x}function K(e){return e.nren}export{ie as default};
diff --git a/compendium_v2/static/StaffGraphAbsolute-I7Y3C-nj.js b/compendium_v2/static/StaffGraphAbsolute-I7Y3C-nj.js
new file mode 100644
index 0000000000000000000000000000000000000000..86358ecc82c8beb3e761bc1f8cbf9a0eb5a14cbc
--- /dev/null
+++ b/compendium_v2/static/StaffGraphAbsolute-I7Y3C-nj.js
@@ -0,0 +1 @@
+import{c as D,r as Y,F as B,j as d,S as T,t as P}from"./index.js";import{B as A}from"./index-CjWPDfDC.js";import{C as O,a as q,L,B as $,p as k,c as G,d as M,u as W,m as z,D as H,F as I,f as J}from"./useData-CxftshCa.js";import{p as K}from"./chartjs-plugin-datalabels.esm-CjG-nxnq.js";import{a as Q}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";O.register(q,L,$,k,G,M);function re(){const e=D.c(38),{filterSelection:t,setFilterSelection:a}=Y.useContext(B),{data:b,years:p,nrens:u}=W("/api/staff",a);let i,n,s,g;if(e[0]!==b||e[1]!==t||e[2]!==u||e[3]!==a||e[4]!==p){let E;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(E=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=E):E=e[11],s=b.filter(E),n=z(s,t.selectedYears);let c;e[12]!==p?(c=[...p],e[12]=p,e[13]=c):c=e[13];let f;e[14]!==u?(f=u.values(),e[14]=u,e[15]=f):f=e[15];let m;e[16]!==f?(m=[...f],e[16]=f,e[17]=m):m=e[17];let h;e[18]!==c||e[19]!==m?(h={availableYears:c,availableNrens:m},e[18]=c,e[19]=m,e[20]=h):h=e[20];let S;e[21]!==t||e[22]!==a||e[23]!==h?(S=d.jsx(I,{filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=S):S=e[24],i=S,g=Array.from(new Set(s.map(U))),e[0]=b,e[1]=t,e[2]=u,e[3]=a,e[4]=p,e[5]=i,e[6]=n,e[7]=s,e[8]=g}else i=e[5],n=e[6],s=e[7],g=e[8];const R=g.length,w=Math.max(R*t.selectedYears.length*1.5+5,50),C=P["employee-count"],F='The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.';let N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=Q({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"}),e[25]=N):N=e[25];const j=N,_=`${w}rem`;let r;e[26]!==_?(r={height:_},e[26]=_,e[27]=r):r=e[27];let x;e[28]===Symbol.for("react.memo_cache_sentinel")?(x=[K],e[28]=x):x=e[28];let l;e[29]!==n?(l=d.jsx(A,{data:n,options:j,plugins:x}),e[29]=n,e[30]=l):l=e[30];let o;e[31]!==r||e[32]!==l?(o=d.jsx(J,{children:d.jsx("div",{className:"chart-container",style:r,children:l})}),e[31]=r,e[32]=l,e[33]=o):o=e[33];let y;return e[34]!==i||e[35]!==s||e[36]!==o?(y=d.jsx(H,{title:C,description:F,category:T.Organisation,filter:i,data:s,filename:"number_of_nren_employees",children:o}),e[34]=i,e[35]=s,e[36]=o,e[37]=y):y=e[37],y}function U(e){return e.nren}export{re as default};
diff --git a/compendium_v2/static/SubOrganisation-C7B4_RD0.js b/compendium_v2/static/SubOrganisation-C7B4_RD0.js
new file mode 100644
index 0000000000000000000000000000000000000000..67428e498c271cde58cfaff75cfa65e44d4ee992
--- /dev/null
+++ b/compendium_v2/static/SubOrganisation-C7B4_RD0.js
@@ -0,0 +1 @@
+import{c as Y,r as y,F as C,j as p,t as S,S as j}from"./index.js";import{u as v,h as F,i as E,D as R,F as T,f as O}from"./useData-CxftshCa.js";import{N as P}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function A(){const e=Y.c(27),{filterSelection:t,setFilterSelection:s}=y.useContext(C),{data:r,years:g,nrens:h}=v("/api/sub-organizations",s);let a,d;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],a=r.filter(u);const D=F(a);d=E(D,$),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=d}else a=e[3],d=e[4];const x=d;let n;e[8]!==g?(n=[...g],e[8]=g,e[9]=n):n=e[9];let o;e[10]!==h?(o=h.values(),e[10]=h,e[11]=o):o=e[11];let i;e[12]!==o?(i=[...o],e[12]=o,e[13]=i):i=e[13];let l;e[14]!==n||e[15]!==i?(l={availableYears:n,availableNrens:i},e[14]=n,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==t||e[18]!==s||e[19]!==l?(f=p.jsx(T,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=f):f=e[20];const N=f;let c;e[21]!==x?(c=p.jsx(O,{children:p.jsx(P,{data:x,columnTitle:"Suborganisation and Role",dottedBorder:!0})}),e[21]=x,e[22]=c):c=e[22];let m;return e[23]!==N||e[24]!==a||e[25]!==c?(m=p.jsx(R,{title:S.suborganisations,description:"NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.",category:j.Organisation,filter:N,data:a,filename:"nren_suborganisations",children:c}),e[23]=N,e[24]=a,e[25]=c,e[26]=m):m=e[26],m}function $(e,t){for(const s of t.sort(k)){const r=`${s.name} (${s.role})`;e[r]=r}}function k(e,t){return e.name.localeCompare(t.name)}export{A as default};
diff --git a/compendium_v2/static/SubOrganisation-D8wGO2zm.js b/compendium_v2/static/SubOrganisation-D8wGO2zm.js
deleted file mode 100644
index 8ee5d8310f745451de5e4326a23b4f8032893f9d..0000000000000000000000000000000000000000
--- a/compendium_v2/static/SubOrganisation-D8wGO2zm.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as S,r as Y,F as y,j as p}from"./main-BIBsTO5W.js";import{u as C,h as j,i as v,D as E,F,f as R}from"./useData-BDYwoQEh.js";import{S as O}from"./report.js";import{N as T}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function q(){const e=S.c(27),{filterSelection:t,setFilterSelection:s}=Y.useContext(y),{data:r,years:g,nrens:N}=C("/api/sub-organizations",s);let a,d;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],a=r.filter(u);const D=j(a);d=v(D,P),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=d}else a=e[3],d=e[4];const h=d;let n;e[8]!==g?(n=[...g],e[8]=g,e[9]=n):n=e[9];let o;e[10]!==N?(o=N.values(),e[10]=N,e[11]=o):o=e[11];let i;e[12]!==o?(i=[...o],e[12]=o,e[13]=i):i=e[13];let l;e[14]!==n||e[15]!==i?(l={availableYears:n,availableNrens:i},e[14]=n,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==t||e[18]!==s||e[19]!==l?(f=p.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=f):f=e[20];const x=f;let c;e[21]!==h?(c=p.jsx(R,{children:p.jsx(T,{data:h,columnTitle:"Suborganisation and Role",dottedBorder:!0})}),e[21]=h,e[22]=c):c=e[22];let m;return e[23]!==x||e[24]!==a||e[25]!==c?(m=p.jsx(E,{title:"NREN Sub-Organisations",description:"NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.",category:O.Organisation,filter:x,data:a,filename:"nren_suborganisations",children:c}),e[23]=x,e[24]=a,e[25]=c,e[26]=m):m=e[26],m}function P(e,t){for(const s of t.sort($)){const r=`${s.name} (${s.role})`;e[r]=r}}function $(e,t){return e.name.localeCompare(t.name)}export{q as default};
diff --git a/compendium_v2/static/SurveyContainerComponent-D59B1_HE.js b/compendium_v2/static/SurveyContainerComponent-D59B1_HE.js
deleted file mode 100644
index 758d39121fb7ea3e412bde53cb013d6c6d456267..0000000000000000000000000000000000000000
--- a/compendium_v2/static/SurveyContainerComponent-D59B1_HE.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import{Y as vh,Z as bh,a as Bo,j as de,r as at,C as Ch,e as xa,R as xr,g as Gu,$ as wh,a0 as Ph,b as xh}from"./main-BIBsTO5W.js";import{D as Vh,k as mt}from"./index-CuSQpLoM.js";import{V as yi}from"./Schema-BuKG9dA7.js";import{S as Sh}from"./survey.js";import"./xlsx-CxqzP9DR.js";import"./Table-HH9WOnMU.js";var qo={exports:{}};/*!
- * surveyjs - Survey JavaScript library v1.12.20
- * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
- * License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */var Oh=qo.exports,zu;function Zu(){return zu||(zu=1,function(ne,S){(function(O,P){ne.exports=P()})(Oh,function(){return function(z){var O={};function P(B){if(O[B])return O[B].exports;var R=O[B]={i:B,l:!1,exports:{}};return z[B].call(R.exports,R,R.exports,P),R.l=!0,R.exports}return P.m=z,P.c=O,P.d=function(B,R,D){P.o(B,R)||Object.defineProperty(B,R,{enumerable:!0,get:D})},P.r=function(B){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},P.t=function(B,R){if(R&1&&(B=P(B)),R&8||R&4&&typeof B=="object"&&B&&B.__esModule)return B;var D=Object.create(null);if(P.r(D),Object.defineProperty(D,"default",{enumerable:!0,value:B}),R&2&&typeof B!="string")for(var C in B)P.d(D,C,(function(h){return B[h]}).bind(null,C));return D},P.n=function(B){var R=B&&B.__esModule?function(){return B.default}:function(){return B};return P.d(R,"a",R),R},P.o=function(B,R){return Object.prototype.hasOwnProperty.call(B,R)},P.p="",P(P.s="./src/entries/core.ts")}({"./src/entries/core.ts":function(z,O,P){P.r(O),P.d(O,"Version",function(){return hi}),P.d(O,"ReleaseDate",function(){return ca}),P.d(O,"checkLibraryVersion",function(){return jp}),P.d(O,"setLicenseKey",function(){return Np}),P.d(O,"slk",function(){return Hl}),P.d(O,"hasLicense",function(){return qp}),P.d(O,"settings",function(){return I}),P.d(O,"Helpers",function(){return h}),P.d(O,"AnswerCountValidator",function(){return ao}),P.d(O,"EmailValidator",function(){return Xr}),P.d(O,"NumericValidator",function(){return so}),P.d(O,"RegexValidator",function(){return Yr}),P.d(O,"SurveyValidator",function(){return Jt}),P.d(O,"TextValidator",function(){return Kr}),P.d(O,"ValidatorResult",function(){return ft}),P.d(O,"ExpressionValidator",function(){return ei}),P.d(O,"ValidatorRunner",function(){return Zr}),P.d(O,"ItemValue",function(){return re}),P.d(O,"Base",function(){return fe}),P.d(O,"Event",function(){return Vn}),P.d(O,"EventBase",function(){return pt}),P.d(O,"ArrayChanges",function(){return zt}),P.d(O,"ComputedUpdater",function(){return De}),P.d(O,"SurveyError",function(){return et}),P.d(O,"SurveyElementCore",function(){return ir}),P.d(O,"SurveyElement",function(){return _e}),P.d(O,"DragTypeOverMeEnum",function(){return or}),P.d(O,"CalculatedValue",function(){return l}),P.d(O,"CustomError",function(){return ot}),P.d(O,"AnswerRequiredError",function(){return $r}),P.d(O,"OneAnswerRequiredError",function(){return to}),P.d(O,"RequreNumericError",function(){return Jr}),P.d(O,"ExceedSizeError",function(){return Gr}),P.d(O,"LocalizableString",function(){return gt}),P.d(O,"LocalizableStrings",function(){return Hr}),P.d(O,"HtmlConditionItem",function(){return f}),P.d(O,"UrlConditionItem",function(){return g}),P.d(O,"ChoicesRestful",function(){return H}),P.d(O,"ChoicesRestfull",function(){return ye}),P.d(O,"FunctionFactory",function(){return he}),P.d(O,"registerFunction",function(){return It}),P.d(O,"ConditionRunner",function(){return Ue}),P.d(O,"ExpressionRunner",function(){return jt}),P.d(O,"ExpressionExecutor",function(){return Lr}),P.d(O,"Operand",function(){return Mt}),P.d(O,"Const",function(){return Rr}),P.d(O,"BinaryOperand",function(){return xn}),P.d(O,"Variable",function(){return Ir}),P.d(O,"FunctionOperand",function(){return Ti}),P.d(O,"ArrayOperand",function(){return Ht}),P.d(O,"UnaryOperand",function(){return Tr}),P.d(O,"ConditionsParser",function(){return Yn}),P.d(O,"ProcessValue",function(){return Re}),P.d(O,"JsonError",function(){return Ke}),P.d(O,"JsonIncorrectTypeError",function(){return ht}),P.d(O,"JsonMetadata",function(){return en}),P.d(O,"JsonMetadataClass",function(){return ge}),P.d(O,"JsonMissingTypeError",function(){return ut}),P.d(O,"JsonMissingTypeErrorBase",function(){return $e}),P.d(O,"JsonObject",function(){return je}),P.d(O,"JsonObjectProperty",function(){return lt}),P.d(O,"JsonRequiredPropertyError",function(){return Qe}),P.d(O,"JsonUnknownPropertyError",function(){return vt}),P.d(O,"Serializer",function(){return j}),P.d(O,"property",function(){return x}),P.d(O,"propertyArray",function(){return me}),P.d(O,"MatrixDropdownCell",function(){return ys}),P.d(O,"MatrixDropdownRowModelBase",function(){return Kt}),P.d(O,"QuestionMatrixDropdownModelBase",function(){return mr}),P.d(O,"MatrixDropdownColumn",function(){return ri}),P.d(O,"matrixDropdownColumnTypes",function(){return fs}),P.d(O,"QuestionMatrixDropdownRenderedCell",function(){return _t}),P.d(O,"QuestionMatrixDropdownRenderedRow",function(){return hs}),P.d(O,"QuestionMatrixDropdownRenderedErrorRow",function(){return Ra}),P.d(O,"QuestionMatrixDropdownRenderedTable",function(){return gs}),P.d(O,"MatrixDropdownRowModel",function(){return Da}),P.d(O,"QuestionMatrixDropdownModel",function(){return ms}),P.d(O,"MatrixDynamicRowModel",function(){return ja}),P.d(O,"QuestionMatrixDynamicModel",function(){return Ps}),P.d(O,"MatrixRowModel",function(){return Xa}),P.d(O,"MatrixCells",function(){return el}),P.d(O,"QuestionMatrixModel",function(){return js}),P.d(O,"QuestionMatrixBaseModel",function(){return yt}),P.d(O,"MultipleTextItemModel",function(){return Bs}),P.d(O,"MultipleTextCell",function(){return ks}),P.d(O,"MultipleTextErrorCell",function(){return cl}),P.d(O,"MutlipleTextErrorRow",function(){return ul}),P.d(O,"MutlipleTextRow",function(){return Fs}),P.d(O,"QuestionMultipleTextModel",function(){return So}),P.d(O,"MultipleTextEditorModel",function(){return ll}),P.d(O,"PanelModel",function(){return ai}),P.d(O,"PanelModelBase",function(){return Os}),P.d(O,"QuestionRowModel",function(){return za}),P.d(O,"FlowPanelModel",function(){return pl}),P.d(O,"PageModel",function(){return Es}),P.d(O,"DefaultTitleModel",function(){return Bc}),P.d(O,"Question",function(){return Be}),P.d(O,"QuestionNonValue",function(){return Oo}),P.d(O,"QuestionEmptyModel",function(){return fl}),P.d(O,"QuestionCheckboxBase",function(){return li}),P.d(O,"QuestionSelectBase",function(){return Ts}),P.d(O,"QuestionCheckboxModel",function(){return ci}),P.d(O,"QuestionTagboxModel",function(){return Qs}),P.d(O,"QuestionRankingModel",function(){return Hs}),P.d(O,"QuestionCommentModel",function(){return zs}),P.d(O,"QuestionDropdownModel",function(){return ui}),P.d(O,"QuestionFactory",function(){return Se}),P.d(O,"ElementFactory",function(){return pn}),P.d(O,"QuestionFileModel",function(){return Ws}),P.d(O,"QuestionFilePage",function(){return bl}),P.d(O,"QuestionHtmlModel",function(){return $s}),P.d(O,"QuestionRadiogroupModel",function(){return Js}),P.d(O,"QuestionRatingModel",function(){return Zs}),P.d(O,"RenderedRatingItem",function(){return To}),P.d(O,"QuestionExpressionModel",function(){return ps}),P.d(O,"QuestionTextBase",function(){return xo}),P.d(O,"CharacterCounter",function(){return rl}),P.d(O,"QuestionTextModel",function(){return Vo}),P.d(O,"QuestionBooleanModel",function(){return Ks}),P.d(O,"QuestionImagePickerModel",function(){return fi}),P.d(O,"ImageItemValue",function(){return Pl}),P.d(O,"QuestionImageModel",function(){return Ys}),P.d(O,"QuestionSignaturePadModel",function(){return ea}),P.d(O,"QuestionPanelDynamicModel",function(){return na}),P.d(O,"QuestionPanelDynamicItem",function(){return st}),P.d(O,"SurveyTimer",function(){return xs}),P.d(O,"SurveyTimerModel",function(){return _a}),P.d(O,"tryFocusPage",function(){return Tc}),P.d(O,"createTOCListModel",function(){return $a}),P.d(O,"getTocRootCss",function(){return Ga}),P.d(O,"TOCModel",function(){return kn}),P.d(O,"SurveyProgressModel",function(){return yp}),P.d(O,"ProgressButtons",function(){return Ua}),P.d(O,"ProgressButtonsResponsivityManager",function(){return Ec}),P.d(O,"SurveyModel",function(){return dn}),P.d(O,"SurveyTrigger",function(){return zn}),P.d(O,"SurveyTriggerComplete",function(){return Tl}),P.d(O,"SurveyTriggerSetValue",function(){return Rl}),P.d(O,"SurveyTriggerVisible",function(){return El}),P.d(O,"SurveyTriggerCopyValue",function(){return Al}),P.d(O,"SurveyTriggerRunExpression",function(){return Dl}),P.d(O,"SurveyTriggerSkip",function(){return Il}),P.d(O,"Trigger",function(){return Ol}),P.d(O,"PopupSurveyModel",function(){return Ml}),P.d(O,"SurveyWindowModel",function(){return vp}),P.d(O,"TextPreProcessor",function(){return qt}),P.d(O,"Notifier",function(){return Ba}),P.d(O,"Cover",function(){return Co}),P.d(O,"CoverCell",function(){return Fa}),P.d(O,"dxSurveyService",function(){return qa}),P.d(O,"englishStrings",function(){return w}),P.d(O,"surveyLocalization",function(){return A}),P.d(O,"surveyStrings",function(){return ie}),P.d(O,"getLocaleString",function(){return k}),P.d(O,"getLocaleStrings",function(){return le}),P.d(O,"setupLocale",function(){return $}),P.d(O,"QuestionCustomWidget",function(){return lo}),P.d(O,"CustomWidgetCollection",function(){return Bn}),P.d(O,"QuestionCustomModel",function(){return Oa}),P.d(O,"QuestionCompositeModel",function(){return Ea}),P.d(O,"ComponentQuestionJSON",function(){return Va}),P.d(O,"ComponentCollection",function(){return po}),P.d(O,"ListModel",function(){return on}),P.d(O,"MultiSelectListModel",function(){return dl}),P.d(O,"PopupModel",function(){return On}),P.d(O,"createDialogOptions",function(){return ji}),P.d(O,"PopupBaseViewModel",function(){return Ds}),P.d(O,"PopupDropdownViewModel",function(){return Ls}),P.d(O,"PopupModalViewModel",function(){return ra}),P.d(O,"createPopupViewModel",function(){return wp}),P.d(O,"createPopupModalViewModel",function(){return Cp}),P.d(O,"DropdownListModel",function(){return Po}),P.d(O,"DropdownMultiSelectListModel",function(){return hl}),P.d(O,"QuestionButtonGroupModel",function(){return ql}),P.d(O,"ButtonGroupItemModel",function(){return Pp}),P.d(O,"ButtonGroupItemValue",function(){return Nl}),P.d(O,"IsMobile",function(){return mo}),P.d(O,"IsTouch",function(){return Le}),P.d(O,"_setIsTouch",function(){return sc}),P.d(O,"confirmAction",function(){return ki}),P.d(O,"confirmActionAsync",function(){return Wt}),P.d(O,"detectIEOrEdge",function(){return Dn}),P.d(O,"doKey2ClickUp",function(){return fr}),P.d(O,"doKey2ClickDown",function(){return $i}),P.d(O,"doKey2ClickBlur",function(){return Wi}),P.d(O,"loadFileFromBase64",function(){return sr}),P.d(O,"increaseHeightByContent",function(){return dr}),P.d(O,"createSvg",function(){return Mn}),P.d(O,"chooseFiles",function(){return Ki}),P.d(O,"sanitizeEditableContent",function(){return Gi}),P.d(O,"prepareElementForVerticalAnimation",function(){return Vt}),P.d(O,"cleanHtmlElementAfterAnimation",function(){return Xe}),P.d(O,"classesToSelector",function(){return ke}),P.d(O,"renamedIcons",function(){return ur}),P.d(O,"getIconNameFromProxy",function(){return Ur}),P.d(O,"InputMaskBase",function(){return Do}),P.d(O,"InputMaskPattern",function(){return la}),P.d(O,"InputMaskNumeric",function(){return ua}),P.d(O,"InputMaskDateTime",function(){return Fl}),P.d(O,"InputMaskCurrency",function(){return Ql}),P.d(O,"CssClassBuilder",function(){return _}),P.d(O,"TextAreaModel",function(){return Fn}),P.d(O,"surveyCss",function(){return qe}),P.d(O,"defaultV2Css",function(){return vo}),P.d(O,"defaultV2ThemeName",function(){return Na}),P.d(O,"DragDropCore",function(){return bs}),P.d(O,"DragDropChoices",function(){return gl}),P.d(O,"DragDropRankingSelectToRank",function(){return ml}),P.d(O,"StylesManager",function(){return Ul}),P.d(O,"defaultStandardCss",function(){return Cn}),P.d(O,"modernCss",function(){return Wl}),P.d(O,"SvgIconRegistry",function(){return $l}),P.d(O,"SvgRegistry",function(){return Gp}),P.d(O,"SvgThemeSets",function(){return Lo}),P.d(O,"addIconsToThemeSet",function(){return Zp}),P.d(O,"RendererFactory",function(){return uo}),P.d(O,"ResponsivityManager",function(){return Nr}),P.d(O,"VerticalResponsivityManager",function(){return Xn}),P.d(O,"unwrap",function(){return ts}),P.d(O,"getOriginalEvent",function(){return ns}),P.d(O,"getElement",function(){return Ln}),P.d(O,"activateLazyRenderingChecks",function(){return lr}),P.d(O,"createDropdownActionModel",function(){return Br}),P.d(O,"createDropdownActionModelAdvanced",function(){return Fr}),P.d(O,"createPopupModelWithListModel",function(){return tr}),P.d(O,"getActionDropdownButtonTarget",function(){return qi}),P.d(O,"BaseAction",function(){return En}),P.d(O,"Action",function(){return xe}),P.d(O,"ActionDropdownViewModel",function(){return Yo}),P.d(O,"AnimationUtils",function(){return Qr}),P.d(O,"AnimationPropertyUtils",function(){return _i}),P.d(O,"AnimationGroupUtils",function(){return nr}),P.d(O,"AnimationProperty",function(){return Rn}),P.d(O,"AnimationBoolean",function(){return In}),P.d(O,"AnimationGroup",function(){return Nt}),P.d(O,"AnimationTab",function(){return rr}),P.d(O,"AdaptiveActionContainer",function(){return Tn}),P.d(O,"defaultActionBarCss",function(){return er}),P.d(O,"ActionContainer",function(){return xt}),P.d(O,"DragOrClickHelper",function(){return Cs}),P.d(O,"Model",function(){return dn});var B=function(){function i(){}return i.isAvailable=function(){return typeof window<"u"},i.isFileReaderAvailable=function(){return i.isAvailable()?!!window.FileReader:!1},i.getLocation=function(){if(i.isAvailable())return window.location},i.getVisualViewport=function(){return i.isAvailable()?window.visualViewport:null},i.getInnerWidth=function(){if(i.isAvailable())return window.innerWidth},i.getInnerHeight=function(){return i.isAvailable()?window.innerHeight:null},i.getWindow=function(){if(i.isAvailable())return window},i.hasOwn=function(t){if(i.isAvailable())return t in window},i.getSelection=function(){if(i.isAvailable()&&window.getSelection)return window.getSelection()},i.requestAnimationFrame=function(t){if(i.isAvailable())return window.requestAnimationFrame(t)},i.addEventListener=function(t,e){i.isAvailable()&&window.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&window.removeEventListener(t,e)},i.matchMedia=function(t){return!i.isAvailable()||typeof window.matchMedia>"u"?null:window.matchMedia(t)},i}(),R=function(){function i(){}return i.isAvailable=function(){return typeof document<"u"},i.getBody=function(){if(i.isAvailable())return document.body},i.getDocumentElement=function(){if(i.isAvailable())return document.documentElement},i.getDocument=function(){if(i.isAvailable())return document},i.getCookie=function(){if(i.isAvailable())return document.cookie},i.setCookie=function(t){i.isAvailable()&&(document.cookie=t)},i.activeElementBlur=function(){if(i.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},i.createElement=function(t){if(i.isAvailable())return document.createElement(t)},i.getComputedStyle=function(t){return i.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},i.addEventListener=function(t,e){i.isAvailable()&&document.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&document.removeEventListener(t,e)},i}();function D(i,t){if(!t)return new Date;!I.storeUtcDates&&typeof t=="string"&&C(t)&&(t+="T00:00:00");var e=new Date(t);return I.onDateCreated(e,i,t)}function C(i){return i.indexOf("T")>0||!/\d{4}-\d{2}-\d{2}/.test(i)?!1:!isNaN(new Date(i).getTime())}var h=function(){function i(){}return i.isValueEmpty=function(t){if(Array.isArray(t)&&t.length===0)return!0;if(t&&i.isValueObject(t)&&t.constructor===Object){for(var e in t)if(!i.isValueEmpty(t[e]))return!1;return!0}return!t&&t!==0&&t!==!1},i.isArrayContainsEqual=function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++){for(var r=0;r<e.length&&!i.isTwoValueEquals(t[n],e[r]);r++);if(r===e.length)return!1}return!0},i.isArraysEqual=function(t,e,n,r,o){if(n===void 0&&(n=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;if(n){for(var s=[],u=[],d=0;d<t.length;d++)s.push(t[d]),u.push(e[d]);s.sort(),u.sort(),t=s,e=u}for(var d=0;d<t.length;d++)if(!i.isTwoValueEquals(t[d],e[d],n,r,o))return!1;return!0},i.compareStrings=function(t,e){var n=I.comparator.normalizeTextCallback;if(t&&(t=n(t,"compare").trim()),e&&(e=n(e,"compare").trim()),!t&&!e)return 0;if(!t)return-1;if(!e)return 1;if(t===e)return 0;for(var r=-1,o=0;o<t.length&&o<e.length;o++){if(this.isCharDigit(t[o])&&this.isCharDigit(e[o])){r=o;break}if(t[o]!==e[o])break}if(r>-1){var s=this.getNumberFromStr(t,r),u=this.getNumberFromStr(e,r);if(!Number.isNaN(s)&&!Number.isNaN(u)&&s!==u)return s>u?1:-1}return t>e?1:-1},i.isTwoValueEquals=function(t,e,n,r,o){if(n===void 0&&(n=!1),t===e||Array.isArray(t)&&t.length===0&&typeof e>"u"||Array.isArray(e)&&e.length===0&&typeof t>"u"||t==null&&e===""||e==null&&t==="")return!0;if(o===void 0&&(o=I.comparator.trimStrings),r===void 0&&(r=I.comparator.caseSensitive),typeof t=="string"&&typeof e=="string"){var s=I.comparator.normalizeTextCallback;return t=s(t,"compare"),e=s(e,"compare"),o&&(t=t.trim(),e=e.trim()),r||(t=t.toLowerCase(),e=e.toLowerCase()),t===e}if(t instanceof Date&&e instanceof Date)return t.getTime()==e.getTime();if(i.isConvertibleToNumber(t)&&i.isConvertibleToNumber(e)&&parseInt(t)===parseInt(e)&&parseFloat(t)===parseFloat(e))return!0;if(!i.isValueEmpty(t)&&i.isValueEmpty(e)||i.isValueEmpty(t)&&!i.isValueEmpty(e))return!1;if((t===!0||t===!1)&&typeof e=="string")return t.toString()===e.toLocaleLowerCase();if((e===!0||e===!1)&&typeof t=="string")return e.toString()===t.toLocaleLowerCase();if(!i.isValueObject(t)&&!i.isValueObject(e))return t==e;if(!i.isValueObject(t)||!i.isValueObject(e))return!1;if(t.equals&&e.equals)return t.equals(e);if(Array.isArray(t)&&Array.isArray(e))return i.isArraysEqual(t,e,n,r,o);for(var u in t)if(t.hasOwnProperty(u)&&(!e.hasOwnProperty(u)||!this.isTwoValueEquals(t[u],e[u],n,r,o)))return!1;for(u in e)if(e.hasOwnProperty(u)&&!t.hasOwnProperty(u))return!1;return!0},i.randomizeArray=function(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t},i.getUnbindValue=function(t){if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(i.getUnbindValue(t[n]));return e}return t&&i.isValueObject(t)&&!(t instanceof Date)?JSON.parse(JSON.stringify(t)):t},i.createCopy=function(t){var e={};if(!t)return e;for(var n in t)e[n]=t[n];return e},i.isConvertibleToNumber=function(t){return t!=null&&!Array.isArray(t)&&!isNaN(t)},i.isValueObject=function(t,e){return t instanceof Object&&(!e||!Array.isArray(t))},i.isNumber=function(t){return!isNaN(this.getNumber(t))},i.getNumber=function(t){var e=i.getNumberCore(t);return I.parseNumber(t,e)},i.getNumberCore=function(t){if(typeof t=="string"){if(t=t.trim(),!t)return NaN;if(t.indexOf("0x")==0)return t.length>32?NaN:parseInt(t);if(t.length>15&&i.isDigitsOnly(t))return NaN;if(i.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);var e=parseFloat(t);return isNaN(e)||!isFinite(t)?NaN:e},i.isStringHasOperator=function(t){if(t.lastIndexOf("-")>0||t.lastIndexOf("+")>0)return!1;for(var e="*^/%",n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1},i.prepareStringToNumber=function(t){if(typeof t!="string"||!t)return t;var e=t.indexOf(",");return e>-1&&t.indexOf(",",e+1)<0?t.replace(",","."):t},i.getMaxLength=function(t,e){return t<0&&(t=e),t>0?t:null},i.getRemainingCharacterCounterText=function(t,e){if(!e||e<=0||!I.showMaxLengthIndicator)return"";var n=t?t.length:"0";return[n,e].join("/")},i.getNumberByIndex=function(t,e,n){if(t<0)return"";var r=1,o="",s=".",u=!0,d="A",y="",V=function(Y){if(!Y)return!1;for(var J=0;J<Y.length;J++)if(i.isCharDigit(Y[J]))return!0;return!1};if(e){y=e;for(var T=y.length-1,N=V(y),U=function(){return N&&!i.isCharDigit(y[T])||i.isCharNotLetterAndDigit(y[T])};T>=0&&U();)T--;var W="";for(T<y.length-1&&(W=y.substring(T+1),y=y.substring(0,T+1)),T=y.length-1;T>=0&&!(U()||(T--,!N)););d=y.substring(T+1),o=y.substring(0,T+1),parseInt(d)?r=parseInt(d):d.length==1&&(u=!1),(W||o)&&(s=W)}if(n>-1&&V(o)&&(o=this.getNumberByIndex(n,o)),u){for(var X=(t+r).toString();X.length<d.length;)X="0"+X;return o+X+s}return o+String.fromCharCode(d.charCodeAt(0)+t)+s},i.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!i.isCharDigit(t)},i.isCharDigit=function(t){return t>="0"&&t<="9"},i.isDigitsOnly=function(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(!i.isCharDigit(t[e]))return!1;return!0},i.getNumberFromStr=function(t,e){if(!this.isCharDigit(t[e]))return NaN;for(var n="";e<t.length&&this.isCharDigit(t[e]);)n+=t[e],e++;return n?this.getNumber(n):NaN},i.countDecimals=function(t){if(i.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.correctAfterPlusMinis=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.sumAnyValues=function(t,e){if(!i.isNumber(t)||!i.isNumber(e)){if(Array.isArray(t)&&Array.isArray(e))return[].concat(t).concat(e);if(Array.isArray(t)||Array.isArray(e)){var n=Array.isArray(t)?t:e,r=n===t?e:t;if(typeof r=="string"){var o=n.join(", ");return n===t?o+r:r+o}if(typeof r=="number"){for(var s=0,u=0;u<n.length;u++)typeof n[u]=="number"&&(s=i.correctAfterPlusMinis(s,n[u],s+n[u]));return i.correctAfterPlusMinis(s,r,s+r)}}return t+e}return typeof t=="string"||typeof e=="string"?t+e:i.correctAfterPlusMinis(t,e,t+e)},i.correctAfterMultiple=function(t,e,n){var r=i.countDecimals(t)+i.countDecimals(e);return r>0&&(n=parseFloat(n.toFixed(r))),n},i.convertArrayValueToObject=function(t,e,n){n===void 0&&(n=void 0);var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var s=void 0;Array.isArray(n)&&(s=i.findObjByPropValue(n,e,t[o])),s||(s={},s[e]=t[o]),r.push(s)}return r},i.findObjByPropValue=function(t,e,n){for(var r=0;r<t.length;r++)if(i.isTwoValueEquals(t[r][e],n))return t[r]},i.convertArrayObjectToValue=function(t,e){var n=new Array;if(!t||!Array.isArray(t))return n;for(var r=0;r<t.length;r++){var o=t[r]?t[r][e]:void 0;i.isValueEmpty(o)||n.push(o)}return n},i.convertDateToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())},i.convertDateTimeToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return this.convertDateToString(t)+" "+e(t.getHours())+":"+e(t.getMinutes())},i.convertValToQuestionVal=function(t,e){return t instanceof Date?e==="datetime-local"?i.convertDateTimeToString(t):i.convertDateToString(t):this.getUnbindValue(t)},i.compareVerions=function(t,e){if(!t&&!e)return 0;for(var n=t.split("."),r=e.split("."),o=n.length,s=r.length,u=0;u<o&&u<s;u++){var d=n[u],y=r[u];if(d.length===y.length){if(d!==y)return d<y?-1:1}else return d.length<y.length?-1:1}return o===s?0:o<s?-1:1},i.isUrlYoutubeVideo=function(t){if(!t)return!1;var e=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];t=t.toLowerCase(),t=t.replace(/^https?:\/\//,"");for(var n=0;n<e.length;n++)if(t.indexOf(e[n]+"/")===0)return!0;return!1},i}();String.prototype.format||(String.prototype.format=function(){var i=arguments;return this.replace(/{(\d+)}/g,function(t,e){return typeof i[e]<"u"?i[e]:t})});var w={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",deselectAllItemText:"Deselect all",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textNoDigitsAllow:"Numbers are not allowed.",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:`No entries yet.
-Click the button below to add a new entry.`,noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"},A={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(i){this.useEnglishNames=i},setupLocale:function(i){var t=i.localeCode;this.locales[t]=i.strings,this.localeNames[t]=i.nativeName,this.localeNamesInEnglish[t]=i.englishName,i.rtl!==void 0&&(this.localeDirections[t]=i.rtl)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(i){i==="cz"&&(i="cs"),this.currentLocaleValue=i},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(i){i==="cz"&&(i="cs"),this.defaultLocaleValue=i},getLocaleStrings:function(i){return this.locales[i]},getString:function(i,t){var e=this;t===void 0&&(t=null);var n=new Array,r=function(d){var y=e.locales[d];y&&n.push(y)},o=function(d){if(d){r(d);var y=d.indexOf("-");y<1||(d=d.substring(0,y),r(d))}};o(t),o(this.currentLocale),o(this.defaultLocale),this.defaultLocale!=="en"&&r("en");for(var s=0;s<n.length;s++){var u=n[s][i];if(u!==void 0)return u}return this.onGetExternalString(i,t)},getLocaleName:function(i,t){if(!i)return"";t===void 0&&(t=this.showNamesInEnglish);var e=t?this.localeNamesInEnglish:this.localeNames,n=t?this.localeNames:this.localeNamesInEnglish;return e[i]||n[i]||i},getLocales:function(i){var t=this;i===void 0&&(i=!1);var e=[];e.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var o in n)i&&o==this.defaultLocale||e.push(o);var s=function(u){return t.getLocaleName(u).toLowerCase()};return e.sort(function(u,d){var y=s(u),V=s(d);return y===V?0:y<V?-1:1}),e},onGetExternalString:function(i,t){}};function k(i,t){return t===void 0&&(t=null),A.getString(i,t)}function le(i){return A.getLocaleStrings(i)}function $(i){A.setupLocale(i)}var ie=w;A.locales.en=w,A.localeNames.en="english";var ce=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),We=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function be(i,t,e){var n=i.getLocalizableString(e);if(!n){var r=void 0;typeof t.localizable=="object"&&t.localizable.defaultStr&&(r=t.localizable.defaultStr),n=i.createLocalizableString(e,i,!0,r),typeof t.localizable=="object"&&typeof t.localizable.onGetTextCallback=="function"&&(n.onGetTextCallback=t.localizable.onGetTextCallback)}}function pe(i,t,e){be(i,t,e);var n=i.getLocalizableStringText(e);if(n)return n;if(typeof t.localizable=="object"&&t.localizable.defaultStr){var r=i.getLocale?i.getLocale():"";return k(t.localizable.defaultStr,r)}return""}function x(i){return i===void 0&&(i={}),function(t,e){var n=function(r,o){if(o&&typeof o=="object"&&o.type===De.ComputedUpdaterType){fe.startCollectDependencies(function(){return r[e]=o.updater()},r,e);var s=o.updater(),u=fe.finishCollectDependencies();return o.setDependencies(u),r.dependencies[e]&&r.dependencies[e].dispose(),r.dependencies[e]=o,s}return o};!i||!i.localizable?Object.defineProperty(t,e,{get:function(){var r=null;return i&&(typeof i.getDefaultValue=="function"&&(r=i.getDefaultValue(this)),i.defaultValue!==void 0&&(r=i.defaultValue)),this.getPropertyValue(e,r)},set:function(r){var o=n(this,r),s=this.getPropertyValue(e);o!==s&&(this.setPropertyValue(e,o),i&&i.onSet&&i.onSet(o,this,s))}}):(Object.defineProperty(t,e,{get:function(){return pe(this,i,e)},set:function(r){be(this,i,e);var o=n(this,r);this.setLocalizableStringText(e,o),i&&i.onSet&&i.onSet(o,this)}}),Object.defineProperty(t,typeof i.localizable=="object"&&i.localizable.name?i.localizable.name:"loc"+e.charAt(0).toUpperCase()+e.slice(1),{get:function(){return be(this,i,e),this.getLocalizableString(e)}}))}}function we(i,t,e){i.ensureArray(e,function(n,r){var o=t?t.onPush:null;o&&o(n,r,i)},function(n,r){var o=t?t.onRemove:null;o&&o(n,r,i)})}function me(i){return function(t,e){Object.defineProperty(t,e,{get:function(){return we(this,i,e),this.getPropertyValue(e)},set:function(n){we(this,i,e);var r=this.getPropertyValue(e);n!==r&&(r?r.splice.apply(r,We([0,r.length],n||[])):this.setPropertyValue(e,n),i&&i.onSet&&i.onSet(n,this))}})}}var lt=function(){function i(t,e,n){n===void 0&&(n=!1),this.name=e,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=n,this.idValue=i.Index++}return Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(t){t==="itemvalues"&&(t="itemvalue[]"),t==="textitems"&&(t="textitem[]"),this.typeValue=t,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(t){t!==this.isRequired&&(this.isRequiredValue=t,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(t){this.isUniqueValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(t){this.uniquePropertyValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.getDefaultValue=function(t){var e=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return i.getItemValuesDefaultValue&&j.isDescendantOf(this.className,"itemvalue")&&(e=i.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),e},Object.defineProperty(i.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(t){this.defaultValueValue=t},enumerable:!1,configurable:!0}),i.prototype.isDefaultValue=function(t){return this.isDefaultValueByObj(void 0,t)},i.prototype.isDefaultValueByObj=function(t,e){if(this.isLocalizable)return e==null;var n=this.getDefaultValue(t);return h.isValueEmpty(n)?e===!1&&(this.type=="boolean"||this.type=="switch")&&!this.defaultValueFunc||e===""||h.isValueEmpty(e):h.isTwoValueEquals(e,n,!1,!0,!1)},i.prototype.getSerializableValue=function(t,e){if(this.onSerializeValue)return this.onSerializeValue(t);var n=this.getValue(t);if(n!=null&&!(!e&&this.isDefaultValueByObj(t,n)))return n},i.prototype.getValue=function(t){return this.onGetValue?(t=this.getOriginalObj(t),this.onGetValue(t)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].getJson():t[this.name]},i.prototype.getPropertyValue=function(t){return this.isLocalizable?t[this.serializationProperty]?t[this.serializationProperty].text:null:this.getValue(t)},Object.defineProperty(i.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.settingValue=function(t,e){return!this.onSettingValue||t.isLoadingFromJson?e:this.onSettingValue(t,e)},i.prototype.setValue=function(t,e,n){this.onSetValue?(t=this.getOriginalObj(t),this.onSetValue(t,e,n)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].setJson(e,!0):(e&&typeof e=="string"&&(this.type=="number"&&(e=parseInt(e)),(this.type=="boolean"||this.type=="switch")&&(e=e.toLowerCase()==="true")),t[this.name]=e)},i.prototype.validateValue=function(t){var e=this.choices;return!Array.isArray(e)||e.length===0?!0:e.indexOf(t)>-1},i.prototype.getObjType=function(t){return this.classNamePart?t.replace(this.classNamePart,""):t},Object.defineProperty(i.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),i.prototype.getChoices=function(t,e){return e===void 0&&(e=null),this.choicesValue!=null?this.choicesValue:this.choicesfunc!=null?this.choicesfunc(t,e):null},i.prototype.setChoices=function(t,e){e===void 0&&(e=null),this.choicesValue=t,this.choicesfunc=e},i.prototype.getBaseValue=function(){return this.baseValue?typeof this.baseValue=="function"?this.baseValue():this.baseValue:""},i.prototype.setBaseValue=function(t){this.baseValue=t},Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.readOnlyValue!=null?this.readOnlyValue:!1},set:function(t){this.readOnlyValue=t},enumerable:!1,configurable:!0}),i.prototype.isEnable=function(t){return this.readOnly?!1:!t||!this.enableIf?!0:this.enableIf(this.getOriginalObj(t))},i.prototype.isVisible=function(t,e){e===void 0&&(e=null);var n=!this.layout||!t||this.layout===t;return!this.visible||!n?!1:this.visibleIf&&e?this.visibleIf(this.getOriginalObj(e)):!0},i.prototype.getOriginalObj=function(t){if(t&&t.getOriginalObj){var e=t.getOriginalObj();if(e&&j.findProperty(e.getType(),this.name))return e}return t},Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue!=null?this.visibleValue:!0},set:function(t){this.visibleValue=t},enumerable:!1,configurable:!0}),i.prototype.isAvailableInVersion=function(t){return this.alternativeName||this.oldName?!0:this.isAvailableInVersionCore(t)},i.prototype.getSerializedName=function(t){return this.alternativeName?this.isAvailableInVersionCore(t)?this.name:this.alternativeName||this.oldName:this.name},i.prototype.getSerializedProperty=function(t,e){return!this.oldName||this.isAvailableInVersionCore(e)?this:!t||!t.getType?null:j.findProperty(t.getType(),this.oldName)},i.prototype.isAvailableInVersionCore=function(t){return!t||!this.version?!0:h.compareVerions(this.version,t)<=0},Object.defineProperty(i.prototype,"isLocalizable",{get:function(){return this.isLocalizableValue!=null?this.isLocalizableValue:!1},set:function(t){this.isLocalizableValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(t){this.dataListValue=t},enumerable:!1,configurable:!0}),i.prototype.mergeWith=function(t){for(var e=i.mergableValues,n=0;n<e.length;n++)this.mergeValue(t,e[n])},i.prototype.addDependedProperty=function(t){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(t)<0&&this.dependedProperties.push(t)},i.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},i.prototype.schemaType=function(){if(this.className!=="choicesByUrl")return this.className==="string"?this.className:this.className||this.baseClassName?"array":this.type=="switch"?"boolean":this.type=="boolean"||this.type=="number"?this.type:"string"},i.prototype.schemaRef=function(){if(this.className)return this.className},i.prototype.mergeValue=function(t,e){this[e]==null&&t[e]!=null&&(this[e]=t[e])},i.Index=1,i.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],i}(),Fe=function(){function i(){}return i.addProperty=function(t,e){t=t.toLowerCase();var n=i.properties;n[t]||(n[t]=[]),n[t].push(e)},i.removeProperty=function(t,e){t=t.toLowerCase();var n=i.properties;if(n[t]){for(var r=n[t],o=0;o<r.length;o++)if(r[o].name==e){n[t].splice(o,1);break}}},i.removeAllProperties=function(t){t=t.toLowerCase(),delete i.properties[t]},i.addClass=function(t,e){t=t.toLowerCase(),e&&(e=e.toLowerCase()),i.parentClasses[t]=e},i.getProperties=function(t){t=t.toLowerCase();for(var e=[],n=i.properties;t;){var r=n[t];if(r)for(var o=0;o<r.length;o++)e.push(r[o]);t=i.parentClasses[t]}return e},i.createProperties=function(t){!t||!t.getType||i.createPropertiesCore(t,t.getType())},i.createPropertiesCore=function(t,e){var n=i.properties;n[e]&&i.createPropertiesInObj(t,n[e]);var r=i.parentClasses[e];r&&i.createPropertiesCore(t,r)},i.createPropertiesInObj=function(t,e){for(var n=0;n<e.length;n++)i.createPropertyInObj(t,e[n])},i.createPropertyInObj=function(t,e){if(!i.checkIsPropertyExists(t,e.name)&&!(e.serializationProperty&&i.checkIsPropertyExists(t,e.serializationProperty))){if(e.isLocalizable&&e.serializationProperty&&t.createCustomLocalizableObj){var n=t.createCustomLocalizableObj(e.name);n.defaultValue=e.getDefaultValue(t);var r={get:function(){return t.getLocalizableString(e.name)}};Object.defineProperty(t,e.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(e.name)},set:function(d){t.setLocalizableStringText(e.name,d)}};Object.defineProperty(t,e.name,o)}else{var s=e.isArray||e.type==="multiplevalues";if(typeof t.createNewArray=="function"&&(j.isDescendantOf(e.className,"itemvalue")?(t.createNewArray(e.name,function(d){d.locOwner=t,d.ownerPropertyName=e.name}),s=!0):s&&t.createNewArray(e.name),s)){var u=e.getDefaultValue(t);Array.isArray(u)&&t.setPropertyValue(e.name,u)}if(t.getPropertyValue&&t.setPropertyValue){var o={get:function(){return e.onGetValue?e.onGetValue(t):t.getPropertyValue(e.name,void 0)},set:function(y){e.onSetValue?e.onSetValue(t,y,null):t.setPropertyValue(e.name,y)}};Object.defineProperty(t,e.name,o)}}(e.type==="condition"||e.type==="expression")&&e.onExecuteExpression&&t.addExpressionProperty(e.name,e.onExecuteExpression)}},i.checkIsPropertyExists=function(t,e){return t.hasOwnProperty(e)||t[e]},i.properties={},i.parentClasses={},i}(),ge=function(){function i(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),this.name=t,this.creator=n,this.parentName=r,t=t.toLowerCase(),this.isCustomValue=!n&&t!=="survey",this.parentName&&(this.parentName=this.parentName.toLowerCase(),Fe.addClass(t,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<e.length;o++)this.createProperty(e[o],this.isCustom)}return i.prototype.find=function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].name==t)return this.properties[e];return null},i.prototype.findProperty=function(t){return this.fillAllProperties(),this.hashProperties[t]},i.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},i.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var t=this.getAllProperties(),e=0;e<t.length;e++)t[e].isRequired&&this.requiredProperties.push(t[e]);return this.requiredProperties},i.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var t=j.getChildrenClasses(this.name),e=0;e<t.length;e++)t[e].resetAllProperties()},Object.defineProperty(i.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),i.prototype.fillAllProperties=function(){var t=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var e={};this.properties.forEach(function(o){return e[o.name]=o});var n=this.parentName?j.findClass(this.parentName):null;if(n){var r=n.getAllProperties();r.forEach(function(o){var s=e[o.name];s?(s.mergeWith(o),t.addPropCore(s)):t.addPropCore(o)})}this.properties.forEach(function(o){t.hashProperties[o.name]||t.addPropCore(o)})}},i.prototype.addPropCore=function(t){this.allProperties.push(t),this.hashProperties[t.name]=t,t.alternativeName&&(this.hashProperties[t.alternativeName]=t)},i.prototype.isOverridedProp=function(t){return!!this.parentName&&!!j.findProperty(this.parentName,t)},i.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var t=0;t<this.properties.length;t++)this.properties[t].isCustom=!1;Fe.removeAllProperties(this.name),this.makeParentRegularClass()}},i.prototype.makeParentRegularClass=function(){if(this.parentName){var t=j.findClass(this.parentName);t&&t.hasRegularChildClass()}},i.prototype.createProperty=function(t,e){e===void 0&&(e=!1);var n=typeof t=="string"?t:t.name;if(n){var r=null,o=n.indexOf(i.typeSymbol);o>-1&&(r=n.substring(o+1),n=n.substring(0,o));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var u=new lt(this,n,s);if(r&&(u.type=r),typeof t=="object"){if(t.type&&(u.type=t.type),t.default!==void 0&&(u.defaultValue=t.default),t.defaultFunc!==void 0&&(u.defaultValueFunc=t.defaultFunc),h.isValueEmpty(t.isSerializable)||(u.isSerializable=t.isSerializable),h.isValueEmpty(t.isLightSerializable)||(u.isLightSerializable=t.isLightSerializable),h.isValueEmpty(t.maxLength)||(u.maxLength=t.maxLength),t.displayName!==void 0&&(u.displayName=t.displayName),h.isValueEmpty(t.category)||(u.category=t.category),h.isValueEmpty(t.categoryIndex)||(u.categoryIndex=t.categoryIndex),h.isValueEmpty(t.nextToProperty)||(u.nextToProperty=t.nextToProperty),h.isValueEmpty(t.overridingProperty)||(u.overridingProperty=t.overridingProperty),h.isValueEmpty(t.visibleIndex)||(u.visibleIndex=t.visibleIndex),h.isValueEmpty(t.showMode)||(u.showMode=t.showMode),h.isValueEmpty(t.maxValue)||(u.maxValue=t.maxValue),h.isValueEmpty(t.minValue)||(u.minValue=t.minValue),h.isValueEmpty(t.dataList)||(u.dataList=t.dataList),h.isValueEmpty(t.isDynamicChoices)||(u.isDynamicChoices=t.isDynamicChoices),h.isValueEmpty(t.isBindable)||(u.isBindable=t.isBindable),h.isValueEmpty(t.isUnique)||(u.isUnique=t.isUnique),h.isValueEmpty(t.uniqueProperty)||(u.uniquePropertyName=t.uniqueProperty),h.isValueEmpty(t.isArray)||(u.isArray=t.isArray),(t.visible===!0||t.visible===!1)&&(u.visible=t.visible),t.visibleIf&&(u.visibleIf=t.visibleIf),t.enableIf&&(u.enableIf=t.enableIf),t.onExecuteExpression&&(u.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(u.onPropertyEditorUpdate=t.onPropertyEditorUpdate),t.readOnly===!0&&(u.readOnly=!0),t.availableInMatrixColumn===!0&&(u.availableInMatrixColumn=!0),t.choices){var d=typeof t.choices=="function"?t.choices:null,y=typeof t.choices!="function"?t.choices:null;u.setChoices(y,d)}t.baseValue&&u.setBaseValue(t.baseValue),t.onSerializeValue&&(u.onSerializeValue=t.onSerializeValue),t.onGetValue&&(u.onGetValue=t.onGetValue),t.onSetValue&&(u.onSetValue=t.onSetValue),t.onSettingValue&&(u.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+u.name),t.serializationProperty&&(u.serializationProperty=t.serializationProperty,u.serializationProperty&&u.serializationProperty.indexOf("loc")==0&&(u.isLocalizable=!0)),t.isLocalizable&&(u.isLocalizable=t.isLocalizable),t.className&&(u.className=t.className),t.baseClassName&&(u.baseClassName=t.baseClassName,u.isArray=!0),u.isArray===!0&&(u.isArray=!0),t.classNamePart&&(u.classNamePart=t.classNamePart),t.alternativeName&&(u.alternativeName=t.alternativeName),t.oldName&&(u.oldName=t.oldName),t.layout&&(u.layout=t.layout),t.version&&(u.version=t.version),t.dependsOn&&this.addDependsOnProperties(u,t.dependsOn)}return this.properties.push(u),e&&!this.isOverridedProp(u.name)&&(u.isCustom=!0,Fe.addProperty(this.name,u)),u}},i.prototype.addDependsOnProperties=function(t,e){var n=Array.isArray(e)?e:[e];t.dependsOn=n;for(var r=0;r<n.length;r++)this.addDependsOnProperty(t,n[r])},i.prototype.addDependsOnProperty=function(t,e){var n=this.find(e);n||(n=j.findProperty(this.parentName,e)),n&&n.addDependedProperty(t.name)},i.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==i.requiredSymbol},i.prototype.getPropertyName=function(t){return this.getIsPropertyNameRequired(t)&&(t=t.slice(1)),t},i.requiredSymbol="!",i.typeSymbol=":",i}(),en=function(){function i(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return i.prototype.getObjPropertyValue=function(t,e){if(this.isObjWrapper(t)&&this.isNeedUseObjWrapper(t,e)){var n=t.getOriginalObj(),r=j.findProperty(n.getType(),e);if(r)return this.getObjPropertyValueCore(n,r)}var o=j.findProperty(t.getType(),e);return o?this.getObjPropertyValueCore(t,o):t[e]},i.prototype.setObjPropertyValue=function(t,e,n){if(t[e]!==n)if(t[e]&&t[e].setJson)t[e].setJson(n,!0);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}t[e]=n}},i.prototype.getObjPropertyValueCore=function(t,e){if(!e.isSerializable)return t[e.name];if(e.isLocalizable){if(e.isArray)return t[e.name];if(e.serializationProperty)return t[e.serializationProperty].text}return t.getPropertyValue(e.name)},i.prototype.isObjWrapper=function(t){return!!t.getOriginalObj&&!!t.getOriginalObj()},i.prototype.isNeedUseObjWrapper=function(t,e){if(!t.getDynamicProperties)return!0;var n=t.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===e)return!0;return!1},i.prototype.addClass=function(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),t=t.toLowerCase();var o=new ge(t,e,n,r);if(this.classes[t]=o,r){r=r.toLowerCase();var s=this.childrenClasses[r];s||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)}return o},i.prototype.removeClass=function(t){var e=this.findClass(t);if(e&&(delete this.classes[e.name],e.parentName)){var n=this.childrenClasses[e.parentName].indexOf(e);n>-1&&this.childrenClasses[e.parentName].splice(n,1)}},i.prototype.overrideClassCreatore=function(t,e){this.overrideClassCreator(t,e)},i.prototype.overrideClassCreator=function(t,e){t=t.toLowerCase();var n=this.findClass(t);n&&(n.creator=e)},i.prototype.getProperties=function(t){var e=this.findClass(t);return e?e.getAllProperties():[]},i.prototype.getPropertiesByObj=function(t){var e=t&&t.getType?t.getType():void 0;if(!e)return[];for(var n=this.getProperties(e),r=this.getDynamicPropertiesByObj(t),o=r.length-1;o>=0;o--)this.findProperty(e,r[o].name)&&r.splice(o,1);return r.length===0?n:[].concat(n).concat(r)},i.prototype.addDynamicPropertiesIntoObj=function(t,e,n){var r=this;n.forEach(function(o){r.addDynamicPropertyIntoObj(t,e,o.name,!1),o.serializationProperty&&r.addDynamicPropertyIntoObj(t,e,o.serializationProperty,!0),o.alternativeName&&r.addDynamicPropertyIntoObj(t,e,o.alternativeName,!1)})},i.prototype.addDynamicPropertyIntoObj=function(t,e,n,r){var o={configurable:!0,get:function(){return e[n]}};r||(o.set=function(s){e[n]=s}),Object.defineProperty(t,n,o)},i.prototype.getDynamicPropertiesByObj=function(t,e){if(e===void 0&&(e=null),!t||!t.getType)return[];if(t.getDynamicProperties)return t.getDynamicProperties();if(!t.getDynamicType&&!e)return[];var n=e||t.getDynamicType();return this.getDynamicPropertiesByTypes(t.getType(),n)},i.prototype.getDynamicPropertiesByTypes=function(t,e,n){if(!e)return[];var r=e+"-"+t;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(e);if(!o||o.length==0)return[];for(var s={},u=this.getProperties(t),d=0;d<u.length;d++)s[u[d].name]=u[d];var y=[];n||(n=[]);for(var V=0;V<o.length;V++){var T=o[V];n.indexOf(T.name)<0&&this.canAddDybamicProp(T,s[T.name])&&y.push(T)}return this.dynamicPropsCache[r]=y,y},i.prototype.canAddDybamicProp=function(t,e){if(!e)return!0;if(t===e)return!1;for(var n=t.classInfo;n&&n.parentName;){if(t=this.findProperty(n.parentName,t.name),t&&t===e)return!0;n=t?t.classInfo:void 0}return!1},i.prototype.hasOriginalProperty=function(t,e){return!!this.getOriginalProperty(t,e)},i.prototype.getOriginalProperty=function(t,e){var n=this.findProperty(t.getType(),e);return n||(this.isObjWrapper(t)?this.findProperty(t.getOriginalObj().getType(),e):null)},i.prototype.getProperty=function(t,e){var n=this.findProperty(t,e);if(!n)return n;var r=this.findClass(t);if(n.classInfo===r)return n;var o=new lt(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},i.prototype.findProperty=function(t,e){var n=this.findClass(t);return n?n.findProperty(e):null},i.prototype.findProperties=function(t,e){var n=new Array,r=this.findClass(t);if(!r)return n;for(var o=0;o<e.length;o++){var s=r.findProperty(e[o]);s&&n.push(s)}return n},i.prototype.getAllPropertiesByName=function(t){for(var e=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),s=0;s<o.properties.length;s++)if(o.properties[s].name==t){e.push(o.properties[s]);break}return e},i.prototype.getAllClasses=function(){var t=new Array;for(var e in this.classes)t.push(e);return t},i.prototype.createClass=function(t,e){e===void 0&&(e=void 0),t=t.toLowerCase();var n=this.findClass(t);if(!n)return null;if(n.creator)return n.creator(e);for(var r=n.parentName;r;){if(n=this.findClass(r),!n)return null;if(r=n.parentName,n.creator)return this.createCustomType(t,n.creator,e)}return null},i.prototype.createCustomType=function(t,e,n){n===void 0&&(n=void 0),t=t.toLowerCase();var r=e(n),o=t,s=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return s},Fe.createProperties(r),r},i.prototype.getChildrenClasses=function(t,e){e===void 0&&(e=!1),t=t.toLowerCase();var n=[];return this.fillChildrenClasses(t,e,n),n},i.prototype.getRequiredProperties=function(t){var e=this.findClass(t);if(!e)return[];for(var n=e.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},i.prototype.addProperties=function(t,e){t=t.toLowerCase();for(var n=this.findClass(t),r=0;r<e.length;r++)this.addCustomPropertyCore(n,e[r])},i.prototype.addProperty=function(t,e){return this.addCustomPropertyCore(this.findClass(t),e)},i.prototype.addCustomPropertyCore=function(t,e){if(!t)return null;var n=t.createProperty(e,!0);return n&&(this.clearDynamicPropsCache(t),t.resetAllProperties()),n},i.prototype.removeProperty=function(t,e){var n=this.findClass(t);if(!n)return!1;var r=n.find(e);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),Fe.removeProperty(n.name,e))},i.prototype.clearDynamicPropsCache=function(t){this.dynamicPropsCache={}},i.prototype.removePropertyFromClass=function(t,e){var n=t.properties.indexOf(e);n<0||t.properties.splice(n,1)},i.prototype.fillChildrenClasses=function(t,e,n){var r=this.childrenClasses[t];if(r)for(var o=0;o<r.length;o++)(!e||r[o].creator)&&n.push(r[o]),this.fillChildrenClasses(r[o].name,e,n)},i.prototype.findClass=function(t){t=t.toLowerCase();var e=this.classes[t];if(!e){var n=this.alternativeNames[t];if(n&&n!=t)return this.findClass(n)}return e},i.prototype.isDescendantOf=function(t,e){if(!t||!e)return!1;t=t.toLowerCase(),e=e.toLowerCase();var n=this.findClass(t);if(!n)return!1;var r=n;do{if(r.name===e)return!0;r=this.classes[r.parentName]}while(r);return!1},i.prototype.addAlterNativeClassName=function(t,e){this.alternativeNames[e.toLowerCase()]=t.toLowerCase()},i.prototype.generateSchema=function(t){t===void 0&&(t=void 0),t||(t="survey");var e=this.findClass(t);if(!e)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(e,n,n.definitions,!0),n},i.prototype.generateLocStrClass=function(){var t={},e=j.findProperty("survey","locale");if(e){var n=e.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach(function(r){r&&(t[r]={type:"string"})}))}return{$id:"locstring",type:"object",properties:t}},i.prototype.generateSchemaProperties=function(t,e,n,r){if(t){var o=e.properties,s=[];(t.name==="question"||t.name==="panel")&&(o.type={type:"string"},s.push("type"));for(var u=0;u<t.properties.length;u++){var d=t.properties[u];t.parentName&&j.findProperty(t.parentName,d.name)||(o[d.name]=this.generateSchemaProperty(d,n,r),d.isRequired&&s.push(d.name))}s.length>0&&(e.required=s)}},i.prototype.generateSchemaProperty=function(t,e,n){if(t.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=t.schemaType(),o=t.schemaRef(),s={};if(r&&(s.type=r),t.hasChoices){var u=t.getChoices(null);Array.isArray(u)&&u.length>0&&(s.enum=this.getChoicesValues(u))}if(o&&(r==="array"?t.className==="string"?s.items={type:t.className}:s.items={$ref:this.getChemeRefName(t.className,n)}:s.$ref=this.getChemeRefName(o,n),this.generateChemaClass(t.className,e,!1)),t.baseClassName){var d=this.getChildrenClasses(t.baseClassName,!0);t.baseClassName=="question"&&d.push(this.findClass("panel")),s.items={anyOf:[]};for(var y=0;y<d.length;y++){var V=d[y].name;s.items.anyOf.push({$ref:this.getChemeRefName(V,n)}),this.generateChemaClass(V,e,!1)}}return s},i.prototype.getChemeRefName=function(t,e){return e?"#/definitions/"+t:t},i.prototype.generateChemaClass=function(t,e,n){if(!e[t]){var r=this.findClass(t);if(r){var o=!!r.parentName&&r.parentName!="base";o&&this.generateChemaClass(r.parentName,e,n);var s={type:"object",$id:t};e[t]=s;var u={properties:{}};this.generateSchemaProperties(r,u,e,n),o?s.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:u.properties}]:s.properties=u.properties,Array.isArray(u.required)&&(s.required=u.required)}}},i.prototype.getChoicesValues=function(t){var e=new Array;return t.forEach(function(n){typeof n=="object"&&n.value!==void 0?e.push(n.value):e.push(n)}),e},i}(),Ke=function(){function i(t,e){this.type=t,this.message=e,this.description="",this.at=-1,this.end=-1}return i.prototype.getFullDescription=function(){return this.message+(this.description?`
-`+this.description:"")},i}(),vt=function(i){ce(t,i);function t(e,n){var r=i.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+e+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ke),$e=function(i){ce(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.baseClassName=e,o.type=n,o.message=r,o}return t}(Ke),ut=function(i){ce(t,i);function t(e,n){var r=i.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}($e),ht=function(i){ce(t,i);function t(e,n){var r=i.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}($e),Qe=function(i){ce(t,i);function t(e,n){var r=i.call(this,"requiredproperty","The property '"+e+"' is required in class '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ke),bt=function(i){ce(t,i);function t(e,n){var r=i.call(this,"arrayproperty","The property '"+e+"' should be an array in '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ke),Rt=function(i){ce(t,i);function t(e,n){var r=i.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+e.name+"'.")||this;return r.property=e,r.value=n,r}return t}(Ke),je=function(){function i(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(i,"metaData",{get:function(){return i.metaDataValue},enumerable:!1,configurable:!0}),i.prototype.toJsonObject=function(t,e){return this.toJsonObjectCore(t,null,e)},i.prototype.toObject=function(t,e,n){this.toObjectCore(t,e,n);var r=this.getRequiredError(e,t);r&&this.addNewError(r,t,e)},i.prototype.toObjectCore=function(t,e,n){if(t){var r=null,o=void 0,s=!0;if(e.getType&&(o=e.getType(),r=j.getProperties(o),s=!!o&&!j.isDescendantOf(o,"itemvalue")),!!r){e.startLoadingFromJson&&e.startLoadingFromJson(t),r=this.addDynamicProperties(e,t,r),this.options=n;var u={};u[i.typePropertyName]=!0;var d={};for(var y in t)this.setPropertyValueToObj(t,e,y,r,u,d,o,s,n);this.options=void 0,e.endLoadingFromJson&&e.endLoadingFromJson()}}},i.prototype.setPropertyValueToObj=function(t,e,n,r,o,s,u,d,y){var V=this;if(!o[n]){if(n===i.positionPropertyName){e[n]=t[n];return}var T=this.findProperty(r,n);if(!T&&d&&this.addNewError(new vt(n.toString(),u),t,e),T){var N=T.dependsOn;Array.isArray(N)&&(s[n]=!0,N.forEach(function(U){s[U]||V.setPropertyValueToObj(t,e,U,r,o,s,u,!1,y)})),this.valueToObj(t[n],e,T,t,y),o[n]=!0}}},i.prototype.toJsonObjectCore=function(t,e,n){if(!t||!t.getType)return t;if(!t.isSurvey&&typeof t.getData=="function")return t.getData();var r={};e!=null&&!e.className&&(r[i.typePropertyName]=e.getObjType(t.getType()));var o=n===!0;return(!n||n===!0)&&(n={}),o&&(n.storeDefaults=o),this.propertiesToJson(t,j.getProperties(t.getType()),r,n),this.propertiesToJson(t,this.getDynamicProperties(t),r,n),r},i.prototype.getDynamicProperties=function(t){return j.getDynamicPropertiesByObj(t)},i.prototype.addDynamicProperties=function(t,e,n){if(!t.getDynamicPropertyName&&!t.getDynamicProperties)return n;if(t.getDynamicPropertyName){var r=t.getDynamicPropertyName();if(!r)return n;r&&e[r]&&(t[r]=e[r])}var o=this.getDynamicProperties(t);return o.length===0?n:[].concat(n).concat(o)},i.prototype.propertiesToJson=function(t,e,n,r){for(var o=0;o<e.length;o++)this.valueToJson(t,n,e[o],r)},i.prototype.valueToJson=function(t,e,n,r){r||(r={}),!(n.isSerializable===!1||n.isLightSerializable===!1&&this.lightSerializing)&&(r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(t,e,n,r))},i.prototype.valueToJsonCore=function(t,e,n,r){var o=n.getSerializedProperty(t,r.version);if(o&&o!==n){this.valueToJsonCore(t,e,o,r);return}var s=n.getSerializableValue(t,r.storeDefaults);if(s!==void 0){if(this.isValueArray(s)){for(var u=[],d=0;d<s.length;d++)u.push(this.toJsonObjectCore(s[d],n,r));s=u.length>0?u:null}else s=this.toJsonObjectCore(s,n,r);if(s!=null){var y=n.getSerializedName(r.version),V=typeof t.getPropertyValue=="function"&&t.getPropertyValue(y,null)!==null;(r.storeDefaults&&V||!n.isDefaultValueByObj(t,s))&&(!j.onSerializingProperty||!j.onSerializingProperty(t,n,s,e))&&(e[y]=this.removePosOnValueToJson(n,s))}}},i.prototype.valueToObj=function(t,e,n,r,o){if(t!=null){if(this.removePos(n,t),n!=null&&n.hasToUseSetValue){n.setValue(e,t,this);return}if(n.isArray&&!Array.isArray(t)&&t){t=[t];var s=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new bt(s,e.getType()),r||t,e)}if(this.isValueArray(t)){this.valueToArray(t,e,n.name,n,o);return}var u=this.createNewObj(t,n);u.newObj&&(this.toObjectCore(t,u.newObj,o),t=u.newObj),u.error||(n!=null?(n.setValue(e,t,this),o&&o.validatePropertyValues&&(n.validateValue(t)||this.addNewError(new Rt(n,t),r,e))):e[n.name]=t)}},i.prototype.removePosOnValueToJson=function(t,e){return!t.isCustom||!e||this.removePosFromObj(e),e},i.prototype.removePos=function(t,e){!t||!t.type||t.type.indexOf("value")<0||this.removePosFromObj(e)},i.prototype.removePosFromObj=function(t){if(!(!t||typeof t.getType=="function")){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.removePosFromObj(t[e]);if(typeof t=="object"){t[i.positionPropertyName]&&delete t[i.positionPropertyName];for(var n in t)this.removePosFromObj(t[n])}}},i.prototype.isValueArray=function(t){return t&&Array.isArray(t)},i.prototype.createNewObj=function(t,e){var n={newObj:null,error:null},r=this.getClassNameForNewObj(t,e);return n.newObj=r?j.createClass(r,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,e,r),n},i.prototype.getClassNameForNewObj=function(t,e){var n=e!=null&&e.className?e.className:void 0;if(n||(n=t[i.typePropertyName]),!n)return n;n=n.toLowerCase();var r=e.classNamePart;return r&&n.indexOf(r)<0&&(n+=r),n},i.prototype.checkNewObjectOnErrors=function(t,e,n,r){var o=null;return t?o=this.getRequiredError(t,e):n.baseClassName&&(r?o=new ht(n.name,n.baseClassName):o=new ut(n.name,n.baseClassName)),o&&this.addNewError(o,e,t),o},i.prototype.getRequiredError=function(t,e){if(!t.getType||typeof t.getData=="function")return null;var n=j.findClass(t.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var s=r[o];if(h.isValueEmpty(s.defaultValue)&&!e[s.name])return new Qe(s.name,t.getType())}return null},i.prototype.addNewError=function(t,e,n){if(t.jsonObj=e,t.element=n,this.errors.push(t),!!e){var r=e[i.positionPropertyName];r&&(t.at=r.start,t.end=r.end)}},i.prototype.valueToArray=function(t,e,n,r,o){if(!(e[n]&&!this.isValueArray(e[n]))){e[n]&&t.length>0&&e[n].splice(0,e[n].length);var s=e[n]?e[n]:[];this.addValuesIntoArray(t,s,r,o),e[n]||(e[n]=s)}},i.prototype.addValuesIntoArray=function(t,e,n,r){for(var o=0;o<t.length;o++){var s=this.createNewObj(t[o],n);s.newObj?(t[o].name&&(s.newObj.name=t[o].name),t[o].valueName&&(s.newObj.valueName=t[o].valueName.toString()),e.push(s.newObj),this.toObjectCore(t[o],s.newObj,r)):s.error||e.push(t[o])}},i.prototype.findProperty=function(t,e){if(!t)return null;for(var n=0;n<t.length;n++){var r=t[n];if(r.name==e||r.alternativeName==e)return r}return null},i.typePropertyName="type",i.positionPropertyName="pos",i.metaDataValue=new en,i}(),j=je.metaData,wn="@survey",Re=function(){function i(){this.values=null,this.properties=null,this.asyncValues={}}return i.prototype.getFirstName=function(t,e){if(e===void 0&&(e=null),!t)return t;var n="";if(e&&(n=this.getFirstPropertyName(t,e),n))return n;for(var r=0;r<t.length;r++){var o=t[r];if(o=="."||o=="[")break;n+=o}return n},i.prototype.hasValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.hasValue},i.prototype.getValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.value},i.prototype.setValue=function(t,e,n){if(e){var r=this.getNonNestedObject(t,e,!0);r&&(t=r.value,e=r.text,t&&e&&(t[e]=n))}},i.prototype.getValueInfo=function(t){if(t.path){t.value=this.getValueFromPath(t.path,this.values),t.hasValue=t.value!==null&&!h.isValueEmpty(t.value),!t.hasValue&&t.path.length>1&&t.path[t.path.length-1]=="length"&&(t.hasValue=!0,t.value=0);return}var e=this.getValueCore(t.name,this.values);t.value=e.value,t.hasValue=e.hasValue,t.path=e.hasValue?e.path:null,t.sctrictCompare=e.sctrictCompare},i.prototype.isAnyKeyChanged=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=r.toLowerCase();if(t.hasOwnProperty(r)||r!==o&&t.hasOwnProperty(o))return!0;var s=this.getFirstName(r);if(t.hasOwnProperty(s)){if(r===s)return!0;var u=t[s];if(u!=null){if(!u.hasOwnProperty("oldValue")||!u.hasOwnProperty("newValue"))return!0;var d={};d[s]=u.oldValue;var y=this.getValue(r,d);d[s]=u.newValue;var V=this.getValue(r,d);if(!h.isTwoValueEquals(y,V,!1,!1,!1))return!0}}}}return!1},i.prototype.getValueFromPath=function(t,e){if(t.length===2&&t[0]===wn)return this.getValueFromSurvey(t[1]);for(var n=0;e&&n<t.length;){var r=t[n];if(h.isNumber(r)&&Array.isArray(e)&&r>=e.length)return null;e=e[r],n++}return e},i.prototype.getValueCore=function(t,e){var n=this.getQuestionDirectly(t);if(n)return{hasValue:!0,value:n.value,path:[t],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(t,e);if(t&&!r.hasValue){var o=this.getValueFromSurvey(t);o!==void 0&&(r.hasValue=!0,r.value=o,r.path=[wn,t])}return r},i.prototype.getQuestionDirectly=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(t)},i.prototype.getValueFromSurvey=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(t.toLocaleLowerCase())},i.prototype.getValueFromValues=function(t,e){var n={hasValue:!1,value:null,path:null},r=e;if(!r&&r!==0&&r!==!1)return n;t&&t.lastIndexOf(".length")>-1&&t.lastIndexOf(".length")===t.length-7&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(r,t,!1);return o&&(n.path=o.path,n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!h.isValueEmpty(n.value)),n},i.prototype.getNonNestedObject=function(t,e,n){for(var r=new Array,o=0,s=this.getNonNestedObjectCore(t,e,n,r);!s&&o<r.length;)o=r.length,s=this.getNonNestedObjectCore(t,e,n,r);return s},i.prototype.getNonNestedObjectCore=function(t,e,n,r){var o=this.getFirstPropertyName(e,t,n,r);o&&r.push(o);for(var s=o?[o]:null;e!=o&&t;){var u=e[0]=="[";if(u){var d=this.getObjInArray(t,e);if(!d)return null;t=d.value,e=d.text,s.push(d.index)}else{if(!o&&e==this.getFirstName(e))return{value:t,text:e,path:s};if(t=this.getObjectValue(t,o),h.isValueEmpty(t)&&!n)return null;e=e.substring(o.length)}e&&e[0]=="."&&(e=e.substring(1)),o=this.getFirstPropertyName(e,t,n,r),o&&s.push(o)}return{value:t,text:e,path:s}},i.prototype.getObjInArray=function(t,e){if(!Array.isArray(t))return null;for(var n=1,r="";n<e.length&&e[n]!="]";)r+=e[n],n++;return e=n<e.length?e.substring(n+1):"",n=this.getIntValue(r),n<0||n>=t.length?null:{value:t[n],text:e,index:n}},i.prototype.getFirstPropertyName=function(t,e,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=void 0),!t||(e||(e={}),e.hasOwnProperty(t)))return t;var o=t.toLowerCase(),s=o[0],u=s.toUpperCase();for(var d in e)if(!(Array.isArray(r)&&r.indexOf(d)>-1)){var y=d[0];if(y===u||y===s){var V=d.toLowerCase();if(V==o)return d;if(o.length<=V.length)continue;var T=o[V.length];if(T!="."&&T!="[")continue;if(V==o.substring(0,V.length))return d}}if(n&&t[0]!=="["){var N=t.indexOf(".");return N>-1&&(t=t.substring(0,N),e[t]={}),t}return""},i.prototype.getObjectValue=function(t,e){return e?t[e]:null},i.prototype.getIntValue=function(t){return t=="0"||(t|0)>0&&t%1==0?Number(t):-1},i}(),He=function(){function i(){}return i.disposedObjectChangedProperty=function(t,e){i.warn('An attempt to set a property "'+t+'" of a disposed object "'+e+'"')},i.inCorrectQuestionValue=function(t,e){var n=JSON.stringify(e,null,3);i.warn("An attempt to assign an incorrect value"+n+' to the following question: "'+t+'"')},i.warn=function(t){console.warn(t)},i.error=function(t){console.error(t)},i}(),he=function(){function i(){this.functionHash={},this.isAsyncHash={}}return i.prototype.register=function(t,e,n){n===void 0&&(n=!1),this.functionHash[t]=e,n&&(this.isAsyncHash[t]=!0)},i.prototype.unregister=function(t){delete this.functionHash[t],delete this.isAsyncHash[t]},i.prototype.hasFunction=function(t){return!!this.functionHash[t]},i.prototype.isAsyncFunction=function(t){return!!this.isAsyncHash[t]},i.prototype.clear=function(){this.functionHash={}},i.prototype.getAll=function(){var t=[];for(var e in this.functionHash)t.push(e);return t.sort()},i.prototype.run=function(t,e,n,r){n===void 0&&(n=null);var o=this.functionHash[t];if(!o)return He.warn("Unknown function name: "+t),null;var s={func:o};if(n)for(var u in n)s[u]=n[u];return s.func(e,r)},i.Instance=new i,i}(),It=he.Instance.register;function Je(i,t){if(i!=null)if(Array.isArray(i))for(var e=0;e<i.length;e++)Je(i[e],t);else h.isNumber(i)&&(i=h.getNumber(i)),t.push(i)}function Qt(i){var t=[];Je(i,t);for(var e=0,n=0;n<t.length;n++)e=h.correctAfterPlusMinis(e,t[n],e+t[n]);return e}he.Instance.register("sum",Qt);function tt(i,t){var e=[];Je(i,e);for(var n=void 0,r=0;r<e.length;r++)n===void 0&&(n=e[r]),t?n>e[r]&&(n=e[r]):n<e[r]&&(n=e[r]);return n}function Ce(i){return tt(i,!0)}he.Instance.register("min",Ce);function tn(i){return tt(i,!1)}he.Instance.register("max",tn);function Ot(i){var t=[];return Je(i,t),t.length}he.Instance.register("count",Ot);function Dt(i){var t=[];Je(i,t);var e=Qt(i);return t.length>0?e/t.length:0}he.Instance.register("avg",Dt);function At(i,t){if(i.length<2||i.length>3)return null;var e=i[0];if(!e||!Array.isArray(e)&&!Array.isArray(Object.keys(e)))return null;var n=i[1];if(typeof n!="string"&&!(n instanceof String))return null;var r=i.length>2?i[2]:void 0;if(typeof r!="string"&&!(r instanceof String)&&(r=void 0),!r){var o=Array.isArray(t)&&t.length>2?t[2]:void 0;o&&o.toString()&&(r=o.toString())}return{data:e,name:n,expression:r}}function Ct(i){return typeof i=="string"?h.isNumber(i)?h.getNumber(i):void 0:i}function wt(i,t,e,n,r,o){if(!i||h.isValueEmpty(i[t])||o&&!o.run(i))return e;var s=r?Ct(i[t]):1;return n(e,s)}function nt(i,t,e,n){n===void 0&&(n=!0);var r=At(i,t);if(r){var o=r.expression?new Ue(r.expression):void 0;o&&o.isAsync&&(o=void 0);var s=void 0;if(Array.isArray(r.data))for(var u=0;u<r.data.length;u++)s=wt(r.data[u],r.name,s,e,n,o);else for(var d in r.data)s=wt(r.data[d],r.name,s,e,n,o);return s}}function ct(i,t){var e=nt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:h.correctAfterPlusMinis(n,r,n+r)});return e!==void 0?e:0}he.Instance.register("sumInArray",ct);function Vr(i,t){return nt(i,t,function(e,n){return e==null?n:n==null||n==null||e<n?e:n})}he.Instance.register("minInArray",Vr);function Sr(i,t){return nt(i,t,function(e,n){return e==null?n:n==null||n==null||e>n?e:n})}he.Instance.register("maxInArray",Sr);function mi(i,t){var e=nt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:n+1},!1);return e!==void 0?e:0}he.Instance.register("countInArray",mi);function vi(i,t){var e=mi(i,t);return e==0?0:ct(i,t)/e}he.Instance.register("avgInArray",vi);function Pn(i){return!i&&i.length!==3?"":i[0]?i[1]:i[2]}he.Instance.register("iif",Pn);function nn(i){return!i&&i.length<1||!i[0]?null:D("function-getDate",i[0])}he.Instance.register("getDate",nn);function rn(i,t,e){if(e==="days")return Gn([i,t]);var n=D("function-dateDiffMonths",i),r=D("function-dateDiffMonths",t),o=r.getFullYear()-n.getFullYear();e=e||"years";var s=o*12+r.getMonth()-n.getMonth();return r.getDate()<n.getDate()&&(s-=1),e==="months"?s:~~(s/12)}function bi(i){return!Array.isArray(i)||i.length<1||!i[0]?null:rn(i[0],void 0,(i.length>1?i[1]:"")||"years")}he.Instance.register("age",bi);function Ci(i){return!Array.isArray(i)||i.length<2||!i[0]||!i[1]?null:rn(i[0],i[1],(i.length>2?i[2]:"")||"days")}he.Instance.register("dateDiff",Ci);function wi(i){if(!Array.isArray(i)||i.length<2||!i[0]||!i[1])return null;var t=D("function-dateAdd",i[0]),e=i[1],n=i[2]||"days";return n==="days"&&t.setDate(t.getDate()+e),n==="months"&&t.setMonth(t.getMonth()+e),n==="years"&&t.setFullYear(t.getFullYear()+e),t}he.Instance.register("dateAdd",wi);function Pi(i){if(!i)return!1;for(var t=i.questions,e=0;e<t.length;e++)if(!t[e].validate(!1))return!1;return!0}function xi(i){if(!i&&i.length<1||!i[0]||!this.survey)return!1;var t=i[0],e=this.survey.getPageByName(t);if(e||(e=this.survey.getPanelByName(t)),!e){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(i.length>1)i[1]<n.panels.length&&(e=n.panels[i[1]]);else{for(var r=0;r<n.panels.length;r++)if(!Pi(n.panels[r]))return!1;return!0}}return Pi(e)}he.Instance.register("isContainerReady",xi);function Fo(){return this.survey&&this.survey.isDisplayMode}he.Instance.register("isDisplayMode",Fo);function Or(){return D("function-currentDate")}he.Instance.register("currentDate",Or);function Vi(i){var t=D("function-today");return I.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(i)&&i.length==1&&t.setDate(t.getDate()+i[0]),t}he.Instance.register("today",Vi);function ko(i){if(!(i.length!==1||!i[0]))return D("function-getYear",i[0]).getFullYear()}he.Instance.register("getYear",ko);function Qo(){return D("function-currentYear").getFullYear()}he.Instance.register("currentYear",Qo);function Gn(i){if(!Array.isArray(i)||i.length!==2||!i[0]||!i[1])return 0;var t=D("function-diffDays",i[0]),e=D("function-diffDays",i[1]),n=Math.abs(e-t);return Math.ceil(n/(1e3*60*60*24))}he.Instance.register("diffDays",Gn);function Zn(i,t){var e=Vi(void 0);return t&&t[0]&&(e=D("function-"+i,t[0])),e}function Pt(i){var t=Zn("year",i);return t.getFullYear()}he.Instance.register("year",Pt);function Ho(i){var t=Zn("month",i);return t.getMonth()+1}he.Instance.register("month",Ho);function Si(i){var t=Zn("day",i);return t.getDate()}he.Instance.register("day",Si);function zo(i){var t=Zn("weekday",i);return t.getDay()}he.Instance.register("weekday",zo);function Oi(i,t){if(!(!i||!t)){for(var e=i.question;e&&e.parent;){var n=e.parent.getQuestionByName(t);if(n)return n;e=e.parentQuestion}for(var r=["row","panel","survey"],o=0;o<r.length;o++){var s=i[r[o]];if(s&&s.getQuestionByName){var n=s.getQuestionByName(t);if(n)return n}}return null}}function Er(i,t){return t.length>1&&!h.isValueEmpty(t[1])?i.getDisplayValue(!0,t[1]):i.displayValue}function Ei(i){var t=this,e=Oi(this,i[0]);if(!e)return"";if(e.isReady)this.returnResult(Er(e,i));else{var n=function(r,o){r.isReady&&(r.onReadyChanged.remove(n),t.returnResult(Er(r,i)))};e.onReadyChanged.add(n)}}he.Instance.register("displayValue",Ei,!0);function Uo(i){if(!(i.length!==2||!i[0]||!i[1])){var t=Oi(this,i[0]);return t?t[i[1]]:void 0}}he.Instance.register("propertyValue",Uo);function Wo(i){if(i.length<2)return"";var t=i[0];if(!t||typeof t!="string")return"";var e=i[1];if(!h.isNumber(e))return"";var n=i.length>2?i[2]:void 0;return h.isNumber(n)?t.substring(e,n):t.substring(e)}he.Instance.register("substring",Wo);var Lt=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mt=function(){function i(){this._id=i.counter++}return Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),i.prototype.toString=function(t){return""},i.prototype.hasFunction=function(){return!1},i.prototype.hasAsyncFunction=function(){return!1},i.prototype.addToAsyncList=function(t){},i.prototype.isEqual=function(t){return!!t&&t.getType()===this.getType()&&this.isContentEqual(t)},i.prototype.areOperatorsEquals=function(t,e){return!t&&!e||!!t&&t.isEqual(e)},i.counter=1,i}(),xn=function(i){Lt(t,i);function t(e,n,r,o){n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=!1);var s=i.call(this)||this;return s.operatorName=e,s.left=n,s.right=r,s.isArithmeticValue=o,o?s.consumer=ze.binaryFunctions.arithmeticOp(e):s.consumer=ze.binaryFunctions[e],s.consumer==null&&ze.throwInvalidOperatorError(e),s}return Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return this.operatorName=="or"||this.operatorName=="and"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var n=e;return n.operator===this.operator&&this.areOperatorsEquals(this.left,n.left)&&this.areOperatorsEquals(this.right,n.right)},t.prototype.evaluateParam=function(e,n){return e==null?null:e.evaluate(n)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"("+ze.safeToString(this.left,e)+" "+ze.operatorToString(this.operatorName)+" "+ze.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){this.left!=null&&this.left.setVariables(e),this.right!=null&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(Mt),Tr=function(i){Lt(t,i);function t(e,n){var r=i.call(this)||this;return r.expressionValue=e,r.operatorName=n,r.consumer=ze.unaryFunctions[n],r.consumer==null&&ze.throwInvalidOperatorError(n),r}return Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return ze.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var n=e;return n.operator==this.operator&&this.areOperatorsEquals(this.expression,n.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var n=this.expression.evaluate(e);return this.consumer.call(this,n)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(Mt),Ht=function(i){Lt(t,i);function t(e){var n=i.call(this)||this;return n.values=e,n}return t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"["+this.values.map(function(r){return r.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(n){return n.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(n){n.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t.prototype.hasAsyncFunction=function(){return this.values.some(function(e){return e.hasAsyncFunction()})},t.prototype.addToAsyncList=function(e){this.values.forEach(function(n){return n.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){var n=e;if(n.values.length!==this.values.length)return!1;for(var r=0;r<this.values.length;r++)if(!n.values[r].isEqual(this.values[r]))return!1;return!0},t}(Mt),Rr=function(i){Lt(t,i);function t(e){var n=i.call(this)||this;return n.value=e,n}return t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){if(!e||typeof e!="string")return e;if(ze.isBooleanValue(e))return e.toLowerCase()==="true";if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(h.isNumber(e)){if(e[0]==="0"&&e.indexOf("0x")!=0){var n=e.length,r=n>1&&(e[1]==="."||e[1]===",");if(!r&&n>1||r&&n<2)return e}return h.getNumber(e)}return e},t.prototype.isContentEqual=function(e){var n=e;return n.value==this.value},t.prototype.isQuote=function(e){return e=="'"||e=='"'},t}(Mt),Ir=function(i){Lt(t,i);function t(e){var n=i.call(this,e)||this;return n.variableName=e,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return Object.defineProperty(t,"DisableConversionChar",{get:function(){return I.expressionDisableConversionChar},set:function(e){I.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.valueInfo.sctrictCompare===!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}var r=this.useValueAsItIs?t.DisableConversionChar:"";return"{"+r+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(e){return this.useValueAsItIs?e:i.prototype.getCorrectValue.call(this,e)},t.prototype.isContentEqual=function(e){var n=e;return n.variable==this.variable},t}(Rr),Ti=function(i){Lt(t,i);function t(e,n){var r=i.call(this)||this;return r.originalValue=e,r.parameters=n,Array.isArray(n)&&n.length===0&&(r.parameters=new Ht([])),r}return t.prototype.getType=function(){return"function"},t.prototype.evaluate=function(e){var n=this.getAsynValue(e);return n?n.value:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){var n=e.properties;if(this.isAsyncFunction){n=h.createCopy(e.properties);var r=this.id,o=e.asyncValues,s=e.onCompleteAsyncFunc,u=this;n.returnResult=function(d){o[r]={value:d},s(u)}}return he.Instance.run(this.originalValue,this.parameters.evaluate(e),n,this.parameters.values)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.isReady=function(e){return!!this.getAsynValue(e)},t.prototype.getAsynValue=function(e){return e.asyncValues[this.id]},t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()},t.prototype.isAsyncFunction=function(){return he.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){var n=void 0;if(this.isAsyncFunction()&&(n={operand:this}),this.parameters.hasAsyncFunction()){var r=new Array;this.parameters.addToAsyncList(r),r.forEach(function(o){return o.parent=n}),n||(n={}),n.children=r}n&&e.push(n)},t.prototype.isContentEqual=function(e){var n=e;return n.originalValue==this.originalValue&&this.areOperatorsEquals(n.parameters,this.parameters)},t}(Mt),ze=function(){function i(){}return i.throwInvalidOperatorError=function(t){throw new Error("Invalid operator: '"+t+"'")},i.safeToString=function(t,e){return t==null?"":t.toString(e)},i.toOperandString=function(t){return t&&!h.isNumber(t)&&!i.isBooleanValue(t)&&(t="'"+t+"'"),t},i.isBooleanValue=function(t){return!!t&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")},i.countDecimals=function(t){if(h.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.plusMinus=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.isTwoValueEquals=function(t,e,n){return n===void 0&&(n=!0),t==="undefined"&&(t=void 0),e==="undefined"&&(e=void 0),h.isTwoValueEquals(t,e,n)},i.operatorToString=function(t){var e=i.signs[t];return e??t},i.convertValForDateCompare=function(t,e){if(e instanceof Date&&typeof t=="string"){var n=D("expression-operand",t);return n.setHours(0,0,0),n}return t},i.unaryFunctions={empty:function(t){return h.isValueEmpty(t)},notempty:function(t){return!i.unaryFunctions.empty(t)},negate:function(t){return!t}},i.binaryFunctions={arithmeticOp:function(t){var e=function(n,r){return h.isValueEmpty(n)?typeof r=="number"?0:typeof n=="string"?n:typeof r=="string"?"":Array.isArray(r)?[]:0:n};return function(n,r){n=e(n,r),r=e(r,n);var o=i.binaryFunctions[t];return o==null?null:o.call(this,n,r)}},and:function(t,e){return t&&e},or:function(t,e){return t||e},plus:function(t,e){return h.sumAnyValues(t,e)},minus:function(t,e){return h.correctAfterPlusMinis(t,e,t-e)},mul:function(t,e){return h.correctAfterMultiple(t,e,t*e)},div:function(t,e){return e?t/e:null},mod:function(t,e){return e?t%e:null},power:function(t,e){return Math.pow(t,e)},greater:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t>e)},less:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t<e)},greaterorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.greater(t,e)},lessorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.less(t,e)},equal:function(t,e,n){return t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),i.isTwoValueEquals(t,e,n!==!0)},notequal:function(t,e,n){return!i.binaryFunctions.equal(t,e,n)},contains:function(t,e){return i.binaryFunctions.containsCore(t,e,!0)},notcontains:function(t,e){return!t&&!h.isValueEmpty(e)?!0:i.binaryFunctions.containsCore(t,e,!1)},anyof:function(t,e){if(h.isValueEmpty(t)&&h.isValueEmpty(e))return!0;if(h.isValueEmpty(t)||!Array.isArray(t)&&t.length===0)return!1;if(h.isValueEmpty(e))return!0;if(!Array.isArray(t))return i.binaryFunctions.contains(e,t);if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(i.binaryFunctions.contains(t,e[n]))return!0;return!1},allof:function(t,e){if(!t&&!h.isValueEmpty(e))return!1;if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(!i.binaryFunctions.contains(t,e[n]))return!1;return!0},containsCore:function(t,e,n){if(!t&&t!==0&&t!==!1)return!1;if(t.length||(t=t.toString(),(typeof e=="string"||e instanceof String)&&(t=t.toUpperCase(),e=e.toUpperCase())),typeof t=="string"||t instanceof String){if(!e)return!1;e=e.toString();var r=t.indexOf(e)>-1;return n?r:!r}for(var o=Array.isArray(e)?e:[e],s=0;s<o.length;s++){var u=0;for(e=o[s];u<t.length&&!i.isTwoValueEquals(t[u],e);u++);if(u==t.length)return!n}return n}},i.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},i}(),$o=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kn=function(i){$o(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.message=e,s.expected=n,s.found=r,s.location=o,s.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(s,t),s}return t.buildMessage=function(e,n){function r(V){return V.charCodeAt(0).toString(16).toUpperCase()}function o(V){return V.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(T){return"\\x0"+r(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+r(T)})}function s(V){return V.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(T){return"\\x0"+r(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+r(T)})}function u(V){switch(V.type){case"literal":return'"'+o(V.text)+'"';case"class":var T=V.parts.map(function(N){return Array.isArray(N)?s(N[0])+"-"+s(N[1]):s(N)});return"["+(V.inverted?"^":"")+T+"]";case"any":return"any character";case"end":return"end of input";case"other":return V.description}}function d(V){var T=V.map(u),N,U;if(T.sort(),T.length>0){for(N=1,U=1;N<T.length;N++)T[N-1]!==T[N]&&(T[U]=T[N],U++);T.length=U}switch(T.length){case 1:return T[0];case 2:return T[0]+" or "+T[1];default:return T.slice(0,-1).join(", ")+", or "+T[T.length-1]}}function y(V){return V?'"'+o(V)+'"':"end of input"}return"Expected "+d(e)+" but "+y(n)+" found."},t}(Error);function Ri(i,t){t=t!==void 0?t:{};var e={},n={Expression:$n},r=$n,o=function(m,b){return Hu(m,b,!0)},s="||",u=se("||",!1),d="or",y=se("or",!0),V=function(){return"or"},T="&&",N=se("&&",!1),U="and",W=se("and",!0),X=function(){return"and"},Y=function(m,b){return Hu(m,b)},J="<=",ue=se("<=",!1),Me="lessorequal",Ne=se("lessorequal",!0),St=function(){return"lessorequal"},Tt=">=",wr=se(">=",!1),Un="greaterorequal",Kp=se("greaterorequal",!0),Yp=function(){return"greaterorequal"},Jl="==",Xp=se("==",!1),Gl="equal",Zl=se("equal",!0),Kl=function(){return"equal"},ef="=",tf=se("=",!1),Yl="!=",nf=se("!=",!1),rf="notequal",of=se("notequal",!0),sf=function(){return"notequal"},af="<",lf=se("<",!1),uf="less",cf=se("less",!0),pf=function(){return"less"},ff=">",df=se(">",!1),hf="greater",gf=se("greater",!0),yf=function(){return"greater"},mf="+",vf=se("+",!1),bf=function(){return"plus"},Cf="-",wf=se("-",!1),Pf=function(){return"minus"},xf="*",Vf=se("*",!1),Sf=function(){return"mul"},Of="/",Ef=se("/",!1),Tf=function(){return"div"},Rf="%",If=se("%",!1),Df=function(){return"mod"},Af="^",Lf=se("^",!1),Mf="power",jf=se("power",!0),Nf=function(){return"power"},Xl="*=",qf=se("*=",!1),_f="contains",Bf=se("contains",!0),Ff="contain",kf=se("contain",!0),Qf=function(){return"contains"},Hf="notcontains",zf=se("notcontains",!0),Uf="notcontain",Wf=se("notcontain",!0),$f=function(){return"notcontains"},Jf="anyof",Gf=se("anyof",!0),Zf=function(){return"anyof"},Kf="allof",Yf=se("allof",!0),Xf=function(){return"allof"},eu="(",tu=se("(",!1),nu=")",ru=se(")",!1),ed=function(m){return m},td=function(m,b){return new Ti(m,b)},nd="!",rd=se("!",!1),id="negate",od=se("negate",!0),sd=function(m){return new Tr(m,"negate")},ad=function(m,b){return new Tr(m,b)},ld="empty",ud=se("empty",!0),cd=function(){return"empty"},pd="notempty",fd=se("notempty",!0),dd=function(){return"notempty"},iu="undefined",hd=se("undefined",!1),ou="null",gd=se("null",!1),yd=function(){return null},md=function(m){return new Rr(m)},vd="{",bd=se("{",!1),Cd="}",wd=se("}",!1),Pd=function(m){return new Ir(m)},pa=function(m){return m},su="''",xd=se("''",!1),au=function(){return""},lu='""',Vd=se('""',!1),uu="'",cu=se("'",!1),pu=function(m){return"'"+m+"'"},fu='"',du=se('"',!1),Sd="[",Od=se("[",!1),Ed="]",Td=se("]",!1),Rd=function(m){return m},hu=",",gu=se(",",!1),Id=function(m,b){if(m==null)return new Ht([]);var M=[m];if(Array.isArray(b))for(var E=mh(b),q=3;q<E.length;q+=4)M.push(E[q]);return new Ht(M)},Dd="true",Ad=se("true",!0),Ld=function(){return!0},Md="false",jd=se("false",!0),Nd=function(){return!1},yu="0x",qd=se("0x",!1),_d=function(){return parseInt(No(),16)},Bd=/^[\-]/,Fd=Wn(["-"],!1,!1),kd=function(m,b){return m==null?b:-b},Qd=".",Hd=se(".",!1),zd=function(){return parseFloat(No())},Ud=function(){return parseInt(No(),10)},Wd="0",$d=se("0",!1),Jd=function(){return 0},mu=function(m){return m.join("")},vu="\\'",Gd=se("\\'",!1),Zd=function(){return"'"},bu='\\"',Kd=se('\\"',!1),Yd=function(){return'"'},Xd=/^[^"']/,eh=Wn(['"',"'"],!0,!1),fa=function(){return No()},th=/^[^{}]/,nh=Wn(["{","}"],!0,!1),Cu=/^[0-9]/,wu=Wn([["0","9"]],!1,!1),Pu=/^[1-9]/,xu=Wn([["1","9"]],!1,!1),Vu=/^[a-zA-Z_]/,Su=Wn([["a","z"],["A","Z"],"_"],!1,!1),rh=oh("whitespace"),Ou=/^[ \t\n\r]/,Eu=Wn([" ","	",`
-`,"\r"],!1,!1),v=0,oe=0,Mo=[{line:1,column:1}],kt=0,da=[],G=0,ee={},jo;if(t.startRule!==void 0){if(!(t.startRule in n))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');r=n[t.startRule]}function No(){return i.substring(oe,v)}function se(m,b){return{type:"literal",text:m,ignoreCase:b}}function Wn(m,b,M){return{type:"class",parts:m,inverted:b,ignoreCase:M}}function ih(){return{type:"end"}}function oh(m){return{type:"other",description:m}}function Tu(m){var b=Mo[m],M;if(b)return b;for(M=m-1;!Mo[M];)M--;for(b=Mo[M],b={line:b.line,column:b.column};M<m;)i.charCodeAt(M)===10?(b.line++,b.column=1):b.column++,M++;return Mo[m]=b,b}function Ru(m,b){var M=Tu(m),E=Tu(b);return{start:{offset:m,line:M.line,column:M.column},end:{offset:b,line:E.line,column:E.column}}}function K(m){v<kt||(v>kt&&(kt=v,da=[]),da.push(m))}function sh(m,b,M){return new Kn(Kn.buildMessage(m,b),m,b,M)}function $n(){var m,b,M,E,q,Q,Z,te,Oe,Te=v*34+0,wa=ee[Te];if(wa)return v=wa.nextPos,wa.result;if(m=v,b=ve(),b!==e)if(M=ha(),M!==e){for(E=[],q=v,Q=ve(),Q!==e?(Z=Iu(),Z!==e?(te=ve(),te!==e?(Oe=ha(),Oe!==e?(Q=[Q,Z,te,Oe],q=Q):(v=q,q=e)):(v=q,q=e)):(v=q,q=e)):(v=q,q=e);q!==e;)E.push(q),q=v,Q=ve(),Q!==e?(Z=Iu(),Z!==e?(te=ve(),te!==e?(Oe=ha(),Oe!==e?(Q=[Q,Z,te,Oe],q=Q):(v=q,q=e)):(v=q,q=e)):(v=q,q=e)):(v=q,q=e);E!==e?(q=ve(),q!==e?(oe=m,b=o(M,E),m=b):(v=m,m=e)):(v=m,m=e)}else v=m,m=e;else v=m,m=e;return ee[Te]={nextPos:v,result:m},m}function Iu(){var m,b,M=v*34+1,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===s?(b=s,v+=2):(b=e,G===0&&K(u)),b===e&&(i.substr(v,2).toLowerCase()===d?(b=i.substr(v,2),v+=2):(b=e,G===0&&K(y))),b!==e&&(oe=m,b=V()),m=b,ee[M]={nextPos:v,result:m},m)}function ha(){var m,b,M,E,q,Q,Z,te,Oe=v*34+2,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=ga(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Du(),Q!==e?(Z=ve(),Z!==e?(te=ga(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Du(),Q!==e?(Z=ve(),Z!==e?(te=ga(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=o(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Du(){var m,b,M=v*34+3,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===T?(b=T,v+=2):(b=e,G===0&&K(N)),b===e&&(i.substr(v,3).toLowerCase()===U?(b=i.substr(v,3),v+=3):(b=e,G===0&&K(W))),b!==e&&(oe=m,b=X()),m=b,ee[M]={nextPos:v,result:m},m)}function ga(){var m,b,M,E,q,Q,Z,te,Oe=v*34+4,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=ya(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Au(),Q!==e?(Z=ve(),Z!==e?(te=ya(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Au(),Q!==e?(Z=ve(),Z!==e?(te=ya(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=Y(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Au(){var m,b,M=v*34+5,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===J?(b=J,v+=2):(b=e,G===0&&K(ue)),b===e&&(i.substr(v,11).toLowerCase()===Me?(b=i.substr(v,11),v+=11):(b=e,G===0&&K(Ne))),b!==e&&(oe=m,b=St()),m=b,m===e&&(m=v,i.substr(v,2)===Tt?(b=Tt,v+=2):(b=e,G===0&&K(wr)),b===e&&(i.substr(v,14).toLowerCase()===Un?(b=i.substr(v,14),v+=14):(b=e,G===0&&K(Kp))),b!==e&&(oe=m,b=Yp()),m=b,m===e&&(m=v,i.substr(v,2)===Jl?(b=Jl,v+=2):(b=e,G===0&&K(Xp)),b===e&&(i.substr(v,5).toLowerCase()===Gl?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(Zl))),b!==e&&(oe=m,b=Kl()),m=b,m===e&&(m=v,i.charCodeAt(v)===61?(b=ef,v++):(b=e,G===0&&K(tf)),b===e&&(i.substr(v,5).toLowerCase()===Gl?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(Zl))),b!==e&&(oe=m,b=Kl()),m=b,m===e&&(m=v,i.substr(v,2)===Yl?(b=Yl,v+=2):(b=e,G===0&&K(nf)),b===e&&(i.substr(v,8).toLowerCase()===rf?(b=i.substr(v,8),v+=8):(b=e,G===0&&K(of))),b!==e&&(oe=m,b=sf()),m=b,m===e&&(m=v,i.charCodeAt(v)===60?(b=af,v++):(b=e,G===0&&K(lf)),b===e&&(i.substr(v,4).toLowerCase()===uf?(b=i.substr(v,4),v+=4):(b=e,G===0&&K(cf))),b!==e&&(oe=m,b=pf()),m=b,m===e&&(m=v,i.charCodeAt(v)===62?(b=ff,v++):(b=e,G===0&&K(df)),b===e&&(i.substr(v,7).toLowerCase()===hf?(b=i.substr(v,7),v+=7):(b=e,G===0&&K(gf))),b!==e&&(oe=m,b=yf()),m=b)))))),ee[M]={nextPos:v,result:m},m)}function ya(){var m,b,M,E,q,Q,Z,te,Oe=v*34+6,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=ma(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Lu(),Q!==e?(Z=ve(),Z!==e?(te=ma(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Lu(),Q!==e?(Z=ve(),Z!==e?(te=ma(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=o(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Lu(){var m,b,M=v*34+7,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.charCodeAt(v)===43?(b=mf,v++):(b=e,G===0&&K(vf)),b!==e&&(oe=m,b=bf()),m=b,m===e&&(m=v,i.charCodeAt(v)===45?(b=Cf,v++):(b=e,G===0&&K(wf)),b!==e&&(oe=m,b=Pf()),m=b),ee[M]={nextPos:v,result:m},m)}function ma(){var m,b,M,E,q,Q,Z,te,Oe=v*34+8,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=va(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Mu(),Q!==e?(Z=ve(),Z!==e?(te=va(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Mu(),Q!==e?(Z=ve(),Z!==e?(te=va(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=o(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Mu(){var m,b,M=v*34+9,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.charCodeAt(v)===42?(b=xf,v++):(b=e,G===0&&K(Vf)),b!==e&&(oe=m,b=Sf()),m=b,m===e&&(m=v,i.charCodeAt(v)===47?(b=Of,v++):(b=e,G===0&&K(Ef)),b!==e&&(oe=m,b=Tf()),m=b,m===e&&(m=v,i.charCodeAt(v)===37?(b=Rf,v++):(b=e,G===0&&K(If)),b!==e&&(oe=m,b=Df()),m=b)),ee[M]={nextPos:v,result:m},m)}function va(){var m,b,M,E,q,Q,Z,te,Oe=v*34+10,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=ba(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=ju(),Q!==e?(Z=ve(),Z!==e?(te=ba(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=ju(),Q!==e?(Z=ve(),Z!==e?(te=ba(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=o(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function ju(){var m,b,M=v*34+11,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.charCodeAt(v)===94?(b=Af,v++):(b=e,G===0&&K(Lf)),b===e&&(i.substr(v,5).toLowerCase()===Mf?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(jf))),b!==e&&(oe=m,b=Nf()),m=b,ee[M]={nextPos:v,result:m},m)}function ba(){var m,b,M,E,q,Q,Z,te,Oe=v*34+12,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=Ca(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Nu(),Q!==e?(Z=ve(),Z!==e?(te=Ca(),te===e&&(te=null),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Nu(),Q!==e?(Z=ve(),Z!==e?(te=Ca(),te===e&&(te=null),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=Y(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Nu(){var m,b,M=v*34+13,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===Xl?(b=Xl,v+=2):(b=e,G===0&&K(qf)),b===e&&(i.substr(v,8).toLowerCase()===_f?(b=i.substr(v,8),v+=8):(b=e,G===0&&K(Bf)),b===e&&(i.substr(v,7).toLowerCase()===Ff?(b=i.substr(v,7),v+=7):(b=e,G===0&&K(kf)))),b!==e&&(oe=m,b=Qf()),m=b,m===e&&(m=v,i.substr(v,11).toLowerCase()===Hf?(b=i.substr(v,11),v+=11):(b=e,G===0&&K(zf)),b===e&&(i.substr(v,10).toLowerCase()===Uf?(b=i.substr(v,10),v+=10):(b=e,G===0&&K(Wf))),b!==e&&(oe=m,b=$f()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Jf?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(Gf)),b!==e&&(oe=m,b=Zf()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Kf?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(Yf)),b!==e&&(oe=m,b=Xf()),m=b))),ee[M]={nextPos:v,result:m},m)}function Ca(){var m,b,M,E,q,Q,Z=v*34+14,te=ee[Z];return te?(v=te.nextPos,te.result):(m=v,i.charCodeAt(v)===40?(b=eu,v++):(b=e,G===0&&K(tu)),b!==e?(M=ve(),M!==e?(E=$n(),E!==e?(q=ve(),q!==e?(i.charCodeAt(v)===41?(Q=nu,v++):(Q=e,G===0&&K(ru)),Q===e&&(Q=null),Q!==e?(oe=m,b=ed(E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=ah(),m===e&&(m=lh(),m===e&&(m=qu(),m===e&&(m=ph())))),ee[Z]={nextPos:v,result:m},m)}function ah(){var m,b,M,E,q,Q=v*34+15,Z=ee[Q];return Z?(v=Z.nextPos,Z.result):(m=v,b=Qu(),b!==e?(i.charCodeAt(v)===40?(M=eu,v++):(M=e,G===0&&K(tu)),M!==e?(E=_u(),E!==e?(i.charCodeAt(v)===41?(q=nu,v++):(q=e,G===0&&K(ru)),q===e&&(q=null),q!==e?(oe=m,b=td(b,E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),ee[Q]={nextPos:v,result:m},m)}function lh(){var m,b,M,E,q=v*34+16,Q=ee[q];return Q?(v=Q.nextPos,Q.result):(m=v,i.charCodeAt(v)===33?(b=nd,v++):(b=e,G===0&&K(rd)),b===e&&(i.substr(v,6).toLowerCase()===id?(b=i.substr(v,6),v+=6):(b=e,G===0&&K(od))),b!==e?(M=ve(),M!==e?(E=$n(),E!==e?(oe=m,b=sd(E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=qu(),b!==e?(M=ve(),M!==e?(E=uh(),E!==e?(oe=m,b=ad(b,E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)),ee[q]={nextPos:v,result:m},m)}function uh(){var m,b,M=v*34+17,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,5).toLowerCase()===ld?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(ud)),b!==e&&(oe=m,b=cd()),m=b,m===e&&(m=v,i.substr(v,8).toLowerCase()===pd?(b=i.substr(v,8),v+=8):(b=e,G===0&&K(fd)),b!==e&&(oe=m,b=dd()),m=b),ee[M]={nextPos:v,result:m},m)}function qu(){var m,b,M,E,q,Q=v*34+18,Z=ee[Q];return Z?(v=Z.nextPos,Z.result):(m=v,b=ve(),b!==e?(i.substr(v,9)===iu?(M=iu,v+=9):(M=e,G===0&&K(hd)),M===e&&(i.substr(v,4)===ou?(M=ou,v+=4):(M=e,G===0&&K(gd))),M!==e?(oe=m,b=yd(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=ve(),b!==e?(M=ch(),M!==e?(oe=m,b=md(M),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=ve(),b!==e?(i.charCodeAt(v)===123?(M=vd,v++):(M=e,G===0&&K(bd)),M!==e?(E=gh(),E!==e?(i.charCodeAt(v)===125?(q=Cd,v++):(q=e,G===0&&K(wd)),q!==e?(oe=m,b=Pd(E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e))),ee[Q]={nextPos:v,result:m},m)}function ch(){var m,b,M,E,q=v*34+19,Q=ee[q];return Q?(v=Q.nextPos,Q.result):(m=v,b=fh(),b!==e&&(oe=m,b=pa(b)),m=b,m===e&&(m=v,b=dh(),b!==e&&(oe=m,b=pa(b)),m=b,m===e&&(m=v,b=Qu(),b!==e&&(oe=m,b=pa(b)),m=b,m===e&&(m=v,i.substr(v,2)===su?(b=su,v+=2):(b=e,G===0&&K(xd)),b!==e&&(oe=m,b=au()),m=b,m===e&&(m=v,i.substr(v,2)===lu?(b=lu,v+=2):(b=e,G===0&&K(Vd)),b!==e&&(oe=m,b=au()),m=b,m===e&&(m=v,i.charCodeAt(v)===39?(b=uu,v++):(b=e,G===0&&K(cu)),b!==e?(M=Bu(),M!==e?(i.charCodeAt(v)===39?(E=uu,v++):(E=e,G===0&&K(cu)),E!==e?(oe=m,b=pu(M),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,i.charCodeAt(v)===34?(b=fu,v++):(b=e,G===0&&K(du)),b!==e?(M=Bu(),M!==e?(i.charCodeAt(v)===34?(E=fu,v++):(E=e,G===0&&K(du)),E!==e?(oe=m,b=pu(M),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e))))))),ee[q]={nextPos:v,result:m},m)}function ph(){var m,b,M,E,q=v*34+20,Q=ee[q];return Q?(v=Q.nextPos,Q.result):(m=v,i.charCodeAt(v)===91?(b=Sd,v++):(b=e,G===0&&K(Od)),b!==e?(M=_u(),M!==e?(i.charCodeAt(v)===93?(E=Ed,v++):(E=e,G===0&&K(Td)),E!==e?(oe=m,b=Rd(M),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),ee[q]={nextPos:v,result:m},m)}function _u(){var m,b,M,E,q,Q,Z,te,Oe=v*34+21,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=$n(),b===e&&(b=null),b!==e){for(M=[],E=v,q=ve(),q!==e?(i.charCodeAt(v)===44?(Q=hu,v++):(Q=e,G===0&&K(gu)),Q!==e?(Z=ve(),Z!==e?(te=$n(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(i.charCodeAt(v)===44?(Q=hu,v++):(Q=e,G===0&&K(gu)),Q!==e?(Z=ve(),Z!==e?(te=$n(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=Id(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function fh(){var m,b,M=v*34+22,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,4).toLowerCase()===Dd?(b=i.substr(v,4),v+=4):(b=e,G===0&&K(Ad)),b!==e&&(oe=m,b=Ld()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Md?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(jd)),b!==e&&(oe=m,b=Nd()),m=b),ee[M]={nextPos:v,result:m},m)}function dh(){var m,b,M,E=v*34+23,q=ee[E];return q?(v=q.nextPos,q.result):(m=v,i.substr(v,2)===yu?(b=yu,v+=2):(b=e,G===0&&K(qd)),b!==e?(M=Pr(),M!==e?(oe=m,b=_d(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,Bd.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Fd)),b===e&&(b=null),b!==e?(M=hh(),M!==e?(oe=m,b=kd(b,M),m=b):(v=m,m=e)):(v=m,m=e)),ee[E]={nextPos:v,result:m},m)}function hh(){var m,b,M,E,q=v*34+24,Q=ee[q];return Q?(v=Q.nextPos,Q.result):(m=v,b=Pr(),b!==e?(i.charCodeAt(v)===46?(M=Qd,v++):(M=e,G===0&&K(Hd)),M!==e?(E=Pr(),E!==e?(oe=m,b=zd(),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=yh(),b!==e?(M=Pr(),M===e&&(M=null),M!==e?(oe=m,b=Ud(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,i.charCodeAt(v)===48?(b=Wd,v++):(b=e,G===0&&K($d)),b!==e&&(oe=m,b=Jd()),m=b)),ee[q]={nextPos:v,result:m},m)}function gh(){var m,b,M,E=v*34+25,q=ee[E];if(q)return v=q.nextPos,q.result;if(m=v,b=[],M=ku(),M!==e)for(;M!==e;)b.push(M),M=ku();else b=e;return b!==e&&(oe=m,b=mu(b)),m=b,ee[E]={nextPos:v,result:m},m}function Bu(){var m,b,M,E=v*34+26,q=ee[E];if(q)return v=q.nextPos,q.result;if(m=v,b=[],M=Fu(),M!==e)for(;M!==e;)b.push(M),M=Fu();else b=e;return b!==e&&(oe=m,b=mu(b)),m=b,ee[E]={nextPos:v,result:m},m}function Fu(){var m,b,M=v*34+27,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===vu?(b=vu,v+=2):(b=e,G===0&&K(Gd)),b!==e&&(oe=m,b=Zd()),m=b,m===e&&(m=v,i.substr(v,2)===bu?(b=bu,v+=2):(b=e,G===0&&K(Kd)),b!==e&&(oe=m,b=Yd()),m=b,m===e&&(m=v,Xd.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(eh)),b!==e&&(oe=m,b=fa()),m=b)),ee[M]={nextPos:v,result:m},m)}function ku(){var m,b,M=v*34+28,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,th.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(nh)),b!==e&&(oe=m,b=fa()),m=b,ee[M]={nextPos:v,result:m},m)}function Qu(){var m,b,M,E,q,Q,Z,te=v*34+29,Oe=ee[te];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=gi(),b!==e){if(M=[],E=v,q=Pr(),q!==e){for(Q=[],Z=gi();Z!==e;)Q.push(Z),Z=gi();Q!==e?(q=[q,Q],E=q):(v=E,E=e)}else v=E,E=e;for(;E!==e;)if(M.push(E),E=v,q=Pr(),q!==e){for(Q=[],Z=gi();Z!==e;)Q.push(Z),Z=gi();Q!==e?(q=[q,Q],E=q):(v=E,E=e)}else v=E,E=e;M!==e?(oe=m,b=fa(),m=b):(v=m,m=e)}else v=m,m=e;return ee[te]={nextPos:v,result:m},m}function Pr(){var m,b,M=v*34+30,E=ee[M];if(E)return v=E.nextPos,E.result;if(m=[],Cu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(wu)),b!==e)for(;b!==e;)m.push(b),Cu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(wu));else m=e;return ee[M]={nextPos:v,result:m},m}function yh(){var m,b,M=v*34+31,E=ee[M];if(E)return v=E.nextPos,E.result;if(m=[],Pu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(xu)),b!==e)for(;b!==e;)m.push(b),Pu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(xu));else m=e;return ee[M]={nextPos:v,result:m},m}function gi(){var m,b,M=v*34+32,E=ee[M];if(E)return v=E.nextPos,E.result;if(m=[],Vu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Su)),b!==e)for(;b!==e;)m.push(b),Vu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Su));else m=e;return ee[M]={nextPos:v,result:m},m}function ve(){var m,b,M=v*34+33,E=ee[M];if(E)return v=E.nextPos,E.result;for(G++,m=[],Ou.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Eu));b!==e;)m.push(b),Ou.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Eu));return G--,m===e&&(b=e,G===0&&K(rh)),ee[M]={nextPos:v,result:m},m}function Hu(m,b,M){return M===void 0&&(M=!1),b.reduce(function(E,q){return new xn(q[1],E,q[3],M)},m)}function mh(m){return[].concat.apply([],m)}if(jo=r(),jo!==e&&v===i.length)return jo;throw jo!==e&&v<i.length&&K(ih()),sh(da,kt<i.length?i.charAt(kt):null,kt<i.length?Ru(kt,kt+1):Ru(kt,kt))}var Ii=Ri,Dr=function(){function i(t,e){this.at=t,this.code=e}return i}(),Yn=function(){function i(){}return i.prototype.patchExpression=function(t){return t.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},i.prototype.createCondition=function(t){return this.parseExpression(t)},i.prototype.parseExpression=function(t){try{var e=i.parserCache[t];return e===void 0&&(e=Ii(this.patchExpression(t)),e.hasAsyncFunction()||(i.parserCache[t]=e)),e}catch(n){n instanceof Kn&&(this.conditionError=new Dr(n.location.start.offset,n.message))}},Object.defineProperty(i.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),i.parserCache={},i}(),Ar=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Di=function(){function i(t,e,n,r,o){this.operand=t,this.id=e,this.onComplete=n,this.processValue=new Re,this.processValue.values=r,this.processValue.properties=o}return i.prototype.run=function(t){var e=this;if(!t)return this.runValues();this.processValue.values=h.createCopy(this.processValue.values),this.processValue.onCompleteAsyncFunc=function(r){var o=e.getAsyncItemByOperand(r,e.asyncFuncList);o&&e.doAsyncFunctionReady(o)},this.asyncFuncList=new Array,this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.runAsyncItem(this.asyncFuncList[n]);return!1},i.prototype.getAsyncItemByOperand=function(t,e){if(!Array.isArray(e))return null;for(var n=0;n<e.length;n++){if(e[n].operand===t)return e[n];var r=this.getAsyncItemByOperand(t,e[n].children);if(r)return r}return null},i.prototype.runAsyncItem=function(t){var e=this;t.children?t.children.forEach(function(n){return e.runAsyncItem(n)}):this.runAsyncItemCore(t)},i.prototype.runAsyncItemCore=function(t){t.operand?t.operand.evaluate(this.processValue):this.doAsyncFunctionReady(t)},i.prototype.doAsyncFunctionReady=function(t){if(t.parent&&this.isAsyncChildrenReady(t)){this.runAsyncItemCore(t.parent);return}for(var e=0;e<this.asyncFuncList.length;e++)if(!this.isAsyncFuncReady(this.asyncFuncList[e]))return;this.runValues()},i.prototype.isAsyncFuncReady=function(t){return t.operand&&!t.operand.isReady(this.processValue)?!1:this.isAsyncChildrenReady(t)},i.prototype.isAsyncChildrenReady=function(t){if(t.children){for(var e=0;e<t.children.length;e++)if(!this.isAsyncFuncReady(t.children[e]))return!1}return!0},i.prototype.runValues=function(){var t=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(t,this.id),t},i}(),Lr=function(){function i(t){this.parser=new Yn,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(t)}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),i.prototype.setExpression=function(t){this.expression!==t&&(this.expressionValue=t,this.operand=this.parser.parseExpression(t),this.hasFunctionValue=this.canRun()?this.operand.hasFunction():!1,this.isAsyncValue=this.hasFunction()?this.operand.hasAsyncFunction():!1)},i.prototype.getVariables=function(){if(!this.operand)return[];var t=[];return this.operand.setVariables(t),t},i.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return!!this.operand},i.prototype.run=function(t,e,n){if(e===void 0&&(e=null),!this.operand)return this.expression&&He.warn("Invalid expression: "+this.expression),null;var r=new Di(this.operand,n,this.onComplete,t,e);return r.run(this.isAsync)},i.createExpressionExecutor=function(t){return new i(t)},i}(),Mr=function(){function i(t){this.expression=t}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(t){var e=this;this.expressionExecutor&&t===this.expression||(this.expressionExecutor=Lr.createExpressionExecutor(t),this.expressionExecutor.onComplete=function(n,r){e.doOnComplete(n,r)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),i.prototype.getVariables=function(){return this.variables===void 0&&(this.variables=this.expressionExecutor.getVariables()),this.variables},i.prototype.hasFunction=function(){return this.containsFunc===void 0&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return this.expressionExecutor.canRun()},i.prototype.runCore=function(t,e){e===void 0&&(e=null);var n=i.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(n),this.expressionExecutor.run(t,e,n)},i.prototype.doOnComplete=function(t,e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(e)},i.IdRunnerCounter=1,i}(),Ue=function(i){Ar(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)==!0},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e==!0),i.prototype.doOnComplete.call(this,e,n)},t}(Mr),jt=function(i){Ar(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e),i.prototype.doOnComplete.call(this,e,n)},t}(Mr),Jo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jr=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},Go=function(){function i(t){this.obj=t,this.properties=null,this.values=null}return i.prototype.getType=function(){return"bindings"},i.prototype.getNames=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)this.properties[e].isVisible("",this.obj)&&t.push(this.properties[e].name);return t},i.prototype.getProperties=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)t.push(this.properties[e]);return t},i.prototype.setBinding=function(t,e){this.values||(this.values={});var n=this.getJson();n!==e&&(e?this.values[t]=e:(delete this.values[t],Object.keys(this.values).length==0&&(this.values=null)),this.onChangedJSON(n))},i.prototype.clearBinding=function(t){this.setBinding(t,"")},i.prototype.isEmpty=function(){if(!this.values)return!0;for(var t in this.values)return!1;return!0},i.prototype.getValueNameByPropertyName=function(t){if(this.values)return this.values[t]},i.prototype.getPropertiesByValueName=function(t){if(!this.values)return[];var e=[];for(var n in this.values)this.values[n]==t&&e.push(n);return e},i.prototype.getJson=function(){if(!this.isEmpty()){var t={};for(var e in this.values)t[e]=this.values[e];return t}},i.prototype.setJson=function(t,e){var n=this.getJson();if(this.values=null,t){this.values={};for(var r in t)this.values[r]=t[r]}e||this.onChangedJSON(n)},i.prototype.fillProperties=function(){if(this.properties===null){this.properties=[];for(var t=j.getPropertiesByObj(this.obj),e=0;e<t.length;e++)t[e].isBindable&&this.properties.push(t[e])}},i.prototype.onChangedJSON=function(t){this.obj&&this.obj.onBindingChanged(t,this.getJson())},i}(),Ai=function(){function i(t,e,n){this.currentDependency=t,this.target=e,this.property=n,this.dependencies=[],this.id=""+ ++i.DependenciesCount}return i.prototype.addDependency=function(t,e){this.target===t&&this.property===e||this.dependencies.some(function(n){return n.obj===t&&n.prop===e})||(this.dependencies.push({obj:t,prop:e,id:this.id}),t.registerPropertyChangedHandlers([e],this.currentDependency,this.id))},i.prototype.dispose=function(){this.dependencies.forEach(function(t){t.obj.unregisterPropertyChangedHandlers([t.prop],t.id)})},i.DependenciesCount=0,i}(),De=function(){function i(t){this._updater=t,this.dependencies=void 0,this.type=i.ComputedUpdaterType}return Object.defineProperty(i.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),i.prototype.setDependencies=function(t){this.clearDependencies(),this.dependencies=t},i.prototype.getDependencies=function(){return this.dependencies},i.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},i.prototype.dispose=function(){this.clearDependencies(),this._updater=void 0},i.ComputedUpdaterType="__dependency_computed",i}(),fe=function(){function i(){this.dependencies={},this.propertyHash=i.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new pt,this.bindingsValue=new Go(this),Fe.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return i.finishCollectDependencies=function(){var t=i.currentDependencis;return i.currentDependencis=void 0,t},i.startCollectDependencies=function(t,e,n){if(i.currentDependencis!==void 0)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");i.currentDependencis=new Ai(t,e,n)},i.collectDependency=function(t,e){i.currentDependencis!==void 0&&i.currentDependencis.addDependency(t,e)},Object.defineProperty(i,"commentSuffix",{get:function(){return I.commentSuffix},set:function(t){I.commentSuffix=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"commentPrefix",{get:function(){return i.commentSuffix},set:function(t){i.commentSuffix=t},enumerable:!1,configurable:!0}),i.prototype.isValueEmpty=function(t,e){return e===void 0&&(e=!0),e&&(t=this.trimValue(t)),h.isValueEmpty(t)},i.prototype.equals=function(t){return!t||this.isDisposed||t.isDisposed||this.getType()!=t.getType()?!1:this.equalsCore(t)},i.prototype.equalsCore=function(t){return this.name!==t.name?!1:h.isTwoValueEquals(this.toJSON(),t.toJSON(),!1,!0,!1)},i.prototype.trimValue=function(t){return t&&(typeof t=="string"||t instanceof String)?t.trim():t},i.prototype.isPropertyEmpty=function(t){return t!==""&&this.isValueEmpty(t)},i.createPropertiesHash=function(){return{}},i.prototype.dispose=function(){for(var t=this,e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach(function(n){return t.dependencies[n].dispose()}),Object.keys(this.propertyHash).forEach(function(n){var r=t.getPropertyValueCore(t.propertyHash,n);r&&r.type==De.ComputedUpdaterType&&r.dispose()})},Object.defineProperty(i.prototype,"isDisposed",{get:function(){return this.isDisposedValue===!0},enumerable:!1,configurable:!0}),i.prototype.addEvent=function(){var t=new pt;return this.eventList.push(t),t},i.prototype.onBaseCreating=function(){},i.prototype.getType=function(){return"base"},i.prototype.isDescendantOf=function(t){return j.isDescendantOf(this.getType(),t)},i.prototype.getSurvey=function(t){return null},Object.defineProperty(i.prototype,"isDesignMode",{get:function(){var t=this.getSurvey();return!!t&&t.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDesignModeV2",{get:function(){return I.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),i.prototype.checkBindings=function(t,e){},i.prototype.updateBindings=function(t,e){var n=this.bindings.getValueNameByPropertyName(t);n&&this.updateBindingValue(n,e)},i.prototype.updateBindingValue=function(t,e){},i.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(i.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),i.prototype.getIsLoadingFromJson=function(){return this.loadingOwner&&this.loadingOwner.isLoadingFromJson?!0:this.isLoadingFromJsonValue},i.prototype.startLoadingFromJson=function(t){this.isLoadingFromJsonValue=!0,this.jsonObj=t},i.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},i.prototype.toJSON=function(t){return new je().toJsonObject(this,t)},i.prototype.fromJSON=function(t,e){new je().toObject(t,this,e),this.onSurveyLoad()},i.prototype.onSurveyLoad=function(){},i.prototype.clone=function(){var t=j.createClass(this.getType());return t.fromJSON(this.toJSON()),t},i.prototype.getPropertyByName=function(t){var e=this.getType();return(!this.classMetaData||this.classMetaData.name!==e)&&(this.classMetaData=j.findClass(e)),this.classMetaData?this.classMetaData.findProperty(t):null},i.prototype.isPropertyVisible=function(t){var e=this.getPropertyByName(t);return e?e.isVisible("",this):!1},i.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},i.prototype.getProgressInfo=function(){return i.createProgressInfo()},i.prototype.localeChanged=function(){},i.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var e=this.arraysInfo[t];if(e&&e.isItemValues){var n=this.getPropertyValue(t);n&&i.itemValueLocStrChanged&&i.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var e=this.getLocalizableString(t);e&&e.strChanged()}},i.prototype.getPropertyValue=function(t,e,n){var r=this.getPropertyValueWithoutDefault(t);if(this.isPropertyEmpty(r)){var o=this.localizableStrings?this.localizableStrings[t]:void 0;if(o)return o.text;if(e!=null)return e;if(n){var s=n();if(s!==void 0)if(Array.isArray(s)){var u=this.createNewArray(t);return u.splice.apply(u,jr([0,0],s)),u}else return this.setPropertyValueDirectly(t,s),s}var d=this.getDefaultPropertyValue(t);if(d!==void 0)return d}return r},i.prototype.getDefaultPropertyValue=function(t){var e=this.getPropertyByName(t);if(!(!e||e.isCustom&&this.isCreating)){if(e.defaultValueFunc)return e.defaultValueFunc(this);var n=e.getDefaultValue(this);if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[t]:void 0;if(r&&r.localizationName)return this.getLocalizationString(r.localizationName);if(e.type=="boolean"||e.type=="switch")return!1;if(e.isCustom&&e.onGetValue)return e.onGetValue(this)}},i.prototype.hasDefaultPropertyValue=function(t){return this.getDefaultPropertyValue(t)!==void 0},i.prototype.resetPropertyValue=function(t){var e=this.localizableStrings?this.localizableStrings[t]:void 0;e?(this.setLocalizableStringText(t,void 0),e.clear()):this.setPropertyValue(t,void 0)},i.prototype.getPropertyValueWithoutDefault=function(t){return this.getPropertyValueCore(this.propertyHash,t)},i.prototype.getPropertyValueCore=function(t,e){return this.isLoadingFromJson||i.collectDependency(this,e),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,e):t[e]},i.prototype.geValueFromHash=function(){return this.propertyHash.value},i.prototype.setPropertyValueCore=function(t,e,n){this.setPropertyValueCoreHandler?this.isDisposedValue?He.disposedObjectChangedProperty(e,this.getType()):this.setPropertyValueCoreHandler(t,e,n):t[e]=n},Object.defineProperty(i.prototype,"isEditingSurveyElement",{get:function(){var t=this.getSurvey();return!!t&&t.isEditingSurveyElement},enumerable:!1,configurable:!0}),i.prototype.iteratePropertiesHash=function(t){var e=this,n=[];for(var r in this.propertyHash)r==="value"&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach(function(o){return t(e.propertyHash,o)})},i.prototype.setPropertyValue=function(t,e){if(!this.isLoadingFromJson){var n=this.getPropertyByName(t);n&&(e=n.settingValue(this,e))}var r=this.getPropertyValue(t);r&&Array.isArray(r)&&this.arraysInfo&&(!e||Array.isArray(e))?this.isTwoValueEquals(r,e)||this.setArrayPropertyDirectly(t,e):(this.setPropertyValueDirectly(t,e),!this.isDisposedValue&&!this.isTwoValueEquals(r,e)&&this.propertyValueChanged(t,r,e))},i.prototype.setArrayPropertyDirectly=function(t,e,n){n===void 0&&(n=!0);var r=this.arraysInfo[t];this.setArray(t,this.getPropertyValue(t),e,r?r.isItemValues:!1,r?n&&r.onPush:null)},i.prototype.setPropertyValueDirectly=function(t,e){this.setPropertyValueCore(this.propertyHash,t,e)},i.prototype.clearPropertyValue=function(t){this.setPropertyValueCore(this.propertyHash,t,null),delete this.propertyHash[t]},i.prototype.onPropertyValueChangedCallback=function(t,e,n,r,o){},i.prototype.itemValuePropertyChanged=function(t,e,n,r){this.onItemValuePropertyChanged.fire(this,{obj:t,name:e,oldValue:n,newValue:r,propertyName:t.ownerPropertyName})},i.prototype.onPropertyValueChanged=function(t,e,n){},i.prototype.propertyValueChanged=function(t,e,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(t,n),this.onPropertyValueChanged(t,e,n),this.onPropertyChanged.fire(this,{name:t,oldValue:e,newValue:n,arrayChanges:r,target:o}),this.doPropertyValueChangedCallback(t,e,n,r,this),this.checkConditionPropertyChanged(t),!!this.onPropChangeFunctions))for(var s=0;s<this.onPropChangeFunctions.length;s++)this.onPropChangeFunctions[s].name==t&&this.onPropChangeFunctions[s].func(n,r)},i.prototype.onBindingChanged=function(t,e){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",t,e)},Object.defineProperty(i.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.doPropertyValueChangedCallback=function(t,e,n,r,o){var s=function(d){d&&d.onPropertyValueChangedCallback&&d.onPropertyValueChangedCallback(t,e,n,o,r)};if(this.isInternal){s(this);return}o||(o=this);var u=this.getSurvey();u||(u=this),s(u),u!==this&&s(this)},i.prototype.addExpressionProperty=function(t,e,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[t]={onExecute:e,canRun:n}},i.prototype.getDataFilteredValues=function(){return{}},i.prototype.getDataFilteredProperties=function(){return{}},i.prototype.runConditionCore=function(t,e){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,t,e)},i.prototype.canRunConditions=function(){return!this.isDesignMode},i.prototype.checkConditionPropertyChanged=function(t){!this.expressionInfo||!this.expressionInfo[t]||this.canRunConditions()&&this.runConditionItemCore(t,this.getDataFilteredValues(),this.getDataFilteredProperties())},i.prototype.runConditionItemCore=function(t,e,n){var r=this,o=this.expressionInfo[t],s=this.getPropertyValue(t);s&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(s),o.runner.onRunComplete=function(u){o.onExecute(r,u)}),o.runner.expression=s,o.runner.run(e,n)))},i.prototype.doBeforeAsynRun=function(t){this.asynExpressionHash||(this.asynExpressionHash={});var e=!this.isAsyncExpressionRunning;this.asynExpressionHash[t]=!0,e&&this.onAsyncRunningChanged()},i.prototype.doAfterAsynRun=function(t){this.asynExpressionHash&&(delete this.asynExpressionHash[t],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},i.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(i.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),i.prototype.createExpressionRunner=function(t){var e=this,n=new jt(t);return n.onBeforeAsyncRun=function(r){e.doBeforeAsynRun(r)},n.onAfterAsyncRun=function(r){e.doAfterAsynRun(r)},n},i.prototype.registerPropertyChangedHandlers=function(t,e,n){n===void 0&&(n=null);for(var r=0;r<t.length;r++)this.registerFunctionOnPropertyValueChanged(t[r],e,n)},i.prototype.unregisterPropertyChangedHandlers=function(t,e){e===void 0&&(e=null);for(var n=0;n<t.length;n++)this.unRegisterFunctionOnPropertyValueChanged(t[n],e)},i.prototype.registerFunctionOnPropertyValueChanged=function(t,e,n){if(n===void 0&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==t&&o.key==n){o.func=e;return}}this.onPropChangeFunctions.push({name:t,func:e,key:n})},i.prototype.registerFunctionOnPropertiesValueChanged=function(t,e,n){n===void 0&&(n=null),this.registerPropertyChangedHandlers(t,e,n)},i.prototype.unRegisterFunctionOnPropertyValueChanged=function(t,e){if(e===void 0&&(e=null),!!this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==t&&r.key==e){this.onPropChangeFunctions.splice(n,1);return}}},i.prototype.unRegisterFunctionOnPropertiesValueChanged=function(t,e){e===void 0&&(e=null),this.unregisterPropertyChangedHandlers(t,e)},i.prototype.createCustomLocalizableObj=function(t){var e=this.getLocalizableString(t);return e||this.createLocalizableString(t,this,!1,!0)},i.prototype.getLocale=function(){var t=this.getSurvey();return t?t.getLocale():""},i.prototype.getLocalizationString=function(t){return k(t,this.getLocale())},i.prototype.getLocalizationFormatString=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getLocalizationString(t);return!r||!r.format?"":r.format.apply(r,e)},i.prototype.createLocalizableString=function(t,e,n,r){var o=this;n===void 0&&(n=!1),r===void 0&&(r=!1);var s=void 0;r&&(s=r===!0?t:r);var u=new gt(e,n,t,s);u.onStrChanged=function(y,V){o.propertyValueChanged(t,y,V)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[t]=u;var d=this.getPropertyByName(t);return u.disableLocalization=d&&d.isLocalizable===!1,u},i.prototype.getLocalizableString=function(t){return this.localizableStrings?this.localizableStrings[t]:null},i.prototype.getLocalizableStringText=function(t,e){e===void 0&&(e=""),i.collectDependency(this,t);var n=this.getLocalizableString(t);if(!n)return"";var r=n.text;return r||e},i.prototype.setLocalizableStringText=function(t,e){var n=this.getLocalizableString(t);if(n){var r=n.text;r!=e&&(n.text=e)}},i.prototype.addUsedLocales=function(t){if(this.localizableStrings)for(var e in this.localizableStrings){var n=this.getLocalizableString(e);n&&this.AddLocStringToUsedLocales(n,t)}if(this.arraysInfo)for(var e in this.arraysInfo){var r=this.getPropertyByName(e);if(!(!r||!r.isSerializable)){var o=this.getPropertyValue(e);if(!(!o||!o.length))for(var s=0;s<o.length;s++){var n=o[s];n&&n.addUsedLocales&&n.addUsedLocales(t)}}}},i.prototype.searchText=function(t,e){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(t)&&e.push({element:this,str:n[r]})},i.prototype.getSearchableLocalizedStrings=function(t){if(this.localizableStrings){var e=[];this.getSearchableLocKeys(e);for(var n=0;n<e.length;n++){var r=this.getLocalizableString(e[n]);r&&t.push(r)}}if(this.arraysInfo){var o=[];this.getSearchableItemValueKeys(o);for(var n=0;n<o.length;n++){var s=this.getPropertyValue(o[n]);if(s)for(var u=0;u<s.length;u++)t.push(s[u].locText)}}},i.prototype.getSearchableLocKeys=function(t){},i.prototype.getSearchableItemValueKeys=function(t){},i.prototype.AddLocStringToUsedLocales=function(t,e){for(var n=t.getLocales(),r=0;r<n.length;r++)e.indexOf(n[r])<0&&e.push(n[r])},i.prototype.createItemValues=function(t){var e=this,n=this.createNewArray(t,function(r){if(r.locOwner=e,r.ownerPropertyName=t,typeof r.getSurvey=="function"){var o=r.getSurvey();o&&typeof o.makeReactive=="function"&&o.makeReactive(r)}});return this.arraysInfo[t].isItemValues=!0,n},i.prototype.notifyArrayChanged=function(t,e){t.onArrayChanged&&t.onArrayChanged(e)},i.prototype.createNewArrayCore=function(t){var e=null;return this.createArrayCoreHandler&&(e=this.createArrayCoreHandler(this.propertyHash,t)),e||(e=new Array,this.setPropertyValueCore(this.propertyHash,t,e)),e},i.prototype.ensureArray=function(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!(this.arraysInfo&&this.arraysInfo[t]))return this.createNewArray(t,e,n)},i.prototype.createNewArray=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=this.createNewArrayCore(t);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[t]={onPush:e,isItemValues:!1};var o=this;return r.push=function(s){var u=Object.getPrototypeOf(r).push.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var d=new zt(r.length-1,0,[s],[]);o.propertyValueChanged(t,r,r,d),o.notifyArrayChanged(r,d)}return u},r.shift=function(){var s=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&s){n&&n(s);var u=new zt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,u),o.notifyArrayChanged(r,u)}return s},r.unshift=function(s){var u=Object.getPrototypeOf(r).unshift.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var d=new zt(0,0,[s],[]);o.propertyValueChanged(t,r,r,d),o.notifyArrayChanged(r,d)}return u},r.pop=function(){var s=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(s);var u=new zt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,u),o.notifyArrayChanged(r,u)}return s},r.splice=function(s,u){for(var d,y=[],V=2;V<arguments.length;V++)y[V-2]=arguments[V];s||(s=0),u||(u=0);var T=(d=Object.getPrototypeOf(r).splice).call.apply(d,jr([r,s,u],y));if(y||(y=[]),!o.isDisposedValue){if(n&&T)for(var N=0;N<T.length;N++)n(T[N]);if(e)for(var N=0;N<y.length;N++)e(y[N],s+N);var U=new zt(s,u,y,T);o.propertyValueChanged(t,r,r,U),o.notifyArrayChanged(r,U)}return T},r},i.prototype.getItemValueType=function(){},i.prototype.setArray=function(t,e,n,r,o){var s=[].concat(e);if(Object.getPrototypeOf(e).splice.call(e,0,e.length),n)for(var u=0;u<n.length;u++){var d=n[u];r&&i.createItemValue&&(d=i.createItemValue(d,this.getItemValueType())),Object.getPrototypeOf(e).push.call(e,d),o&&o(e[u])}var y=new zt(0,s.length,e,s);this.propertyValueChanged(t,s,e,y),this.notifyArrayChanged(e,y)},i.prototype.isTwoValueEquals=function(t,e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),h.isTwoValueEquals(t,e,!1,!n,r)},i.copyObject=function(t,e){for(var n in e){var r=e[n];typeof r=="object"&&(r={},this.copyObject(r,e[n])),t[n]=r}},i.prototype.copyCssClasses=function(t,e){e&&(typeof e=="string"||e instanceof String?t.root=e:i.copyObject(t,e))},i.prototype.getValueInLowCase=function(t){return t&&typeof t=="string"?t.toLowerCase():t},i.prototype.getElementsInDesign=function(t){return[]},Object.defineProperty(i.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),i.prototype.getIsAnimationAllowed=function(){return I.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)},i.prototype.blockAnimations=function(){this.animationAllowedLock--},i.prototype.releaseAnimations=function(){this.animationAllowedLock++},i.prototype.enableOnElementRerenderedEvent=function(){this.onElementRerenderedEventEnabled=!0},i.prototype.disableOnElementRerenderedEvent=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1},Object.defineProperty(i.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),i.prototype.afterRerender=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!1})},i.currentDependencis=void 0,i}(),zt=function(){function i(t,e,n,r){this.index=t,this.deleteCount=e,this.itemsToAdd=n,this.deletedItems=r}return i}(),Vn=function(){function i(){}return Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),i.prototype.fireByCreatingOptions=function(t,e){if(this.callbacks){for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](t,e()),!this.callbacks)return}},i.prototype.fire=function(t,e){if(this.callbacks){for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](t,e),!this.callbacks)return}},i.prototype.clear=function(){this.callbacks=void 0},i.prototype.add=function(t){this.hasFunc(t)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(t),this.fireCallbackChanged())},i.prototype.remove=function(t){if(this.hasFunc(t)){var e=this.callbacks.indexOf(t,0);this.callbacks.splice(e,1),this.fireCallbackChanged()}},i.prototype.hasFunc=function(t){return this.callbacks==null?!1:this.callbacks.indexOf(t,0)>-1},i.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},i}(),pt=function(i){Jo(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Vn),Li=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Nr=function(){function i(t,e,n,r,o){var s=this;r===void 0&&(r=null),o===void 0&&(o=function(u){queueMicrotask?queueMicrotask(u):u()}),this.container=t,this.model=e,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=o,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.dotsIconClass=".sv-dots",this.iconClass=".sv-svg-icon",this.recalcMinDimensionConst=!0,this.getComputedStyle=function(u){return R.getComputedStyle(u)},this.model.updateCallback=function(u){u&&(s.isInitialized=!1),setTimeout(function(){s.process()},1)},typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(function(u){B.requestAnimationFrame(function(){s.process()})}),this.resizeObserver.observe(this.container.parentElement))}return i.prototype.getDimensions=function(t){return{scroll:t.scrollWidth,offset:t.offsetWidth}},i.prototype.getAvailableSpace=function(){var t=this.getComputedStyle(this.container),e=this.container.offsetWidth;return t.boxSizing==="border-box"&&(e-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)),e},i.prototype.calcItemSize=function(t){return t.offsetWidth||t.getBoundingClientRect().width},i.prototype.calcMinDimension=function(t,e){var n;if(e&&(!t.iconSize||t.iconSize==="auto")){var r=e.querySelector(this.iconClass);n=r&&this.calcItemSize(r)}else t.iconSize&&typeof t.iconSize=="number"&&this.recalcMinDimensionConst&&(n=t.iconSize);var o=n?n+2*this.paddingSizeConst:this.minDimensionConst;return t.canShrink?o+(t.needSeparator?this.separatorSize:0):t.maxDimension},i.prototype.calcItemsSizes=function(){var t=this;if(!(!this.container||this.isInitialized)){var e=this.model.actions,n=this.container.querySelectorAll(this.itemsSelector);(n||[]).forEach(function(r,o){var s=e[o];s&&t.calcActionDimensions(s,r)})}},i.prototype.calcActionDimensions=function(t,e){t.maxDimension=this.calcItemSize(e),t.minDimension=this.calcMinDimension(t,e)},Object.defineProperty(i.prototype,"isContainerVisible",{get:function(){return!!this.container&&hr(this.container)},enumerable:!1,configurable:!0}),i.prototype.process=function(){var t=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var e=function(){var r,o=t.dotsItemSize;if(!t.dotsItemSize){var s=(r=t.container)===null||r===void 0?void 0:r.querySelector(t.dotsIconClass);o=s&&t.calcItemSize(s)||t.dotsSizeConst}t.model.fit(t.getAvailableSpace(),o)};if(this.isInitialized)e();else{var n=function(){t.container&&(t.calcItemsSizes(),t.isInitialized=!0,e())};this.delayedUpdateFunction?this.delayedUpdateFunction(n):n()}}},i.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.container=void 0},i}(),Xn=function(i){Li(t,i);function t(e,n,r,o,s,u){s===void 0&&(s=40);var d=i.call(this,e,n,r,o,u)||this;return d.minDimensionConst=s,d.recalcMinDimensionConst=!1,d}return t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),n=this.container.offsetHeight;return e.boxSizing==="border-box"&&(n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),n},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,n){e.maxDimension=this.calcItemSize(n),e.minDimension=this.calcItemSize(n)},t}(Nr),_=function(){function i(){this.classes=[]}return i.prototype.isEmpty=function(){return this.toString()===""},i.prototype.append=function(t,e){return e===void 0&&(e=!0),t&&e&&(typeof t=="string"&&(t=t.trim()),this.classes.push(t)),this},i.prototype.toString=function(){return this.classes.join(" ")},i}(),qr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},er={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},xt=function(i){qr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.sizeMode="default",e}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.actions.forEach(function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()})},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some(function(n){return n.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){e.setActionCssClasses(n)}),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter(function(e){return e.visible!==!1})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e=this.sizeMode==="small"?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new _().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return er},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var n=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),ln(e,this.cssClasses),this.actions.forEach(function(r){n.setActionCssClasses(r)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof En?e:new xe(e)},t.prototype.addAction=function(e,n){n===void 0&&(n=!0);var r=this.createAction(e);if(n&&!this.isActionVisible(r))return r;var o=[].concat(this.actions,r);return this.sortItems(o),this.actions=o,r},t.prototype.setItems=function(e,n){var r=this;n===void 0&&(n=!0);var o=[];e.forEach(function(s){(!n||r.isActionVisible(s))&&o.push(r.createAction(s))}),n&&this.sortItems(o),this.actions=o},t.prototype.sortItems=function(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)},t.prototype.hasSetVisibleIndex=function(e){for(var n=0;n<e.length;n++){var r=e[n].visibleIndex;if(r!==void 0&&r>=0)return!0}return!1},t.prototype.compareByVisibleIndex=function(e,n){return e.visibleIndex-n.visibleIndex},t.prototype.isActionVisible=function(e){return e.visibleIndex>=0||e.visibleIndex===void 0},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var n=this;e.isHovered=!0,this.actions.forEach(function(r){r===e&&e.popupModel&&(e.showPopupDelayed(n.subItemsShowDelay),n.popupAfterShowCallback(e))})},t.prototype.initResponsivityManager=function(e,n){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var n=0;n<this.actions.length;n++)if(this.actions[n].id===e)return this.actions[n];return null},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetResponsivityManager(),this.actions.forEach(function(e){return e.dispose()}),this.actions.length=0},Sn([me({onSet:function(e,n){n.onSet()},onPush:function(e,n,r){r.onPush(e)},onRemove:function(e,n,r){r.onRemove(e)}})],t.prototype,"actions",void 0),Sn([x({})],t.prototype,"containerCss",void 0),Sn([x({defaultValue:!1})],t.prototype,"isEmpty",void 0),Sn([x({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),Sn([x({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(fe),Ut=function(){function i(){}return i.focusElement=function(t){t&&t.focus()},i.visibility=function(t){var e=R.getComputedStyle(t);return e.display==="none"||e.visibility==="hidden"?!1:t.parentElement?this.visibility(t.parentElement):!0},i.getNextElementPreorder=function(t){var e=t.nextElementSibling?t.nextElementSibling:t.parentElement.firstElementChild;return this.visibility(e)?e:this.getNextElementPreorder(e)},i.getNextElementPostorder=function(t){var e=t.previousElementSibling?t.previousElementSibling:t.parentElement.lastElementChild;return this.visibility(e)?e:this.getNextElementPostorder(e)},i.hasHorizontalScroller=function(t){return t?t.scrollWidth>t.offsetWidth:!1},i.hasVerticalScroller=function(t){return t?t.scrollHeight>t.offsetHeight:!1},i}(),Zo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ye=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},_r={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemGroupSelected:"sv-list__item--group-selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},on=function(i){Zo(t,i);function t(e,n,r,o,s){var u=i.call(this)||this;if(u.onSelectionChanged=n,u.allowSelection=r,u.elementId=s,u.onItemClick=function(y){if(!u.isItemDisabled(y)){u.isExpanded=!1,u.allowSelection&&(u.selectedItem=y),u.onSelectionChanged&&u.onSelectionChanged(y);var V=y.action;V&&V(y)}},u.onItemHover=function(y){u.mouseOverHandler(y)},u.isItemDisabled=function(y){return y.enabled!==void 0&&!y.enabled},u.isItemSelected=function(y){return u.areSameItems(u.selectedItem,y)},u.isItemFocused=function(y){return u.areSameItems(u.focusedItem,y)},u.getListClass=function(){return new _().append(u.cssClasses.itemsContainer).append(u.cssClasses.itemsContainerFiltering,!!u.filterString&&u.visibleActions.length!==u.visibleItems.length).toString()},u.getItemClass=function(y){var V=u.isItemSelected(y);return new _().append(u.cssClasses.item).append(u.cssClasses.itemWithIcon,!!y.iconName).append(u.cssClasses.itemDisabled,u.isItemDisabled(y)).append(u.cssClasses.itemFocused,u.isItemFocused(y)).append(u.cssClasses.itemSelected,!y.hasSubItems&&V).append(u.cssClasses.itemGroup,y.hasSubItems).append(u.cssClasses.itemGroupSelected,y.hasSubItems&&V).append(u.cssClasses.itemHovered,y.isHovered).append(u.cssClasses.itemTextWrap,u.textWrapEnabled).append(y.css).toString()},u.getItemStyle=function(y){var V=y.level||0;return{"--sjs-list-item-level":V+1}},Object.keys(e).indexOf("items")!==-1){var d=e;Object.keys(d).forEach(function(y){switch(y){case"items":u.setItems(d.items);break;case"onFilterStringChangedCallback":u.setOnFilterStringChangedCallback(d.onFilterStringChangedCallback);break;case"onTextSearchCallback":u.setOnTextSearchCallback(d.onTextSearchCallback);break;default:u[y]=d[y]}}),u.updateActionsIds()}else u.setItems(e),u.selectedItem=o;return u}return t.prototype.hasText=function(e,n){if(!n)return!0;var r=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,n);var o=r.toLocaleLowerCase();return o=I.comparator.normalizeTextCallback(o,"filter"),o.indexOf(n.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var e=i.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return e.forEach(function(r){n.push(r),r.items&&r.items.forEach(function(o){var s=new xe(o);s.iconName||(s.iconName=r.iconName),n.push(s)})}),n}return e},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(n){return e.isItemVisible(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.updateIsEmpty()},t.prototype.updateIsEmpty=function(){var e=this;this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.scrollToItem=function(e,n){var r=this;n===void 0&&(n=0),setTimeout(function(){if(r.listContainerHtmlElement){var o=r.listContainerHtmlElement.querySelector(ke(e));o&&setTimeout(function(){o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},n)}},n)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(e,n){n===void 0&&(n=!0),i.prototype.setItems.call(this,e,n),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.updateActionsIds=function(){var e=this;this.elementId&&this.renderedActions.forEach(function(n){n.elementId=e.elementId+n.id})},t.prototype.setSearchEnabled=function(e){this.searchEnabled=e,this.showSearchClearButton=e},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),i.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return _r},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener(function(){e.hidePopup()})},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,n){return this.areSameItemsCallback?this.areSameItemsCallback(e,n):!!e&&!!n&&e.id==n.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector(ke(this.cssClasses.itemsContainer))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new xe({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if(e.key==="ArrowDown"||e.keyCode===40){var n=e.target.parentElement,r=n.parentElement.querySelector("ul"),o=rs(r);r&&o&&(Ut.focusElement(o),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var n=e.target;e.key==="ArrowDown"||e.keyCode===40?(Ut.focusElement(Ut.getNextElementPreorder(n)),e.preventDefault()):(e.key==="ArrowUp"||e.keyCode===38)&&(Ut.focusElement(Ut.getNextElementPostorder(n)),e.preventDefault())},t.prototype.onPointerDown=function(e,n){},t.prototype.refresh=function(){this.filterString!==""?this.filterString="":this.updateIsEmpty(),this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter(function(n){return n.visible&&e.isItemSelected(n)})[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}},t.prototype.focusPrevVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n-1];r?this.focusedItem=r:this.focusLastVisibleItem()}},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=Ut.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.cssClasses.itemFocused)},t.prototype.scrollToSelectedItem=function(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,Ye([x({defaultValue:!0,onSet:function(e,n){n.onSet()}})],t.prototype,"searchEnabled",void 0),Ye([x({defaultValue:!1})],t.prototype,"showFilter",void 0),Ye([x({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),Ye([x({defaultValue:!1})],t.prototype,"isExpanded",void 0),Ye([x({})],t.prototype,"selectedItem",void 0),Ye([x()],t.prototype,"focusedItem",void 0),Ye([x({onSet:function(e,n){n.onFilterStringChanged(n.filterString)}})],t.prototype,"filterString",void 0),Ye([x({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),Ye([x({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),Ye([x({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),Ye([x({defaultValue:!0})],t.prototype,"renderElements",void 0),Ye([x({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),Ye([x({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(xt),Mi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},On=function(i){Mi(t,i);function t(e,n,r,o){var s=i.call(this)||this;if(s.focusFirstInputSelector="",s.onCancel=function(){},s.onApply=function(){return!0},s.onHide=function(){},s.onShow=function(){},s.onDispose=function(){},s.onVisibilityChanged=s.addEvent(),s.onFooterActionsCreated=s.addEvent(),s.onRecalculatePosition=s.addEvent(),s.contentComponentName=e,s.contentComponentData=n,r&&typeof r=="string")s.verticalPosition=r,s.horizontalPosition=o;else if(r){var u=r;for(var d in u)s[d]=u[d]}return s}return t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var n={actions:e};return this.onFooterActionsCreated.fire(this,n),n.actions},t.prototype.updateDisplayMode=function(e){switch(this.displayMode!==e&&(this.setWidthByTarget=e==="dropdown"),e){case"dropdown":{this.displayMode="popup";break}case"popup":{this.displayMode="overlay",this.overlayDisplayMode="tablet-dropdown-overlay";break}case"overlay":{this.displayMode="overlay",this.overlayDisplayMode="dropdown-overlay";break}}},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.onDispose()},Ge([x()],t.prototype,"contentComponentName",void 0),Ge([x()],t.prototype,"contentComponentData",void 0),Ge([x({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),Ge([x({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),Ge([x({defaultValue:!0})],t.prototype,"showPointer",void 0),Ge([x({defaultValue:!1})],t.prototype,"isModal",void 0),Ge([x({defaultValue:!0})],t.prototype,"canShrink",void 0),Ge([x({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),Ge([x({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),Ge([x({defaultValue:""})],t.prototype,"cssClass",void 0),Ge([x({defaultValue:""})],t.prototype,"title",void 0),Ge([x({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),Ge([x({defaultValue:"popup"})],t.prototype,"displayMode",void 0),Ge([x({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(fe);function ji(i,t,e,n,r,o,s,u,d){return r===void 0&&(r=function(){}),o===void 0&&(o=function(){}),d===void 0&&(d="popup"),He.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:i,data:t,onApply:e,onCancel:n,onHide:r,onShow:o,cssClass:s,title:u,displayMode:d}}var Ni=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pe=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ko=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Br(i,t,e){return t.locOwner=e,Fr(i,t,t)}function Fr(i,t,e){var n,r=t.onSelectionChanged;t.onSelectionChanged=function(d){for(var y=[],V=1;V<arguments.length;V++)y[V-1]=arguments[V];u.hasTitle&&(u.title=d.title),r&&r(d,y)};var o=tr(t,e);o.getTargetCallback=qi;var s=Object.assign({},i,{component:"sv-action-bar-item-dropdown",popupModel:o,action:function(d,y){i.action&&i.action(),o.isFocusedContent=o.isFocusedContent||!y,o.show()}}),u=new xe(s);return u.data=(n=o.contentComponentData)===null||n===void 0?void 0:n.model,u}function tr(i,t){var e=new on(i);e.onSelectionChanged=function(o){i.onSelectionChanged&&i.onSelectionChanged(o),r.hide()};var n=t||{};n.onDispose=function(){e.dispose()};var r=new On("sv-list",{model:e},n);return r.isFocusedContent=e.showFilter,r.onShow=function(){n.onShow&&n.onShow(),e.scrollToSelectedItem()},r}function qi(i){return i==null?void 0:i.previousElementSibling}var En=function(i){Ni(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.rendredIdValue=t.getNextRendredId(),e}return t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||er},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&this.mode!=="popup"&&this.mode!=="removed"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.enabled!==void 0&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!this.disableShrink&&!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return(this.mode!="small"&&(this.showTitle||this.showTitle===void 0)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return new _().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new _().append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return new _().append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var n=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.showPopup()},e)},t.prototype.hidePopupDelayed=function(e){var n=this,r;!((r=this.popupModel)===null||r===void 0)&&r.isVisible?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,Pe([x()],t.prototype,"tooltip",void 0),Pe([x()],t.prototype,"showTitle",void 0),Pe([x()],t.prototype,"innerCss",void 0),Pe([x()],t.prototype,"active",void 0),Pe([x()],t.prototype,"pressed",void 0),Pe([x()],t.prototype,"data",void 0),Pe([x()],t.prototype,"popupModel",void 0),Pe([x()],t.prototype,"needSeparator",void 0),Pe([x()],t.prototype,"template",void 0),Pe([x({defaultValue:"large"})],t.prototype,"mode",void 0),Pe([x()],t.prototype,"visibleIndex",void 0),Pe([x()],t.prototype,"disableTabStop",void 0),Pe([x()],t.prototype,"disableShrink",void 0),Pe([x()],t.prototype,"disableHide",void 0),Pe([x({defaultValue:!1})],t.prototype,"needSpace",void 0),Pe([x()],t.prototype,"ariaChecked",void 0),Pe([x()],t.prototype,"ariaExpanded",void 0),Pe([x({defaultValue:"button"})],t.prototype,"ariaRole",void 0),Pe([x()],t.prototype,"iconName",void 0),Pe([x({defaultValue:24})],t.prototype,"iconSize",void 0),Pe([x()],t.prototype,"markerIconName",void 0),Pe([x()],t.prototype,"css",void 0),Pe([x({defaultValue:!1})],t.prototype,"isPressed",void 0),Pe([x({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(fe),xe=function(i){Ni(t,i);function t(e){var n=i.call(this)||this;n.locTitleChanged=function(){var s=n.locTitle.renderedHtml;n.setPropertyValue("_title",s||void 0)};var r=e instanceof t?e.innerItem:e;if(n.innerItem=r,n.locTitle=r?r.locTitle:null,r)for(var o in r)o==="locTitle"||o==="title"&&n.locTitle&&n.title||(n[o]=r[o]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",function(){n.raiseUpdate(!0)}),n.locStrChangedInPopupModel(),n}return t.prototype.raiseUpdate=function(e){e===void 0&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=Ko([],e.items);var n=Object.assign({},e);n.searchEnabled=!1;var r=tr(n,{horizontalPosition:"right",showPointer:!1,canShrink:!1});r.cssClass="sv-popup-inner",this.popupModel=r},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){!e&&!this.locTitleValue&&(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.doAction=function(e){var n=e.originalEvent?e.originalEvent:e;return this.action(this,n.isTrusted),n.preventDefault(),n.stopPropagation(),!0},t.prototype.doMouseDown=function(e){this.isMouseDown=!0},t.prototype.doFocus=function(e){if(this.onFocus){var n=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,n)}this.isMouseDown=!1},t.prototype.locStrChangedInPopupModel=function(){if(!(!this.popupModel||!this.popupModel.contentComponentData||!this.popupModel.contentComponentData.model)){var e=this.popupModel.contentComponentData.model;if(Array.isArray(e.actions)){var n=e.actions;n.forEach(function(r){r.locStrsChanged&&r.locStrsChanged()})}}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=k(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.owner?this.owner.getMarkdownHtml(e,n):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,i.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose()},Pe([x()],t.prototype,"id",void 0),Pe([x({defaultValue:!0,onSet:function(e,n){n.raiseUpdate()}})],t.prototype,"_visible",void 0),Pe([x({onSet:function(e,n){n.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),Pe([x()],t.prototype,"_enabled",void 0),Pe([x()],t.prototype,"action",void 0),Pe([x()],t.prototype,"onFocus",void 0),Pe([x()],t.prototype,"_component",void 0),Pe([x()],t.prototype,"items",void 0),Pe([x({onSet:function(e,n){n.locTitleValue.text!==e&&(n.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(En),Yo=function(){function i(t){this.item=t,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return i.prototype.setupPopupCallbacks=function(){var t=this,e=this.popupModel=this.item.popupModel;e&&e.registerPropertyChangedHandlers(["isVisible"],function(){e.isVisible?t.item.pressed=!0:t.item.pressed=!1},this.funcKey)},i.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},i.prototype.dispose=function(){this.removePopupCallbacks()},i}(),Xo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tn=function(i){Xo(t,i);function t(){var e=i.call(this)||this;return e.minVisibleItemsCount=0,e.isResponsivenessDisabled=!1,e.dotsItem=Fr({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:k("more")},{items:[],allowSelection:!1}),e}return t.prototype.hideItemsGreaterN=function(e){var n=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-n.length));var r=[];n.forEach(function(o){e<=0&&(o.removePriority?o.mode="removed":(o.mode="popup",r.push(o.innerItem))),e--}),this.hiddenItemsListModel.setItems(r)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter(function(e){return!e.disableHide}).sort(function(e,n){return e.removePriority||0-n.removePriority||0})},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter(function(s){return s.disableHide}).forEach(function(s){return e-=s.minDimension});for(var n=this.getActionsToHide().map(function(s){return s.minDimension}),r=0,o=0;o<n.length;o++)if(r+=n[o],r>e)return o;return o},t.prototype.updateItemMode=function(e,n){for(var r=this.visibleActions,o=r.length-1;o>=0;o--)n>e&&!r[o].disableShrink?(n-=r[o].maxDimension-r[o].minDimension,r[o].mode="small"):r[o].mode="large";if(n>e){var s=this.visibleActions.filter(function(u){return u.removePriority});s.sort(function(u,d){return u.removePriority-d.removePriority});for(var o=0;o<s.length;o++)n>e&&(n-=r[o].disableShrink?s[o].maxDimension:s[o].minDimension,s[o].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){return n.updateCallback=function(r){return e.raiseUpdate(r)}}),i.prototype.onSet.call(this)},t.prototype.onPush=function(e){var n=this;e.updateCallback=function(r){return n.raiseUpdate(r)},i.prototype.onPush.call(this,e)},t.prototype.getRenderedActions=function(){return this.actions.length===1&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(e){this.isResponsivenessDisabled||i.prototype.raiseUpdate.call(this,e)},t.prototype.fit=function(e,n){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,o=0,s=this.visibleActions;s.forEach(function(u){r+=u.minDimension,o+=u.maxDimension}),e>=o?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-n)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,o)}},t.prototype.initResponsivityManager=function(e,n){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.responsivityManager=new Nr(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,n)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(n){e=="small"&&n.disableShrink?n.mode="large":n.mode=e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(xt);(function(){function i(t,e){var n=this;e===void 0&&(e=!1),this.func=t,this.isMultiple=e,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return i.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),i})();function kr(i){var t=this,e=!1,n=!1,r;return{run:function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];n=!1,r=o,e||(e=!0,queueMicrotask(function(){n||i.apply(t,r),n=!1,e=!1}))},cancel:function(){n=!0}}}var sn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qr=function(){function i(){this.cancelQueue=[]}return i.prototype.getMsFromRule=function(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3},i.prototype.reflow=function(t){return t.offsetHeight},i.prototype.getAnimationsCount=function(t){var e="";return getComputedStyle&&(e=getComputedStyle(t).animationName),e&&e!="none"?e.split(", ").length:0},i.prototype.getAnimationDuration=function(t){for(var e=getComputedStyle(t),n=e.animationDelay.split(", "),r=e.animationDuration.split(", "),o=0,s=0;s<Math.max(r.length,n.length);s++)o=Math.max(o,this.getMsFromRule(r[s%r.length])+this.getMsFromRule(n[s%n.length]));return o},i.prototype.addCancelCallback=function(t){this.cancelQueue.push(t)},i.prototype.removeCancelCallback=function(t){this.cancelQueue.indexOf(t)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(t),1)},i.prototype.onAnimationEnd=function(t,e,n){var r=this,o,s=this.getAnimationsCount(t),u=function(y){y===void 0&&(y=!0),e(y),clearTimeout(o),r.removeCancelCallback(u),t.removeEventListener("animationend",d)},d=function(y){y.target==y.currentTarget&&--s<=0&&u(!1)};s>0?(t.addEventListener("animationend",d),this.addCancelCallback(u),o=setTimeout(function(){u(!1)},this.getAnimationDuration(t)+10)):e(!0)},i.prototype.afterAnimationRun=function(t,e){t&&e&&e.onAfterRunAnimation&&e.onAfterRunAnimation(t)},i.prototype.beforeAnimationRun=function(t,e){t&&e&&e.onBeforeRunAnimation&&e.onBeforeRunAnimation(t)},i.prototype.getCssClasses=function(t){return t.cssClass.replace(/\s+$/,"").split(/\s+/)},i.prototype.runAnimation=function(t,e,n){t&&(e!=null&&e.cssClass)?(this.reflow(t),this.getCssClasses(e).forEach(function(r){t.classList.add(r)}),this.onAnimationEnd(t,n,e)):n(!0)},i.prototype.clearHtmlElement=function(t,e){t&&e.cssClass&&this.getCssClasses(e).forEach(function(n){t.classList.remove(n)}),this.afterAnimationRun(t,e)},i.prototype.onNextRender=function(t,e){var n=this;if(e===void 0&&(e=!1),!e&&B.isAvailable()){var r=function(){t(!0),cancelAnimationFrame(o)},o=B.requestAnimationFrame(function(){o=B.requestAnimationFrame(function(){t(!1),n.removeCancelCallback(r)})});this.addCancelCallback(r)}else t(!0)},i.prototype.cancel=function(){var t=[].concat(this.cancelQueue);t.forEach(function(e){return e()}),this.cancelQueue=[]},i}(),_i=function(i){sn(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onEnter=function(e){var n=this,r=e.getAnimatedElement(),o=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,function(){n.clearHtmlElement(r,o)})},t.prototype.onLeave=function(e,n){var r=this,o=e.getAnimatedElement(),s=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(o,s),this.runAnimation(o,s,function(u){n(),r.onNextRender(function(){r.clearHtmlElement(o,s)},u)})},t}(Qr),nr=function(i){sn(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.runGroupAnimation=function(e,n,r,o,s){var u=this,d={isAddingRunning:n.length>0,isDeletingRunning:r.length>0,isReorderingRunning:o.length>0},y=n.map(function(J){return e.getAnimatedElement(J)}),V=n.map(function(J){return e.getEnterOptions?e.getEnterOptions(J,d):{}}),T=r.map(function(J){return e.getAnimatedElement(J)}),N=r.map(function(J){return e.getLeaveOptions?e.getLeaveOptions(J,d):{}}),U=o.map(function(J){return e.getAnimatedElement(J.item)}),W=o.map(function(J){return e.getReorderOptions?e.getReorderOptions(J.item,J.movedForward,d):{}});n.forEach(function(J,ue){u.beforeAnimationRun(y[ue],V[ue])}),r.forEach(function(J,ue){u.beforeAnimationRun(T[ue],N[ue])}),o.forEach(function(J,ue){u.beforeAnimationRun(U[ue],W[ue])});var X=n.length+r.length+U.length,Y=function(J){--X<=0&&(s&&s(),u.onNextRender(function(){n.forEach(function(ue,Me){u.clearHtmlElement(y[Me],V[Me])}),r.forEach(function(ue,Me){u.clearHtmlElement(T[Me],N[Me])}),o.forEach(function(ue,Me){u.clearHtmlElement(U[Me],W[Me])})},J))};n.forEach(function(J,ue){u.runAnimation(y[ue],V[ue],Y)}),r.forEach(function(J,ue){u.runAnimation(T[ue],N[ue],Y)}),o.forEach(function(J,ue){u.runAnimation(U[ue],W[ue],Y)})},t}(Qr),Rn=function(){function i(t,e,n){var r=this;this.animationOptions=t,this.update=e,this.getCurrentValue=n,this._debouncedSync=kr(function(o){r.cancelAnimations();try{r._sync(o)}catch{r.update(o)}})}return i.prototype.onNextRender=function(t,e){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var s=function(){r.remove(u),n.cancelCallback=void 0},u=function(d,y){y.isCancel?e&&e():t(),s()};this.cancelCallback=function(){e&&e(),s()},r.add(u)}else if(B.isAvailable()){var o=B.requestAnimationFrame(function(){t(),n.cancelCallback=void 0});this.cancelCallback=function(){e&&e(),cancelAnimationFrame(o),n.cancelCallback=void 0}}else throw new Error("Can't get next render")},i.prototype.sync=function(t){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(t):(this.cancel(),this.update(t))},i.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelAnimations()},i.prototype.cancelAnimations=function(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},i}(),In=function(i){sn(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new _i,e}return t.prototype._sync=function(e){var n=this;e!==this.getCurrentValue()?e?(this.onNextRender(function(){n.animation.onEnter(n.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,function(){n.update(e)}):this.update(e)},t}(Rn),Nt=function(i){sn(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new nr,e}return t.prototype._sync=function(e){var n=this,r,o;e=[].concat(e);var s=[].concat(this.getCurrentValue()),u=(r=this.animationOptions.allowSyncRemovalAddition)!==null&&r!==void 0?r:!0,d=Yi(s,e,(o=this.animationOptions.getKey)!==null&&o!==void 0?o:function(W){return W});!u&&(d.reorderedItems.length>0||d.addedItems.length>0)&&(d.deletedItems=[],d.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(d);var y=d.addedItems,V=d.reorderedItems,T=d.deletedItems,N=d.mergedItems,U=function(){n.animation.runGroupAnimation(n.animationOptions,y,T,V,function(){T.length>0&&n.update(e)})};[y,T,V].some(function(W){return W.length>0})?T.length<=0||V.length>0||y.length>0?(this.onNextRender(U,function(){n.update(e)}),this.update(N)):U():this.update(e)},t}(Rn),rr=function(i){sn(t,i);function t(e,n,r,o){var s=i.call(this,e,n,r)||this;return s.mergeValues=o,s.animation=new nr,s}return t.prototype._sync=function(e){var n=this,r=[].concat(this.getCurrentValue());if(r[0]!==e[0]){var o=this.mergeValues?this.mergeValues(e,r):[].concat(r,e);this.onNextRender(function(){n.animation.runGroupAnimation(n.animationOptions,e,r,[],function(){n.update(e)})},function(){return n.update(e)}),this.update(o,!0)}else this.update(e)},t}(Rn),Bi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),rt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ir=function(i){Bi(t,i);function t(){var e=i.call(this)||this;return e.createLocTitleProperty(),e}return t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setTitleValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.setTitleValue=function(e){this.setLocalizableStringText("title",e)},t.prototype.updateDescriptionVisibility=function(e){var n=!1;if(this.isDesignMode){var r=j.findProperty(this.getType(),"description");n=!!(r!=null&&r.placeholder)}this.hasDescription=!!e||n&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),n=this.getSurvey();return n?n.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return I.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},rt([x({})],t.prototype,"hasDescription",void 0),rt([x({localizable:!0,onSet:function(e,n){n.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(fe),or;(function(i){i[i.InsideEmptyPanel=1]="InsideEmptyPanel",i[i.MultilineRight=2]="MultilineRight",i[i.MultilineLeft=3]="MultilineLeft",i[i.Top=4]="Top",i[i.Right=5]="Right",i[i.Bottom=6]="Bottom",i[i.Left=7]="Left"})(or||(or={}));var _e=function(i){Bi(t,i);function t(e){var n=i.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n._renderedIsExpanded=!0,n._isAnimatingCollapseExpand=!1,n.animationCollapsed=new In(n.getExpandCollapseAnimationOptions(),function(r){n._renderedIsExpanded=r,n.animationAllowed&&(r?n.isAnimatingCollapseExpand=!0:n.updateElementCss(!1))},function(){return n.renderedIsExpanded}),n.onAfterRenderElement=n.addEvent(),n.name=e,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],function(){n.onReadOnlyChanged()}),n.registerPropertyChangedHandlers(["errors"],function(){n.updateVisibleErrors()}),n.registerPropertyChangedHandlers(["isSingleInRow"],function(){n.updateElementCss(!1)}),n.registerPropertyChangedHandlers(["minWidth","maxWidth","renderWidth","allowRootStyle","parent"],function(){n.updateRootStyle()}),n}return t.getProgressInfoByElements=function(e,n){for(var r=fe.createProgressInfo(),o=0;o<e.length;o++)if(e[o].isVisible){var s=e[o].getProgressInfo();r.questionCount+=s.questionCount,r.answeredQuestionCount+=s.answeredQuestionCount,r.requiredQuestionCount+=s.requiredQuestionCount,r.requiredAnsweredQuestionCount+=s.requiredAnsweredQuestionCount}return n&&r.questionCount>0&&(r.requiredQuestionCount==0&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.IsNeedScrollIntoView=function(e,n,r){var o=r?-1:e.getBoundingClientRect().top,s=o<0,u=-1;if(!s&&n&&(u=e.getBoundingClientRect().left,s=u<0),!s&&B.isAvailable()){var d=B.getInnerHeight();if(s=d>0&&d<o,!s&&n){var y=B.getInnerWidth();s=y>0&&y<u}}return s},t.ScrollIntoView=function(e,n,r){if(e.scrollIntoView(n),typeof r=="function"){var o=null,s=0,u=function(){var d=e.getBoundingClientRect().top;if(d===o){if(s++>2){r();return}}else o=d,s=0;requestAnimationFrame(u)};B.requestAnimationFrame(u)}},t.ScrollElementToTop=function(e,n,r,o){var s=I.environment.root;if(!e||typeof s>"u")return!1;var u=s.getElementById(e);return t.ScrollElementToViewCore(u,!1,n,r,o)},t.ScrollElementToViewCore=function(e,n,r,o,s){if(!e||!e.scrollIntoView)return s&&s(),!1;var u=t.IsNeedScrollIntoView(e,n,r);return u?t.ScrollIntoView(e,o,s):s&&s(),u},t.GetFirstNonTextElement=function(e,n){if(n===void 0&&(n=!1),!e||!e.length||e.length==0)return null;if(n){var r=e[0];r.nodeName==="#text"&&(r.data=""),r=e[e.length-1],r.nodeName==="#text"&&(r.data="")}for(var o=0;o<e.length;o++)if(e[o].nodeName!="#text"&&e[o].nodeName!="#comment")return e[o];return null},t.FocusElement=function(e,n,r){if(!e||!R.isAvailable())return!1;var o=n?!1:t.focusElementCore(e,r);return o||setTimeout(function(){t.focusElementCore(e,r)},n?100:10),o},t.focusElementCore=function(e,n){var r=I.environment.root;if(!r&&!n)return!1;var o=n?n.querySelector("#"+CSS.escape(e)):r.getElementById(e);return o&&!o.disabled&&o.style.display!=="none"&&o.offsetParent!==null?(t.ScrollElementToViewCore(o,!0,!1),o.focus(),!0):!1},Object.defineProperty(t.prototype,"colSpan",{get:function(){return this.getPropertyValue("colSpan",1)},set:function(e){this.setPropertyValue("colSpan",e)},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="state"&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},t.prototype.updateElementVisibility=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!(this.state==="collapsed"&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return this.state==="collapsed"&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.state==="expanded"},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):this.isExpanded?(this.collapse(),!1):!0},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.locOwner=this,this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var n=e?new Tn:new xt;return this.survey&&this.survey.getCss().actionBar&&(n.cssClasses=this.survey.getCss().actionBar),n},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.state!==void 0&&this.state!=="default"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return!this.isPage&&this.state!=="default"?0:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!(this.isPage||this.state==="default"))return this.state==="expanded"?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!(this.isPage||this.state==="default"))return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,n){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return i.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){I.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return this.surveyValue?this.surveyValue:(this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue)},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"skeletonHeight",{get:function(){var e=void 0;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+"px"),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){var e=this.getPropertyValueWithoutDefault("cssClassesValue");return!e&&!this.isCssValueCalculating&&(this.isCssValueCalculating=!0,e=this.createCssClassesValue(),this.isCssValueCalculating=!1),e},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||this.createCssClassesValue()},t.prototype.createCssClassesValue=function(){var e=this.calcCssClasses(this.css);return this.setPropertyValue("cssClassesValue",e),this.onCalcCssClasses(e),this.updateElementCssCore(this.cssClassesValue),e},t.prototype.onCalcCssClasses=function(e){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){var e=this.cssClasses;return e.requiredText||e.panel&&e.panel.requiredText},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.titleExpandableSvg},t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.resetPropertyValue("cssClassesValue")},t.prototype.getIsLoadingFromJson=function(){return i.prototype.getIsLoadingFromJson.call(this)?!0:this.surveyValue?this.surveyValue.isLoadingFromJson:!1},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var n=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&n&&this.onNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,n){this.data&&!this.isTwoValueEquals(n,this.data.getValue(e))&&this.data.setValue(e,n,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,n=0;n<this.errors.length;n++)this.errors[n].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRendered||(this.wasRenderedValue=!0,this.onFirstRenderingCore())},t.prototype.onFirstRenderingCore=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,n):this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.survey&&typeof this.survey.getRendererForString=="function"?this.survey.getRendererForString(this,e):this.locOwner&&typeof this.locOwner.getRenderer=="function"?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&typeof this.survey.getRendererContextForString=="function"?this.survey.getRendererContextForString(this,e):this.locOwner&&typeof this.locOwner.getRendererContext=="function"?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(!(!e||!Array.isArray(e))){var n=e.indexOf(this);n>-1&&e.splice(n,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return!e||!this.textProcessor?e:this.textProcessor.processText(e,!0)},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&e.isPage?e:null},t.prototype.moveToBase=function(e,n,r){if(r===void 0&&(r=null),!n)return!1;e.removeElement(this);var o=-1;return h.isNumber(r)&&(o=parseInt(r)),o==-1&&r&&r.getType&&(o=n.indexOf(r)),n.addElement(this,o),!0},t.prototype.setPage=function(e,n){var r=this.getPage(e);if(this.prevSurvey=this.survey,typeof n=="string"){var o=this.getSurvey();o.pages.forEach(function(s){n===s.name&&(n=s)})}r!==n&&(e&&e.removeElement(this),n&&n.addElement(this,-1),this.prevSurvey=void 0)},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&this.survey.getCss().root.indexOf("sd-root-modern")!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||this.parent===void 0},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return this.parent!==void 0&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var n=!!this.isCollapsed||!!this.isExpanded;return new _().append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,n&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,n).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){var e=this;return this.getPropertyValue("paddingLeft",void 0,function(){return e.calcPaddingLeft()})},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return""},Object.defineProperty(t.prototype,"paddingRight",{get:function(){var e=this;return this.getPropertyValue("paddingRight",void 0,function(){return e.calcPaddingRight()})},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingRight=function(){return""},t.prototype.resetIndents=function(){this.resetPropertyValue("paddingLeft"),this.resetPropertyValue("paddingRight")},t.prototype.updateRootStyle=function(){var e={},n;if(this.parent){var r=this.parent.getColumsForElement(this);n=r.reduce(function(u,d){return d.effectiveWidth+u},0),n&&n!==100&&(e.flexGrow=1,e.flexShrink=0,e.flexBasis=n+"%",e.minWidth=void 0,e.maxWidth=this.maxWidth)}if(Object.keys(e).length==0){var o=""+this.minWidth;if(o&&o!="auto"){if(o.indexOf("px")!=-1&&this.survey){o=o.replace("px","");var s=parseFloat(o);isNaN(s)||(o=s*this.survey.widthScale/100,o=""+o+"px")}o="min(100%, "+o+")"}this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=o,e.maxWidth=this.maxWidth)}this.rootStyle=e},t.prototype.isContainsSelection=function(e){var n=void 0,r=R.getDocument();if(R.isAvailable()&&r&&r.selection)n=r.selection.createRange().parentElement();else{var o=B.getSelection();if(o&&o.rangeCount>0){var s=o.getRangeAt(0);s.startOffset!==s.endOffset&&(n=s.startContainer.parentNode)}}return n==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(n){if(!(n&&e.isContainsSelection(n.target)))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return this.state!=="default"},t.prototype.processTitleClick=function(){this.state!=="default"&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){if(!e)return"";var n=this.state!=="default",r=4;return new _().append(e.title).append(e.titleNumInline,(this.no||"").length>r||n).append(e.titleExpandable,n).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var n=this.isPreviewStyle,r=e||this.isReadOnly,o=r&&!n,s=!this.isDefaultV2Theme&&(r||n);return[o,s]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&this.survey.state==="preview"},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach(function(e){e.updateText()})},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,n=function(o){e.isAnimatingCollapseExpand=!0,Vt(o)},r=function(o){e.isAnimatingCollapseExpand=!1,Xe(o)};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentEnter,onBeforeRunAnimation:n,onAfterRunAnimation:function(s){r(s),e.onElementExpanded(!0)}}},getLeaveOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getAnimatedElement:function(){var o,s=e.isPanel?e.cssClasses.panel:e.cssClasses;if(s.content){var u=ke(s.content);if(u)return(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+u)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var n=this._renderedIsExpanded;this.animationCollapsed.sync(e),!this.isExpandCollapseAnimationEnabled&&!n&&this.renderedIsExpanded&&this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.afterRenderCore=function(e){this.onAfterRenderElement.fire(this,{htmlElement:e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,rt([x({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),rt([x({defaultValue:!1})],t.prototype,"isDragMe",void 0),rt([x({onSet:function(e,n){n.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),rt([x({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),rt([x({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),rt([x({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),rt([x()],t.prototype,"rootStyle",void 0),rt([x()],t.prototype,"_renderedIsExpanded",void 0),t}(ir),Fi=function(){function i(t,e,n){var r=this;n===void 0&&(n=100),this._elements=t,this._renderedHandler=e,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=function(o,s){var u;(u=o.onAfterRenderElement)===null||u===void 0||u.remove(r._elementRenderedHandler),r._elementsToRenderCount--,r._elementsToRenderCount<=0&&r.visibleElementsRendered()},this._elements.forEach(function(o){o.onAfterRenderElement&&(o.onAfterRenderElement.add(r._elementRenderedHandler),r._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(function(){r._elementsToRenderCount>0&&r.visibleElementsRendered()},n):this.visibleElementsRendered()}return i.prototype.stopWaitingForElementsRendering=function(){var t=this;this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(function(e){var n;(n=e.onAfterRenderElement)===null||n===void 0||n.remove(t._elementRenderedHandler)}),this._elementsToRenderCount=0},i.prototype.visibleElementsRendered=function(){var t=this._renderedHandler;this.dispose(),typeof t=="function"&&t()},i.prototype.dispose=function(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0},i}(),gt=function(){function i(t,e,n,r){e===void 0&&(e=!1),this.owner=t,this.useMarkdown=e,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new pt,this._localizationName=r,this.onCreating()}return Object.defineProperty(i,"defaultLocale",{get:function(){return I.localization.defaultLocaleName},set:function(t){I.localization.defaultLocaleName=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"localizationName",{get:function(){return this._localizationName},set:function(t){this._localizationName!=t&&(this._localizationName=t,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowLineBreaks",{get:function(){var t;return this._allowLineBreaks===void 0&&(this._allowLineBreaks=!1,this.name&&this.owner instanceof ir&&(this._allowLineBreaks=((t=j.findProperty(this.owner.getType(),this.name))===null||t===void 0?void 0:t.type)=="text")),this._allowLineBreaks},enumerable:!1,configurable:!0}),i.prototype.getIsMultiple=function(){return!1},Object.defineProperty(i.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var t=this.owner.getLocale();if(t||!this.sharedData)return t}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),i.prototype.strChanged=function(){this.searchableText=void 0,!(this.renderedText===void 0&&this.isEmpty&&!this.onGetTextCallback&&!this.localizationName)&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(i.prototype,"text",{get:function(){return this.pureText},set:function(t){this.setLocaleText(this.locale,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"calculatedText",{get:function(){return this.renderedText=this.calculatedTextValue!==void 0?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),i.prototype.calcText=function(){var t=this.pureText;return t&&this.owner&&this.owner.getProcessedText&&t.indexOf("{")>-1&&(t=this.owner.getProcessedText(t)),this.onGetTextCallback&&(t=this.onGetTextCallback(t)),t},Object.defineProperty(i.prototype,"pureText",{get:function(){var t=this.locale;t||(t=this.defaultLoc);var e=this.getValue(t);if(this.isValueEmpty(e)&&t===this.defaultLoc&&(e=this.getValue(A.defaultLocale)),this.isValueEmpty(e)){var n=this.getRootDialect(t);n&&(e=this.getValue(n))}return this.isValueEmpty(e)&&t!==this.defaultLoc&&(e=this.getValue(this.defaultLoc)),this.isValueEmpty(e)&&this.getLocalizationName()&&(e=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(e=this.onGetLocalizationTextCallback(e))),e||(e=this.defaultValue||""),e},enumerable:!1,configurable:!0}),i.prototype.getRootDialect=function(t){if(!t)return t;var e=t.indexOf("-");return e>-1?t.substring(0,e):""},i.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},i.prototype.getLocalizationStr=function(){var t=this.getLocalizationName();return t?k(t,this.locale):""},Object.defineProperty(i.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getLocaleTextCore(t);return e||""},i.prototype.getLocaleTextCore=function(t){return t||(t=this.defaultLoc),this.getValue(t)},i.prototype.isLocaleTextEqualsWithDefault=function(t,e){var n=this.getLocaleTextCore(t);return n===e?!0:this.isValueEmpty(n)&&this.isValueEmpty(e)},i.prototype.clear=function(){this.setJson(void 0)},i.prototype.clearLocale=function(t){this.setLocaleText(t,void 0)},i.prototype.setLocaleText=function(t,e){if(t=this.getValueLoc(t),t&&e===void 0){var n=this.getValue(t);n!==void 0&&(this.deleteValue(t),this.fireStrChanged(t,n));return}if(!this.storeDefaultText&&this.isLocaleTextEqualsWithDefault(t,e)){if(!this.isValueEmpty(e)||t&&t!==this.defaultLoc)return;var r=A.defaultLocale,o=this.getValue(r);r&&!this.isValueEmpty(o)&&(this.setValue(r,e),this.fireStrChanged(r,o));return}if(!(!I.localization.storeDuplicatedTranslations&&!this.isValueEmpty(e)&&t&&t!=this.defaultLoc&&!this.getValue(t)&&e==this.getLocaleText(this.defaultLoc))){var s=this.curLocale;t||(t=this.defaultLoc);var u=this.onStrChanged&&t===s?this.pureText:void 0;delete this.htmlValues[t],this.isValueEmpty(e)?this.deleteValue(t):typeof e=="string"&&(this.canRemoveLocValue(t,e)?this.setLocaleText(t,null):(this.setValue(t,e),t==this.defaultLoc&&this.deleteValuesEqualsToDefault(e))),this.fireStrChanged(t,u)}},i.prototype.isValueEmpty=function(t){return t==null?!0:this.localizationName?!1:t===""},Object.defineProperty(i.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),i.prototype.canRemoveLocValue=function(t,e){if(I.localization.storeDuplicatedTranslations||t===this.defaultLoc)return!1;var n=this.getRootDialect(t);if(n){var r=this.getLocaleText(n);return r?r==e:this.canRemoveLocValue(n,e)}else return e==this.getLocaleText(this.defaultLoc)},i.prototype.fireStrChanged=function(t,e){if(this.strChanged(),!!this.onStrChanged){var n=this.pureText;(t!==this.curLocale||e!==n)&&this.onStrChanged(e,n)}},i.prototype.hasNonDefaultText=function(){var t=this.getValuesKeys();return t.length==0?!1:t.length>1||t[0]!=this.defaultLoc},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var t=this.getValuesKeys();if(t.length==0){if(this.serializeCallBackText){var e=this.calcText();if(e)return e}return null}if(t.length==1&&t[0]==I.localization.defaultLocaleName&&!I.serialization.localizableStringSerializeAsObject)return this.values[t[0]];var n={};for(var r in this.values)n[r]=this.values[r];return n},i.prototype.setJson=function(t,e){if(this.sharedData){this.sharedData.setJson(t,e);return}if(this.values={},this.htmlValues={},t!=null)if(e)typeof t=="string"?this.values[I.defaultLocaleName]=t:(this.values=t,delete this.values.pos);else{if(typeof t=="string")this.setLocaleText(null,t);else for(var n in t)this.setLocaleText(n,t[n]);this.strChanged()}},Object.defineProperty(i.prototype,"renderAs",{get:function(){return!this.owner||typeof this.owner.getRenderer!="function"?i.defaultRenderer:this.owner.getRenderer(this.name)||i.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderAsData",{get:function(){return!this.owner||typeof this.owner.getRendererContext!="function"?this:this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),i.prototype.equals=function(t){return this.sharedData?this.sharedData.equals(t):!t||!t.values?!1:h.isTwoValueEquals(this.values,t.values,!1,!0,!1)},i.prototype.setFindText=function(t){if(this.searchText!=t){if(this.searchText=t,!this.searchableText){var e=this.textOrHtml;this.searchableText=e?e.toLowerCase():""}var n=this.searchableText,r=n&&t?n.indexOf(t):void 0;return r<0&&(r=void 0),(r!=null||this.searchIndex!=r)&&(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),this.searchIndex!=null}},i.prototype.onChanged=function(){},i.prototype.onCreating=function(){},i.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var t=this.locale;if(t||(t=this.defaultLoc),this.htmlValues[t]!==void 0)return!!this.htmlValues[t];var e=this.calculatedText;if(!e)return this.setHtmlValue(t,""),!1;if(this.getLocalizationName()&&e===this.getLocalizationStr())return this.setHtmlValue(t,""),!1;var n=this.owner.getMarkdownHtml(e,this.name);return this.setHtmlValue(t,n),!!n},i.prototype.setHtmlValue=function(t,e){this.htmlValues[t]=e},i.prototype.getHtmlValue=function(){var t=this.locale;return t||(t=this.defaultLoc),this.htmlValues[t]},i.prototype.deleteValuesEqualsToDefault=function(t){if(!I.localization.storeDuplicatedTranslations)for(var e=this.getValuesKeys(),n=0;n<e.length;n++)e[n]!=this.defaultLoc&&this.getValue(e[n])==t&&this.deleteValue(e[n])},i.prototype.getValue=function(t){return this.sharedData?this.sharedData.getValue(t):this.values[this.getValueLoc(t)]},i.prototype.setValue=function(t,e){this.sharedData?this.sharedData.setValue(t,e):this.values[this.getValueLoc(t)]=e},i.prototype.deleteValue=function(t){this.sharedData?this.sharedData.deleteValue(t):delete this.values[this.getValueLoc(t)]},i.prototype.getValueLoc=function(t){return this.disableLocalization?I.localization.defaultLocaleName:t},i.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(i.prototype,"defaultLoc",{get:function(){return I.localization.defaultLocaleName},enumerable:!1,configurable:!0}),i.SerializeAsObject=!1,i.defaultRenderer="sv-string-viewer",i.editableRenderer="sv-string-editor",i}(),Hr=function(){function i(t){this.owner=t,this.values={}}return i.prototype.getIsMultiple=function(){return!0},Object.defineProperty(i.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue("")},set:function(t){this.setValue("",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join(`
-`):""},set:function(t){this.value=t?t.split(`
-`):[]},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getValueCore(t,!t||t===this.locale);return!e||!Array.isArray(e)||e.length==0?"":e.join(`
-`)},i.prototype.setLocaleText=function(t,e){var n=e?e.split(`
-`):null;this.setValue(t,n)},i.prototype.getValue=function(t){return this.getValueCore(t)},i.prototype.getValueCore=function(t,e){if(e===void 0&&(e=!0),t=this.getLocale(t),this.values[t])return this.values[t];if(e){var n=I.localization.defaultLocaleName;if(t!==n&&this.values[n])return this.values[n]}return[]},i.prototype.setValue=function(t,e){t=this.getLocale(t);var n=h.createCopy(this.values);!e||e.length==0?delete this.values[t]:this.values[t]=e,this.onValueChanged&&this.onValueChanged(n,this.values)},i.prototype.hasValue=function(t){return t===void 0&&(t=""),!this.isEmpty&&this.getValue(t).length>0},Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),i.prototype.getLocale=function(t){return t||(t=this.locale,t||I.localization.defaultLocaleName)},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){var t=this.getValuesKeys();return t.length==0?null:t.length==1&&t[0]==I.localization.defaultLocaleName&&!I.serialization.localizableStringSerializeAsObject?this.values[t[0]]:h.createCopy(this.values)},i.prototype.setJson=function(t){if(this.values={},!!t)if(Array.isArray(t))this.setValue(null,t);else for(var e in t)this.setValue(e,t[e])},i.prototype.getValuesKeys=function(){return Object.keys(this.values)},i}();function ki(i){return I&&I.confirmActionFunc?I.confirmActionFunc(i):confirm(i)}function Wt(i){var t=function(e){e?i.funcOnYes():i.funcOnNo&&i.funcOnNo()};I&&I.confirmActionAsync&&I.confirmActionAsync(i.message,t,i)||t(ki(i.message))}function Dn(){if(typeof Dn.isIEOrEdge>"u"){var i=navigator.userAgent,t=i.indexOf("MSIE "),e=i.indexOf("Trident/"),n=i.indexOf("Edge/");Dn.isIEOrEdge=n>0||e>0||t>0}return Dn.isIEOrEdge}function sr(i,t){try{for(var e=atob(i.split(",")[1]),n=i.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),o=new Uint8Array(r),s=0;s<e.length;s++)o[s]=e.charCodeAt(s);var u=new Blob([r],{type:n});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(u,t)}catch{}}function an(){return B.isAvailable()&&B.hasOwn("orientation")}var An=function(i){return!!i&&!!("host"in i&&i.host)},Ln=function(i){var t=I.environment.root;return typeof i=="string"?t.getElementById(i):i};function es(i,t){if(typeof I.environment>"u")return!1;var e=I.environment.root,n=An(e)?e.host.clientHeight:e.documentElement.clientHeight,r=i.getBoundingClientRect(),o=Math.max(n,B.getInnerHeight()),s=-50,u=o+t,d=r.top,y=r.bottom,V=Math.max(s,d),T=Math.min(u,y);return V<=T}function ar(i){var t=I.environment.root;return i?i.scrollHeight>i.clientHeight&&(getComputedStyle(i).overflowY==="scroll"||getComputedStyle(i).overflowY==="auto")||i.scrollWidth>i.clientWidth&&(getComputedStyle(i).overflowX==="scroll"||getComputedStyle(i).overflowX==="auto")?i:ar(i.parentElement):An(t)?t.host:t.documentElement}function lr(i){var t=I.environment;if(t){var e=t.root,n=e.getElementById(i);if(n){var r=ar(n);r&&setTimeout(function(){return r.dispatchEvent(new CustomEvent("scroll"))},10)}}}function Qi(i){var t=B.getLocation();!i||!t||(t.href=Ui(i))}function zr(i){return i?["url(",i,")"].join(""):""}function Hi(i){return typeof i=="string"?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(i):null}var ur={changecamera:"flip-24x24",clear:"clear-24x24",cancel:"cancel-24x24",closecamera:"close-24x24",defaultfile:"file-72x72",choosefile:"folder-24x24",file:"toolbox-file-24x24",left:"chevronleft-16x16",modernbooleancheckchecked:"plus-32x32",modernbooleancheckunchecked:"minus-32x32",more:"more-24x24",navmenu_24x24:"navmenu-24x24",removefile:"error-24x24",takepicture:"camera-32x32",takepicture_24x24:"camera-24x24",v2check:"check-16x16",checked:"check-16x16",v2check_24x24:"check-24x24","back-to-panel_16x16":"restoredown-16x16",clear_16x16:"clear-16x16",close_16x16:"close-16x16",collapsedetail:"collapsedetails-16x16",expanddetail:"expanddetails-16x16","full-screen_16x16":"maximize-16x16",loading:"loading-48x48",minimize_16x16:"minimize-16x16",next_16x16:"chevronright-16x16",previous_16x16:"chevronleft-16x16","no-image":"noimage-48x48","ranking-dash":"rankingundefined-16x16","drag-n-drop":"drag-24x24","ranking-arrows":"reorder-24x24",restore_16x16:"fullsize-16x16",reset:"restore-24x24",search:"search-24x24",average:"smiley-rate5-24x24",excellent:"smiley-rate9-24x24",good:"smiley-rate7-24x24",normal:"smiley-rate6-24x24","not-good":"smiley-rate4-24x24",perfect:"smiley-rate10-24x24",poor:"smiley-rate3-24x24",terrible:"smiley-rate1-24x24","very-good":"smiley-rate8-24x24","very-poor":"smiley-rate2-24x24",add_16x16:"add-16x16",add_24x24:"add-24x24",alert_24x24:"warning-24x24",apply:"apply-24x24","arrow-down":"arrowdown-24x24","arrow-left":"arrowleft-24x24","arrow-left_16x16":"arrowleft-16x16",arrowleft:"arrowleft-16x16","arrow-right":"arrowright-24x24","arrow-right_16x16":"arrowright-16x16",arrowright:"arrowright-16x16","arrow-up":"arrowup-24x24",boolean:"toolbox-boolean-24x24","change-question-type_16x16":"speechbubble-16x16",checkbox:"toolbox-checkbox-24x24","collapse-detail_16x16":"minusbox-16x16","collapse-panel":"collapse-pg-24x24",collapse_16x16:"collapse-16x16","color-picker":"dropper-16x16",comment:"toolbox-longtext-24x24",config:"wrench-24x24",copy:"copy-24x24",default:"toolbox-customquestion-24x24",delete_16x16:"delete-16x16",delete_24x24:"delete-24x24",delete:"delete-24x24","description-hide":"hidehint-16x16",description:"hint-16x16","device-desktop":"desktop-24x24","device-phone":"phone-24x24","device-rotate":"rotate-24x24","device-tablet":"tablet-24x24",download:"download-24x24","drag-area-indicator":"drag-24x24","drag-area-indicator_24x16":"draghorizontal-24x16",v2dragelement_16x16:"draghorizontal-24x16","drop-down-arrow":"chevrondown-24x24","drop-down-arrow_16x16":"chevrondown-16x16",chevron_16x16:"chevrondown-16x16",dropdown:"toolbox-dropdown-24x24",duplicate_16x16:"copy-16x16",edit:"edit-24x24",edit_16x16:"edit-16x16","editing-finish":"finishedit-24x24",error:"error-16x16","expand-detail_16x16":"plusbox-16x16","expand-panel":"expand-pg-24x24",expand_16x16:"expand-16x16",expression:"toolbox-expression-24x24","fast-entry":"textedit-24x24",fix:"fix-24x24",html:"toolbox-html-24x24",image:"toolbox-image-24x24",imagepicker:"toolbox-imagepicker-24x24",import:"import-24x24","invisible-items":"invisible-24x24",language:"language-24x24",load:"import-24x24","logic-collapse":"collapse-24x24","logic-expand":"expand-24x24",logo:"image-48x48",matrix:"toolbox-matrix-24x24",matrixdropdown:"toolbox-multimatrix-24x24",matrixdynamic:"toolbox-dynamicmatrix-24x24",multipletext:"toolbox-multipletext-24x24",panel:"toolbox-panel-24x24",paneldynamic:"toolbox-dynamicpanel-24x24",preview:"preview-24x24",radiogroup:"toolbox-radiogroup-24x24",ranking:"toolbox-ranking-24x24",rating:"toolbox-rating-24x24",redo:"redo-24x24",remove_16x16:"remove-16x16",required:"required-16x16",save:"save-24x24","select-page":"selectpage-24x24",settings:"settings-24x24",settings_16x16:"settings-16x16",signaturepad:"toolbox-signature-24x24","switch-active_16x16":"switchon-16x16","switch-inactive_16x16":"switchoff-16x16",tagbox:"toolbox-tagbox-24x24",text:"toolbox-singleline-24x24",theme:"theme-24x24",toolbox:"toolbox-24x24",undo:"undo-24x24",visible:"visible-24x24",wizard:"wand-24x24",searchclear:"clear-16x16","chevron-16x16":"chevrondown-16x16",chevron:"chevrondown-24x24",progressbuttonv2:"arrowleft-16x16",right:"chevronright-16x16","add-lg":"add-24x24",add:"add-24x24"};function Ur(i){var t=zi(i);return t||cr(i)}function cr(i){var t="icon-",e=i.replace(t,""),n=ur[e]||e;return t+n}function zi(i){var t=I.customIcons[i];return t?cr(t):(i=cr(i),t=I.customIcons[i],t||null)}function Mn(i,t,e,n,r,o){if(r){i!=="auto"&&(r.style.width=(i||t||16)+"px",r.style.height=(i||e||16)+"px");var s=r.childNodes[0],u=Ur(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+u);var d=r.getElementsByTagName("title")[0];if(o)d||(d=R.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),r.appendChild(d));else{d&&r.removeChild(d);return}d.textContent=o}}function Ui(i){return i&&(i.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(i):i)}function ts(i){return typeof i!="function"?i:i()}function Et(i){if(typeof i=="string")if(isNaN(Number(i))){if(i.includes("px"))return parseFloat(i)}else return Number(i);if(typeof i=="number")return i}function pr(i){if(Et(i)===void 0)return i}var jn="sv-focused--by-key";function Wi(i){var t=i.target;!t||!t.classList||t.classList.remove(jn)}function fr(i,t){if(!(i.target&&i.target.contentEditable==="true")){var e=i.target;if(e){var n=i.which||i.keyCode;if(n===9){e.classList&&!e.classList.contains(jn)&&e.classList.add(jn);return}if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}n===13||n===32?e.click&&e.click():(!t||t.processEsc)&&n===27&&e.blur&&e.blur()}}}function $i(i,t){if(t===void 0&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!(i.target&&i.target.contentEditable==="true")){var e=i.which||i.keyCode,n=[13,32];t.processEsc&&n.push(27),n.indexOf(e)!==-1&&i.preventDefault()}}function dr(i,t){if(i){t||(t=function(n){return R.getComputedStyle(n)});var e=t(i);i.style.height="auto",i.scrollHeight&&(i.style.height=i.scrollHeight+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+"px")}}function ns(i){return i.originalEvent||i}function Ji(i){i.preventDefault(),i.stopPropagation()}function ke(i){if(!i)return i;var t=/\s*?([\w-]+)\s*?/g;return i.replace(t,".$1")}function Wr(i){return getComputedStyle?Number.parseFloat(getComputedStyle(i).width):i.offsetWidth}function hr(i){return!!(i.offsetWidth||i.offsetHeight||i.getClientRects().length)}function rs(i){for(var t,e=0;e<i.children.length;e++)!t&&getComputedStyle(i.children[e]).display!=="none"&&(t=i.children[e]);return t}function Gi(i,t){if(t===void 0&&(t=!0),B.isAvailable()&&R.isAvailable()&&i.childNodes.length>0){var e=B.getSelection();if(e.rangeCount==0)return;var n=e.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(i.lastChild),e.removeAllRanges(),e.addRange(n);var r=e.toString(),o=i.innerText;r=r.replace(/\r/g,""),t&&(r=r.replace(/\n/g,""),o=o.replace(/\n/g,""));var s=r.length;for(i.innerText=o,n=R.getDocument().createRange(),n.setStart(i.firstChild,0),n.setEnd(i.firstChild,0),e.removeAllRanges(),e.addRange(n);e.toString().length<o.length-s;){var u=e.toString().length;if(e.modify("extend","forward","character"),e.toString().length==u)break}n=e.getRangeAt(0),n.setStart(n.endContainer,n.endOffset)}}function ln(i,t){if(!(!t||!i)&&typeof t=="object")for(var e in i){var n=i[e];!Array.isArray(n)&&n&&typeof n=="object"?((!t[e]||typeof t[e]!="object")&&(t[e]={}),ln(n,t[e])):t[e]=n}}function Nn(i,t){var e={};ln(t.list,e),ln(i.list,e),i.list=e}(function(){function i(){this._result=""}return i.prototype.log=function(t){this._result+="->"+t},Object.defineProperty(i.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),i})();function is(i,t,e){var n=new gt(void 0),r=I.showDialog({componentName:"sv-string-viewer",data:{locStr:n,locString:n,model:n},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:i||e.message,displayMode:"popup",isFocusedContent:!1,cssClass:e.cssClass||"sv-popup--confirm"},e.rootElement),o=r.footerToolbar,s=o.getActionById("apply"),u=o.getActionById("cancel");return u.title=k("cancel",e.locale),u.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",s.title=e.applyTitle||k("ok",e.locale),s.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",Zi(r),!0}function Zi(i){i.width="min-content"}function Ki(i,t){B.isFileReaderAvailable()&&(i.value="",i.onchange=function(e){if(B.isFileReaderAvailable()&&!(!i||!i.files||i.files.length<1)){for(var n=[],r=0;r<i.files.length;r++)n.push(i.files[r]);t(n)}},i.click())}function Yi(i,t,e){var n=new Map,r=new Map,o=new Map,s=new Map;i.forEach(function(Y){var J=e(Y);if(!n.has(J))n.set(e(Y),Y);else throw new Error("keys must be unique")}),t.forEach(function(Y){var J=e(Y);if(!r.has(J))r.set(J,Y);else throw new Error("keys must be unique")});var u=[],d=[];r.forEach(function(Y,J){n.has(J)?o.set(J,o.size):u.push(Y)}),n.forEach(function(Y,J){r.has(J)?s.set(J,s.size):d.push(Y)});var y=[];o.forEach(function(Y,J){var ue=s.get(J),Me=r.get(J);ue!==Y&&y.push({item:Me,movedForward:ue<Y})});var V=new Array(i.length),T=0,N=Array.from(o.keys());i.forEach(function(Y,J){o.has(e(Y))?(V[J]=r.get(N[T]),T++):V[J]=Y});var U=new Map,W=[];V.forEach(function(Y){var J=e(Y);r.has(J)?W.length>0&&(U.set(J,W),W=[]):W.push(Y)});var X=new Array;return r.forEach(function(Y,J){U.has(J)&&U.get(J).forEach(function(ue){X.push(ue)}),X.push(Y)}),W.forEach(function(Y){X.push(Y)}),{reorderedItems:y,deletedItems:d,addedItems:u,mergedItems:X}}function os(i){if(R.isAvailable()){var t=R.getComputedStyle(i),e=t.paddingTop,n=t.paddingBottom,r=t.borderTopWidth,o=t.borderBottomWidth,s=t.marginTop,u=t.marginBottom,d=t.boxSizing,y=i.offsetHeight+"px";if(d=="content-box"){var V=i.offsetHeight;[o,r,n,e].forEach(function(T){V-=parseFloat(T)}),y=V+"px"}return{paddingTop:e,paddingBottom:n,borderTopWidth:r,borderBottomWidth:o,marginTop:s,marginBottom:u,heightFrom:"0px",heightTo:y}}else return}function un(i,t,e){var n;e===void 0&&(e="--animation-"),i.__sv_created_properties=(n=i.__sv_created_properties)!==null&&n!==void 0?n:[],Object.keys(t).forEach(function(r){var o=""+e+r.split(/\.?(?=[A-Z])/).join("-").toLowerCase();i.style.setProperty(o,t[r]),i.__sv_created_properties.push(o)})}function Vt(i){un(i,os(i))}function Xe(i){Array.isArray(i.__sv_created_properties)&&(i.__sv_created_properties.forEach(function(t){i.style.removeProperty(t)}),delete i.__sv_created_properties)}function Xi(i){return Math.floor(i*100)/100}var qn=typeof globalThis<"u"?globalThis.document:(void 0).document,ss=qn?{root:qn,_rootElement:R.getBody(),get rootElement(){var i;return(i=this._rootElement)!==null&&i!==void 0?i:R.getBody()},set rootElement(i){this._rootElement=i},_popupMountContainer:R.getBody(),get popupMountContainer(){var i;return(i=this._popupMountContainer)!==null&&i!==void 0?i:R.getBody()},set popupMountContainer(i){this._popupMountContainer=i},svgMountContainer:qn.head,stylesSheetsMountContainer:qn.head}:void 0,eo={file:{minWidth:"240px"},comment:{minWidth:"200px"}},I={version:"",designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(i){this.designMode.showEmptyDescriptions=i},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(i){this.designMode.showEmptyTitles=i},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(i){this.localization.useLocalTimeZone=i},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(i){this.localization.storeDuplicatedTranslations=i},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(i){this.localization.defaultLocaleName=i},web:{onBeforeRequestChoices:function(i,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(i){this.web.encodeUrlParams=i},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(i){this.web.cacheLoadedChoices=i},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(i){this.web.cacheLoadedChoices=i},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(i){this.web.disableQuestionWhileLoadingChoices=i},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(i){this.web.surveyServiceUrl=i},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(i){this.triggers.executeCompleteOnValueChanged=i},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(i){this.triggers.changeNavigationButtonsOnComplete=i},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(i){this.triggers.executeSkipOnValueChanged=i},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(i){this.serialization.itemValueSerializeAsObject=i},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(i){this.serialization.itemValueSerializeDisplayText=i},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(i){this.serialization.localizableStringSerializeAsObject=i},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(i){this.lazyRender.enabled=i},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(i){this.lazyRender.firstBatchSize=i},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:eo,rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(i){this.matrix.defaultRowName=i},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(i){this.matrix.defaultCellType=i},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(i){this.matrix.totalsSuffix=i},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(i){this.matrix.maxRowCount=i},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(i){this.matrix.maxRowCountInCondition=i},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(i){this.matrix.renderRemoveAsIcon=i},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(i){this.panel.maxPanelCountInCondition=i},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(i){this.panel.maxPanelCount=i},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(i){this.readOnly.commentRenderMode=i},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(i){this.readOnly.textRenderMode=i},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(i){this.numbering.includeQuestionsWithHiddenTitle=i},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(i){this.numbering.includeQuestionsWithHiddenNumber=i},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(i,t){return i}},expressionDisableConversionChar:"#",get commentPrefix(){return I.commentSuffix},set commentPrefix(i){I.commentSuffix=i},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(i){return confirm(i)},confirmActionAsync:function(i,t,e){return is(i,t,e)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:ss,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}},storeUtcDates:!1,onDateCreated:function(i,t,e){return i},parseNumber:function(i,t){return t}},et=function(){function i(t,e){t===void 0&&(t=null),e===void 0&&(e=null),this.text=t,this.errorOwner=e,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return i.prototype.equals=function(t){return!t||!t.getErrorType||this.getErrorType()!==t.getErrorType()?!1:this.text===t.text&&this.visible===t.visible},Object.defineProperty(i.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new gt(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),i.prototype.getText=function(){var t=this.text;return t||(t=this.getDefaultText()),this.errorOwner&&(t=this.errorOwner.getErrorCustomText(t,this)),t},i.prototype.getErrorType=function(){return"base"},i.prototype.getDefaultText=function(){return""},i.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},i.prototype.getLocalizationString=function(t){return k(t,this.getLocale())},i.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},i}(),it=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$r=function(i){it(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(et),to=function(i){it(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(et),Jr=function(i){it(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(et),Gr=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.maxSize=e,r.locText.text=r.getText(),r}return t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return k("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],n=[0,0,2,3,3];if(this.maxSize===0)return"0 Byte";var r=Math.floor(Math.log(this.maxSize)/Math.log(1024)),o=this.maxSize/Math.pow(1024,r);return o.toFixed(n[r])+" "+e[r]},t}(et),as=function(i){it(t,i);function t(e,n,r){r===void 0&&(r=null);var o=i.call(this,null,r)||this;return o.status=e,o.response=n,o}return t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(et),ls=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(et),no=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(et),_n=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(et),ro=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(et),us=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(et),io=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.minRowCount=e,r}return t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return k("minRowCountError").format(this.minRowCount)},t}(et),oo=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(et),ot=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"custom"},t}(et),$t=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ft=function(){function i(t,e){e===void 0&&(e=null),this.value=t,this.error=e}return i}(),Jt=function(i){$t(t,i);function t(){var e=i.call(this)||this;return e.createLocalizableString("text",e,!0),e}return Object.defineProperty(t.prototype,"isValidator",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,n,r,o){return null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var n=this,r=new ot(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(o){return o.text=n.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(fe),Zr=function(){function i(){}return i.prototype.run=function(t){var e=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var s=[],u=t.getValidators(),d=0;d<u.length;d++){var y=u[d];!r&&y.isValidateAllValues&&(r=t.getDataFilteredValues(),o=t.getDataFilteredProperties()),y.isAsync&&(this.asyncValidators.push(y),y.onAsyncCompleted=function(T){if(T&&T.error&&s.push(T.error),!!e.onAsyncCompleted){for(var N=0;N<e.asyncValidators.length;N++)if(e.asyncValidators[N].isRunning)return;e.onAsyncCompleted(s)}})}u=t.getValidators();for(var d=0;d<u.length;d++){var y=u[d],V=y.validate(t.validatedValue,t.getValidatorTitle(),r,o);V&&V.error&&n.push(V.error)}return this.asyncValidators.length==0&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},i.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var t=0;t<this.asyncValidators.length;t++)this.asyncValidators[t].onAsyncCompleted=null;this.asyncValidators=[]},i}(),so=function(i){$t(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minValue=e,r.maxValue=n,r}return t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!h.isNumber(e))return new ft(null,new Jr(this.text,this.errorOwner));var s=new ft(h.getNumber(e));return this.minValue!==null&&this.minValue>s.value?(s.error=this.createCustomError(n),s):this.maxValue!==null&&this.maxValue<s.value?(s.error=this.createCustomError(n),s):typeof e=="number"?null:s},t.prototype.getDefaultErrorText=function(e){var n=e||this.getLocalizationString("value");return this.minValue!==null&&this.maxValue!==null?this.getLocalizationFormatString("numericMinMax",n,this.minValue,this.maxValue):this.minValue!==null?this.getLocalizationFormatString("numericMin",n,this.minValue):this.getLocalizationFormatString("numericMax",n,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(Jt),Kr=function(i){$t(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!this.allowDigits){var s=/\d+$/;if(s.test(e))return new ft(null,this.createCustomError("textNoDigitsAllow"))}return this.minLength>0&&e.length<this.minLength?new ft(null,this.createCustomError(n)):this.maxLength>0&&e.length>this.maxLength?new ft(null,this.createCustomError(n)):null},t.prototype.getDefaultErrorText=function(e){return e==="textNoDigitsAllow"?this.getLocalizationString(e):this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(Jt),ao=function(i){$t(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minCount=e,r.maxCount=n,r}return t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,n,r,o){if(e==null||e.constructor!=Array)return null;var s=e.length;return s==0?null:this.minCount&&s<this.minCount?new ft(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&s>this.maxCount?new ft(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(Jt),Yr=function(i){$t(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.regex=e,n}return t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),!this.regex||this.isValueEmpty(e))return null;var s=this.createRegExp();if(Array.isArray(e))for(var u=0;u<e.length;u++){var d=this.hasError(s,e[u],n);if(d)return d}return this.hasError(s,e,n)},t.prototype.hasError=function(e,n,r){return e.test(n)?null:new ft(n,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caseInsensitive",{get:function(){return this.getPropertyValue("caseInsensitive")},set:function(e){this.setPropertyValue("caseInsensitive",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.caseInsensitive},set:function(e){this.caseInsensitive=e},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.caseInsensitive?"i":"")},t}(Jt),Xr=function(i){$t(t,i);function t(){var e=i.call(this)||this;return e.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,e}return t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,n,r,o){return n===void 0&&(n=null),!e||this.re.test(e)?null:new ft(e,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(Jt),ei=function(i){$t(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=e,n}return t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return this.ensureConditionRunner(!1)?this.conditionRunner.isAsync:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,n,r,o){var s=this;if(n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.expression)return null;this.conditionRunner&&(this.conditionRunner.onRunComplete=null),this.ensureConditionRunner(!0),this.conditionRunner.onRunComplete=function(d){s.isRunningValue=!1,s.onAsyncCompleted&&s.onAsyncCompleted(s.generateError(d,e,n))},this.isRunningValue=!0;var u=this.conditionRunner.run(r,o);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(u,e,n))},t.prototype.generateError=function(e,n,r){return e?null:new ft(n,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(e){return this.expression?(e||!this.conditionRunner?this.conditionRunner=new Ue(this.expression):this.conditionRunner.expression=this.expression,!0):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(Jt);j.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),j.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new so},"surveyvalidator"),j.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new Kr},"surveyvalidator"),j.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new ao},"surveyvalidator"),j.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new Yr},"surveyvalidator"),j.addClass("emailvalidator",[],function(){return new Xr},"surveyvalidator"),j.addClass("expressionvalidator",["expression:condition"],function(){return new ei},"surveyvalidator");var lo=function(){function i(t,e){this.name=t,this.widgetJson=e,this.htmlTemplate=e.htmlTemplate?e.htmlTemplate:""}return i.prototype.afterRender=function(t,e){var n=this;this.widgetJson.afterRender&&(t.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(t,e),n.widgetJson.afterRender(t,e)},this.widgetJson.afterRender(t,e))},i.prototype.willUnmount=function(t,e){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(t,e)},i.prototype.getDisplayValue=function(t,e){return e===void 0&&(e=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(t,e):null},i.prototype.validate=function(t){if(this.widgetJson.validate)return this.widgetJson.validate(t)},i.prototype.isFit=function(t){return this.isLibraryLoaded()&&this.widgetJson.isFit?this.widgetJson.isFit(t):!1},Object.defineProperty(i.prototype,"canShowInToolbox",{get:function(){return this.widgetJson.showInToolbox===!1||Bn.Instance.getActivatedBy(this.name)!="customtype"?!1:!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showInToolbox",{get:function(){return this.widgetJson.showInToolbox!==!1},set:function(t){this.widgetJson.showInToolbox=t},enumerable:!1,configurable:!0}),i.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},i.prototype.activatedByChanged=function(t){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(t)},i.prototype.isLibraryLoaded=function(){return this.widgetJson.widgetIsLoaded?this.widgetJson.widgetIsLoaded()==!0:!0},Object.defineProperty(i.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),i}(),Bn=function(){function i(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new Vn}return Object.defineProperty(i.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),i.prototype.add=function(t,e){e===void 0&&(e="property"),this.addCustomWidget(t,e)},i.prototype.addCustomWidget=function(t,e){e===void 0&&(e="property");var n=t.name;n||(n="widget_"+this.widgets.length+1);var r=new lo(n,t);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=e,r.activatedByChanged(e),this.onCustomWidgetAdded.fire(r,null),r},i.prototype.getActivatedBy=function(t){var e=this.widgetsActivatedBy[t];return e||"property"},i.prototype.setActivatedBy=function(t,e){if(!(!t||!e)){var n=this.getCustomWidgetByName(t);n&&(this.widgetsActivatedBy[t]=e,n.activatedByChanged(e))}},i.prototype.clear=function(){this.widgetsValues=[]},i.prototype.getCustomWidgetByName=function(t){for(var e=0;e<this.widgets.length;e++)if(this.widgets[e].name==t)return this.widgets[e];return null},i.prototype.getCustomWidget=function(t){for(var e=0;e<this.widgetsValues.length;e++)if(this.widgetsValues[e].isFit(t))return this.widgetsValues[e];return null},i.Instance=new i,i}(),uo=function(){function i(){this.renderersHash={},this.defaultHash={}}return i.prototype.unregisterRenderer=function(t,e){delete this.renderersHash[t][e],this.defaultHash[t]===e&&delete this.defaultHash[t]},i.prototype.registerRenderer=function(t,e,n,r){r===void 0&&(r=!1),this.renderersHash[t]||(this.renderersHash[t]={}),this.renderersHash[t][e]=n,r&&(this.defaultHash[t]=e)},i.prototype.getRenderer=function(t,e){var n=this.renderersHash[t];if(n){if(e&&n[e])return n[e];var r=this.defaultHash[t];if(r&&n[r])return n[r]}return"default"},i.prototype.getRendererByQuestion=function(t){return this.getRenderer(t.getType(),t.renderAs)},i.prototype.clear=function(){this.renderersHash={}},i.Instance=new i,i}(),Fn=function(){function i(t){var e=this;this.options=t,this.onPropertyChangedCallback=function(){e.element&&(e.element.value=e.getTextValue(),e.updateElement())},this.question.registerFunctionOnPropertyValueChanged(this.options.propertyName,this.onPropertyChangedCallback,"__textarea")}return i.prototype.updateElement=function(){var t=this;this.element&&this.autoGrow&&setTimeout(function(){return dr(t.element)},1)},i.prototype.setElement=function(t){t&&(this.element=t,this.updateElement())},i.prototype.resetElement=function(){this.element=void 0},i.prototype.getTextValue=function(){return this.options.getTextValue&&this.options.getTextValue()||""},i.prototype.onTextAreaChange=function(t){this.options.onTextAreaChange&&this.options.onTextAreaChange(t)},i.prototype.onTextAreaInput=function(t){this.options.onTextAreaInput&&this.options.onTextAreaInput(t),this.element&&this.autoGrow&&dr(this.element)},i.prototype.onTextAreaKeyDown=function(t){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(t)},i.prototype.onTextAreaBlur=function(t){this.onTextAreaChange(t),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(t)},i.prototype.onTextAreaFocus=function(t){this.options.onTextAreaFocus&&this.options.onTextAreaFocus(t)},Object.defineProperty(i.prototype,"question",{get:function(){return this.options.question},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.options.id()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this.options.placeholder()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){return this.options.className()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxLength",{get:function(){if(this.options.maxLength)return this.options.maxLength()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"autoGrow",{get:function(){if(this.options.autoGrow)return this.options.autoGrow()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rows",{get:function(){if(this.options.rows)return this.options.rows()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cols",{get:function(){if(this.options.cols)return this.options.cols()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabledAttr",{get:function(){return this.options.isDisabledAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnlyAttr",{get:function(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaRequired",{get:function(){if(this.options.ariaRequired)return this.options.ariaRequired()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabel",{get:function(){if(this.options.ariaLabel)return this.options.ariaLabel()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaInvalid",{get:function(){if(this.options.ariaInvalid)return this.options.ariaInvalid()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabelledBy",{get:function(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaDescribedBy",{get:function(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaErrormessage",{get:function(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.question&&this.question.unRegisterFunctionOnPropertyValueChanged(this.options.propertyName,"__textarea"),this.resetElement()},i}(),cs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Gt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ti=function(){function i(t,e,n){this.name=t,this.canRun=e,this.doComplete=n,this.runSecondCheck=function(r){return!1}}return i}(),Be=function(i){cs(t,i);function t(e){var n=i.call(this,e)||this;n.customWidgetData={isNeedRender:!0},n.hasCssErrorCallback=function(){return!1},n.isReadyValue=!0,n.dependedQuestions=[],n.onReadyChanged=n.addEvent(),n.triggersInfo=[],n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",function(o){o.errorOwner=n}),n.addExpressionProperty("visibleIf",function(o,s){n.visible=s===!0}),n.addExpressionProperty("enableIf",function(o,s){n.readOnly=s===!1}),n.addExpressionProperty("requiredIf",function(o,s){n.isRequired=s===!0}),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.createLocalizableString("requiredErrorText",n),n.addTriggerInfo("resetValueIf",function(){return!n.isEmpty()},function(){n.startSetValueOnExpression(),n.clearValue(),n.updateValueWithDefaults(),n.finishSetValueOnExpression()});var r=n.addTriggerInfo("setValueIf",function(){return!0},function(){return n.runSetValueExpression()});return r.runSecondCheck=function(o){return n.checkExpressionIf(o)},n.registerPropertyChangedHandlers(["width"],function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["isRequired"],function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()}),n.registerPropertyChangedHandlers(["indent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){n.initCommentFromSurvey()}),n.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],function(){n.updateQuestionCss()}),n.registerPropertyChangedHandlers(["_isMobile"],function(){n.onMobileChanged()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var o;(o=n.parent)===null||o===void 0||o.updateColumns()}),n}return t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&I.readOnly.commentRenderMode==="div"},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){var n=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=n},t.prototype.getIsMobile=function(){return this._isMobile},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.getIsMobile()},set:function(e){this._isMobile=e},enumerable:!1,configurable:!0}),t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(r){return r||(r=e.getDefaultTitle()),e.survey?e.survey.getUpdatedQuestionTitle(e,r):r},this.locProcessedTitle=new gt(this,!0),this.locProcessedTitle.sharedData=n,n},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new Fn(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getCommentTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.commentId},propertyName:"comment",className:function(){return e.cssClasses.comment},placeholder:function(){return e.renderedCommentPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},autoGrow:function(){return e.autoGrowComment},maxLength:function(){return e.getOthersMaxLength()},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},getTextValue:function(){return e.comment},onTextAreaChange:function(r){e.onCommentChange(r)},onTextAreaInput:function(r){e.onCommentInput(r)}};return n},t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e?this.parent?this.parent.getSurvey(e):null:this.onGetSurvey?this.onGetSurvey():i.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var n=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.onAsyncRunningChanged=function(){this.updateIsReady()},t.prototype.updateIsReady=function(){var e=this.getIsQuestionReady();if(e){for(var n=this.getIsReadyDependsOn(),r=0;r<n.length;r++)if(!n[r].getIsQuestionReady()){e=!1;break}}this.setIsReady(e)},t.prototype.getIsQuestionReady=function(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()},t.prototype.getAreNestedQuestionsReady=function(){var e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!e[n].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var n=this.isReadyValue;this.isReadyValue=e,n!=e&&(this.getIsReadyDependends().forEach(function(r){return r.updateIsReady()}),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:n}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var n=this;if(!this.survey)return[];var r=this.survey.questionsByValueName(this.getValueName()),o=new Array;return r.forEach(function(s){s!==n&&o.push(s)}),e||(this.parentQuestion&&o.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(function(s){return o.push(s)})),o},t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(e){e===void 0&&(e=!0),this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var n=this.dependedQuestions.indexOf(e);n>-1&&this.dependedQuestions.splice(n,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return this.getLayoutType()==="flow"},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.onHidingContent()},t.prototype.updateElementVisibility=function(){this.updateIsVisibleProp()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),n=this.isVisible;e!==n&&(this.setPropertyValue("isVisible",n),n||this.onHidingContent()),n!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss(!0)},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty()?!1:this.areInvisibleElementsShowing?!0:this.isVisibleCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisibleInSurvey",{get:function(){return this.isVisible&&this.isParentVisible},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){},Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:i.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new jt(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(n){e.runExpressionSetValue(n)})},t.prototype.runSetValueExpression=function(){this.setValueExpression?(this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())):this.clearValue()},t.prototype.checkExpressionIf=function(e){return this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner?this.canExecuteTriggerByKeys(e,this.setValueExpressionRunner):!1},t.prototype.addTriggerInfo=function(e,n,r){var o=new ti(e,n,r);return this.triggersInfo.push(o),o},t.prototype.runTriggerInfo=function(e,n){var r=this[e.name];if(!r||e.isRunning||!e.canRun()){e.runSecondCheck(n)&&e.doComplete();return}e.runner?e.runner.expression=r:(e.runner=new jt(r),e.runner.onRunComplete=function(o){o===!0&&e.doComplete(),e.isRunning=!1}),!(!this.canExecuteTriggerByKeys(n,e.runner)&&!e.runSecondCheck(n))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))},t.prototype.canExecuteTriggerByKeys=function(e,n){var r=n.getVariables();return(!r||r.length===0)&&n.hasFunction()?!0:new Re().isAnyKeyChanged(e,r)},t.prototype.runTriggers=function(e,n,r){var o=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||(r||(r={},r[e]=n),this.triggersInfo.forEach(function(s){o.runTriggerInfo(s,r)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e),this.survey&&(this.survey.questionCreated(this),n!==!0&&this.runConditions(),this.visible||this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),e&&this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.getTitleLocation()!=="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var n=this.titleLocation=="hidden"||e=="hidden";this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),n&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return this.titleLocation==="hidden"},t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return!1},t.prototype.notifySurveyVisibilityChanged=function(){if(!(!this.survey||this.isLoadingFromJson)){this.survey.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},Object.defineProperty(t.prototype,"titleWidth",{get:function(){if(this.parent&&this.getTitleLocation()==="left"){var e=this.parent.getColumsForElement(this),n=e.length;if(n!==0&&e[0].questionTitleWidth)return e[0].questionTitleWidth;var r=this.getPercentQuestionTitleWidth();if(!r&&this.parent){var o=this.parent.getQuestionTitleWidth();return o&&!isNaN(o)&&(o=o+"px"),o}return r/(n||1)+"%"}},enumerable:!1,configurable:!0}),t.prototype.getPercentQuestionTitleWidth=function(){var e=!!this.parent&&this.parent.getQuestionTitleWidth();if(e&&e[e.length-1]==="%")return parseInt(e)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return e==="left"&&!this.isAllowTitleLeft&&(e="top"),e},t.prototype.getTitleLocationCore=function(){return this.titleLocation!=="default"?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&this.getTitleLocation()==="left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&this.getTitleLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&this.getTitleLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.getPropertyValue("errorLocation")},set:function(e){this.setPropertyValue("errorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getErrorLocation=function(){return this.errorLocation!=="default"?this.errorLocation:this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getChildErrorLocation=function(e){return this.getErrorLocation()},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return I.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.getDescriptionLocation()=="underTitle"&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return this.getDescriptionLocation()=="underInput"&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return this.descriptionLocation!=="default"?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return i.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var e=this;if(i.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){e.focus()},1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCommentPlaceholder",{get:function(){var e=this,n=function(){return e.isReadOnly?void 0:e.commentPlaceHolder};return this.getPropertyValue("renderedCommentPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.resetRenderedCommentPlaceholder=function(){this.resetPropertyValue("renderedCommentPlaceholder")},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var n=0;n<this.errors.length;n++)if(this.errors[n].getErrorType()===e)return this.errors[n];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return!this.isCustomWidgetRequested&&!this.customWidgetValue&&(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=Bn.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){!this.survey||!this.hasSingleInput||this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var n=this;this.afterRenderCore(e),this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach(function(r){var o=I.environment.root,s=o.getElementById(r);s&&n.commentElements.push(s)}),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e)},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var n={error:{}};return this.copyCssClasses(n,e.question),this.copyCssClasses(n.error,e.error),this.updateCssClasses(n,e),n},t.prototype.onCalcCssClasses=function(e){i.prototype.onCalcCssClasses.call(this,e),this.survey&&this.survey.updateQuestionCssClasses(this,e),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(e)},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(e){var n=this.hasCssError();return new _().append(i.prototype.getCssRoot.call(this,e)).append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(e.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(e.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(e.hasError,n).append(e.hasErrorTop,n&&this.getErrorLocation()=="top").append(e.hasErrorBottom,n&&this.getErrorLocation()=="bottom").append(e.small,!this.width).append(e.answered,this.isAnswered).append(e.noPointerEventsMode,this.isReadOnlyAttr).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return new _().append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},t.prototype.supportContainerQueries=function(){return!1},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return new _().append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(e){return new _().append(i.prototype.getCssTitle.call(this,e)).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(e.titleEmpty,!this.title.trim()).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return new _().append(e.description).append(e.descriptionUnderInput,this.getDescriptionLocation()=="underInput").toString()},t.prototype.showErrorOnCore=function(e){return!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.getErrorLocation()===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return new _().append(e.error.root).append(e.errorsContainer,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.hasCssError=function(){return this.errors.length>0||this.hasCssErrorCallback()},t.prototype.getRootCss=function(){return new _().append(this.cssRoot).append(this.cssClasses.mobile,this.isMobile).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getQuestionRootCss=function(){return new _().append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(e){this.wasRendered?(i.prototype.updateElementCss.call(this,e),e&&this.updateQuestionCss(!0)):this.isRequireUpdateElements=!0,this.resetIndents()},t.prototype.onFirstRenderingCore=function(){this.isRequireUpdateElements&&(this.isRequireUpdateElements=!1,this.updateElementCss(!0)),i.prototype.onFirstRenderingCore.call(this)},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||(this.wasRendered?this.updateElementCssCore(this.cssClasses):this.isRequireUpdateElements=!0)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,n){if(n.question){var r=n[this.getCssType()],o=new _().append(e.title).append(n.question.titleRequired,this.isRequired);e.title=o.toString();var s=new _().append(e.root).append(r,this.isRequired&&!!n.question.required);if(r==null)e.root=s.toString();else if(typeof r=="string"||r instanceof String)e.root=s.append(r.toString()).toString();else{e.root=s.toString();for(var u in r)e[u]=r[u]}}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e,n){var r=this;if(e===void 0&&(e=!1),!(this.isDesignMode||!this.isVisible||!this.survey)){var o=this.page,s=!!o&&this.survey.activePage!==o;if(s)this.survey.focusQuestionByInstance(this,e);else if(this.survey){this.expandAllParents();var u=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,n,u,void 0,function(){r.focusInputElement(e)})}else this.focusInputElement(e)}},t.prototype.focusInputElement=function(e){var n,r=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),o=(n=this.survey)===null||n===void 0?void 0:n.rootElement;_e.FocusElement(r,!1,o)&&this.fireCallback(this.focusCallback)},Object.defineProperty(t.prototype,"isValidateVisitedEmptyFields",{get:function(){return this.supportEmptyValidation()&&!!this.survey&&this.survey.getValidateVisitedEmptyFields()&&this.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return!1},t.prototype.onBlur=function(e){this.onBlurCore(e)},t.prototype.onFocus=function(e){this.onFocusCore(e)},t.prototype.onBlurCore=function(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)},t.prototype.onFocusCore=function(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields},t.prototype.expandAllParents=function(){this.expandAllParentsCore(this)},t.prototype.expandAllParentsCore=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))},t.prototype.focusIn=function(){!this.survey||this.isDisposed||this.isContainer||this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=Object.keys(t.TextPreprocessorValuesMap).indexOf(n)!==-1||this[e.name]!==void 0,e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){return this.id+"_ariaDescription"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){!this.supportOther()||this.showOtherItem==e||(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,n=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode,o=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||r||n||o},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return this.forceIsInputReadOnly!==void 0?this.forceIsInputReadOnly:this.isReadOnly||this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return this.isDesignModeV2||!!this.readOnlyCallback&&this.readOnlyCallback()},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),i.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,n){this.isDesignMode||(n||(n={}),n.question=this,this.runConditionCore(e,n),!this.isValueChangedDirectly&&(!this.isClearValueOnHidden||this.isVisibleInSurvey)&&(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,n)))},Object.defineProperty(t.prototype,"isInDesignMode",{get:function(){return!this.isContentElement&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInDesignModeV2",{get:function(){return!this.isContentElement&&this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e;if(!this.hasTitle||this.hideNumber)return"";var n=(e=this.parent)===null||e===void 0?void 0:e.visibleIndex,r=h.getNumberByIndex(this.visibleIndex,this.getStartIndex(),n);return this.survey&&(r=this.survey.getUpdatedQuestionNo(this,r)),r},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isDesignMode&&this.survey&&!this.isLoadingFromJson&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());(!h.isValueEmpty(e)||!this.isLoadingFromJson)&&this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(!(!this.survey||!e))return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.survey&&this.survey.commentAreaRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValueWithoutDefault("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValueWithoutDefault("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredValue=function(){return this.value},t.prototype.getFilteredName=function(){return this.getValueName()},Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueForSurveyCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.valueForSurveyCore=function(e){return this.valueToDataCallback?this.valueToDataCallback(e):e},t.prototype.valueFromDataCore=function(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e},t.prototype.clearValue=function(e){this.value!==void 0&&(this.value=void 0),this.comment&&e!==!0&&(this.comment=void 0),this.setValueChangedDirectly(!1)},t.prototype.clearValueOnly=function(){this.clearValue(!0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:h.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return e?Array.isArray(e)?e.length>0?this.isValueSurveyElement(e[0]):!1:!!e.getType&&!!e.onPropertyChanged:!1},t.prototype.canClearValueAsInvisible=function(e){return e==="onHiddenContainer"&&!this.isParentVisible?!0:this.isVisibleInSurvey||this.page&&this.page.isStartPage?!1:this.survey?!this.survey.hasVisibleQuestionByValueName(this.getValueName()):!0},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=this.getClearIfInvisible();n!=="none"&&(e==="onHidden"&&n==="onComplete"||e==="onHiddenContainer"&&n!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):e!=="default"?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,n){n===void 0&&(n=void 0);var r=this.calcDisplayValue(e,n);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,n){if(n===void 0&&(n=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,n);if(r)return r}return n=n??this.createValueCopy(),this.isValueEmpty(n,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,n)},t.prototype.getDisplayValueCore=function(e,n){return n},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.getPropertyValue("resetValueIf")},set:function(e){this.setPropertyValue("resetValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.getPropertyValue("setValueIf")},set:function(e){this.setPropertyValue("setValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.getPropertyValue("setValueExpression")},set:function(e){this.setPropertyValue("setValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(o){return typeof o=="object"?JSON.stringify(o):o}};return e.includeQuestionTypes===!0&&(r.questionType=this.getType()),(e.calculations||[]).forEach(function(o){r[o.propertyName]=n.getPlainDataCalculatedValue(o.propertyName)}),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:I.commentSuffix,displayValue:this.comment,getString:function(o){return typeof o=="object"?JSON.stringify(o):o},isNode:!1}]),r}},t.prototype.getPlainDataCalculatedValue=function(e){return this[e]},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return!this.isEmpty()&&!this.isValueEmpty(this.correctAnswer)?this.getCorrectAnswerCount():0},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=h.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),I.comparator.caseSensitive,!0),n=e?1:0,r=this.quizQuestionCount-n,o={result:e,correctAnswers:n,correctAnswerCount:n,incorrectAnswers:r,incorrectAnswerCount:r};return this.survey&&this.survey.onCorrectQuestionAnswer(this,o),o.result},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||!this.isDesignMode&&!this.isEmpty()||this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue()},Object.defineProperty(t.prototype,"isValueDefault",{get:function(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return e==="none"||e==="onComplete"?!1:e==="onHidden"||e==="onHiddenContainer"},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,n){return!e&&n&&(e=this.createExpressionRunner(n)),e&&(e.expression=n),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore(function(n){e.isTwoValueEquals(e.value,n)||(e.value=n)})},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(n){return e(n)})},t.prototype.isValueExpression=function(e){return!!e&&typeof e=="string"&&e.length>0&&e[0]=="="},t.prototype.setValueAndRunExpression=function(e,n,r,o,s){var u=this;o===void 0&&(o=null),s===void 0&&(s=null);var d=function(y){u.runExpressionSetValueCore(y,r)};this.runDefaultValueExpression(e,o,s,d)||d(n)},t.prototype.convertFuncValuetoQuestionValue=function(e){return h.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,n){n(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var n=this;this.runExpressionSetValueCore(e,function(r){n.isTwoValueEquals(n.value,r)||(n.startSetValueOnExpression(),n.value=r,n.finishSetValueOnExpression())})},t.prototype.startSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.startSetValueOnExpression()},t.prototype.finishSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.finishSetValueOnExpression()},t.prototype.runDefaultValueExpression=function(e,n,r,o){var s=this;return n===void 0&&(n=null),r===void 0&&(r=null),!e||!this.data?!1:(o||(o=function(u){s.runExpressionSetValue(u)}),n||(n=this.defaultValueExpression?this.data.getFilteredValues():{}),r||(r=this.defaultValueExpression?this.data.getFilteredProperties():{}),e&&e.canRun&&(e.onRunComplete=function(u){u==null&&(u=s.defaultValue),s.isChangingViaDefaultValue=!0,o(u),s.isChangingViaDefaultValue=!1},e.run(n,r)),!0)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var n=e.toString().trim();n!==e&&(e=n,e===this.comment&&this.setPropertyValueDirectly("comment",e))}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return e===void 0&&(e=!1),new _().append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")||!1},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],n=this.getType();n;){var r=I.supportedValidators[n];if(r)for(var o=r.length-1;o>=0;o--)e.splice(0,0,r[o]);var s=j.findClass(n);n=s.parentName}return e},t.prototype.addConditionObjectsByContext=function(e,n){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){e===void 0&&(e=!1);var n=[];return this.collectNestedQuestions(n,e),n.length===1&&n[0]===this?[]:n},t.prototype.collectNestedQuestions=function(e,n){n===void 0&&(n=!1),!(n&&!this.isVisible)&&this.collectNestedQuestionsCore(e,n)},t.prototype.collectNestedQuestionsCore=function(e,n){e.push(this)},t.prototype.getConditionJson=function(e,n){var r=new je().toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.checkForErrors(!!n&&n.isOnValueChanged===!0,e);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r,this.errors!==r&&this.errors.forEach(function(o){return o.locText.strChanged()})),this.updateContainsErrors(),this.isCollapsed&&n&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,n){return e===void 0&&(e=!0),n===void 0&&(n=null),n&&n.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,n)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey!=null&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var n=null;typeof e=="string"||e instanceof String?n=this.addCustomError(e):n=e,this.errors.push(n)}},t.prototype.addCustomError=function(e){return new ot(e,this.survey)},t.prototype.removeError=function(e){if(!e)return!1;var n=this.errors,r=n.indexOf(e);return r!==-1&&n.splice(r,1),r!==-1},t.prototype.checkForErrors=function(e,n){var r=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(r,e,n),r},t.prototype.canCollectErrors=function(){return!this.isReadOnly||I.readOnly.enableValidation},t.prototype.collectErrors=function(e,n,r){if(this.onCheckForErrors(e,n,r),!(e.length>0||!this.canRunValidators(n))){var o=this.runValidators();if(o.length>0){e.length=0;for(var s=0;s<o.length;s++)e.push(o[s])}if(this.survey&&e.length==0){var u=this.fireSurveyValidation();u&&e.push(u)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if((!n||this.isOldAnswered)&&this.hasRequiredError()){var s=new $r(this.requiredErrorText,this);s.onUpdateErrorTextCallback=function(d){d.text=o.requiredErrorText},e.push(s)}if(!this.isEmpty()&&this.customWidget){var u=this.customWidget.validate(this);u&&e.push(this.addCustomError(u))}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new Zr,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(n){e.doOnAsyncCompleted(n)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var n=0;n<e.length;n++)this.errors.push(e[n]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||this.checkIsValueCorrect(e)&&(this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0,this.parent&&this.parent.onQuestionValueChanged(this))},t.prototype.checkIsValueCorrect=function(e){var n=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return n||He.inCorrectQuestionValue(this.name,e),n},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var n=this.value;if(!this.isTwoValueEquals(e,n,!1,!1))return!1;var r=e===n&&!!n&&(Array.isArray(n)||typeof n=="object");return!r},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return this.survey?this.survey.isUpdateValueTextOnTyping:!1},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.isInputTextUpdate?"text":!1},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.getIsInputTextUpdate()&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),this.data!=null&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.convertToCorrectValue=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.onMouseDown=function(){this.isMouseDown=!0},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,this.setCommentIntoData(e))},t.prototype.setCommentIntoData=function(e){this.data!=null&&this.data.setComment(this.getValueName(),e,this.getIsInputTextUpdate()?"text":!1)},t.prototype.getValidName=function(e){return gr(e)},t.prototype.updateValueFromSurvey=function(e,n){var r=this;if(n===void 0&&(n=!1),e=this.getUnbindValue(e),e=this.valueFromDataCore(e),!!this.checkIsValueCorrect(e)){var o=this.isValueEmpty(e);!o&&this.defaultValueExpression?this.setDefaultValueCore(function(s){r.updateValueFromSurveyCore(e,r.isTwoValueEquals(e,s))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),n&&o&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,n){this.isChangingViaDefaultValue=n,this.setQuestionValue(this.valueFromData(e)),this.isChangingViaDefaultValue=!1},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e=this.convertToCorrectValue(e);var r=this.isTwoValueEquals(this.questionValue,e);!r&&!this.isChangingViaDefaultValue&&!this.isParentChangingViaDefaultValue&&this.setValueChangedDirectly(!0),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),n&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return((e=this.data)===null||e===void 0?void 0:e.isChangingViaDefaultValue)===!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!I.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!I.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e,n){},t.prototype.checkBindings=function(e,n){if(!(this.bindings.isEmpty()||!this.data))for(var r=this.bindings.getPropertiesByValueName(e),o=0;o<r.length;o++){var s=r[o];this.isValueEmpty(n)&&h.isNumber(this[s])&&(n=0),this.updateBindingProp(s,n)}},t.prototype.updateBindingProp=function(e,n){this[e]=n},t.prototype.getComponentName=function(){return uo.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||this.getComponentName()==="default"},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,n){this.survey.processPopupVisiblityChanged(this,e,n)},t.prototype.processOpenDropdownMenu=function(e){this.survey.processOpenDropdownMenu(this,e)},t.prototype.onTextKeyDownHandler=function(e){e.keyCode===13&&this.survey.questionEditFinishCallback(this,e)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var n=this;if(this.needResponsiveness())if(this.isCollapsed){var r=function(){n.isExpanded&&(n.initResponsiveness(e),n.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))};this.registerPropertyChangedHandlers(["state"],r,"for-responsiveness")}else this.initResponsiveness(e)},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var n=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r)return;var o=e.querySelector(r);if(!o)return;var s=!1,u=void 0;this.triggerResponsivenessCallback=function(d){d&&(u=void 0,n.renderAs="default",s=!1);var y=function(){var V=e.querySelector(r);!u&&n.isDefaultRendering()&&(u=V.scrollWidth),s||!hr(V)?s=!1:s=n.processResponsiveness(u,Wr(V))};d?setTimeout(y,1):y()},this.resizeObserver=new ResizeObserver(function(d){B.requestAnimationFrame(function(){n.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var d=e.querySelector(r);n.processResponsiveness(u,Wr(d))},0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.onBeforeSetCompactRenderer=function(){},t.prototype.onBeforeSetDesktopRenderer=function(){},t.prototype.processResponsiveness=function(e,n){if(n=Math.round(n),Math.abs(e-n)>2){var r=this.renderAs;return e>n?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),r!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetDependedQuestions(),this.destroyResizeObserver()},t.prototype.resetDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.isNewA11yStructure?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return this.isNewA11yStructure?null:"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isNewA11yStructure?null:this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaErrormessage",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.hasTitle&&!this.parentQuestion&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaErrormessage",{get:function(){return this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,Gt([x({defaultValue:!1})],t.prototype,"_isMobile",void 0),Gt([x()],t.prototype,"forceIsInputReadOnly",void 0),Gt([x()],t.prototype,"ariaExpanded",void 0),Gt([x({localizable:!0,onSet:function(e,n){return n.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),Gt([x()],t.prototype,"renderAs",void 0),Gt([x({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(_e);function gr(i){if(!i)return i;for(i=i.trim().replace(/[\{\}]+/g,"");i&&i[0]===I.expressionDisableConversionChar;)i=i.substring(1);return i}j.addClass("question",[{name:"!name",onSettingValue:function(i,t){return gr(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return I.minWidth}},{name:"maxWidth",defaultFunc:function(){return I.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.getDefaultTitle())}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(i){if(!i)return!0;if(i.titleLocation==="hidden")return!1;var t=i?i.parent:null,e=!t||t.showQuestionNumbers!=="off";if(!e)return!1;var n=i?i.survey:null;return!n||n.showQuestionNumbers!=="off"||!!t&&t.showQuestionNumbers==="onpanel"}},{name:"valueName",onSettingValue:function(i,t){return gr(t)}},"enableIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden","onHiddenContainer"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},"requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"errorLocation",default:"default",choices:["default","top","bottom"]},{name:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(i){return i.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(i){return i.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(i){return i.hasComment}}]),j.addAlterNativeClassName("question","questionbase");var co=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ni=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},re=function(i){co(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="itemvalue");var o=i.call(this)||this;return o.typeName=r,o.ownerPropertyName="",o.locTextValue=new gt(o,!0,"text"),o.locTextValue.onStrChanged=function(s,u){u==o.value&&(u=void 0),o.propertyValueChanged("text",s,u)},o.locTextValue.onGetTextCallback=function(s){return s||(h.isValueEmpty(o.value)?null:o.value.toString())},n&&(o.locText.text=n),e&&typeof e=="object"?o.setData(e,!0):o.setValue(e,!0),o.getType()!="itemvalue"&&Fe.createProperties(o),o.data=o,o.onCreating(),o}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return I.itemValueSeparator},set:function(e){I.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,n,r){e.length=0;for(var o=0;o<n.length;o++){var s=n[o],u=s&&typeof s.getType=="function"?s.getType():r??"itemvalue",d=j.createClass(u);d.setData(s),s.originalItem&&(d.originalItem=s.originalItem),e.push(d)}},t.getData=function(e){for(var n=[],r=0;r<e.length;r++)n.push(e[r].getData());return n},t.getItemByValue=function(e,n){if(!Array.isArray(e))return null;for(var r=h.isValueEmpty(n),o=0;o<e.length;o++)if(r&&h.isValueEmpty(e[o].value)||h.isTwoValueEquals(e[o].value,n,!1,!0,!1))return e[o];return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return r!==null?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var n=0;n<e.length;n++)e[n].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,s,u,d){return u===void 0&&(u=!0),t.runConditionsForItemsCore(e,n,r,o,s,!0,u,d)},t.runEnabledConditionsForItems=function(e,n,r,o,s){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,s)},t.runConditionsForItemsCore=function(e,n,r,o,s,u,d,y){d===void 0&&(d=!0),o||(o={});for(var V=o.item,T=o.choice,N=!1,U=0;U<e.length;U++){var W=e[U];o.item=W.value,o.choice=W.value;var X=d&&W.getConditionRunner?W.getConditionRunner(u):!1;X||(X=r);var Y=!0;X&&(Y=X.run(o,s)),y&&(Y=y(W,Y)),n&&Y&&n.push(W);var J=u?W.isVisible:W.isEnabled;Y!=J&&(N=!0,u?W.setIsVisible&&W.setIsVisible(Y):W.setIsEnabled&&W.setIsEnabled(Y))}return V?o.item=V:delete o.item,T?o.choice=T:delete o.choice,N},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setValue(e,!1)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,n){var r=void 0;if(!h.isValueEmpty(e)){var o=e.toString(),s=o.indexOf(I.itemValueSeparator);s>-1&&(e=o.slice(0,s),r=o.slice(s+1))}n?this.setPropertyValueDirectly("value",e):this.setPropertyValue("value",e),r&&(this.text=r),this.id=this.value},Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return e==null?!1:!Array.isArray(e)&&typeof e!="object"},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,h.isValueEmpty(e.value))return e;var n=this.canSerializeValue(),r=!n||!I.serialization.itemValueSerializeAsObject&&!I.serialization.itemValueSerializeDisplayText;return r&&Object.keys(e).length==1?this.value:(I.serialization.itemValueSerializeDisplayText&&e.text===void 0&&n&&(e.text=this.value.toString()),e)},t.prototype.toJSON=function(){var e={},n=j.getProperties(this.getType());(!n||n.length==0)&&(n=j.getProperties("itemvalue"));for(var r=new je,o=0;o<n.length;o++){var s=n[o];s.name==="text"&&!this.locText.hasNonDefaultText()&&h.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,s)}return e},t.prototype.setData=function(e,n){if(!h.isValueEmpty(e)){if(typeof e.value>"u"&&typeof e.text<"u"&&Object.keys(e).length===1&&(e.value=e.text),typeof e.value<"u"){var r=void 0;typeof e.toJSON=="function"?r=e.toJSON():r=e,new je().toObject(r,this)}else this.setValue(e,n);n||this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValueWithoutDefault("visibleIf")||""},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValueWithoutDefault("enableIf")||""},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=this.getPropertyValueWithoutDefault("isVisible");return e!==void 0?e:!0},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){var e=this.getPropertyValueWithoutDefault("isEnabled");return e!==void 0?e:!0},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,n,r){e==="value"&&!this.hasText&&this.locText.strChanged();var o="itemValuePropertyChanged";!this.locOwner||!this.locOwner[o]||this.locOwner[o](this,e,n,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new Ue(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new Ue(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,n=this._locOwner;return n instanceof Be&&n.isItemSelected&&this.selectedValue===void 0&&(this.selectedValue=new De(function(){return n.isItemSelected(e)})),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof Be?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.setRootElement=function(e){this._htmlElement=e},t.prototype.getRootElement=function(){return this._htmlElement},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=this.isVisible===void 0?!0:this.isVisible,n=this._visible===void 0?!0:this._visible;return e&&n},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},ni([x({defaultValue:!0})],t.prototype,"_visible",void 0),ni([x()],t.prototype,"selectedValue",void 0),ni([x()],t.prototype,"icon",void 0),t}(En);fe.createItemValue=function(i,t){var e=null;return t?e=je.metaData.createClass(t,{}):typeof i.getType=="function"?e=new re(null,void 0,i.getType()):e=new re(null),e.setData(i),e},fe.itemValueLocStrChanged=function(i){re.locStrsChanged(i)},lt.getItemValuesDefaultValue=function(i,t){var e=new Array;return re.setData(e,Array.isArray(i)?i:[],t),e},j.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(i){return!i||i.ownerPropertyName!=="rateValues"}}],function(i){return new re(i)});var p=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),l=function(i){p(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,e&&(r.name=e),n&&(r.expression=n),r}return t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,n,r){this.isCalculated||(this.runExpressionCore(e,n,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,n){this.runExpressionCore(null,e,n)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!!this.data&&!this.isLoadingFromJson&&!!this.expression&&!this.expressionIsRunning&&!!this.name},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,n,r){this.canRunExpression&&(this.ensureExpression(n),this.locCalculation(),e&&this.runDependentExpressions(e,n,r),this.expressionRunner.run(n,r))},t.prototype.runDependentExpressions=function(e,n,r){var o=this.expressionRunner.getVariables();if(o)for(var s=0;s<e.length;s++){var u=e[s];u===this||o.indexOf(u.name)<0||(u.doCalculation(e,n,r),n[u.name]=u.value)}},t.prototype.ensureExpression=function(e){var n=this;this.expressionRunner||(this.expressionRunner=new jt(this.expression),this.expressionRunner.onRunComplete=function(r){h.isTwoValueEquals(r,n.value,!1,!0,!1)||n.setValue(r),n.unlocCalculation()})},t}(fe);j.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new l},"base");var a=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),c=function(i){a(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.expression=e,n}return t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,n){return this.expression?new Ue(this.expression).run(e,n):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return this.locOwner},t}(fe),f=function(i){a(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("html",r),r.html=n,r}return t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(c),g=function(i){a(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("url",r),r.url=n,r}return t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(c);j.addClass("expressionitem",["expression:condition"],function(){return new c},"base"),j.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new f},"expressionitem"),j.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new g},"expressionitem");var L=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),F=function(){function i(){this.parser=new DOMParser}return i.prototype.assignValue=function(t,e,n){Array.isArray(t[e])?t[e].push(n):t[e]!==void 0?t[e]=[t[e]].concat(n):typeof n=="object"&&Object.keys(n).length===1&&Object.keys(n)[0]===e?t[e]=n[e]:t[e]=n},i.prototype.xml2Json=function(t,e){if(t.children&&t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children[n],o={};this.xml2Json(r,o),this.assignValue(e,r.nodeName,o)}else this.assignValue(e,t.nodeName,t.textContent)},i.prototype.parseXmlString=function(t){var e=this.parser.parseFromString(t,"text/xml"),n={};return this.xml2Json(e,n),n},i}(),H=function(i){L(t,i);function t(){var e=i.call(this)||this;return e.lastObjHash="",e.isRunningValue=!1,e.processedUrl="",e.processedPath="",e.isUsingCacheFromUrl=void 0,e.error=null,e.createItemValue=function(n){return new re(n)},e.registerPropertyChangedHandlers(["url"],function(){e.owner&&e.owner.setPropertyValue("isUsingRestful",!!e.url)}),e}return Object.defineProperty(t,"EncodeParameters",{get:function(){return I.web.encodeUrlParams},set:function(e){I.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],!!r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return I.web.onBeforeRequestChoices},set:function(e){I.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return r?(e.getResultCallback&&e.getResultCallback(r),!0):!1},t.prototype.getSurvey=function(e){return this.owner?this.owner.survey:null},t.prototype.run=function(e){if(e===void 0&&(e=null),!(!this.url||!this.getResultCallback)){if(this.processedText(e),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,!this.useChangedItemsResults()&&(t.addSameRequest(this)||this.sendRequest()))}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return this.isUsingCacheFromUrl===!0?!0:this.isUsingCacheFromUrl===!1?!1:I.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var n=[];this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.getResultCallback(n)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx({text:n,runAtDesign:!0}),o=e.processTextEx({text:this.path,runAtDesign:!0});!r.hasAllValuesOnLastRun||!o.hasAllValuesOnLastRun?(this.processedUrl="",this.processedPath=""):(this.processedUrl=r.text,this.processedPath=o.text)}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var n;if(e&&typeof e.indexOf=="function"&&e.indexOf("<")===0){var r=new F;n=r.parseXmlString(e)}else try{n=JSON.parse(e)}catch{n=(e||"").split(`
-`).map(function(s){return s.trim(" ")}).filter(function(s){return!!s})}return n},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),e.status===200?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};I.web.onBeforeRequestChoices&&I.web.onBeforeRequestChoices(this,o),this.beforeSendRequest(),o.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),n=new Array,r=0;r<e.length;r++)n.push(this.getCustomPropertyName(e[r].name));return n},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=j.getProperties(this.itemValueType),n=[],r=0;r<e.length;r++)e[r].name==="value"||e[r].name==="text"||e[r].name==="visibleIf"||e[r].name==="enableIf"||n.push(e[r]);return n},t.prototype.getAllPropertiesNames=function(){var e=new Array;return j.getPropertiesByObj(this).forEach(function(n){return e.push(n.name)}),this.getCustomPropertiesNames().forEach(function(n){return e.push(n)}),e},t.prototype.setData=function(e){var n=this;e||(e={}),this.getAllPropertiesNames().forEach(function(r){n[r]=e[r]})},t.prototype.getData=function(){var e=this,n={},r=!1;return this.getAllPropertiesNames().forEach(function(o){var s=e[o];!e.isValueEmpty(s)&&s!==e.getDefaultPropertyValue(o)&&(n[o]=s,r=!0)}),r?n:null},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")||""},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")||""},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=j.findProperty(this.owner.getType(),"choices");return!e||e.type=="itemvalue[]"?"itemvalue":e.type},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.setData(void 0)},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){n===void 0&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var s=0;s<o.length;s++){var u=o[s];if(u){var d=this.getItemValueCallback?this.getItemValueCallback(u):this.getValue(u),y=this.createItemValue(d);this.setTitle(y,u),this.setCustomProperties(y,u),this.attachOriginalItems&&(y.originalItem=u);var V=this.getImageLink(u);V&&(y.imageLink=V),r.push(y)}}else this.allowEmptyResponse||(this.error=new ls(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,n){n==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,n){for(var r=this.getCustomProperties(),o=0;o<r.length;o++){var s=r[o],u=this.getValueCore(n,this.getPropertyBinding(s.name));this.isValueEmpty(u)||(e[s.name]=u)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new as(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e||!this.processedPath)return e;for(var n=this.getPathes(),r=0;r<n.length;r++)if(e=e[n[r]],!e)return null;return e},t.prototype.getPathes=function(){var e=[];return this.processedPath.indexOf(";")>-1?e=this.path.split(";"):e=this.processedPath.split(","),e.length==0&&e.push(this.processedPath),e},t.prototype.getValue=function(e){if(!e)return null;if(this.valueName)return this.getValueCore(e,this.valueName);if(!(e instanceof Object))return e;var n=Object.keys(e).length;return n<1?null:e[Object.keys(e)[0]]},t.prototype.setTitle=function(e,n){var r=this.titleName?this.titleName:"title",o=this.getValueCore(n,r);o&&(typeof o=="string"?e.text=o:e.locText.setJson(o))},t.prototype.getImageLink=function(e){var n=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,n)},t.prototype.getValueCore=function(e,n){if(!e)return null;if(n.indexOf(".")<0)return e[n];for(var r=n.split("."),o=0;o<r.length;o++)if(e=e[r[o]],!e)return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(fe),ye=function(i){L(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t,"EncodeParameters",{get:function(){return H.EncodeParameters},set:function(e){H.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){H.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return I.web.onBeforeRequestChoices},set:function(e){I.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(H);j.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(i){return!!i&&!!i.owner&&i.owner.getType()=="imagepicker"}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new H});var ae=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ve=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},yt=function(i){ae(t,i);function t(e){var n=i.call(this,e)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){var e=this,n=[];return this.columns.forEach(function(r){e.isColumnVisible(r)&&n.push(r)}),n},enumerable:!1,configurable:!0}),t.prototype.isColumnVisible=function(e){return e.isVisible},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var n=this.processRowsOnSet(e);this.setPropertyValue("rows",n)},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.isLoadingFromJsonValue||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.isLoadingFromJson||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsCondition(e,n)},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&this.onVisibleChanged()},t.prototype.isVisibleCore=function(){var e,n=i.prototype.isVisibleCore.call(this);return!n||!this.hideIfRowsEmpty?n:((e=this.visibleRows)===null||e===void 0?void 0:e.length)>0},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,n){var r=this.hasRowsAsItems()&&this.runConditionsForRows(e,n),o=this.runConditionsForColumns(e,n);r=o||r,r&&(this.isClearValueOnHidden&&o&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),o&&this.onColumnsChanged(),this.onRowsChanged())},t.prototype.isRowsFiltered=function(){return!!this.filteredRows},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.createRowsVisibleIfRunner=function(){return null},t.prototype.runConditionsForRows=function(e,n){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,o=r?null:this.createRowsVisibleIfRunner();this.filteredRows=[];var s=re.runConditionsForItems(this.rows,this.filteredRows,o,e,n,!r);return re.runEnabledConditionsForItems(this.rows,void 0,e,n),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),s},t.prototype.runConditionsForColumns=function(e,n){var r=!!this.survey&&!this.survey.areInvisibleElementsShowing,o=r&&this.columnsVisibleIf?new Ue(this.columnsVisibleIf):null;return re.runConditionsForItems(this.columns,void 0,o,e,n,this.shouldRunColumnExpression())},t.prototype.clearInvisibleColumnValues=function(){},t.prototype.clearInvisibleValuesInRows=function(){},t.prototype.needResponsiveWidth=function(){return!0},Object.defineProperty(t.prototype,"columnsAutoWidth",{get:function(){return!this.isMobile&&!this.columns.some(function(e){return!!e.width})},enumerable:!1,configurable:!0}),t.prototype.getTableCss=function(){var e;return new _().append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(!((e=this.renderedTable)===null||e===void 0)&&e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,this.verticalAlign==="top").append(this.cssClasses.rootVerticalAlignMiddle,this.verticalAlign==="middle").toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth")||""},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth")||""},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this.getPropertyValue("displayMode")},set:function(e){this.setPropertyValue("displayMode",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,n){var r=(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase(),o=(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase();return r+" "+e+", "+o+" "+n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getIsMobile=function(){return this.displayMode=="auto"?i.prototype.getIsMobile.call(this):this.displayMode==="list"},Ve([x()],t.prototype,"verticalAlign",void 0),Ve([x()],t.prototype,"alternateRows",void 0),t}(Be);j.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1},{name:"displayMode",default:"auto",choices:["auto","table","list"],visible:!1}],void 0,"question");var Ze=function(){function i(){}return i}(),cn=function(){function i(t,e){this.name=t,this.returnDisplayValue=e,this.isExists=!1,this.canProcess=!0}return i}(),qt=function(){function i(){this._unObservableValues=[void 0]}return Object.defineProperty(i.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(t){this._unObservableValues[0]=t},enumerable:!1,configurable:!0}),i.prototype.process=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!t||!this.onProcess)return t;for(var r=this.getItems(t),o=r.length-1;o>=0;o--){var s=r[o],u=this.getName(t.substring(s.start+1,s.end));if(u){var d=new cn(u,e);if(this.onProcess(d),!d.isExists){d.canProcess&&(this.hasAllValuesOnLastRunValue=!1);continue}h.isValueEmpty(d.value)&&(this.hasAllValuesOnLastRunValue=!1);var y=h.isValueEmpty(d.value)?"":d.value;n&&(y=encodeURIComponent(y)),t=t.substring(0,s.start)+y+t.substring(s.end+1)}}return t},i.prototype.processValue=function(t,e){var n=new cn(t,e);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(i.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),i.prototype.getItems=function(t){for(var e=[],n=t.length,r=-1,o="",s=0;s<n;s++)if(o=t[s],o=="{"&&(r=s),o=="}"){if(r>-1){var u=new Ze;u.start=r,u.end=s,e.push(u)}r=-1}return e},i.prototype.getName=function(t){if(t)return t.trim()},i}(),yr=function(){function i(t){var e=this;this.variableName=t,this.textPreProcessor=new qt,this.textPreProcessor.onProcess=function(n){e.getProcessedTextValue(n)}}return i.prototype.processValue=function(t,e){return this.textPreProcessor.processValue(t,e)},Object.defineProperty(i.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getValues=function(){return this.panel?this.panel.getValue():null},i.prototype.getQuestionByName=function(t){return this.panel?this.panel.getQuestionByValueName(t):null},i.prototype.getParentTextProcessor=function(){return null},i.prototype.onCustomProcessText=function(t){return!1},i.prototype.getQuestionDisplayText=function(t){return t.displayValue},i.prototype.getProcessedTextValue=function(t){if(t&&!this.onCustomProcessText(t)){var e=new Re().getFirstName(t.name);if(t.isExists=e==this.variableName,t.canProcess=t.isExists,!!t.canProcess){t.name=t.name.replace(this.variableName+".","");var e=new Re().getFirstName(t.name),n=this.getQuestionByName(e),r={};if(n)r[e]=t.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var o=this.panel?this.getValues():null;o&&(r[e]=o[e])}t.value=new Re().getValue(t.name,r)}}},i.prototype.processText=function(t,e){return this.survey&&this.survey.isDesignMode?t:(t=this.textPreProcessor.process(t,e),t=this.processTextCore(this.getParentTextProcessor(),t,e),this.processTextCore(this.survey,t,e))},i.prototype.processTextEx=function(t){t.text=this.processText(t.text,t.returnDisplayValue);var e=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:t.text};return this.survey&&(n=this.survey.processTextEx(t)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&e,n},i.prototype.processTextCore=function(t,e,n){return t?t.processText(e,n):e},i}(),Zt=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Va=function(){function i(t,e){this.name=t,this.json=e;var n=this;j.addClass(t,[],function(r){return po.Instance.createQuestion(r?r.name:"",n)},"question"),this.onInit()}return i.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},i.prototype.onCreated=function(t){this.json.onCreated&&this.json.onCreated(t)},i.prototype.onLoaded=function(t){this.json.onLoaded&&this.json.onLoaded(t)},i.prototype.onAfterRender=function(t,e){this.json.onAfterRender&&this.json.onAfterRender(t,e)},i.prototype.onAfterRenderContentElement=function(t,e,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(t,e,n)},i.prototype.onUpdateQuestionCssClasses=function(t,e,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(t,e,n)},i.prototype.onSetQuestionValue=function(t,e){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(t,e),this.json.onValueSet&&this.json.onValueSet(t,e)},i.prototype.onPropertyChanged=function(t,e,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(t,e,n)},i.prototype.onValueChanged=function(t,e,n){this.json.onValueChanged&&this.json.onValueChanged(t,e,n)},i.prototype.onValueChanging=function(t,e,n){return this.json.onValueChanging?this.json.onValueChanging(t,e,n):n},i.prototype.onGetErrorText=function(t){if(this.json.getErrorText)return this.json.getErrorText(t)},i.prototype.onItemValuePropertyChanged=function(t,e,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(t,{obj:e,propertyName:n,name:r,newValue:o})},i.prototype.getDisplayValue=function(t,e,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(t,e)},Object.defineProperty(i.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),i.prototype.setValueToQuestion=function(t){var e=this.json.valueToQuestion||this.json.setValue;return e?e(t):t},i.prototype.getValueFromQuestion=function(t){var e=this.json.valueFromQuestion||this.json.getValue;return e?e(t):t},Object.defineProperty(i.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),i.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},i.prototype.calcDynamicProperties=function(){var t=this.json.inheritBaseProps;if(!t||!this.json.questionJSON)return[];var e=this.json.questionJSON.type;if(!e)return[];if(Array.isArray(t)){var n=[];return t.forEach(function(s){var u=j.findProperty(e,s);u&&n.push(u)}),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return j.getDynamicPropertiesByTypes(this.name,e,r)},i}(),po=function(){function i(){this.customQuestionValues=[]}return i.prototype.add=function(t){if(t){var e=t.name;if(!e)throw"Attribute name is missed";if(e=e.toLowerCase(),this.getCustomQuestionByName(e))throw"There is already registered custom question with name '"+e+"'";if(j.findClass(e))throw"There is already class with name '"+e+"'";var n=new Va(e,t);this.onAddingJson&&this.onAddingJson(e,n.isComposite),this.customQuestionValues.push(n)}},i.prototype.remove=function(t){if(!t)return!1;var e=this.getCustomQuestionIndex(t.toLowerCase());return e<0?!1:(this.removeByIndex(e),!0)},Object.defineProperty(i.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),i.prototype.getCustomQuestionByName=function(t){var e=this.getCustomQuestionIndex(t);return e>=0?this.customQuestionValues[e]:void 0},i.prototype.getCustomQuestionIndex=function(t){for(var e=0;e<this.customQuestionValues.length;e++)if(this.customQuestionValues[e].name===t)return e;return-1},i.prototype.removeByIndex=function(t){j.removeClass(this.customQuestionValues[t].name),this.customQuestionValues.splice(t,1)},i.prototype.clear=function(t){for(var e=this.customQuestionValues.length-1;e>=0;e--)(t||!this.customQuestionValues[e].json.internal)&&this.removeByIndex(e)},i.prototype.createQuestion=function(t,e){return e.isComposite?this.createCompositeModel(t,e):this.createCustomModel(t,e)},i.prototype.createCompositeModel=function(t,e){return this.onCreateComposite?this.onCreateComposite(t,e):new Ea(t,e)},i.prototype.createCustomModel=function(t,e){return this.onCreateCustom?this.onCreateCustom(t,e):new Oa(t,e)},i.Instance=new i,i}(),Sa=function(i){Zt(t,i);function t(e,n){var r=i.call(this,e)||this;return r.customQuestion=n,Fe.createProperties(r),_e.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),_e.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?i.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.getElement()&&this.getElement().addUsedLocales(e)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return e?e.needResponsiveWidth():!1},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,e,r)},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,e,e.ownerPropertyName,n,o)},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this);var e=this.getElement();e&&e.onFirstRendering()},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this);var e=this.getElement();e&&e.onHidingContent()},t.prototype.getProgressInfo=function(){var e=i.prototype.getProgressInfo.call(this);return this.getElement()&&(e=this.getElement().getProgressInfo()),this.isRequired&&e.requiredQuestionCount==0&&(e.requiredQuestionCount=1,this.isEmpty()||(e.answeredQuestionCount=1)),e},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(e,n){this.isSettingValOnLoading=!0,i.prototype.setSurveyImpl.call(this,e,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.customQuestion&&this.customQuestion.onAfterRender(this,e)},t.prototype.onUpdateQuestionCssClasses=function(e,n){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,n)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,e)},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateElementCss()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),this.customQuestion){var o=this.customQuestion.onGetErrorText(this);o&&e.push(new ot(o,this))}},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,n,r,o){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,n);var s=this.convertDataName(e),u=this.convertDataValue(e,n);this.valueToDataCallback&&(u=this.valueToDataCallback(u)),this.data.setValue(s,u,r,o),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,n){if(this.customQuestion){var r=n;if(n=this.customQuestion.onValueChanging(this,e,n),!h.isTwoValueEquals(n,r)){var o=this.getQuestionByName(e);if(o)return o.value=n,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,n){return n},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,n){this.data&&this.data.setVariable(e,n)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,n,r){this.data&&this.data.setComment(this.getValueName(),n,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(e,n,r){return r?this.customQuestion.getDisplayValue(e,n,r):i.prototype.getDisplayValueCore.call(this,e,n)},t}(Be),Oa=function(i){Zt(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getTemplate=function(){return"custom"},t.prototype.getDynamicProperties=function(){return this.customQuestion.getDynamicProperties()||[]},t.prototype.getDynamicType=function(){return this.questionWrapper?this.questionWrapper.getType():"question"},t.prototype.getOriginalObj=function(){return this.questionWrapper},t.prototype.createWrapper=function(){var e=this;this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=function(n,r,o,s,u){var d=e.getDynamicProperty(n);d&&e.propertyValueChanged(n,r,o,u)})},t.prototype.getDynamicProperty=function(e){for(var n=this.getDynamicProperties(),r=0;r<n.length;r++)if(n[r].name===e)return n[r];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(e,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):i.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(e,n,r,o){this.isValueChanging(e,n)||i.prototype.setValue.call(this,e,n,r,o)},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(e,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=i.prototype.hasErrors.call(this,e,n)),this.updateElementCss(),r},t.prototype.focus=function(e){e===void 0&&(e=!1),this.contentQuestion?this.contentQuestion.focus(e):i.prototype.focus.call(this,e)},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.contentQuestion&&this.contentQuestion.afterRender(e)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,n=this.customQuestion.json,r=null;if(n.questionJSON){this.hasJSONTitle=!!n.questionJSON.title;var o=n.questionJSON.type;if(!o||!j.findClass(o))throw"type attribute in questionJSON is empty or incorrect";r=j.createClass(o),r.fromJSON(n.questionJSON),r=this.checkCreatedQuestion(r)}else n.createQuestion&&(r=this.checkCreatedQuestion(n.createQuestion()));return this.initElement(r),r&&(r.isContentElement=!0,r.name||(r.name="question"),r.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(r,s)},r.hasCssErrorCallback=function(){return e.errors.length>0},r.setValueChangedDirectlyCallback=function(s){e.setValueChangedDirectly(s)}),r},t.prototype.checkCreatedQuestion=function(e){return e&&(e.isQuestion||(Array.isArray(e.questions)&&e.questions.length>0?e=e.questions[0]:e=j.createClass("text"),He.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e)},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.contentQuestion&&this.contentQuestion.runCondition(e,n)},t.prototype.convertDataName=function(e){var n=this.contentQuestion;if(!n||e===this.getValueName())return i.prototype.convertDataName.call(this,e);var r=e.replace(n.getValueName(),this.getValueName());return r.indexOf(this.getValueName())==0?r:i.prototype.convertDataName.call(this,e)},t.prototype.convertDataValue=function(e,n){return this.convertDataName(e)==i.prototype.convertDataName.call(this,e)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),!this.isLoadingFromJson&&this.contentQuestion&&!this.isTwoValueEquals(this.getContentQuestionValue(),e)&&this.setContentQuestionValue(this.getUnbindValue(e))},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(e)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():i.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(e){this.isSettingValueChanged||(this.isSettingValueChanged=!0,i.prototype.setValueChangedDirectly.call(this,e),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(e),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var n=this.getDynamicProperties();Array.isArray(n)&&j.addDynamicPropertiesIntoObj(this,e,n)}},t.prototype.initElement=function(e){var n=this;i.prototype.initElement.call(this,e),e&&(e.parent=this,e.afterRenderQuestionCallback=function(r,o){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,r,o)})},t.prototype.updateElementCss=function(e){this.contentQuestion&&this.questionWrapper.updateElementCss(e),i.prototype.updateElementCss.call(this,e)},t.prototype.updateElementCssCore=function(e){this.contentQuestion&&(e=this.contentQuestion.cssClasses),i.prototype.updateElementCssCore.call(this,e)},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentQuestion)},t}(Sa),Ku=function(i){Zt(t,i);function t(e,n){var r=i.call(this,n)||this;return r.composite=e,r.variableName=n,r}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(yr),Ea=function(i){Zt(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.customQuestion=n,r.settingNewValue=!1,r.textProcessing=new Ku(r,t.ItemVariableName),r}return t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(e){return new _().append(i.prototype.getCssRoot.call(this,e)).append(e.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=i.prototype.hasErrors.call(this,e,n);return this.contentPanel&&this.contentPanel.hasErrors(e,!1,n)||r},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e),this.contentPanel&&this.contentPanel.updateElementCss(e)},t.prototype.dispose=function(){this.unConnectEditingObj(),i.prototype.dispose.call(this)},t.prototype.updateEditingObj=function(){var e=this,n,r=(n=this.data)===null||n===void 0?void 0:n.getEditingSurveyElement();if(r){var o=r[this.getValueName()];return o&&!o.onPropertyChanged&&(o=void 0),o!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=o,o&&(this.onEditingObjPropertyChanged=function(s,u){e.setNewValueIntoQuestion(u.name,e.editingObjValue[u.name])},o.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}},t.prototype.unConnectEditingObj=function(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(e){var n=this.getQuestionByName(e);return n||i.prototype.findQuestionByName.call(this,e)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createPanel=function(){var e=this,n=j.createClass("panel");n.showQuestionNumbers="off",n.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&n.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(n,this),this.initElement(n),n.readOnly=this.isReadOnly,n.questions.forEach(function(o){return o.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(o,s)}}),this.setAfterRenderCallbacks(n),n},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),this.updateEditingObj(),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),i.prototype.onSurveyLoad.call(this),this.contentPanel){var e=this.getContentPanelValue();h.isValueEmpty(e)||(this.value=e)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var n=e.elements,r=0;r<n.length;r++){var o=n[r];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(e){var n=i.prototype.setVisibleIndex.call(this,e);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(e)),n},t.prototype.runCondition=function(e,n){if(i.prototype.runCondition.call(this,e,n),this.contentPanel){var r=e[t.ItemVariableName];e[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(e,n),delete e[t.ItemVariableName],r&&(e[t.ItemVariableName]=r)}},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e);var n=e||{};this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.onSurveyValueChanged(n[r.getValueName()])})},t.prototype.getValue=function(e){var n=this.value;return n?n[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(e,n,r,o){if(this.settingNewValue){this.setNewValueIntoQuestion(e,n);return}if(!this.isValueChanging(e,n)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var s=0,u=this.contentPanel.questions.length+1;s<u&&this.updateValueCoreWithPanelValue();)s++;this.setNewValueIntoQuestion(e,n),i.prototype.setValue.call(this,e,n,r,o),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+e,n)}},t.prototype.runPanelTriggers=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.runTriggers(e,n)})},t.prototype.getFilteredValues=function(){var e=this.data?this.data.getFilteredValues():{};return this.contentPanel&&(e[t.ItemVariableName]=this.contentPanel.getValue()),e},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return this.isTwoValueEquals(this.getValueCore(),e)?!1:(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,n){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(n,r.value)&&(r.value=n)},t.prototype.addConditionObjectsByContext=function(e,n){if(this.contentPanel)for(var r=this.contentPanel.questions,o=this.name,s=this.title,u=0;u<r.length;u++)e.push({name:o+"."+r[u].name,text:s+"."+r[u].title,question:r[u]})},t.prototype.collectNestedQuestionsCore=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){return r.collectNestedQuestions(e,n)})},t.prototype.convertDataValue=function(e,n){var r=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return r||(r={}),r.getType||(r=h.getUnbindValue(r)),this.isValueEmpty(n)&&!this.isEditingSurveyElement?delete r[e]:r[e]=n,this.getContentPanelValue(r)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),this.setValuesIntoQuestions(e),!this.isEditingSurveyElement&&this.contentPanel&&(e=this.getContentPanelValue()),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){e=this.getValueForContentPanel(e);var n=this.settingNewValue;this.settingNewValue=!0;for(var r=this.contentPanel.questions,o=0;o<r.length;o++){var s=r[o].getValueName(),u=e?e[s]:void 0,d=r[o];!this.isTwoValueEquals(d.value,u)&&(u!==void 0||!d.isEmpty())&&(d.value=u)}this.settingNewValue=n}},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var n=this;if(!(!e||!this.customQuestion))for(var r=e.questions,o=0;o<r.length;o++)r[o].afterRenderQuestionCallback=function(s,u){n.customQuestion.onAfterRenderContentElement(n,s,u)}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.ItemVariableName="composite",t}(Sa),Se=function(){function i(){}return Object.defineProperty(i,"DefaultChoices",{get:function(){var t=k("choices_Item");return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultColums",{get:function(){var t=k("matrix_column")+" ";return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultRows",{get:function(){var t=k("matrix_row")+" ";return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultMutlipleTextItems",{get:function(){var t=k("multipletext_itemname");return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),i.prototype.registerQuestion=function(t,e,n){n===void 0&&(n=!0),pn.Instance.registerElement(t,e,n)},i.prototype.registerCustomQuestion=function(t){pn.Instance.registerCustomQuestion(t)},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),pn.Instance.unregisterElement(t,e)},i.prototype.clear=function(){pn.Instance.clear()},i.prototype.getAllTypes=function(){return pn.Instance.getAllTypes()},i.prototype.createQuestion=function(t,e){return pn.Instance.createElement(t,e)},i.Instance=new i,i}(),pn=function(){function i(){var t=this;this.creatorHash={},this.registerCustomQuestion=function(e,n){n===void 0&&(n=!0);var r=function(o){var s=j.createClass(e);return s&&(s.name=o),s};t.registerElement(e,r,n)}}return i.prototype.registerElement=function(t,e,n){n===void 0&&(n=!0),this.creatorHash[t]={showInToolbox:n,creator:e}},i.prototype.clear=function(){this.creatorHash={}},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),delete this.creatorHash[t],e&&j.removeClass(t)},i.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},i.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},i.prototype.createElement=function(t,e){var n=this.creatorHash[t];if(n&&n.creator)return n.creator(e);var r=po.Instance.getCustomQuestionByName(t);return r?po.Instance.createQuestion(e,r):null},i.prototype.getAllTypesCore=function(t){var e=new Array;for(var n in this.creatorHash)(!t||this.creatorHash[n].showInToolbox)&&e.push(n);return e.sort()},i.Instance=new i,i}(),Yu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ps=function(i){Yu(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],function(){n.expressionRunner&&(n.expressionRunner=n.createRunner())}),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],function(){n.updateFormatedValue()}),n}return t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),!(!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly)&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(e,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,n=this.createExpressionRunner(this.expression);return n.onRunComplete=function(r){e.value=e.roundValue(r),e.unlocCalculation()},n},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return this.runIfReadOnlyValue===!0},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,n){var r=n??this.defaultValue,o="";if(!this.isValueEmpty(r)){var s=this.getValueAsStr(r);o=this.format?this.format.format(s):s}return this.survey&&(o=this.survey.getExpressionDisplayValue(this,r,o)),o},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){fo().indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){if(e!==1/0)return this.precision<0||!h.isNumber(e)?e:parseFloat(e.toFixed(this.precision))},t.prototype.getValueAsStr=function(e){if(this.displayStyle=="date"){var n=D("question-expression",e);if(n&&n.toLocaleDateString)return n.toLocaleDateString()}if(this.displayStyle!="none"&&h.isNumber(e)){var r=this.getLocale();r||(r="en");var o={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(o.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(o.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,o)}return e.toString()},t}(Be);function fo(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}j.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return fo()},default:"USD",visibleIf:function(i){return i.displayStyle==="currency"}},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"resetValueIf",visible:!1},{name:"setValueIf",visible:!1},{name:"setValueExpression",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new ps("")},"question"),Se.Instance.registerQuestion("expression",function(i){return new ps(i)});var Xu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();function ho(i,t,e,n){i.storeOthersAsComment=e?e.storeOthersAsComment:!1,(!i.choices||i.choices.length==0)&&i.choicesByUrl.isEmpty&&(i.choices=e.choices),i.choicesByUrl.isEmpty||i.choicesByUrl.run(n.getTextProcessor())}function ec(i,t,e,n){ho(i,t,e,n),i.locPlaceholder&&i.locPlaceholder.isEmpty&&!e.locPlaceholder.isEmpty&&(i.optionsCaption=e.optionsCaption)}var fs={dropdown:{onCellQuestionUpdate:function(i,t,e,n){ec(i,t,e,n)}},checkbox:{onCellQuestionUpdate:function(i,t,e,n){ho(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},radiogroup:{onCellQuestionUpdate:function(i,t,e,n){ho(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},tagbox:{onCellQuestionUpdate:function(i,t,e,n){ho(i,t,e,n)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(i,t,e,n){i.renderAs=t.renderAs}},expression:{},rating:{}},ri=function(i){Xu(t,i);function t(e,n,r){var o=i.call(this)||this;return o.indexValue=-1,o._hasVisibleCell=!0,o.isColumnsVisibleIf=!0,o.previousChoicesId=void 0,o.colOwnerValue=r,o.createLocalizableString("totalFormat",o),o.createLocalizableString("cellHint",o),o.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){o.doShowInMultipleColumnsChanged()}),o.registerPropertyChangedHandlers(["visible"],function(){o.doColumnVisibilityChanged()}),o.updateTemplateQuestion(void 0,e,n),o}return t.getColumnTypes=function(){var e=[];for(var n in fs)e.push(n);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return e.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.cellType==="default"?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.templateQuestion.addUsedLocales(e)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnVisible",{get:function(){return this.isDesignMode?!0:this.visible&&this.hasVisibleCell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.templateQuestion.visible},set:function(e){this.templateQuestion.visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),t.prototype.getVisibleMultipleChoices=function(){var e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;for(var n=new Array,r=0;r<e.length;r++){var o=e[r];this._visiblechoices.indexOf(o.value)>-1&&n.push(o)}return n},Object.defineProperty(t.prototype,"getVisibleChoicesInCell",{get:function(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;var e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]},enumerable:!1,configurable:!0}),t.prototype.setVisibleChoicesInCell=function(e){this._visiblechoices=e},Object.defineProperty(t.prototype,"isFilteredMultipleColumns",{get:function(){if(!this.showInMultipleColumns)return!1;var e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(e[n].visibleIf)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.templateQuestion.resetValueIf},set:function(e){this.templateQuestion.resetValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.templateQuestion.defaultValueExpression},set:function(e){this.templateQuestion.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.templateQuestion.setValueIf},set:function(e){this.templateQuestion.setValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.templateQuestion.setValueExpression},set:function(e){this.templateQuestion.setValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return this.totalType!="none"||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalAlignment",{get:function(){return this.getPropertyValue("totalAlignment")},set:function(e){this.setPropertyValue("totalAlignment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){fo().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.colOwner?this.colOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var n=this.calcCellQuestionType(e),r=this.createNewQuestion(n);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&!e.cellType&&e.choices&&(e.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,n,r){r===void 0&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,n){var r=e.getType(),o=fs[r];o&&o.onCellQuestionUpdate&&o.onCellQuestionUpdate(e,this,this.colOwner,n)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var n=this.getDefaultCellQuestionType();return e&&this.colOwner&&(n=this.colOwner.getCustomCellType(this,e,n)),n},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),e!=="default"?e:this.colOwner?this.colOwner.getCellType():I.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e,n,r){var o=this,s=this.getDefaultCellQuestionType(e),u=this.templateQuestion?this.templateQuestion.getType():"";s!==u&&(this.templateQuestion&&this.removeProperties(u),this.templateQuestionValue=this.createNewQuestion(s),this.templateQuestion.locOwner=this,this.addProperties(s),n&&(this.name=n),r?this.title=r:this.templateQuestion.locTitle.strChanged(),I.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add(function(d,y){o.propertyValueChanged(y.name,y.oldValue,y.newValue,y.arrayChanges,y.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(d,y){o.doItemValuePropertyChanged(y.propertyName,y.obj,y.name,y.newValue,y.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return o.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var n=j.createClass(e);return n||(n=j.createClass("text")),n.loadingOwner=this,n.isEditableTemplateElement=!0,n.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(n),this.setParentQuestionToTemplate(n),n},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,n){var r=this;if(n===void 0&&(n=null),this.templateQuestion){var o=new je().toJsonObject(this.templateQuestion,!0);if(n&&n(o),o.type=e.getType(),this.cellType==="default"&&this.colOwner&&this.colOwner.hasChoices()&&delete o.choices,delete o.itemComponent,this.jsonObj&&o.type==="rating"&&Object.keys(this.jsonObj).forEach(function(u){o[u]=r.jsonObj[u]}),o.choicesOrder==="random"){o.choicesOrder="none";var s=this.templateQuestion.visibleChoices;Array.isArray(s)&&(o.choices=s)}new je().toObject(o,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&!(r.previousChoicesId&&r.previousChoicesId!==e.id)){r.previousChoicesId=e.id;var u=e.visibleChoices;r.templateQuestion.choices=u,r.propertyValueChanged("choices",u,u)}}}},t.prototype.propertyValueChanged=function(e,n,r,o,s){if(i.prototype.propertyValueChanged.call(this,e,n,r,o,s),e==="isRequired"&&this.updateIsRenderedRequired(r),!(!this.colOwner||this.isLoadingFromJson)){if(this.isShowInMultipleColumns){if(e==="choicesOrder")return;["visibleChoices","choices"].indexOf(e)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}j.hasOriginalProperty(this,e)&&this.colOwner.onColumnPropertyChanged(this,e,r)}},t.prototype.doItemValuePropertyChanged=function(e,n,r,o,s){j.hasOriginalProperty(n,r)&&this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,e,n,r,o,s)},t.prototype.doShowInMultipleColumnsChanged=function(){this.colOwner!=null&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){this.colOwner!=null&&!this.isDesignMode&&this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return j.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];delete this[o.name],o.serializationProperty&&delete this[o.serializationProperty]}},t.prototype.addProperties=function(e){var n=this.getProperties(e);j.addDynamicPropertiesIntoObj(this,this.templateQuestion,n)},t}(fe);j.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var i=ri.getColumnTypes();return i.splice(0,0,"default"),i}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(i,t){i&&t&&(t.value=i.minWidth)}},"width",{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(i){return i.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",visibleIf:function(i){return!i.isShowInMultipleColumns},default:"none",choices:["none","sum","count","min","max","avg"]},{name:"totalExpression:expression",visibleIf:function(i){return!i.isShowInMultipleColumns}},{name:"totalFormat",serializationProperty:"locTotalFormat",visibleIf:function(i){return i.hasTotal}},{name:"totalDisplayStyle",visibleIf:function(i){return i.hasTotal},default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",visibleIf:function(i){return i.hasTotal},default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",visibleIf:function(i){return i.hasTotal},choices:function(){return fo()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"totalMinimumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"renderAs",default:"default",visible:!1}],function(){return new ri("")});var ds=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ii=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},tc=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Ta(i,t,e){return i+(t?"-error":"")+(e?"-detail":"")}var _t=function(){function i(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=i.counter++}return Object.defineProperty(i.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){var t=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(t+="-"+(Number.isInteger(this.choiceIndex)?"index"+this.choiceIndex.toString():this.item.id)),Ta(t,this.isErrorsCell,this.isDetailRowCell)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this.itemValue},set:function(t){this.itemValue=t,t&&(t.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isFirstChoice",{get:function(){return this.choiceIndex===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){var t=new _().append(this.classNameValue);return this.hasQuestion&&t.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),t.toString()},set:function(t){this.classNameValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isVisible",{get:function(){var t;return!this.hasQuestion&&!this.isErrorsCell||!(!((t=this.matrix)===null||t===void 0)&&t.isMobile)||this.question.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showResponsiveTitle",{get:function(){var t;return this.hasQuestion&&((t=this.matrix)===null||t===void 0?void 0:t.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveTitleCss",{get:function(){return new _().append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:"";var t=this.cell.column.cellHint;return t?t.trim()===""?"":this.cell.column.locCellHint.renderedHtml:this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),i.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},i.prototype.calculateFinalClassName=function(t){var e=this.cell.question.cssClasses,n=new _().append(e.itemValue,!!e).append(e.asCell,!!e);return n.append(t.cell,n.isEmpty()&&!!t).append(t.choiceCell,this.isChoice).toString()},i.prototype.focusIn=function(){this.question&&this.question.focusIn()},i.counter=1,i}(),hs=function(i){ds(t,i);function t(e,n){n===void 0&&(n=!1);var r=i.call(this)||this;return r.cssClasses=e,r.isDetailRow=n,r.hasEndActions=!1,r.isErrorsRow=!1,r.cells=[],r.idValue=t.counter++,r}return Object.defineProperty(t.prototype,"id",{get:function(){var e;return Ta(((e=this.row)===null||e===void 0?void 0:e.id)||this.idValue.toString(),this.isErrorsRow,this.isDetailRow)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){var e,n;return new _().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,(e=this.row)===null||e===void 0?void 0:e.hasPanel).append(this.cssClasses.expandedRow,((n=this.row)===null||n===void 0?void 0:n.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.prototype.focusCell=function(e){if(this.rootElement){var n=":scope td:nth-of-type("+(e+1)+") input, :scope td:nth-of-type("+(e+1)+") button",r=this.rootElement.querySelectorAll(n)[0];r&&r.focus()}},t.counter=1,ii([x({defaultValue:!1})],t.prototype,"isGhostRow",void 0),ii([x({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),ii([x({defaultValue:!0})],t.prototype,"visible",void 0),t}(fe),Ra=function(i){ds(t,i);function t(e){var n=i.call(this,e)||this;return n.isErrorsRow=!0,n}return Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return new _().append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,n=function(){e.visible=e.cells.some(function(r){return r.question&&r.question.hasVisibleErrors})};this.cells.forEach(function(r){r.question&&r.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n)}),n()},t}(hs),gs=function(i){ds(t,i);function t(e){var n=i.call(this)||this;return n.matrix=e,n._renderedRows=[],n.renderedRowsAnimation=new Nt(n.getRenderedRowsAnimationOptions(),function(r){n._renderedRows=r},function(){return n._renderedRows}),n.hasActionCellInRowsValues={},n.build(),n}return t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,n=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Vt(s)})},r=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Xe(s)})};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(o){return o.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getEnterOptions:function(o,s){return{cssClass:e.cssClasses.rowEnter,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getKey:function(o){return o.id}}},t.prototype.updateRenderedRows=function(){this.renderedRows=this.rows},Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},set:function(e){this.renderedRowsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRow",{get:function(){return this.getPropertyValue("showAddRow",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return this.matrix.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return this.matrix.getErrorLocation()==="bottom"},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var n=this.matrix.canAddRow&&e,r=n,o=n;r&&(this.matrix.getAddRowLocation()==="default"?r=!this.matrix.isColumnLayoutHorizontal:r=this.matrix.getAddRowLocation()!=="bottom"),o&&this.matrix.getAddRowLocation()!=="topBottom"&&(o=!r),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",o)},t.prototype.onAddedRow=function(e,n){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(n);this.rowsActions.splice(n,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var n=0,r=0,o=0;o<this.rows.length;o++){if(r===e){(this.rows[o].isErrorsRow||this.rows[o].isDetailRow)&&(n++,o+1<this.rows.length&&this.rows[o+1].isDetailRow&&n++);break}n++,!this.rows[o].isErrorsRow&&!this.rows[o].isDetailRow&&r++}return r<e?this.rows.length:n},t.prototype.getRenderedDataRowCount=function(){for(var e=0,n=0;n<this.rows.length;n++)!this.rows[n].isErrorsRow&&!this.rows[n].isDetailRow&&e++;return e},t.prototype.onRemovedRow=function(e){var n=this.getRenderedRowIndex(e);if(!(n<0)){this.rowsActions.splice(n,1);var r=1;n<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[n+1].isErrorsRow&&r++,n<this.rows.length-1&&(this.rows[n+1].isDetailRow||this.showCellErrorsBottom&&n+1<this.rows.length-1&&this.rows[n+2].isDetailRow)&&r++,n>0&&this.showCellErrorsTop&&this.rows[n-1].isErrorsRow&&(n--,r++),this.rows.splice(n,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,n){var r=this.getRenderedRowIndex(e);if(!(r<0)){var o=r;this.showCellErrorsBottom&&o++;var s=o<this.rows.length-1&&this.rows[o+1].isDetailRow?o+1:-1;if(!(n&&s>-1||!n&&s<0))if(n){var u=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(o+1,0,u)}else this.rows.splice(s,1)}},t.prototype.focusActionCell=function(e,n){var r=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){var o=this.getRenderedRowIndex(e);r=this.rows[o]}r==null||r.focusCell(n)},t.prototype.getRenderedRowIndex=function(e){for(var n=0;n<this.rows.length;n++)if(this.rows[n].row==e)return n;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,n=0;n<e.length;n++)this.rowsActions.push(this.buildRowActions(e[n]))},t.prototype.createRenderedRow=function(e,n){return n===void 0&&(n=!1),new hs(e,n)},t.prototype.createErrorRenderedRow=function(e){return new Ra(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,n=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",n),!!n){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action",this.cssClasses.actionsCellDrag)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var r=0;r<this.matrix.columns.length;r++){var o=this.matrix.columns[r];o.isColumnVisible&&(this.matrix.IsMultiplyColumn(o)?this.createMutlipleColumnsHeader(o):this.headerRow.cells.push(this.createHeaderCell(o)))}else{for(var s=this.matrix.visibleRows,r=0;r<s.length;r++){var u=this.createTextCell(s[r].locText);this.setHeaderCellCssClasses(u),u.row=s[r],this.headerRow.cells.push(u)}if(this.matrix.hasFooter){var u=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(u),this.headerRow.cells.push(u)}}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildFooter=function(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText){var e=this.createTextCell(this.matrix.getFooterText());e.className=new _().append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var n=this.matrix.visibleTotalRow.cells,r=0;r<n.length;r++){var o=n[r];if(o.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(o.column))this.createMutlipleColumnsFooter(this.footerRow,o);else{var s=this.createEditCell(o);o.column&&this.setCellWidth(o.column,s),s.className=new _().append(s.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(s)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildRows=function(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()},t.prototype.hasActionCellInRows=function(e){return this.hasActionCellInRowsValues[e]===void 0&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var n=this;return e=="end"&&this.hasRemoveRows?!0:this.matrix.visibleRows.some(function(r,o){return!n.isValueEmpty(n.getRowActions(o,e))})},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,n=[],r=0;r<e.length;r++)this.addHorizontalRow(n,e[r]);return n},t.prototype.addHorizontalRow=function(e,n,r){r===void 0&&(r=-1);var o=this.createHorizontalRow(n),s=this.createErrorRow(o);if(o.row=n,r<0&&(r=e.length),this.matrix.isMobile){for(var u=[],d=0;d<o.cells.length;d++)this.showCellErrorsTop&&!s.cells[d].isEmpty&&u.push(s.cells[d]),u.push(o.cells[d]),this.showCellErrorsBottom&&!s.cells[d].isEmpty&&u.push(s.cells[d]);o.cells=u,e.splice(r,0,o)}else e.splice.apply(e,tc([r,0],this.showCellErrorsTop?[s,o]:[o,s])),r++;n.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(n,o))},t.prototype.getRowDragCell=function(e){var n=new _t,r=this.matrix.lockedRowCount;return n.isDragHandlerCell=r<1||e>=r,n.isEmpty=!n.isDragHandlerCell,n.className=this.getActionsCellClassName(n),n.row=this.matrix.visibleRows[e],n},t.prototype.getActionsCellClassName=function(e){var n=this;e===void 0&&(e=null);var r=new _().append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,e==null?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,e==null?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var o=e.item.value.actions;this.cssClasses.actionsCellPrefix&&o.forEach(function(s){r.append(n.cssClasses.actionsCellPrefix+"--"+s.id)})}return r.toString()},t.prototype.getRowActionsCell=function(e,n,r){r===void 0&&(r=!1);var o=this.getRowActions(e,n);if(!this.isValueEmpty(o)){var s=new _t,u=this.matrix.allowAdaptiveActions?new Tn:new xt;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(u.cssClasses=this.matrix.survey.getCss().actionBar),u.setItems(o);var d=new re(u);return s.item=d,s.isActionsCell=!0,s.isDragHandlerCell=!1,s.isDetailRowCell=r,s.className=this.getActionsCellClassName(s),s.row=this.matrix.visibleRows[e],s}return null},t.prototype.getRowActions=function(e,n){var r=this.rowsActions[e];return Array.isArray(r)?r.filter(function(o){return o.location||(o.location="start"),o.location===n}):[]},t.prototype.buildRowActions=function(e){var n=[];return this.setDefaultRowActions(e,n),this.matrix.survey&&(n=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,n)),n},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return I.matrix.renderRemoveAsIcon&&this.matrix.survey&&this.matrix.survey.css.root==="sd-root-modern"},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,n){var r=this,o=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?n.push(new xe({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:new _().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:o.removeRowText,enabled:!o.isInputReadOnly,data:{row:e,question:o},action:function(){o.removeRowUI(e)}})):n.push(new xe({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?n.unshift(new xe({id:"show-detail-mobile",title:"Show Details",showTitle:!0,location:"end",action:function(s){s.title=e.isDetailPanelShowing?r.matrix.getLocalizationString("showDetails"):r.matrix.getLocalizationString("hideDetails"),e.showHideDetailPanelClick()}})):n.push(new xe({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}})))},t.prototype.createErrorRow=function(e){for(var n=this.createErrorRenderedRow(this.cssClasses),r=0;r<e.cells.length;r++){var o=e.cells[r];o.hasQuestion?this.matrix.IsMultiplyColumn(o.cell.column)?o.isFirstChoice?n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0)):n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0))}return n.onAfterCreated(),n},t.prototype.createHorizontalRow=function(e){var n=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}if(this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText){var o=this.createTextCell(e.locText);o.row=e,n.cells.push(o),this.setCellWidth(null,o),o.className=new _().append(o.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var s=0;s<e.cells.length;s++){var u=e.cells[s];if(u.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(u.column))this.createMutlipleEditCells(n,u);else{u.column.isShowInMultipleColumns&&u.question.visibleChoices.map(function(y){return y.hideCaption=!1});var o=this.createEditCell(u);n.cells.push(o),this.setCellWidth(u.column,o)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,n,r){var o=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var s=this.getRowActionsCell(o,r,n.isDetailRow);if(s)n.cells.push(s),n.hasEndActions=!0;else{var u=new _t;u.isEmpty=!0,u.isDetailRowCell=n.isDetailRow,n.cells.push(u)}}},t.prototype.createDetailPanelRow=function(e,n){var r=this.matrix.isDesignMode,o=this.createRenderedRow(this.cssClasses,!0);o.row=e;var s=new _t;this.matrix.hasRowText&&(s.colSpans=2),s.isEmpty=!0,r||o.cells.push(s);var u=null;this.hasActionCellInRows("end")&&(u=new _t,u.isEmpty=!0);var d=new _t;return d.panel=e.detailPanel,d.colSpans=n.cells.length-(r?0:s.colSpans)-(u?u.colSpans:0),d.className=this.cssClasses.detailPanelCell,o.cells.push(d),u&&(this.matrix.isMobile?this.addRowActionsCell(e,o,"end"):o.cells.push(u)),typeof this.matrix.onCreateDetailPanelRenderedRowCallback=="function"&&this.matrix.onCreateDetailPanelRenderedRowCallback(o),o},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,n=[],r=0;r<e.length;r++){var o=e[r];if(o.isColumnVisible)if(this.matrix.IsMultiplyColumn(o))this.createMutlipleVerticalRows(n,o,r);else{var s=this.createVerticalRow(o,r),u=this.createErrorRow(s);this.showCellErrorsTop?(n.push(u),n.push(s)):(n.push(s),n.push(u))}}return this.hasActionCellInRows("end")&&n.push(this.createEndVerticalActionRow()),n},t.prototype.createMutlipleVerticalRows=function(e,n,r){var o=this.getMultipleColumnChoices(n);if(o)for(var s=0;s<o.length;s++){var u=this.createVerticalRow(n,r,o[s],s),d=this.createErrorRow(u);this.showCellErrorsTop?(e.push(d),e.push(u)):(e.push(u),e.push(d))}},t.prototype.createVerticalRow=function(e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=-1);var s=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var u=r?r.locText:e.locTitle,d=this.createTextCell(u);d.column=e,d.className=new _().append(d.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),s.cells.push(d)}for(var y=this.matrix.visibleRows,V=0;V<y.length;V++){var T=r,N=o>=0?o:V,U=y[V].cells[n],W=r?U.question.visibleChoices:void 0;W&&N<W.length&&(T=W[N]);var X=this.createEditCell(U,T);X.item=T,X.choiceIndex=N,s.cells.push(X)}return this.matrix.hasTotal&&s.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[n])),s},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var n=this.matrix.visibleRows,r=0;r<n.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,n,r){r===void 0&&(r=!1);var o=r?this.getMultipleColumnChoices(n.column):n.question.visibleChoices;if(o)for(var s=0;s<o.length;s++){var u=this.createEditCell(n,r?void 0:o[s]);r||(this.setItemCellCssClasses(u),u.choiceIndex=s),e.cells.push(u)}},t.prototype.setItemCellCssClasses=function(e){e.className=new _().append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,n){n===void 0&&(n=void 0);var r=new _t;return r.cell=e,r.row=e.row,r.column=e.column,r.question=e.question,r.matrix=this.matrix,r.item=n,r.isOtherChoice=!!n&&!!e.question&&e.question.otherItem===n,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createErrorCell=function(e,n){var r=new _t;return r.question=e.question,r.row=e.row,r.matrix=this.matrix,r.isErrorsCell=!0,r.className=new _().append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),r},t.prototype.createMutlipleColumnsFooter=function(e,n){this.createMutlipleEditCells(e,n,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var n=this.getMultipleColumnChoices(e);if(n)for(var r=0;r<n.length;r++){var o=this.createTextCell(n[r].locText);this.setHeaderCell(e,o),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o)}},t.prototype.getMultipleColumnChoices=function(e){var n=e.templateQuestion.choices;return n&&Array.isArray(n)&&n.length==0?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(n=e.getVisibleMultipleChoices(),!n||!Array.isArray(n)?null:n)},t.prototype.setHeaderCellCssClasses=function(e,n,r){e.className=new _().append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+n,!!n).append(r,!!r).toString()},t.prototype.createHeaderCell=function(e,n,r){n===void 0&&(n=null);var o=e?this.createTextCell(e.locTitle):this.createEmptyCell();return o.column=e,this.setHeaderCell(e,o),n||(n=e&&e.cellType!=="default"?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(o,n,r),o},t.prototype.setHeaderCell=function(e,n){this.setCellWidth(e,n)},t.prototype.setCellWidth=function(e,n){n.minWidth=e!=null?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),n.width=e!=null?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var n=new _t;return n.locTitle=e,this.cssClasses.cell&&(n.className=this.cssClasses.cell),n},t.prototype.createEmptyCell=function(e){e===void 0&&(e=!1);var n=this.createTextCell(null);return n.isEmpty=!0,n.className=new _().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),n},ii([me({onPush:function(e,n,r){r.updateRenderedRows()},onRemove:function(e,n,r){r.updateRenderedRows()}})],t.prototype,"rows",void 0),ii([me()],t.prototype,"_renderedRows",void 0),t}(fe),go=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ys=function(){function i(t,e,n){this.column=t,this.row=e,this.data=n,this.questionValue=this.createQuestion(t,e,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(e)}return i.prototype.updateCellQuestionTitleDueToAccessebility=function(t){var e=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!t||!t.getSurvey())return e.questionValue.title;var r=t.getAccessbilityText();return r?e.column.colOwner.getCellAriaLabel(r,e.questionValue.title):e.questionValue.title}},i.prototype.locStrsChanged=function(){this.question.locStrsChanged()},i.prototype.createQuestion=function(t,e,n){var r=this,o=n.createQuestion(this.row,this.column);return o.readOnlyCallback=function(){return!r.row.isRowEnabled()},o.validateValueCallback=function(){return n.validateCell(e,t.name,e.value)},Fe.getProperties(t.getType()).forEach(function(s){var u=s.name;t[u]!==void 0&&(o[u]=t[u])}),o},Object.defineProperty(i.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.question.value},set:function(t){this.question.value=t},enumerable:!1,configurable:!0}),i.prototype.getQuestionWrapperClassName=function(t){return t},i.prototype.runCondition=function(t,e){this.question.runCondition(t,e)},i}(),nc=function(i){go(t,i);function t(e,n,r){var o=i.call(this,e,n,r)||this;return o.column=e,o.row=n,o.data=r,o.updateCellQuestion(),o}return t.prototype.createQuestion=function(e,n,r){var o=j.createClass("expression");return o.setSurveyImpl(n),o},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),i.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getQuestionWrapperClassName=function(e){var n=i.prototype.getQuestionWrapperClassName.call(this,e);if(!n)return n;this.question.expression&&this.question.expression!="''"&&(n+=" "+e+"--expression");var r=this.column.totalAlignment;return r==="auto"&&this.column.cellType==="dropdown"&&(r="left"),n+" "+e+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if(this.column.totalType=="none")return"''";var e=this.column.totalType+"InArray";return he.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(ys),rc=function(i){go(t,i);function t(e,n,r){var o=i.call(this,n)||this;return o.row=e,o.variableName=n,o.parentTextProcessor=r,o}return t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==Kt.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):[Kt.RowValueVariableName,Kt.RowNameVariableName].indexOf(e.name)>-1?(e.isExists=!0,e.value=this.row.rowName,!0):!1},t}(yr),Kt=function(){function i(t,e){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(e),this.textPreProcessor=new rc(this,i.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=i.getId()}return i.getId=function(){return"srow_"+i.idCounter++},Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),i.prototype.isRowEnabled=function(){return!0},i.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(i.prototype,"isVisible",{get:function(){return this.visible&&this.isItemVisible()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue},set:function(t){var e;this.visible!==t&&(this.visibleValue=t,(e=this.data)===null||e===void 0||e.onRowVisibilityChanged(this))},enumerable:!1,configurable:!0}),i.prototype.isItemVisible=function(){return!0},Object.defineProperty(i.prototype,"value",{get:function(){for(var t={},e=this.questions,n=0;n<e.length;n++){var r=e[n];r.isEmpty()||(t[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(t[r.getValueName()+fe.commentSuffix]=r.comment)}return t},set:function(t){this.isSettingValue=!0,this.subscribeToChanges(t);for(var e=this.questions,n=0;n<e.length;n++){var r=e[n],o=this.getCellValue(t,r.getValueName()),s=r.comment,u=t?t[r.getValueName()+fe.commentSuffix]:"";u==null&&(u=""),r.updateValueFromSurvey(o),(u||this.isTwoValueEquals(s,r.comment))&&r.updateCommentFromSurvey(u),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(i.prototype,"hasPanel",{get:function(){return this.data?this.data.hasDetailPanel(this):!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDetailPanelShowing",{get:function(){return this.data?this.data.getIsDetailPanelShowing(this):!1},enumerable:!1,configurable:!0}),i.prototype.setIsDetailPanelShowing=function(t){!t&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,t),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},i.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},i.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},i.prototype.hideDetailPanel=function(t){t===void 0&&(t=!1),this.setIsDetailPanelShowing(!1),t&&(this.detailPanelValue=null)},i.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!(this.detailPanelValue||!this.hasPanel||!this.data)){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var t=this.detailPanelValue.questions,e=this.data.getRowValue(this.data.getRowIndex(this));if(!h.isValueEmpty(e))for(var n=0;n<t.length;n++){var r=t[n].getValueName(),o=this.editingObj?j.getObjPropertyValue(this.editingObj,r):e[r];h.isValueEmpty(o)||(t[n].value=o)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},i.prototype.getAllValues=function(){return this.value},i.prototype.getFilteredValues=function(){var t=this.data?this.data.getDataFilteredValues():{},e=this.validationValues;if(e)for(var n in e)t[n]=e[n];return t.row=this.getAllValues(),this.applyRowVariablesToValues(t,this.rowIndex),t},i.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},i.prototype.applyRowVariablesToValues=function(t,e){t[i.IndexVariableName]=e,t[i.RowValueVariableName]=this.rowName,t[i.RowNameVariableName]=this.rowName},i.prototype.runCondition=function(t,e,n){if(this.data){t[i.OwnerVariableName]=this.data.getFilteredData();var r=this.rowIndex;this.applyRowVariablesToValues(t,r);var o=h.createCopy(e);o[i.RowVariableName]=this;var s=r>0?this.data.getRowValue(this.rowIndex-1):this.value;n?(t[i.RowVariableName]=s,this.setRowsVisibleIfValues(t),this.visible=new Ue(n).run(t,e)):this.visible=!0;for(var u=0;u<this.cells.length;u++)u>0&&ln(this.value,s),t[i.RowVariableName]=s,this.cells[u].runCondition(t,o);this.detailPanel&&this.detailPanel.runCondition(t,o),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}},i.prototype.updateElementVisibility=function(){this.cells.forEach(function(t){return t.question.updateElementVisibility()}),this.detailPanel&&this.detailPanel.updateElementVisibility()},i.prototype.setRowsVisibleIfValues=function(t){},i.prototype.getNamesWithDefaultValues=function(){var t=[];return this.questions.forEach(function(e){e.isValueDefault&&t.push(e.getValueName())}),t},i.prototype.clearValue=function(t){for(var e=this.questions,n=0;n<e.length;n++)e[n].clearValue(t)},i.prototype.onAnyValueChanged=function(t,e){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t,e)},i.prototype.getDataValueCore=function(t,e){var n=this.getSurvey();return n?n.getDataValueCore(t,e):t[e]},i.prototype.getValue=function(t){var e=this.getQuestionByName(t);return e?e.value:null},i.prototype.setValue=function(t,e){this.setValueCore(t,e,!1)},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getQuestionByName(t);return e?e.comment:""},i.prototype.setComment=function(t,e,n){this.setValueCore(t,e,!0)},i.prototype.findQuestionByName=function(t){if(t){var e=i.RowVariableName+".";if(t.indexOf(e)===0)return this.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.setValueCore=function(t,e,n){if(!this.isSettingValue){this.updateQuestionsValue(t,e,n),n||this.updateSharedQuestionsValue(t,e);var r=this.value,o=n?t+fe.commentSuffix:t,s=e,u=this.getQuestionByName(t),d=this.data.onRowChanging(this,o,r);if(u&&!this.isTwoValueEquals(d,s)&&(this.isSettingValue=!0,n?u.comment=d:u.value=d,this.isSettingValue=!1,r=this.value),!(this.data.isValidateOnValueChanging&&this.hasQuestonError(u))){var y=e==null&&!u||n&&!e&&!!u;this.data.onRowChanged(this,o,r,y),o&&this.runTriggers(yo.RowVariableName+"."+o,r),this.onAnyValueChanged(i.RowVariableName,"")}}},i.prototype.updateQuestionsValue=function(t,e,n){if(this.detailPanel){var r=this.getQuestionByColumnName(t),o=this.detailPanel.getQuestionByName(t);if(!(!r||!o)){var s=this.isTwoValueEquals(e,n?r.comment:r.value),u=s?o:r;this.isSettingValue=!0,n?u.comment=e:u.value=e,this.isSettingValue=!1}}},i.prototype.updateSharedQuestionsValue=function(t,e){var n=this.getQuestionsByValueName(t);if(n.length>1)for(var r=0;r<n.length;r++)h.isTwoValueEquals(n[r].value,e)||(this.isSettingValue=!0,n[r].updateValueFromSurvey(e),this.isSettingValue=!1)},i.prototype.runTriggers=function(t,e){t&&this.questions.forEach(function(n){return n.runTriggers(t,e)})},i.prototype.hasQuestonError=function(t){if(!t)return!1;if(t.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(t.isEmpty())return!1;var e=this.getCellByColumnName(t.name);return!e||!e.column||!e.column.isUnique?!1:this.data.checkIfValueInRowDuplicated(this,t)},Object.defineProperty(i.prototype,"isEmpty",{get:function(){var t=this.value;if(h.isValueEmpty(t))return!0;for(var e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},enumerable:!1,configurable:!0}),i.prototype.getQuestionByColumn=function(t){var e=this.getCellByColumn(t);return e?e.question:null},i.prototype.getCellByColumn=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column==t)return this.cells[e];return null},i.prototype.getCellByColumnName=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column.name==t)return this.cells[e];return null},i.prototype.getQuestionByColumnName=function(t){var e=this.getCellByColumnName(t);return e?e.question:null},Object.defineProperty(i.prototype,"questions",{get:function(){for(var t=[],e=0;e<this.cells.length;e++)t.push(this.cells[e].question);for(var n=this.detailPanel?this.detailPanel.questions:[],e=0;e<n.length;e++)t.push(n[e]);return t},enumerable:!1,configurable:!0}),i.prototype.getQuestionByName=function(t){var e=this.getQuestionByColumnName(t);return e||(this.detailPanel?this.detailPanel.getQuestionByName(t):null)},i.prototype.getQuestionsByName=function(t){var e=[],n=this.getQuestionByColumnName(t);return n&&e.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(t),n&&e.push(n)),e},i.prototype.getQuestionsByValueName=function(t){for(var e=[],n=0;n<this.cells.length;n++){var r=this.cells[n];r.question&&r.question.getValueName()===t&&e.push(r.question)}return this.detailPanel&&(e=e.concat(this.detailPanel.getQuestionsByValueName(t))),e},i.prototype.getSharedQuestionByName=function(t){return this.data?this.data.getSharedQuestionByName(t,this):null},i.prototype.clearIncorrectValues=function(t){for(var e in t){var n=this.getQuestionByName(e);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(e,n.value)}else!this.getSharedQuestionByName(e)&&e.indexOf(I.matrix.totalsSuffix)<0&&this.setValue(e,null)}},i.prototype.getLocale=function(){return this.data?this.data.getLocale():""},i.prototype.getMarkdownHtml=function(t,e){return this.data?this.data.getMarkdownHtml(t,e):void 0},i.prototype.getRenderer=function(t){return this.data?this.data.getRenderer(t):null},i.prototype.getRendererContext=function(t){return this.data?this.data.getRendererContext(t):t},i.prototype.getProcessedText=function(t){return this.data?this.data.getProcessedText(t):t},i.prototype.locStrsChanged=function(){for(var t=0;t<this.cells.length;t++)this.cells[t].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},i.prototype.updateCellQuestionOnColumnChanged=function(t,e,n){var r=this.getCellByColumn(t);r&&this.updateCellOnColumnChanged(r,e,n)},i.prototype.updateCellQuestionOnColumnItemValueChanged=function(t,e,n,r,o,s){var u=this.getCellByColumn(t);u&&this.updateCellOnColumnItemValueChanged(u,e,n,r,o,s)},i.prototype.onQuestionReadOnlyChanged=function(){for(var t=this.questions,e=0;e<t.length;e++){var n=t[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},i.prototype.hasErrors=function(t,e,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=e.validationValues;for(var s=0;s<o.length;s++)if(o[s]){var u=o[s].question;!u||!u.visible||(u.onCompletedAsyncValidators=function(y){n()},!(e&&e.isOnValueChanged===!0&&u.isEmpty())&&(r=u.hasErrors(t,e)||r))}if(this.hasPanel){this.ensureDetailPanel();var d=this.detailPanel.hasErrors(t,!1,e);!e.hideErroredPanel&&d&&t&&(e.isSingleDetailPanel&&(e.hideErroredPanel=!0),this.showDetailPanel()),r=d||r}return this.validationValues=void 0,r},i.prototype.updateCellOnColumnChanged=function(t,e,n){e==="choices"&&Array.isArray(n)&&n.length===0&&this.data&&(n=this.data.choices),t.question[e]=n},i.prototype.updateCellOnColumnItemValueChanged=function(t,e,n,r,o,s){var u=t.question[e];if(Array.isArray(u)){var d=r==="value"?s:n.value,y=re.getItemByValue(u,d);y&&(y[r]=o)}},i.prototype.buildCells=function(t){this.isSettingValue=!0;for(var e=this.data.columns,n=0;n<e.length;n++){var r=e[n],o=this.createCell(r);this.cells.push(o);var s=this.getCellValue(t,r.name);if(!h.isValueEmpty(s)){o.question.value=s;var u=r.name+fe.commentSuffix;t&&!h.isValueEmpty(t[u])&&(o.question.comment=t[u])}}this.isSettingValue=!1},i.prototype.isTwoValueEquals=function(t,e){return h.isTwoValueEquals(t,e,!1,!0,!1)},i.prototype.getCellValue=function(t,e){return this.editingObj?j.getObjPropertyValue(this.editingObj,e):t?t[e]:void 0},i.prototype.createCell=function(t){return new ys(t,this,this.data)},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(i.prototype,"rowIndex",{get:function(){return this.getRowIndex()},enumerable:!1,configurable:!0}),i.prototype.getRowIndex=function(){return this.data?this.data.getRowIndex(this)+1:-1},Object.defineProperty(i.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},i.prototype.subscribeToChanges=function(t){var e=this;!t||!t.getType||!t.onPropertyChanged||t!==this.editingObj&&(this.editingObjValue=t,this.onEditingObjPropertyChanged=function(n,r){e.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},i.prototype.updateOnSetValue=function(t,e){this.isSettingValue=!0;for(var n=this.getQuestionsByName(t),r=0;r<n.length;r++)n[r].value=e;this.isSettingValue=!1},i.RowVariableName="row",i.OwnerVariableName="self",i.IndexVariableName="rowIndex",i.RowValueVariableName="rowValue",i.RowNameVariableName="rowName",i.idCounter=1,i}(),yo=function(i){go(t,i);function t(e){var n=i.call(this,e,null)||this;return n.buildCells(null),n}return t.prototype.createCell=function(e){return new nc(e,this,this.data)},t.prototype.setValue=function(e,n){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(e,n,r){var o=0,s;do s=h.getUnbindValue(this.value),i.prototype.runCondition.call(this,e,n,""),o++;while(!h.isTwoValueEquals(s,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,n,r){e.updateCellQuestion()},t}(Kt),mr=function(i){go(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],function(){n.updateColumnsAndRows()}),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],function(){n.clearRowsAndResetRenderedTable()}),n.registerPropertyChangedHandlers(["transposeData","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode","displayMode"],function(){n.resetRenderedTable()}),n}return Object.defineProperty(t,"defaultCellType",{get:function(){return I.matrix.defaultCellType},set:function(e){I.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var n=Se.DefaultColums,r=0;r<n.length;r++)e.addColumn(n[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(n){n.colOwner=e,e.onAddColumn&&e.onAddColumn(n),e.survey&&e.survey.matrixColumnAdded(e,n)},function(n){n.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(n)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),e.ownerPropertyName==="choices"&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"transposeData",{get:function(){return this.getPropertyValue("transposeData")},set:function(e){this.setPropertyValue("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.transposeData?"vertical":"horizontal"},set:function(e){this.transposeData=e==="vertical"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailErrorLocation",{get:function(){return this.getPropertyValue("detailErrorLocation")},set:function(e){this.setPropertyValue("detailErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellErrorLocation",{get:function(){return this.getPropertyValue("cellErrorLocation")},set:function(e){this.setPropertyValue("cellErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){var n=e.parent?this.detailErrorLocation:this.cellErrorLocation;return n!=="default"?n:i.prototype.getChildErrorLocation.call(this,e)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return this.isMobile?!0:!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return this.isUniqueCaseSensitiveValue!==void 0?this.isUniqueCaseSensitiveValue:I.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return j.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,n){},t.prototype.onRowsChanged=function(){this.clearVisibleRows(),this.resetRenderedTable(),i.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,!!this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.clearVisibleRows(),!!this.generatedVisibleRows){for(var e=0;e<this.generatedVisibleRows.length;e++)this.generatedVisibleRows[e].dispose();i.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new gs(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var n={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){n.column=this.columns[r],n.columnName=n.column.name;var o=e.cells[r];n.cell=o,n.cellQuestion=o.question,n.value=o.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(n),this.survey.matrixCellCreated(this,n)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",I.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.isSelectCellType=function(){return j.isDescendantOf(this.cellType,"selectbase")},t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var n=0;n<e.length;n++)e[n].setIndex(n)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,n,r){if(this.updateHasFooter(),!!this.generatedVisibleRows){for(var o=0;o<this.generatedVisibleRows.length;o++)this.generatedVisibleRows[o].updateCellQuestionOnColumnChanged(e,n,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,n,r),this.onColumnsChanged(),n=="isRequired"&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,n,r,o,s,u){if(this.generatedVisibleRows)for(var d=0;d<this.generatedVisibleRows.length;d++)this.generatedVisibleRows[d].updateCellQuestionOnColumnItemValueChanged(e,n,r,o,s,u)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnVisibilityChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnCellTypeChanged=function(e){this.resetTableAndRows()},t.prototype.resetTableAndRows=function(){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,n,r){if(!this.survey)return r;var o={rowValue:n.value,row:n,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,o),o.cellType},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);for(var r="",o=n.length-1;o>=0&&n[o]!=".";o--)r=n[o]+r;var s=void 0,u=this.getColumnByName(r);return u?s=u.createCellQuestion(null):this.detailPanelMode!=="none"&&(s=this.detailPanel.getQuestionByName(r)),s?s.getConditionJson(e):null},t.prototype.clearIncorrectValues=function(){if(Array.isArray(this.visibleRows))for(var e=this.generatedVisibleRows,n=0;n<e.length;n++)e[n].clearIncorrectValues(this.getRowValue(n))},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n],o=0;o<r.cells.length;o++)e(r.cells[o].question)},t.prototype.runCondition=function(e,n){var r=e[Kt.RowVariableName];i.prototype.runCondition.call(this,e,n);var o=0,s;do s=h.getUnbindValue(this.totalValue),this.runCellsCondition(e,n),this.runTotalsCondition(e,n),o++;while(!h.isTwoValueEquals(s,this.totalValue)&&o<3);this.updateVisibilityBasedOnRows(),e[Kt.RowVariableName]=r},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.runFuncForCellQuestions(function(o){o.runTriggers(e,n,r)})},t.prototype.updateElementVisibility=function(){i.prototype.updateElementVisibility.call(this);var e=this.generatedVisibleRows;e&&e.forEach(function(n){return n.updateElementVisibility()})},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,n){var r=this.generatedVisibleRows;if(r)for(var o=this.getRowConditionValues(e),s=0;s<r.length;s++)r[s].runCondition(o,n,this.rowsVisibleIf);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()},t.prototype.runConditionsForColumns=function(e,n){var r=this;return this.columns.forEach(function(o){if(!r.columnsVisibleIf)o.isColumnsVisibleIf=!0;else{var s=new Ue(r.columnsVisibleIf);e.item=o.name,o.isColumnsVisibleIf=s.run(e,n)===!0}}),!1},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,n=0;n<this.columns.length;n++){var r=this.columns[n],o=!!r.visibleIf||r.isFilteredMultipleColumns;!o&&!this.columnsVisibleIf&&r.isColumnVisible||(e=this.isColumnVisibilityChanged(r,o)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){var e=this.generatedVisibleRows;if(e)for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(!(!r.requiredIf||!r.isColumnVisible)){for(var o=e.length>0,s=0;s<e.length;s++)if(!e[s].cells[n].question.isRequired){o=!1;break}r.updateIsRenderedRequired(o)}}},t.prototype.isColumnVisibilityChanged=function(e,n){var r=e.isColumnVisible,o=!n,s=this.generatedVisibleRows,u=n&&s,d=u&&e.isFilteredMultipleColumns,y=d?e.getVisibleChoicesInCell:[],V=new Array;if(u)for(var T=0;T<s.length;T++){var N=s[T].cells[e.index],U=N==null?void 0:N.question;if(U&&U.isVisible)if(o=!0,d)this.updateNewVisibleChoices(U,V);else break}return e.hasVisibleCell=o&&e.isColumnsVisibleIf,d&&(e.setVisibleChoicesInCell(V),!h.isArraysEqual(y,V,!0,!1,!1))?!0:r!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,n){var r=e.visibleChoices;if(Array.isArray(r))for(var o=0;o<r.length;o++){var s=r[o];n.indexOf(s.value)<0&&n.push(s.value)}},t.prototype.runTotalsCondition=function(e,n){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),n)},t.prototype.getRowConditionValues=function(e){var n=e;n||(n={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),n.row={},n.totalRow=r,n},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.columns,n=0;n<e.length;n++)e[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(var n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var n=0;n<this.columns.length;n++)if(this.columns[n].name==e)return this.columns[n];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var n;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:((n=I.matrix.columnWidthsByType[e.cellType])===null||n===void 0?void 0:n.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.survey?this.survey.storeOthersAsComment:!1},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,n){var r=new ri(e,n,this);return this.columns.push(r),r},t.prototype.clearVisibleRows=function(){this.visibleRowsArray=null},t.prototype.isColumnVisible=function(e){return e.isColumnVisible},t.prototype.getVisibleRows=function(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:this.visibleRowsArray?this.visibleRowsArray:(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows),this.visibleRowsArray)},t.prototype.generateVisibleRowsIfNeeded=function(){var e=this;!this.isUpdateLocked&&!this.generatedVisibleRows&&!this.generatedVisibleRows&&(this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1,this.generatedVisibleRows.forEach(function(n){return e.onMatrixRowCreated(n)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()))},t.prototype.getVisibleFromGenerated=function(e){var n=[];return e?(e.forEach(function(r){r.isVisible&&n.push(r)}),n.length===e.length?e:n):n},t.prototype.updateValueOnRowsGeneration=function(e){for(var n=this.createNewValue(!0),r=this.createNewValue(),o=0;o<e.length;o++){var s=e[o];if(!s.editingObj){var u=this.getRowValue(o),d=s.value;this.isTwoValueEquals(u,d)||(r=this.getNewValueOnRowChanged(s,"",d,!1,r).value)}}this.isTwoValueEquals(n,r)||(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return!this.hasTotal||!this.visibleTotalRow?{}:this.visibleTotalRow.value},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0||!Array.isArray(this.visibleRows))return null;var n=this.generatedVisibleRows;if(e>=n.length)return null;var r=this.createNewValue();return this.getRowValueCore(n[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,n){return this.generatedVisibleRows?this.isValueInColumnDuplicated(n.name,!0,e):!1},t.prototype.setRowValue=function(e,n){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=n,this.onRowChanged(r[e],"",n,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new yo(this)},t.prototype.createNewValue=function(e){e===void 0&&(e=!1);var n=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(n)?null:n},t.prototype.getRowValueCore=function(e,n,r){r===void 0&&(r=!1);var o=n&&n[e.rowName]?n[e.rowName]:null;return!o&&r&&(o={},n&&(n[e.rowName]=o)),o},t.prototype.getRowObj=function(e){var n=this.getRowValueCore(e,this.value);return n&&n.getType?n:null},t.prototype.getRowDisplayValue=function(e,n,r){if(!r||n.editingObj)return r;for(var o=Object.keys(r),s=0;s<o.length;s++){var u=o[s],d=n.getQuestionByName(u);if(d||(d=this.getSharedQuestionByName(u,n)),d){var y=d.getDisplayValue(e,r[u]);e&&d.title&&d.title!==u?(r[d.title]=y,delete r[u]):r[u]=y}}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map(function(s){var u={name:s.dataName,title:s.text,value:s.value,displayValue:n.getRowDisplayValue(!1,s,s.value),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!0,data:s.cells.map(function(d){return d.question.getPlainData(e)}).filter(function(d){return!!d})};return(e.calculations||[]).forEach(function(d){u[d.propertyName]=s[d.propertyName]}),u}),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,n){var r=[].concat(this.columns);this.detailPanelMode!=="none"&&(r=r.concat(this.detailPanel.questions));var o=!!n&&r.indexOf(n)>-1,s=n===!0||o,u=this.getConditionObjectsRowIndeces();s&&u.push(-1);for(var d=0;d<u.length;d++){var y=u[d],V=y>-1?this.getConditionObjectRowName(y):"row";if(V)for(var T=y>-1?this.getConditionObjectRowText(y):"row",N=y>-1||n===!0,U=N&&y===-1?".":"",W=(N?this.getValueName():"")+U+V+".",X=(N?this.processedTitle:"")+U+T+".",Y=0;Y<r.length;Y++){var J=r[Y];if(!(y===-1&&n===J)){var ue={name:W+J.name,text:X+J.fullTitle,question:this};y===-1&&n===!0?ue.context=this:o&&W.startsWith("row.")&&(ue.context=n),e.push(ue)}}}},t.prototype.onHidingContent=function(){if(i.prototype.onHidingContent.call(this),!!this.generatedVisibleRows){var e=[];this.collectNestedQuestions(e,!0),e.forEach(function(n){return n.onHidingContent()})}},t.prototype.getIsReadyNestedQuestions=function(){if(!this.generatedVisibleRows)return[];var e=new Array;return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1),e},t.prototype.collectNestedQuestionsCore=function(e,n){this.collectNestedQuestonsInRows(this.visibleRows,e,n)},t.prototype.collectNestedQuestonsInRows=function(e,n,r){Array.isArray(e)&&e.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(n,r)})})},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return _e.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=fe.createProgressInfo();return this.updateProgressInfoByValues(e),e.requiredQuestionCount===0&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,n){for(var r=0;r<this.columns.length;r++){var o=this.columns[r];if(o.templateQuestion.hasInput){var s=!h.isValueEmpty(n[o.name]);!s&&o.templateQuestion.visibleIf||(e.questionCount+=1,e.requiredQuestionCount+=o.isRequired,e.answeredQuestionCount+=s?1:0,e.requiredAnsweredQuestionCount+=s&&o.isRequired?1:0)}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(n){e.push(n)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0))){this.isRowChanging=!0;for(var e=this.createNewValue(),n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];this.generatedVisibleRows[n].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(e){i.prototype.setQuestionValue.call(this,e,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var n=0;n<e.length;n++){var r=this.generatedVisibleRows[n].cells;if(r)for(var o=0;o<r.length;o++){var s=r[o].question;if(s&&(!s.supportGoNextPageAutomatic()||!s.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return i.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,n){n===void 0&&(n=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var o=0;o<r.length;o++){var s=r[o].cells;if(s){for(var u=0;u<s.length;u++)if(s[u]){var d=s[u].question;if(d&&d.isVisible){if(e(d)){if(!n)return!0}else if(n)return!1}}}}return!!n},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.hasErrorInRows(e,n),o=this.isValueDuplicated();return i.prototype.hasErrors.call(this,e,n)||r||o},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var e=0;e<this.generatedVisibleRows.length;e++){var n=this.generatedVisibleRows[e].cells;if(n){for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}}return!1},t.prototype.getAllErrors=function(){var e=i.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(n===null)return e;for(var r=0;r<n.length;r++)for(var o=n[r],s=0;s<o.cells.length;s++){var u=o.cells[s].question.getAllErrors();u&&u.length>0&&(e=e.concat(u))}return e},t.prototype.hasErrorInRows=function(e,n){var r=this,o=this.generatedVisibleRows;this.generatedVisibleRows||(o=this.visibleRows);var s=!1;if(n||(n={}),!o)return n;n.validationValues=this.getDataFilteredValues(),n.isSingleDetailPanel=this.detailPanelMode==="underRowSingle";for(var u=0;u<o.length;u++)o[u].isVisible&&(s=o[u].hasErrors(e,n,function(){r.raiseOnCompletedAsyncValidators()})||s);return s},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),n=!1,r=0;r<e.length;r++)n=this.isValueInColumnDuplicated(e[r],!0)||n;return n},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,n=0;n<this.columns.length;n++)this.columns[n].isUnique&&e.push(this.columns[n].name);return e},t.prototype.isValueInColumnDuplicated=function(e,n,r){var o=this.getDuplicatedRows(e);return n&&this.showDuplicatedErrorsInRows(o,e),this.removeDuplicatedErrorsInRows(o,e),r?o.indexOf(r)>-1:o.length>0},t.prototype.getDuplicatedRows=function(e){for(var n={},r=[],o=this.generatedVisibleRows,s=0;s<o.length;s++){var u=void 0,d=o[s].getQuestionByName(e);if(d)u=d.value;else{var y=this.getRowValue(s);u=y?y[e]:void 0}this.isValueEmpty(u)||(!this.isUniqueCaseSensitive&&typeof u=="string"&&(u=u.toLocaleLowerCase()),n[u]||(n[u]=[]),n[u].push(o[s]))}for(var V in n)n[V].length>1&&n[V].forEach(function(T){return r.push(T)});return r},t.prototype.showDuplicatedErrorsInRows=function(e,n){var r=this;e.forEach(function(o){var s=o.getQuestionByName(n),u=r.detailPanel.getQuestionByName(n);!s&&u&&(o.showDetailPanel(),o.detailPanel&&(s=o.detailPanel.getQuestionByName(n))),s&&(u&&o.showDetailPanel(),r.addDuplicationError(s))})},t.prototype.removeDuplicatedErrorsInRows=function(e,n){var r=this;this.generatedVisibleRows.forEach(function(o){if(e.indexOf(o)<0){var s=o.getQuestionByName(n);s&&r.removeDuplicationError(o,s)}})},t.prototype.getDuplicationError=function(e){for(var n=e.errors,r=0;r<n.length;r++)if(n[r].getErrorType()==="keyduplicationerror")return n[r];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new oo(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e,n){n.removeError(this.getDuplicationError(n))&&n.errors.length===0&&e.editingObj&&(e.editingObj[n.getValueName()]=n.value)},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var e=this.getFirstCellQuestion(!1);return e?e.inputId:i.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var e=this.getFirstCellQuestion(!0);return e?e.inputId:i.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n].cells,o=0;o<r.length;o++)if(!e||r[o].question.currentErrorCount>0)return r[o].question;return null},t.prototype.onReadOnlyChanged=function(){if(i.prototype.onReadOnlyChanged.call(this),!!this.generateRows)for(var e=0;e<this.visibleRows.length;e++)this.visibleRows[e].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,n){return this.createQuestionCore(e,n)},t.prototype.createQuestionCore=function(e,n){var r=n.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,n){return e&&(delete e[n.rowName],this.isObject(e)&&Object.keys(e).length==0?null:e)},t.prototype.onAnyValueChanged=function(e,n){if(!(this.isUpdateLocked||this.isDoingonAnyValueChanged||!this.generatedVisibleRows)){this.isDoingonAnyValueChanged=!0;for(var r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n);var s=this.visibleTotalRow;s&&s.onAnyValueChanged(e,n),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return e!==null&&typeof e=="object"},t.prototype.getOnCellValueChangedOptions=function(e,n,r){var o=function(s){return e.getQuestionByName(s)};return{row:e,columnName:n,rowValue:r,value:r?r[n]:null,getCellQuestion:o,cellQuestion:e.getQuestionByName(n),column:this.getColumnByName(n)}},t.prototype.onCellValueChanged=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(o),this.survey.matrixCellValueChanged(this,o)}},t.prototype.validateCell=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);return this.survey.matrixCellValidate(this,o)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.survey?this.survey.isValidateOnValueChanging:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInvisibleRows",{get:function(){var e=this.generatedVisibleRows;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(!e[n].isVisible)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredData=function(){return this.isEmpty()||!this.generatedVisibleRows||!this.hasInvisibleRows?this.value:this.getFilteredDataCore()},t.prototype.getFilteredDataCore=function(){return this.value},t.prototype.onRowChanging=function(e,n,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[n]:null;var o=this.getOnCellValueChangedOptions(e,n,r),s=this.getRowValueCore(e,this.createNewValue(),!0);return o.oldValue=s?s[n]:null,this.cellValueChangingCallback&&(o.value=this.cellValueChangingCallback(e,n,o.value,o.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,o),o.value},t.prototype.onRowChanged=function(e,n,r,o){var s=n?this.getRowObj(e):null;if(s){var u=null;r&&!o&&(u=r[n]),this.isRowChanging=!0,j.setObjPropertyValue(s,n,u),this.isRowChanging=!1,this.onCellValueChanged(e,n,s)}else{var d=this.createNewValue(!0),y=this.getNewValueOnRowChanged(e,n,r,o,this.createNewValue());if(this.isTwoValueEquals(d,y.value))return;this.isRowChanging=!0,this.setNewValue(y.value),this.isRowChanging=!1,n&&this.onCellValueChanged(e,n,y.rowValue)}this.getUniqueColumnsNames().indexOf(n)>-1&&this.isValueInColumnDuplicated(n,!!s)},t.prototype.getNewValueOnRowChanged=function(e,n,r,o,s){var u=this.getRowValueCore(e,s,!0);if(o&&delete u[n],e.questions.forEach(function(y){delete u[y.getValueName()]}),r){r=JSON.parse(JSON.stringify(r));for(var d in r)this.isValueEmpty(r[d])||(u[d]=r[d])}return this.isObject(u)&&Object.keys(u).length===0&&(s=this.deleteRowValue(s,e)),{value:s,rowValue:u}},t.prototype.getRowIndex=function(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return this.detailPanelMode=="none"?n=i.prototype.getElementsInDesign.call(this,e):n=e?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return this.detailPanelMode=="none"?!1:this.isDesignMode?!0:this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0},t.prototype.getIsDetailPanelShowing=function(e){if(this.detailPanelMode=="none")return!1;if(this.isDesignMode){var n=this.visibleRows.indexOf(e)==0;return n&&(e.detailPanel||e.showDetailPanel()),n}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,n){if(n!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,n),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,n),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,n),n&&this.detailPanelMode==="underRowSingle"))for(var r=this.visibleRows,o=0;o<r.length;o++)r[o].id!==e.id&&r[o].isDetailPanelShowing&&r[o].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var n=new _().append(this.getPropertyValue("detailButtonCss"+e.id));return n.append(this.cssClasses.detailButton,n.toString()==="").toString()},t.prototype.getDetailPanelIconCss=function(e){var n=new _().append(this.getPropertyValue("detailIconCss"+e.id));return n.append(this.cssClasses.detailIcon,n.toString()==="").toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var n=this.cssClasses,r=this.getIsDetailPanelShowing(e),o=new _().append(n.detailIcon).append(n.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,o.toString());var s=new _().append(n.detailButton).append(n.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,s.toString())},t.prototype.createRowDetailPanel=function(e){var n=this;if(this.isDesignMode)return this.detailPanel;var r=this.createNewDetailPanel();r.readOnly=this.isReadOnly||!e.isRowEnabled(),r.setSurveyImpl(e);var o=this.detailPanel.toJSON();return new je().toObject(o,r),r.renderWidth="100%",r.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,r),r.questions.forEach(function(s){return s.setParentQuestion(n)}),r.onSurveyLoad(),r},t.prototype.getSharedQuestionByName=function(e,n){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(n);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+I.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.isMatrixReadOnly=function(){return this.isReadOnly},t.prototype.onRowVisibilityChanged=function(e){this.clearVisibleRows(),this.resetRenderedTable()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRows()},t.prototype.clearInvisibleValuesInRows=function(){var e;if(!(this.isEmpty()||!this.isRowsFiltered())){var n=((e=this.survey)===null||e===void 0?void 0:e.questionsByValueName(this.getValueName()))||[];n.length<2&&(this.value=this.getFilteredData())}},t.prototype.isRowsFiltered=function(){return i.prototype.isRowsFiltered.call(this)||this.visibleRows!==this.generatedVisibleRows},t.prototype.getQuestionFromArray=function(e,n){return n>=this.visibleRows.length?null:this.visibleRows[n].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0)return!1;return!0}return Object.keys(e).length==0}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof yo?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof yo?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.resetRenderedTable()},t.prototype.getRootCss=function(){return new _().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.afterRenderQuestionElement=function(e){i.prototype.afterRenderQuestionElement.call(this,e),this.setRootElement(e==null?void 0:e.parentElement)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.setRootElement(void 0)},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t}(yt);j.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn",isArray:!0},{name:"columnLayout",alternativeName:"columnsLocation",choices:["horizontal","vertical"],visible:!1,isSerializable:!1},{name:"transposeData:boolean",version:"1.9.130",oldName:"columnLayout"},{name:"detailElements",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},{name:"cellErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"detailErrorLocation",default:"default",choices:["default","top","bottom"],visibleIf:function(i){return!!i&&i.detailPanelMode!="none"}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value",visibleIf:function(i){return i.isSelectCellType()}},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return ri.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new mr("")},"matrixbase");var Ia=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Da=function(i){Ia(t,i);function t(e,n,r,o){var s=i.call(this,r,o)||this;return s.name=e,s.item=n,s.buildCells(o),s}return Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t.prototype.isItemVisible=function(){return this.item.isVisible},t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t.prototype.setRowsVisibleIfValues=function(e){e.item=this.item.value,e.choice=this.item.value},t}(Kt),ms=function(i){Ia(t,i);function t(e){var n=i.call(this,e)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],function(){n.generatedVisibleRows&&(n.clearGeneratedRows(),n.resetRenderedTable(),n.getVisibleRows(),n.clearIncorrectValues())}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;var r=this.visibleRows,o={};if(!r)return o;for(var s=0;s<r.length;s++){var u=r[s].rowName,d=n[u];if(d){if(e){var y=re.getTextOrHtmlByValue(this.rows,u);y&&(u=y)}o[u]=this.getRowDisplayValue(e,r[s],d)}}return o},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=0;n<this.rows.length;n++)e.push(n);return e},t.prototype.isNewValueCorrect=function(e){return h.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){if(!this.isEmpty()){this.getVisibleRows();var e={},n=this.value;for(var r in n){var o=this.getRowByKey(r);o&&o.isVisible&&(e[r]=n[r])}this.value=e}i.prototype.clearIncorrectValues.call(this)},t.prototype.getRowByKey=function(e){var n=this.generatedVisibleRows;if(!n)return null;for(var r=0;r<n.length;r++)if(n[r].rowName===e)return n[r];return null},t.prototype.clearGeneratedRows=function(){var e=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach(function(n){e.defaultValuesInRows[n.rowName]=n.getNamesWithDefaultValues()}),i.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,n){var r=e[n];if(!r)return r;var o=this.defaultValuesInRows[n];return!Array.isArray(o)||o.length===0||o.forEach(function(s){delete r[s]}),r},t.prototype.generateRows=function(){var e=new Array,n=this.rows;if(!n||n.length===0)return e;var r=this.value;r||(r={});for(var o=0;o<n.length;o++){var s=n[o];this.isValueEmpty(s.value)||e.push(this.createMatrixRow(s,this.getRowValueForCreation(r,s.value)))}return e},t.prototype.createMatrixRow=function(e,n){return new Da(e.value,e,this,n)},t.prototype.getFilteredDataCore=function(){var e={},n=this.createValueCopy();return this.generatedVisibleRows.forEach(function(r){var o=n[r.rowName];r.isVisible&&!h.isValueEmpty(o)&&(e[r.rowName]=o)}),e},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;n||(n={});for(var r=0;r<this.rows.length;r++){var o=this.rows[r],s=n[o.value];this.updateProgressInfoByRow(e,s||{})}},t}(mr);j.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new ms("")},"matrixdropdownbase"),Se.Instance.registerQuestion("matrixdropdown",function(i){var t=new ms(i);return t.choices=[1,2,3,4,5],t.rows=Se.DefaultRows,mr.addDefaultColumns(t),t});var vs=!1,Aa=null;typeof navigator<"u"&&navigator&&B.isAvailable()&&(Aa=navigator.userAgent||navigator.vendor||B.hasOwn("opera")),function(i){i&&(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>0||navigator.platform==="iPad"||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substring(0,4)))&&(vs=!0)}(Aa);var ic=!1,mo=vs||ic,La={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return B.isAvailable()&&(B.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},oc=B.matchMedia;La.hasMouse=ac(oc);var Le=La.isTouch;function sc(i){Le=i}function ac(i){if(!i||mo)return!1;var t=i("(pointer:fine)"),e=i("(any-hover:hover)");return!!t&&t.matches||!!e&&e.matches}var lc=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};typeof window<"u"&&window.addEventListener("touchmove",function(i){Ma.PreventScrolling&&i.preventDefault()},{passive:!1});var Ma=function(){function i(t,e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=!1),this.dd=t,this.longTap=e,this.fitToContainer=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(o){o.preventDefault(),r.currentX=o.pageX,r.currentY=o.pageY,!r.isMicroMovement&&(r.returnUserSelectBack(),r.stopLongTap())},this.stopLongTap=function(o){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(o){r.clear()},this.handleEscapeButton=function(o){o.keyCode==27&&r.clear()},this.onContextMenu=function(o){o.preventDefault(),o.stopPropagation()},this.dragOver=function(o){r.moveShortcutElement(o),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(o)},this.clear=function(){cancelAnimationFrame(r.scrollIntervalId),document.removeEventListener("pointermove",r.dragOver),document.removeEventListener("pointercancel",r.handlePointerCancel),document.removeEventListener("keydown",r.handleEscapeButton),document.removeEventListener("pointerup",r.drop),r.draggedElementShortcut.removeEventListener("pointerup",r.drop),Le&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),r.draggedElementShortcut.parentElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,Le&&(r.savedTargetNode.style.cssText=null,r.savedTargetNode&&r.savedTargetNode.parentElement.removeChild(r.savedTargetNode),r.insertNodeToParentAtIndex(r.savedTargetNodeParent,r.savedTargetNode,r.savedTargetNodeIndex),i.PreventScrolling=!1),r.savedTargetNode=null,r.savedTargetNodeParent=null,r.savedTargetNodeIndex=null,r.returnUserSelectBack()},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(i.prototype,"documentOrShadowRoot",{get:function(){return I.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rootElement",{get:function(){return An(I.environment.root)?this.rootContainer||I.environment.root.host:this.rootContainer||I.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=5,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.startLongTapProcessing=function(t,e,n,r,o){var s=this;o===void 0&&(o=!1),this.startX=t.pageX,this.startY=t.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout(function(){s.doStartDrag(t,e,n,r),o||(s.savedTargetNode=t.target,s.savedTargetNode.style.cssText=`
-          position: absolute;
-          height: 1px!important;
-          width: 1px!important;
-          overflow: hidden;
-          clip: rect(1px 1px 1px 1px);
-          clip: rect(1px, 1px, 1px, 1px);
-        `,s.savedTargetNodeParent=s.savedTargetNode.parentElement,s.savedTargetNodeIndex=s.getNodeIndexInParent(s.savedTargetNode),s.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},i.prototype.moveShortcutElement=function(t){var e=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(t.clientY,t.clientX);var s=this.draggedElementShortcut.offsetHeight,u=this.draggedElementShortcut.offsetWidth,d=this.draggedElementShortcut.shortcutXOffset||u/2,y=this.draggedElementShortcut.shortcutYOffset||s/2;document.querySelectorAll("[dir='rtl']").length!==0&&(d=u/2,y=s/2);var V=document.documentElement.clientHeight,T=document.documentElement.clientWidth,N=t.pageX,U=t.pageY,W=t.clientX,X=t.clientY;e-=r,n-=o;var Y=this.getShortcutBottomCoordinate(X,s,y),J=this.getShortcutRightCoordinate(W,u,d);if(J>=T){this.draggedElementShortcut.style.left=T-u-e+"px",this.draggedElementShortcut.style.top=X-y-n+"px";return}if(W-d<=0){this.draggedElementShortcut.style.left=N-W-e+"px",this.draggedElementShortcut.style.top=X-n-y+"px";return}if(Y>=V){this.draggedElementShortcut.style.left=W-d-e+"px",this.draggedElementShortcut.style.top=V-s-n+"px";return}if(X-y<=0){this.draggedElementShortcut.style.left=W-d-e+"px",this.draggedElementShortcut.style.top=U-X-n+"px";return}this.draggedElementShortcut.style.left=W-e-d+"px",this.draggedElementShortcut.style.top=X-n-y+"px"},i.prototype.getShortcutBottomCoordinate=function(t,e,n){return t+e-n},i.prototype.getShortcutRightCoordinate=function(t,e,n){return t+e-n},i.prototype.requestAnimationFrame=function(t){return requestAnimationFrame(t)},i.prototype.scrollByDrag=function(t,e,n){var r=this,o=100,s,u,d,y;t.tagName==="HTML"?(s=0,u=document.documentElement.clientHeight,d=0,y=document.documentElement.clientWidth):(s=t.getBoundingClientRect().top,u=t.getBoundingClientRect().bottom,d=t.getBoundingClientRect().left,y=t.getBoundingClientRect().right);var V=function(){var T=e-s<=o,N=u-e<=o,U=n-d<=o,W=y-n<=o;T&&!U&&!W?t.scrollTop-=15:N&&!U&&!W?t.scrollTop+=15:W&&!T&&!N?t.scrollLeft+=15:U&&!T&&!N&&(t.scrollLeft-=15),r.scrollIntervalId=r.requestAnimationFrame(V)};this.scrollIntervalId=this.requestAnimationFrame(V)},i.prototype.doScroll=function(t,e){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var r=this.documentOrShadowRoot.elementFromPoint(e,t);this.draggedElementShortcut.style.display=n||"block";var o=ar(r);this.scrollByDrag(o,t,e)},i.prototype.doStartDrag=function(t,e,n,r){Le&&(i.PreventScrolling=!0),t.which!==3&&(this.dd.dragInit(t,e,n,r),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),Le?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},i.prototype.returnUserSelectBack=function(){document.body.style.setProperty("touch-action","auto"),document.body.style.setProperty("user-select","auto"),document.body.style.setProperty("-webkit-user-select","auto")},i.prototype.startDrag=function(t,e,n,r,o){if(o===void 0&&(o=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),Le){this.startLongTapProcessing(t,e,n,r,o);return}this.doStartDrag(t,e,n,r)},i.prototype.getNodeIndexInParent=function(t){return lc([],t.parentElement.childNodes).indexOf(t)},i.prototype.insertNodeToParentAtIndex=function(t,e,n){t.insertBefore(e,t.childNodes[n])},i.PreventScrolling=!1,i}(),bs=function(){function i(t,e,n,r){var o=this,s;this.surveyValue=t,this.creator=e,this._isBottom=null,this.onGhostPositionChanged=new pt,this.onDragStart=new pt,this.onDragEnd=new pt,this.onDragClear=new pt,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){o.allowDropHere=!1,o.doBanDropHere(),o.dropTarget=null,o.domAdapter.draggedElementShortcut.style.cursor="not-allowed",o.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=r||new Ma(this,n,(s=this.survey)===null||s===void 0?void 0:s.fitToContainer)}return Object.defineProperty(i.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(t){this._isBottom=t,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),i.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(i.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"survey",{get:function(){var t;return this.surveyValue||((t=this.creator)===null||t===void 0?void 0:t.survey)},enumerable:!1,configurable:!0}),i.prototype.startDrag=function(t,e,n,r,o){o===void 0&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(t,e,n,r,o)},i.prototype.getRootElement=function(t,e){return e?e.rootElement:t.rootElement},i.prototype.dragInit=function(t,e,n,r){this.draggedElement=e,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,t),this.onStartDrag(t);var s=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:s,draggedElement:this.draggedElement})},i.prototype.onStartDrag=function(t){},i.prototype.isDropTargetDoesntChanged=function(t){return this.dropTarget===this.prevDropTarget&&t===this.isBottom},i.prototype.getShortcutText=function(t){return t==null?void 0:t.shortcutText},i.prototype.createDraggedElementShortcut=function(t,e,n){var r=R.createElement("div");return r&&(r.innerText=t,r.className=this.getDraggedElementClass()),r},i.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},i.prototype.doDragOver=function(){},i.prototype.afterDragOver=function(t){},i.prototype.findDropTargetNodeFromPoint=function(t,e){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!R.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementsFromPoint(t,e);this.domAdapter.draggedElementShortcut.style.display=n||"block";for(var o=0,s=r[o];s&&s.className&&typeof s.className.indexOf=="function"&&s.className.indexOf("sv-drag-target-skipped")!=-1;)o++,s=r[o];return s?this.findDropTargetNodeByDragOverNode(s):null},i.prototype.getDataAttributeValueByNode=function(t){var e=this,n="svDropTarget",r=this.draggedElementType.split("-");return r.forEach(function(o){n+=e.capitalizeFirstLetter(o)}),t.dataset[n]},i.prototype.getDropTargetByNode=function(t,e){var n=this.getDataAttributeValueByNode(t);return this.getDropTargetByDataAttributeValue(n,t,e)},i.prototype.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},i.prototype.calculateVerticalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.y+e.height/2},i.prototype.calculateHorizontalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.x+e.width/2},i.prototype.calculateIsBottom=function(t,e){return!1},i.prototype.findDropTargetNodeByDragOverNode=function(t){var e=t.closest(this.dropTargetDataAttributeName);return e},i.prototype.dragOver=function(t){var e=this.findDropTargetNodeFromPoint(t.clientX,t.clientY);if(!e){this.banDropHere();return}this.dropTarget=this.getDropTargetByNode(e,t);var n=this.isDropTargetValid(this.dropTarget,e);if(this.doDragOver(),!n){this.banDropHere();return}var r=this.calculateIsBottom(t.clientY,e);this.allowDropHere=!0,!this.isDropTargetDoesntChanged(r)&&(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(e),this.prevDropTarget=this.dropTarget)},i.prototype.drop=function(){if(this.allowDropHere){var t=this.draggedElement.parent,e=this.doDrop();this.onDragEnd.fire(this,{fromElement:t,draggedElement:e,toElement:this.dropTarget})}},i.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,{})},i}(),uc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cc=function(i){uc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.fromIndex=null,e.toIndex=null,e.doDrop=function(){return e.parentElement.moveRowByIndex(e.fromIndex,e.toIndex),e.parentElement},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=R.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new _().append(this.parentElement.cssClasses.draggedRow).toString()},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=this,s=R.createElement("div");if(s){s.className=this.shortcutClass;var u=!0;if(n){var d=n.closest("[data-sv-drop-target-matrix-row]"),y=d.cloneNode(u);y.style.cssText=`
-        width: `+d.offsetWidth+`px;
-      `,y.classList.remove("sv-matrix__drag-drop--moveup"),y.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,s.appendChild(y);var V=n.getBoundingClientRect();s.shortcutXOffset=r.clientX-V.x,s.shortcutYOffset=r.clientY-V.y}var T=this.parentElement.renderedTable.rows;return T.forEach(function(N,U){N.row===o.draggedElement&&(N.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n=this.parentElement,r;return r=n.renderedTable.rows.filter(function(o){return o.row&&o.row.id===e})[0],r.row},t.prototype.canInsertIntoThisRow=function(e){var n=this.parentElement.lockedRowCount;return n<=0||e.rowIndex>n},t.prototype.isDropTargetValid=function(e,n){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var n=this.parentElement.renderedTable.rows,r=n.map(function(o){return o.row});return r.indexOf(this.dropTarget)-r.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,s,u=this.parentElement.renderedTable.rows;u.forEach(function(d,y){d.row===n.dropTarget&&(r=y),d.row===n.draggedElement&&(s=d,o=y,s.isGhostRow=!0)}),u.splice(o,1),u.splice(r,0,s),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),i.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){var e=this.parentElement.renderedTable.rows;e.forEach(function(r){r.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var n=R.getBody();n&&(n.style.userSelect=this.restoreUserSelectValue||"initial"),i.prototype.clear.call(this)},t}(bs),Cs=function(){function i(t){var e=this;this.dragHandler=t,this.onPointerUp=function(n){e.clearListeners()},this.tryToStartDrag=function(n){if(e.currentX=n.pageX,e.currentY=n.pageY,!e.isMicroMovement)return e.clearListeners(),e.dragHandler(e.pointerDownEvent,e.currentTarget,e.itemModel),!0}}return i.prototype.onPointerDown=function(t,e){if(Le){this.dragHandler(t,t.currentTarget,e);return}this.pointerDownEvent=t,this.currentTarget=t.currentTarget,this.startX=t.pageX,this.startY=t.pageY,R.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=e},Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=10,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.clearListeners=function(){this.pointerDownEvent&&(R.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},i}(),ws=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ja=function(i){ws(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.index=e,o.buildCells(r),o}return t.prototype.getRowIndex=function(){var e=i.prototype.getRowIndex.call(this);return e>0?e:this.index+1},Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataName",{get:function(){return"row"+(this.index+1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return"row "+(this.index+1)},enumerable:!1,configurable:!0}),t.prototype.getAccessbilityText=function(){return(this.index+1).toString()},Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data,n=e.visibleRows.indexOf(this)+1,r=this.cells.length>1?this.cells[1].questionValue:void 0,o=this.cells.length>0?this.cells[0].questionValue:void 0;return r&&r.value||o&&o.value||""+n},enumerable:!1,configurable:!0}),t}(Kt),Ps=function(i){ws(t,i);function t(e){var n=i.call(this,e)||this;n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(o,s){n.dragDropMatrixRows.startDrag(o,n.draggedRow,n,o.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete");var r=n.createLocalizableString("addRowText",n);return r.onGetTextCallback=function(o){return o||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],function(){n.updateShowTableAndAddRow()}),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop","isReadOnly","lockedRowCount"],function(){n.resetRenderedTable()}),n.registerPropertyChangedHandlers(["minRowCount"],function(){n.onMinRowCountChanged()}),n.registerPropertyChangedHandlers(["maxRowCount"],function(){n.onMaxRowCountChanged()}),n.dragOrClickHelper=new Cs(n.startDragMatrixRow),n}return t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.dragDropMatrixRows=new cc(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var n=e.target;return n.getAttribute("contenteditable")==="true"||n.nodeName==="INPUT"||!this.isDragHandleAreaValid(n)},t.prototype.isDragHandleAreaValid=function(e){return this.survey.matrixDragHandleArea==="icon"?e.classList.contains(this.cssClasses.dragElementDecorator):!0},t.prototype.onPointerDown=function(e,n){!n||!this.isRowsDragAndDrop||this.isDesignMode||this.isBanStartDrag(e)||n.isDetailPanelShowing||(this.draggedRow=n,this.dragOrClickHelper.onPointerDown(e))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(e){if(this.minRowCount<1||this.isEmpty())return i.prototype.valueFromData.call(this,e);Array.isArray(e)||(e=[]);for(var n=e.length;n<this.minRowCount;n++)e.push({});return e},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.rowCount==0)){for(var e=[],n=0;n<this.rowCount;n++)e.push(this.defaultRowValue);this.value=e}},t.prototype.moveRowByIndex=function(e,n){var r=this.createNewValue();if(!(!Array.isArray(r)&&Math.max(e,n)>=r.length)){var o=r[e];r.splice(e,1),r.splice(n,0,o),this.value=r}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.getVisibleRows()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(e=h.getNumber(e),!(e<0||e>I.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var n=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||n==0){this.generatedVisibleRows||(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var o=n;o<e;o++){var s=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(s),this.onMatrixRowCreated(s)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}},enumerable:!1,configurable:!0}),t.prototype.updateBindingProp=function(e,n){i.prototype.updateBindingProp.call(this,e,n);var r=this.generatedVisibleRows;if(!(e!=="rowCount"||!Array.isArray(r))){var o=this.getUnbindValue(this.value)||[];if(o.length<r.length){for(var s=!1,u=o.length;u<r.length;u++)s||(s=!r[u].isEmpty),o.push(r[u].value||{});s&&(this.value=o)}}},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;Array.isArray(n)||(n=[]);for(var r=0;r<this.rowCount;r++){var o=r<n.length?n[r]:{};this.updateProgressInfoByRow(e,o)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.allowRowsDragAndDrop&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lockedRowCount",{get:function(){return this.getPropertyValue("lockedRowCount",0)},set:function(e){this.setPropertyValue("lockedRowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new pc(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinRowCountChanged=function(){var e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>I.matrix.maxRowCount&&(e=I.matrix.maxRowCount),e!=this.maxRowCount&&this.setPropertyValue("maxRowCount",e))},enumerable:!1,configurable:!0}),t.prototype.onMaxRowCountChanged=function(){var e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){if(!this.survey)return!0;var n=e.rowIndex-1;return this.lockedRowCount>0&&n<this.lockedRowCount?!1:this.survey.matrixAllowRemoveRow(this,n,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){if(this.visibleRows.length===0)return null;for(var e=this.visibleRows[this.visibleRows.length-1],n=0;n<e.cells.length;n++){var r=e.cells[n].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var n=this.rowCount,r=this.canAddRow,o={question:this,canAddRow:r,allow:r};this.survey&&this.survey.matrixBeforeRowAdded(o);var s=r!==o.allow?o.allow:r!==o.canAddRow?o.canAddRow:r;if(s&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&n!==this.rowCount)){var u=this.getQuestionToFocusOnAddingRow();u&&u.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,i.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(e){return this.isEditingSurveyElement||i.prototype.isValueSurveyElement.call(this,e)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var n=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(n)||(r=this.createNewValue(),r.length==this.rowCount&&(r[r.length-1]=n,this.value=r)),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var o=this.visibleRows;if(this.isValueEmpty(n)&&o.length>0){var s=o[o.length-1];this.isValueEmpty(s.value)||(r||(r=this.createNewValue()),!this.isValueSurveyElement(r)&&!this.isTwoValueEquals(r[r.length-1],s.value)&&(r[r.length-1]=s.value,this.value=r))}}if(this.survey){var o=this.visibleRows;if(e+1==this.rowCount&&o.length>0){var s=o[o.length-1];this.survey.matrixRowAdded(this,s),this.onRowsChanged()}}},t.prototype.getDefaultRowValue=function(e){for(var n=null,r=0;r<this.columns.length;r++){var o=this.columns[r].templateQuestion;o&&!this.isValueEmpty(o.getDefaultValue())&&(n=n||{},n[this.columns[r].name]=o.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var s in this.defaultRowValue)n=n||{},n[s]=this.defaultRowValue[s];if(e&&this.defaultValueFromLastRow){var u=this.value;if(u&&Array.isArray(u)&&u.length>=this.rowCount-1){var d=u[this.rowCount-2];for(var s in d)n=n||{},n[s]=d[s]}}return n},t.prototype.focusAddBUtton=function(){var e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){var n=e.querySelectorAll("."+this.cssClasses.buttonAdd)[0];n&&n.focus()}},t.prototype.getActionCellIndex=function(e){var n=this.showHeader?1:0;return this.isColumnLayoutHorizontal?e.cells.length-1+n:this.visibleRows.indexOf(e)+n},t.prototype.removeRowUI=function(e){var n=this;if(e&&e.rowName){var r=this.visibleRows.indexOf(e);if(r<0)return;e=r}this.removeRow(e,void 0,function(){var o=n.visibleRows.length,s=r>=o?o-1:r,u=s>-1?n.visibleRows[s]:void 0;setTimeout(function(){u?n.renderedTable.focusActionCell(u,n.getActionCellIndex(u)):n.focusAddBUtton()},10)})},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var n=this.createNewValue();return this.isValueEmpty(n)||!Array.isArray(n)||e>=n.length?!1:!this.isValueEmpty(n[e])},t.prototype.removeRow=function(e,n,r){var o=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var s=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;if(n===void 0&&(n=this.isRequireConfirmOnRowDelete(e)),n){Wt({message:this.confirmDeleteText,funcOnYes:function(){o.removeRowAsync(e,s),r&&r()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeRowAsync(e,s),r&&r()}},t.prototype.removeRowAsync=function(e,n){n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))},t.prototype.removeRowCore=function(e){var n=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];Array.isArray(this.value)&&e<this.value.length?r=this.createValueCopy():r=this.createNewValue(),r.splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,n)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,n){if(!n||!Array.isArray(n))return n;for(var r=this.getUnbindValue(n),o=this.visibleRows,s=0;s<o.length&&s<r.length;s++){var u=r[s];u&&(r[s]=this.getRowDisplayValue(e,o[s],u))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=Math.max(this.rowCount,1),r=0;r<Math.min(I.matrix.maxRowCountInCondition,n);r++)e.push(r);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.hasErrorInMinRows()&&e.push(new io(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];r.isEmpty||e++}return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var e=i.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&e.indexOf(n)<0&&e.push(n),e},t.prototype.generateRows=function(){var e=new Array;if(this.rowCount===0)return e;for(var n=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(n,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=n),e},t.prototype.createMatrixRow=function(e){return new ja(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,n){for(var r=Math.min(e.length,n.length),o=0;o<r;o++)if(n[o]!==e[o].editingObj)return o;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var n=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1||r.length===e.length)return!1;var o=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[o];var s=r[o];r.splice(o,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(s)}else{var u=void 0;n&&n.editingObj===e[o]?u=n:(n=void 0,u=this.createMatrixRow(e[o])),r.splice(o,0,u),n||this.onMatrixRowCreated(u),this.isRendredTableCreated&&this.renderedTable.onAddedRow(u,o)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(e,n){if(n===void 0&&(n=!1),this.setRowCountValueFromData=!0,this.minRowCount>0&&h.isValueEmpty(e)&&!h.isValueEmpty(this.defaultRowValue)){e=[];for(var r=0;r<this.minRowCount;r++)e.push(h.createCopy(this.defaultRowValue))}i.prototype.updateValueFromSurvey.call(this,e,n),this.setRowCountValueFromData=!1},t.prototype.getFilteredDataCore=function(){var e=[],n=this.createValueCopy();if(!Array.isArray(n))return e;for(var r=this.generatedVisibleRows,o=0;o<r.length&&o<n.length;o++){var s=n[o];r[o].isVisible&&!h.isValueEmpty(s)&&e.push(s)}return e},t.prototype.onBeforeValueChanged=function(e){if(!(!e||!Array.isArray(e))){var n=e.length;if(n!=this.rowCount&&!(!this.setRowCountValueFromData&&n<this.initialRowCount)&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=n,!!this.generatedVisibleRows)){if(n==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,n-1),o=this.createMatrixRow(r);this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();(!e||!Array.isArray(e))&&(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var n=this.getDefaultRowValue(!1);n=n||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(n));return e},t.prototype.deleteRowValue=function(e,n){if(!Array.isArray(e))return e;for(var r=!0,o=0;o<e.length;o++)if(this.isObject(e[o])&&Object.keys(e[o]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,n){return Array.isArray(e)&&n>=0&&n<e.length?e[n]:null},t.prototype.getRowValueCore=function(e,n,r){if(r===void 0&&(r=!1),!this.generatedVisibleRows)return{};var o=this.getRowValueByIndex(n,this.generatedVisibleRows.indexOf(e));return!o&&r&&(o={}),o},t.prototype.getAddRowButtonCss=function(e){return e===void 0&&(e=!1),new _().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new _().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var e;return new _().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(!((e=this.renderedTable)===null||e===void 0)&&e.showTable)).toString()},t}(mr),pc=function(i){ws(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setDefaultRowActions=function(e,n){i.prototype.setDefaultRowActions.call(this,e,n)},t}(gs);j.addClass("matrixdynamic",[{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:I.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(i){return!i||i.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(i){return!i||i.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(i){return i.detailPanelMode!=="none"}},"allowRowsDragAndDrop:switch"],function(){return new Ps("")},"matrixdropdownbase"),Se.Instance.registerQuestion("matrixdynamic",function(i){var t=new Ps(i);return t.choices=[1,2,3,4,5],mr.addDefaultColumns(t),t});var qe={currentType:"",getCss:function(){var i=this.currentType?this[this.currentType]:vo;return i||(i=vo),i},getAvailableThemes:function(){return Object.keys(this).filter(function(i){return["currentType","getCss","getAvailableThemes"].indexOf(i)===-1})}},vo={root:"sd-root-modern",rootProgress:"sd-progress",rootMobile:"sd-root-modern--mobile",rootAnimationDisabled:"sd-root-modern--animation-disabled",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootFitToContainer:"sd-root-modern--full-container",rootWrapper:"sd-root-modern__wrapper",rootWrapperFixed:"sd-root-modern__wrapper--fixed",rootWrapperHasImage:"sd-root-modern__wrapper--has-image",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",bodyLoading:"sd-body--loading",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",completedBeforePage:"sd-completed-before-page",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:"sd-btn sd-btn--small"},panel:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-element__content sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",nested:"sd-element--nested sd-element--nested-with-borders",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact",errorsContainer:"sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"},paneldynamic:{mainRoot:"sd-element  sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",iconRemove:"sd-hidden",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",nested:"sd-element--nested sd-element--nested-with-borders",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelsContainer:"sd-paneldynamic__panels-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",panelWrapperEnter:"sd-paneldynamic__panel-wrapper--enter",panelWrapperLeave:"sd-paneldynamic__panel-wrapper--leave",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsRoot:"sd-progress-buttons",progressButtonsNumbered:"sd-progress-buttons--numbered",progressButtonsFitSurveyWidth:"sd-progress-buttons--fit-survey-width",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsConnector:"sd-progress-buttons__connector",progressButtonsButton:"sd-progress-buttons__button",progressButtonsButtonBackground:"sd-progress-buttons__button-background",progressButtonsButtonContent:"sd-progress-buttons__button-content",progressButtonsHeader:"sd-progress-buttons__header",progressButtonsFooter:"sd-progress-buttons__footer",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description",number:"sd-page__num",errorsContainer:"sd-page__errbox"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",rowEnter:"sd-row--enter",rowDelayedEnter:"sd-row--delayed-enter",rowLeave:"sd-row--leave",rowReplace:"sd-row--replace",pageRow:"sd-page__row",question:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",mobile:"sd-question--mobile",mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-element__content sd-question__content",contentSupportContainerQueries:"sd-question__content--support-container-queries",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleTopRoot:"sd-question--title-top",descriptionUnderInputRoot:"sd-question--description-under-input",titleBottomRoot:"sd-question--title-bottom",titleOnAnswer:"sd-question__title--answer",titleEmpty:"sd-question__title--empty",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleReadOnly:"sd-element__title--readonly",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",hasErrorTop:"sd-question--error-top",hasErrorBottom:"sd-question--error-bottom",collapsed:"sd-element--collapsed",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex sd-composite",disabled:"sd-question--disabled",readOnly:"sd-question--readonly",preview:"sd-question--preview",noPointerEventsMode:"sd-question--no-pointer-events",errorsContainer:"sd-element__erbox sd-question__erbox",errorsContainerTop:"sd-element__erbox--above-element sd-question__erbox--above-question",errorsContainerBottom:"sd-question__erbox--below-question",confirmDialog:"sd-popup--confirm sv-popup--confirm"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:"",nested:"sd-element--nested sd-html--nested"},error:{root:"sd-error",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemReadOnly:"sd-item--readonly sd-checkbox--readonly",itemPreview:"sd-item--preview sd-checkbox--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-check-16x16",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemExchanged:"sd-boolean--exchanged",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemReadOnly:"sd-boolean--readonly",itemPreview:"sd-boolean--preview",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",labelTrue:"sd-boolean__label--true",labelFalse:"sd-boolean__label--false",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",labelReadOnly:"sd-checkbox__label--readonly",labelPreview:"sd-checkbox__label--preview",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioItemDisabled:"sd-item--disabled sd-radio--disabled",radioItemReadOnly:"sd-item--readonly sd-radio--readonly",radioItemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-item--disabled sd-checkbox--disabled",checkboxItemReadOnly:"sd-item--readonly sd-checkbox--readonly",checkboxItemPreview:"sd-item--preview sd-checkbox--preview",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-check-16x16"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",constrolWithCharacterCounter:"sd-text__character-counter",characterCounterBig:"sd-text__character-counter--big",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",rootMobile:"sd-multipletext--mobile",itemLabel:"sd-multipletext__item-container sd-input",itemLabelReadOnly:"sd-input--readonly",itemLabelDisabled:"sd-input--disabled",itemLabelPreview:"sd-input--preview",itemLabelOnError:"sd-multipletext__item-container--error",itemLabelAllowFocus:"sd-multipletext__item-container--allow-focus",itemLabelAnswered:"sd-multipletext__item-container--answered",itemWithCharacterCounter:"sd-multipletext-item__character-counter",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell",cellError:"sd-multipletext__cell--error",cellErrorTop:"sd-multipletext__cell--error-top",cellErrorBottom:"sd-multipletext__cell--error-bottom"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemReadOnly:"sd-imagepicker__item--readonly",itemPreview:"sd-imagepicker__item--preview",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-check-24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",rowDisabled:"sd-table__row-disabled",rowReadOnly:"sd-table__row-readonly",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",itemCell:"sd-table__cell--item",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",expandedRow:"sd-table__row--expanded",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",expandedRow:"sd-table__row--expanded",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"sd-hidden",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-drag-24x24",footer:"sd-matrixdynamic__footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-rating--wrappable",rootLabelsTop:"sd-rating--labels-top",rootLabelsBottom:"sd-rating--labels-bottom",rootLabelsDiagonal:"sd-rating--labels-diagonal",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarReadOnly:"sd-rating__item-star--readonly",itemStarPreview:"sd-rating__item-star--preview",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyReadOnly:"sd-rating__item-smiley--readonly",itemSmileyPreview:"sd-rating__item-smiley--preview",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemReadOnly:"sd-rating__item--readonly",itemPreview:"sd-rating__item--preview",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",selectWrapper:"sv-dropdown_select-wrapper",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",rootDragging:"sd-file--dragging",rootAnswered:"sd-file--answered",rootDisabled:"sd-file--disabled",rootReadOnly:"sd-file--readonly",rootPreview:"sd-file--preview",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",previewItem:"sd-file__preview-item",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",controlDisabled:"sd-file__choose-file-btn--disabled",removeButton:"sd-context-btn--negative",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-close_16x16",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",imageWrapperDefaultImage:"sd-file__image-wrapper--default-image",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile",videoContainer:"sd-file__video-container",contextButton:"sd-context-btn",video:"sd-file__video",actionsContainer:"sd-file__actions-container",closeCameraButton:"sd-file__close-camera-button",changeCameraButton:"sd-file__change-camera-button",takePictureButton:"sd-file__take-picture-button",loadingIndicator:"sd-file__loading-indicator",page:"sd-file__page"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas sd-signaturepad__canvas",backgroundImage:"sjs_sp__background-image sd-signaturepad__background-image",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear",loadingIndicator:"sd-signaturepad__loading-indicator"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootReadOnly:"sd-ranking--readonly",rootPreview:"sd-ranking--preview",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankEmptyValueMod:"sv-ranking--select-to-rank-empty-value",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",itemDisabled:"sv-ranking-item--disabled",itemReadOnly:"sv-ranking-item--readonly",itemPreview:"sv-ranking-item--preview",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused",itemHovered:"sv-list__item--hovered sd-list__item--hovered"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-check-16x16",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel-24x24",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlEditable:"sd-input--editable",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},Na="defaultV2";qe[Na]=vo;var fc="surveyjs.io",dc=65536,qa=function(){function i(){}return Object.defineProperty(i,"serviceUrl",{get:function(){return I.web.surveyServiceUrl},set:function(t){I.web.surveyServiceUrl=t},enumerable:!1,configurable:!0}),i.prototype.loadSurvey=function(t,e){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var r=JSON.parse(n.response);e(n.status==200,r,n.response)},n.send()},i.prototype.getSurveyJsonAndIsCompleted=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+e),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var o=JSON.parse(r.response),s=o?o.survey:null,u=o?o.isCompleted:null;n(r.status==200,s,u,r.response)},r.send()},i.prototype.canSendResult=function(t){if(!this.isSurveJSIOService)return!0;var e=JSON.stringify(t);return e.length<dc},Object.defineProperty(i.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf(fc)>=0},enumerable:!1,configurable:!0}),i.prototype.sendResult=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1),this.canSendResult(e)?this.sendResultCore(t,e,n,r,o):n(!1,k("savingExceedSize",this.locale),void 0)},i.prototype.sendResultCore=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1);var s=new XMLHttpRequest;s.open("POST",this.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var u={postId:t,surveyResult:JSON.stringify(e)};r&&(u.clientId=r),o&&(u.isPartialCompleted=!0);var d=JSON.stringify(u);s.onload=s.onerror=function(){n&&n(s.status===200,s.response,s)},s.send(d)},i.prototype.sendFile=function(t,e,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(r.status==200,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",e),o.append("postId",t),r.send(o)},i.prototype.getResult=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&name="+e;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null,u=null;if(r.status==200){s=JSON.parse(r.response),u=[];for(var d in s.QuestionResult){var y={name:d,value:s.QuestionResult[d]};u.push(y)}}n(r.status==200,s,u,r.response)},r.send()},i.prototype.isCompleted=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&clientId="+e;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null;r.status==200&&(s=JSON.parse(r.response)),n(r.status==200,s,r.response)},r.send()},Object.defineProperty(i.prototype,"serviceUrl",{get:function(){return i.serviceUrl||""},enumerable:!1,configurable:!0}),i}(),fn={setTimeout:function(i){return fn.safeTimeOut(i,1e3)},clearTimeout:function(i){clearTimeout(i)},safeTimeOut:function(i,t){return t<=0?(i(),0):setTimeout(i,t)},now:function(){return Date.now()}},xs=function(){function i(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new pt,this.onTimer=this.onTimerTick}return Object.defineProperty(i,"instance",{get:function(){return i.instanceValue||(i.instanceValue=new i),i.instanceValue},enumerable:!1,configurable:!0}),i.prototype.start=function(t){var e=this;t===void 0&&(t=null),t&&this.onTimerTick.add(t),this.prevTimeInMs=fn.now(),this.timerId<0&&(this.timerId=fn.setTimeout(function(){e.doTimer()})),this.listenerCounter++},i.prototype.stop=function(t){t===void 0&&(t=null),t&&this.onTimerTick.remove(t),this.listenerCounter--,this.listenerCounter==0&&this.timerId>-1&&(fn.clearTimeout(this.timerId),this.timerId=-1)},i.prototype.doTimer=function(){var t=this;if((this.onTimerTick.isEmpty||this.listenerCounter==0)&&(this.timerId=-1),!(this.timerId<0)){var e=fn.now(),n=Math.floor((e-this.prevTimeInMs)/1e3);this.prevTimeInMs=e,n<0&&(n=1);var r=this.timerId;this.onTimerTick.fire(this,{seconds:n}),r===this.timerId&&(this.timerId=fn.setTimeout(function(){t.doTimer()}))}},i.instanceValue=null,i}(),hc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),oi=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},_a=function(i){hc(t,i);function t(e){var n=i.call(this)||this;return n.timerFunc=null,n.surveyValue=e,n.onCreating(),n}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add(function(){e.update()}),this.timerFunc=function(n,r){e.doTimer(r.seconds)},this.setIsRunning(!0),this.update(),xs.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),xs.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(e){var n=this.survey.currentPage;if(n){var r=n.getMaxTimeToFinish();r>0&&r<n.timeSpent+e&&(e=r-n.timeSpent),n.timeSpent=n.timeSpent+e}this.spent=this.spent+e,this.update(),this.onTimerTick&&this.onTimerTick(n)},t.prototype.updateProgress=function(){var e=this,n=this.survey.timerInfo,r=n.spent,o=n.limit;o?(r==0?(this.progress=0,setTimeout(function(){e.progress=Math.floor((r+1)/o*100)/100},0)):r<=o&&(this.progress=Math.floor((r+1)/o*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return this.progress!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return new _().append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return new _().append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),oi([x()],t.prototype,"text",void 0),oi([x()],t.prototype,"progress",void 0),oi([x()],t.prototype,"clockMajorText",void 0),oi([x()],t.prototype,"clockMinorText",void 0),oi([x({defaultValue:0})],t.prototype,"spent",void 0),t}(fe),gc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ba=function(i){gc(t,i);function t(e){var n=i.call(this)||this;return n.cssClasses=e,n.timeout=I.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new xt,n.actionBar.updateCallback=function(r){n.actionBar.actions.forEach(function(o){return o.cssClasses={}})},n.css=n.cssClasses.root,n}return t.prototype.getCssClass=function(e){return new _().append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,e!=="error"&&e!=="success").append(this.cssClasses.error,e==="error").append(this.cssClasses.success,e==="success").append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var n=this;this.actionBar.actions.forEach(function(r){return r.visible=n.showActions&&n.actionsVisibility[r.id]===e})},t.prototype.notify=function(e,n,r){var o=this;n===void 0&&(n="info"),r===void 0&&(r=!1),this.isDisplayed=!0,setTimeout(function(){o.updateActionsVisibility(n),o.message=e,o.active=!0,o.css=o.getCssClass(n),o.timer&&(clearTimeout(o.timer),o.timer=void 0),r||(o.timer=setTimeout(function(){o.timer=void 0,o.active=!1,o.css=o.getCssClass(n)},o.timeout))},1)},t.prototype.addAction=function(e,n){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=n},bo([x({defaultValue:!1})],t.prototype,"active",void 0),bo([x({defaultValue:!1})],t.prototype,"isDisplayed",void 0),bo([x()],t.prototype,"message",void 0),bo([x()],t.prototype,"css",void 0),t}(fe),yc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ie=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Fa=function(){function i(t,e,n){this.cover=t,this.positionX=e,this.positionY=n}return i.prototype.calcRow=function(t){return t==="top"?1:t==="middle"?2:3},i.prototype.calcColumn=function(t){return t==="left"?1:t==="center"?2:3},i.prototype.calcAlignItems=function(t){return t==="left"?"flex-start":t==="center"?"center":"flex-end"},i.prototype.calcAlignText=function(t){return t==="left"?"start":t==="center"?"center":"end"},i.prototype.calcJustifyContent=function(t){return t==="top"?"flex-start":t==="middle"?"center":"flex-end"},Object.defineProperty(i.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){var t=i.CLASSNAME+" "+i.CLASSNAME+"--"+this.positionX+" "+i.CLASSNAME+"--"+this.positionY;return t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"style",{get:function(){var t={};return t.gridColumn=this.calcColumn(this.positionX),t.gridRow=this.calcRow(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"contentStyle",{get:function(){var t={};return t.textAlign=this.calcAlignText(this.positionX),t.alignItems=this.calcAlignItems(this.positionX),t.justifyContent=this.calcJustifyContent(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?""+this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),i.CLASSNAME="sv-header__cell",i}(),Co=function(i){yc(t,i);function t(){var e=i.call(this)||this;return e.cells=[],["top","middle","bottom"].forEach(function(n){return["left","center","right"].forEach(function(r){return e.cells.push(new Fa(e,r,n))})}),e.init(),e}return t.prototype.calcBackgroundSize=function(e){return e==="fill"?"100% 100%":e==="tile"?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=new _().append("sv-header").append("sv-header__without-background",this.backgroundColor==="transparent"&&!this.backgroundImage).append("sv-header__background-color--none",this.backgroundColor==="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&this.backgroundColor!=="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth=this.inheritWidthFrom==="survey"&&!!e&&e==="static"&&this.survey.renderedWidth,this.contentClasses=new _().append("sv-header__content").append("sv-header__content--static",this.inheritWidthFrom==="survey"&&!!e&&e==="static").append("sv-header__content--responsive",this.inheritWidthFrom==="container"||!!e&&e==="responsive").toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=new _().append("sv-header__background-image").append("sv-header__background-image--contain",this.backgroundImageFit==="contain").append("sv-header__background-image--tile",this.backgroundImageFit==="tile").toString()},t.prototype.fromTheme=function(e){i.prototype.fromJSON.call(this,e.header||{}),e.cssVariables&&(this.backgroundColor=e.cssVariables["--sjs-header-backcolor"],this.titleColor=e.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=e.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=zr(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){if(this.survey&&!this.survey.isMobile||!this.survey)return this.height?Math.max(this.height,this.actualHeight+40)+"px":void 0;if(this.survey&&this.survey.isMobile)return this.mobileHeight?Math.max(this.mobileHeight,this.actualHeight)+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedtextAreaWidth",{get:function(){return this.textAreaWidth?this.textAreaWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this._survey},set:function(e){var n=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add(function(r,o){(o.name=="widthMode"||o.name=="width")&&n.updateContentClasses()})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null},enumerable:!1,configurable:!0}),t.prototype.propertyValueChanged=function(e,n,r,o,s){i.prototype.propertyValueChanged.call(this,e,n,r),(e==="backgroundColor"||e==="backgroundImage"||e==="overlapEnabled")&&this.updateHeaderClasses(),e==="inheritWidthFrom"&&this.updateContentClasses(),e==="backgroundImageFit"&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,n,r){var o=["top","middle","bottom"],s=o.indexOf(this.logoPositionY),u=o.indexOf(this.titlePositionY),d=o.indexOf(this.descriptionPositionY),y=["left","center","right"],V=y.indexOf(this.logoPositionX),T=y.indexOf(this.titlePositionX),N=y.indexOf(this.descriptionPositionX),U=[[0,0,0],[0,0,0],[0,0,0]];return U[s][V]=e,U[u][T]+=n,U[d][N]+=r,U.reduce(function(W,X){return W+Math.max.apply(Math,X)},0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement)if(this.survey.isMobile){var y=this.survey.rootElement.querySelectorAll(".sv-header > div")[0];this.actualHeight=y?y.getBoundingClientRect().height:0}else{var n=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],o=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],s=n?n.getBoundingClientRect().height:0,u=r?r.getBoundingClientRect().height:0,d=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(s,u,d)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||this.backgroundColor!=="transparent"},enumerable:!1,configurable:!0}),Ie([x({defaultValue:0})],t.prototype,"actualHeight",void 0),Ie([x()],t.prototype,"height",void 0),Ie([x()],t.prototype,"mobileHeight",void 0),Ie([x()],t.prototype,"inheritWidthFrom",void 0),Ie([x()],t.prototype,"textAreaWidth",void 0),Ie([x()],t.prototype,"textGlowEnabled",void 0),Ie([x()],t.prototype,"overlapEnabled",void 0),Ie([x()],t.prototype,"backgroundColor",void 0),Ie([x()],t.prototype,"titleColor",void 0),Ie([x()],t.prototype,"descriptionColor",void 0),Ie([x({onSet:function(e,n){n.renderBackgroundImage=zr(e)}})],t.prototype,"backgroundImage",void 0),Ie([x()],t.prototype,"renderBackgroundImage",void 0),Ie([x()],t.prototype,"backgroundImageFit",void 0),Ie([x()],t.prototype,"backgroundImageOpacity",void 0),Ie([x()],t.prototype,"logoPositionX",void 0),Ie([x()],t.prototype,"logoPositionY",void 0),Ie([x()],t.prototype,"titlePositionX",void 0),Ie([x()],t.prototype,"titlePositionY",void 0),Ie([x()],t.prototype,"descriptionPositionX",void 0),Ie([x()],t.prototype,"descriptionPositionY",void 0),Ie([x()],t.prototype,"logoStyle",void 0),Ie([x()],t.prototype,"titleStyle",void 0),Ie([x()],t.prototype,"descriptionStyle",void 0),Ie([x()],t.prototype,"headerClasses",void 0),Ie([x()],t.prototype,"contentClasses",void 0),Ie([x()],t.prototype,"maxWidth",void 0),Ie([x()],t.prototype,"backgroundImageClasses",void 0),t}(fe);j.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"mobileHeight:number",minValue:0,default:0},{name:"inheritWidthFrom",default:"container"},{name:"textAreaWidth:number",minValue:0,default:512},{name:"textGlowEnabled:boolean"},{name:"overlapEnabled:boolean"},{name:"backgroundImage:file"},{name:"backgroundImageOpacity:number",minValue:0,maxValue:1,default:1},{name:"backgroundImageFit",default:"cover",choices:["cover","fill","contain"]},{name:"logoPositionX",default:"right"},{name:"logoPositionY",default:"top"},{name:"titlePositionX",default:"left"},{name:"titlePositionY",default:"bottom"},{name:"descriptionPositionX",default:"left"},{name:"descriptionPositionY",default:"bottom"}],function(){return new Co});var mc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},bc=function(){function i(t){this.type=t,this.timestamp=new Date}return i}(),Cc=function(i){mc(t,i);function t(){var e=i.call(this)||this;return e.taskList=[],e.onAllTasksCompleted=e.addEvent(),e}return t.prototype.runTask=function(e,n){var r=this,o=new bc(e);return this.taskList.push(o),this.hasActiveTasks=!0,n(function(){return r.taskFinished(o)}),o},t.prototype.waitAndExecute=function(e){if(!this.hasActiveTasks){e();return}this.onAllTasksCompleted.add(function(){e()})},t.prototype.taskFinished=function(e){var n=this.taskList.indexOf(e);n>-1&&this.taskList.splice(n,1),this.hasActiveTasks&&this.taskList.length==0&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},vc([x({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(fe),ka=function(){function i(t,e,n){n===void 0&&(n=-1),this.source=t,this.target=e,this.nestedPanelDepth=n}return i}(),wc=function(){function i(t){this.panel=t}return i.prototype.dragDropAddTarget=function(t){var e=this.dragDropFindRow(t.target);this.dragDropAddTargetToRow(t,e)&&this.panel.updateRowsRemoveElementFromRow(t.target,e)},i.prototype.dragDropFindRow=function(t){if(!t||t.isPage)return null;for(var e=t,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return n[r];for(var r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var s=o.dragDropFindRow(e);if(s)return s}}return null},i.prototype.dragDropMoveElement=function(t,e,n){var r=t.parent.elements.indexOf(t);n>r&&n--,this.panel.removeElement(t),this.panel.addElement(e,n)},i.prototype.updateRowsOnElementAdded=function(t,e,n,r){n||(n=new ka(null,t),n.target=t,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=r:(n.isBottom=e>0,e==0?n.destination=this.panel.elements[1]:n.destination=this.panel.elements[e-1])),this.dragDropAddTargetToRow(n,null)},i.prototype.dragDropAddTargetToRow=function(t,e){if(!t.destination||this.dragDropAddTargetToEmptyPanel(t))return!0;var n=t.destination,r=this.dragDropFindRow(n);return r?t.target.startWithNewLine?this.dragDropAddTargetToNewRow(t,r,e):this.dragDropAddTargetToExistingRow(t,r,e):!0},i.prototype.dragDropAddTargetToEmptyPanel=function(t){if(t.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,t.target,t.isBottom),!0;var e=t.destination;if(e.isPanel&&!t.isEdge){var n=e;if(t.target.template===e)return!1;if(t.nestedPanelDepth<0||t.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(e,t.target,t.isBottom),!0}return!1},i.prototype.dragDropAddTargetToExistingRow=function(t,e,n){var r=e.elements.indexOf(t.destination);if(r==0&&!t.isBottom&&!this.panel.isDesignModeV2){if(e.elements[0].startWithNewLine)return e.index>0?(t.isBottom=!0,e=e.panel.rows[e.index-1],t.destination=e.elements[e.elements.length-1],this.dragDropAddTargetToExistingRow(t,e,n)):this.dragDropAddTargetToNewRow(t,e,n)}var o=-1;n==e&&(o=e.elements.indexOf(t.target)),t.isBottom&&r++;var s=this.panel.findRowByElement(t.source);return s==e&&s.elements.indexOf(t.source)==r||r==o?!1:(o>-1&&(e.elements.splice(o,1),o<r&&r--),e.elements.splice(r,0,t.target),e.updateVisible(),o<0)},i.prototype.dragDropAddTargetToNewRow=function(t,e,n){var r=e.panel.createRowAndSetLazy(e.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(t.target);var o=e.index;if(t.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var s=this.panel.findRowByElement(t.source);return s&&s.panel==r.panel&&s.elements.length==1&&s.index==o?!1:(e.panel.rows.splice(o,0,r),!0)},i.prototype.dragDropAddTargetToEmptyPanelCore=function(t,e,n){var r=t.createRow();r.addElement(e),t.elements.length==0||n?t.rows.push(r):t.rows.splice(0,0,r)},i}(),Pc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vs=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Qa=function(i){Pc(t,i);function t(e,n){var r=i.call(this)||this;return r.effectiveWidth=e,r.questionTitleWidth=n,r}return t.prototype.getType=function(){return"panellayoutcolumn"},t.prototype.isEmpty=function(){return!this.width&&!this.questionTitleWidth},Vs([x()],t.prototype,"width",void 0),Vs([x({onSet:function(e,n,r){e!==r&&(n.width=e)}})],t.prototype,"effectiveWidth",void 0),Vs([x()],t.prototype,"questionTitleWidth",void 0),t}(fe);j.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(i){return new Qa});var Ss=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),si=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ha=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},za=function(i){Ss(t,i);function t(e){var n=i.call(this)||this;return n.panel=e,n._scrollableParent=void 0,n._updateVisibility=void 0,n.visibleElementsAnimation=new Nt(n.getVisibleElementsAnimationOptions(),function(r){n.setWidth(r),n.setPropertyValue("visibleElements",r)},function(){return n.visibleElements}),n.idValue=t.getRowId(),n.visible=e.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return t.getRowId=function(){return"pr_"+t.rowCounter++},Object.defineProperty(t.prototype,"allowRendering",{get:function(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.startLazyRendering=function(e,n){var r=this;if(n===void 0&&(n=ar),!!R.isAvailable()){this._scrollableParent=n(e),this._scrollableParent===R.getDocumentElement()&&(this._scrollableParent=B.getWindow());var o=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!o,o&&(this._updateVisibility=function(){if(r.allowRendering){var s=es(e,50);!r.isNeedRender&&s&&(r.isNeedRender=!0,r.stopLazyRendering())}},setTimeout(function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.ensureVisibility()},10))}},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return this.isLazyRenderingValue===!0},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.equalsCore=function(e){return this==e},Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){var e;return i.prototype.getIsAnimationAllowed.call(this)&&this.visible&&((e=this.panel)===null||e===void 0?void 0:e.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,n=function(r){Vt(r),un(r,{width:Wr(r)+"px"})};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(r){return r.getWrapperElement()},getLeaveOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.leave,onBeforeRunAnimation:n,onAfterRunAnimation:Xe}},getEnterOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.enter,onBeforeRunAnimation:n,onAfterRunAnimation:Xe}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(e.length)this.visible=!0;else{this.visible=!1,this.visibleElementsAnimation.cancel();return}this.visibleElementsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e),this.onVisibleChangedCallback&&this.onVisibleChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){for(var e=[],n=0;n<this.elements.length;n++)this.elements[n].isVisible&&e.push(this.elements[n]),(this.elements[n].isPanel||this.elements[n].getType()==="paneldynamic")&&(this.setIsLazyRendering(!1),this.stopLazyRendering());this.visibleElements=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(e){var n,r=e.length;if(r!=0){for(var o=e.length===1,s=0,u=[],d=0;d<this.elements.length;d++){var y=this.elements[d];if(y.isVisible){y.isSingleInRow=o;var V=this.getElementWidth(y);V&&(y.renderWidth=this.getRenderedWidthFromWidth(V),u.push(y)),s<r-1&&!(this.panel.isDefaultV2Theme||!((n=this.panel.parentQuestion)===null||n===void 0)&&n.isDefaultV2Theme)?y.rightIndent=1:y.rightIndent=0,s++}else y.renderWidth=""}for(var d=0;d<this.elements.length;d++){var y=this.elements[d];!y.isVisible||u.indexOf(y)>-1||(u.length==0?y.renderWidth=Number.parseFloat((100/r).toFixed(6))+"%":y.renderWidth=this.getRenderedCalcWidth(y,u,r))}}},t.prototype.getRenderedCalcWidth=function(e,n,r){for(var o="100%",s=0;s<n.length;s++)o+=" - "+n[s].renderWidth;var u=r-n.length;return u>1&&(o="("+o+")/"+u.toString()),"calc("+o+")"},t.prototype.getElementWidth=function(e){var n=e.width;return!n||typeof n!="string"?"":n.trim()},t.prototype.getRenderedWidthFromWidth=function(e){return h.isNumber(e)?e+"px":e},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new _().append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.rowCounter=100,si([x({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(fe),Os=function(i){Ss(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.isQuestionsReady=!1,n.questionsValue=new Array,n._columns=void 0,n._columnsReady=!1,n.rowsAnimation=new Nt(n.getRowsAnimationOptions(),function(r){n.setPropertyValue("visibleRows",r)},function(){return n.visibleRows}),n.isRandomizing=!1,n.onColumnPropertyValueChangedCallback=function(r,o,s,u,d){n._columnsReady&&(n.updateColumnWidth(n.gridLayoutColumns),n.updateRootStyle())},n.locCountRowUpdates=0,n.createNewArray("rows",function(r,o){n.onAddRow(r)},function(r){n.onRemoveRow(r)}),n.createNewArray("visibleRows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",function(r,o){n.visible=o===!0},function(r){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(r,o){n.readOnly=o===!1}),n.addExpressionProperty("requiredIf",function(r,o){n.isRequired=o===!0}),n.createLocalizableString("requiredErrorText",n),n.createLocalizableString("navigationTitle",n,!0).onGetTextCallback=function(r){return r||n.title||n.name},n.registerPropertyChangedHandlers(["questionTitleLocation"],function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)}),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){n.updateVisibleIndexes()}),n.registerPropertyChangedHandlers(["title"],function(){n.resetHasTextInTitle()}),n.dragDropPanelHelper=new wc(n),n}return t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var n=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return n.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this;return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(n){return n.getRootElement()},getLeaveOptions:function(n,r){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:Vt,onAfterRunAnimation:Xe}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:new _().append(o.rowEnter).append(o.rowDelayedEnter,r.isDeletingRunning).toString(),onBeforeRunAnimation:Vt,onAfterRunAnimation:Xe}}}},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getPropertyValue("visibleRows")},set:function(e){this.rowsAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.onRemoveRow=function(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter(function(n){return n.visible}),e.onVisibleChangedCallback=void 0},t.prototype.onRowVisibleChanged=function(){this.visibleRows=this.rows.filter(function(e){return e.visible})},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(e,n){this.blockAnimations(),i.prototype.setSurveyImpl.call(this,e,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(e,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged(),this.gridLayoutColumns.forEach(function(n){n.onPropertyValueChangedCallback=e.onColumnPropertyValueChangedCallback})},Object.defineProperty(t.prototype,"hasTextInTitle",{get:function(){var e=this;return this.getPropertyValue("hasTextInTitle",void 0,function(){return!!e.title})},enumerable:!1,configurable:!0}),t.prototype.resetHasTextInTitle=function(){this.resetPropertyValue("hasTextInTitle")},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle(this.survey)&&(this.hasTextInTitle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!(I.supportCreatorV2&&this.isPanel)&&this.showTitle&&I.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){e===void 0&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,n=0;n<e.length;n++){var r=e[n];r.isPanel&&r.deletePanel(),this.onRemoveElementNotifySurvey(r)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(e){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!this.hasTitle&&this.isDesignMode?!1:this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&I.designMode.showEmptyDescriptions},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].locStrsChanged()},t.prototype.getMarkdownHtml=function(e,n){return n==="navigationTitle"&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:i.prototype.getMarkdownHtml.call(this,e,n)},Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedNavigationTitle",{get:function(){return this.locNavigationTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&this.questionsOrder!=="initial"||this.questionsOrder==="random"},t.prototype.randomizeElements=function(e){if(!(!this.canRandomize(e)||this.isRandomizing)){this.isRandomizing=!0;for(var n=[],r=this.elements,o=0;o<r.length;o++)n.push(r[o]);var s=h.randomizeArray(n);this.setArrayPropertyDirectly("elements",s,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){var e=this.questionsOrder=="default"&&this.survey?this.survey.questionsOrder:this.questionsOrder;return e=="random"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return this.parent==null?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var n={panel:{},error:{},row:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(n.panel,e.panel),this.copyCssClasses(n.error,e.error),e.pageRow&&(n.pageRow=e.pageRow),e.rowCompact&&(n.rowCompact=e.rowCompact),e.row&&(n.row=e.row),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,n),n},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var n=this.elements[e];if(n.isPanel)for(var r=n.questions,o=0;o<r.length;o++)this.questionsValue.push(r[o]);else this.questionsValue.push(n)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var n=this.questions;if(!e)return n;var r=[];return n.forEach(function(o){r.push(o),o.getNestedQuestions().forEach(function(s){return r.push(s)})}),r},t.prototype.getValidName=function(e){return e&&e.trim()},t.prototype.getQuestionByName=function(e){for(var n=this.questions,r=0;r<n.length;r++)if(n[r].name==e)return n[r];return null},t.prototype.getElementByName=function(e){for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.name==e)return o;var s=o.getPanel();if(s){var u=s.getElementByName(e);if(u)return u}}return null},t.prototype.getQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);return n.length>0?n[0]:null},t.prototype.getQuestionsByValueName=function(e){for(var n=[],r=this.questions,o=0;o<r.length;o++)r[o].getValueName()==e&&n.push(r[o]);return n},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),h.getUnbindValue(e)},t.prototype.collectValues=function(e,n){var r=this.elements;n===0&&(r=this.questions);for(var o=0;o<r.length;o++){var s=r[o];if(s.isPanel||s.isPage){var u={};s.collectValues(u,n-1)&&(e[s.name]=u)}else{var d=s;if(!d.isEmpty()){var y=d.getValueName();if(e[y]=d.value,this.data){var V=this.data.getComment(y);V&&(e[y+fe.commentSuffix]=V)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var n={},r=this.questions,o=0;o<r.length;o++){var s=r[o];if(!s.isEmpty()){var u=e?s.title:s.getValueName();n[u]=s.getDisplayValue(e)}}return n},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var n=this.questions,r=0;r<n.length;r++){var o=n[r],s=this.data.getComment(o.getValueName());s&&(e[o.getValueName()]=s)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return fe.collectDependency(this,"elements"),this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return this.elements},t.prototype.containsElement=function(e){for(var n=0;n<this.elements.length;n++){var r=this.elements[n];if(r==e)return!0;var o=r.getPanel();if(o&&o.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(e,n){i.prototype.searchText.call(this,e,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(e,n)},t.prototype.hasErrors=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),!this.validate(e,n,r)},t.prototype.validate=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),r=r||{fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},r.result!==!0&&(r.result=!1),this.hasErrorsCore(r),!r.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.onQuestionValueChanged=function(e){var n=this.questions.indexOf(e);if(!(n<0)){for(var r=5,o=this.questions.length-1,s=n-r>0?n-r:0,u=n+r<o?n+r:o,d=s;d<=u;d++)if(d!==n){var y=this.questions[d];y.errors.length>0&&y.validate(!1)&&y.validate(!0)}}},t.prototype.hasErrorsInPanels=function(e){var n=[];if(this.hasRequiredError(e,n),this.isPanel&&this.survey){var r=this.survey.validatePanel(this);r&&(n.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,n),this.errors=n)},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.hasRequiredError=function(e,n){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),r.length!=0){for(var o=0;o<r.length;o++)if(!r[o].isEmpty())return;e.result=!0,n.push(new to(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var n=this.elements,r=null,o=null,s=0;s<n.length;s++)if(r=n[s],!!r.isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var u=r;u.validate(e.fireCallback,e)||(o||(o=u),e.firstErrorQuestion||(e.firstErrorQuestion=u),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!o&&this.errors.length>0&&(o=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=o)),e.fireCallback&&o&&(o===e.firstErrorQuestion&&e.focusOnFirstError?o.focus(!0):o.expandAllParents())},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateElementVisibility();i.prototype.updateElementVisibility.call(this)},t.prototype.getFirstQuestionToFocus=function(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!e&&!n&&this.isCollapsed)return null;for(var r=this.elements,o=0;o<r.length;o++){var s=r[o];if(!(!s.isVisible||!n&&s.isCollapsed))if(s.isPanel){var u=s.getFirstQuestionToFocus(e,n);if(u)return u}else{var d=s.getFirstQuestionToFocus(e);if(d)return d}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!1)},t.prototype.addPanelsIntoList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!0)},t.prototype.addElementsToList=function(e,n,r,o){n&&!this.visible||this.addElementsToListCore(e,this.elements,n,r,o)},t.prototype.addElementsToListCore=function(e,n,r,o,s){for(var u=0;u<n.length;u++){var d=n[u];r&&!d.visible||((s&&d.isPanel||!s&&!d.isPanel)&&e.push(d),d.isPanel?d.addElementsToListCore(e,d.elements,r,o,s):o&&this.addElementsToListCore(e,d.getElementsInDesign(!1),r,o,s))}},t.prototype.calcMaxRowColSpan=function(){var e=0;return this.rows.forEach(function(n){var r=0,o=!1;n.elements.forEach(function(s){s.width&&(o=!0),r+=s.colSpan||1}),!o&&r>e&&(e=r)}),e},t.prototype.updateColumnWidth=function(e){var n=0,r=0;if(e.forEach(function(u){u.width?(n+=u.width,u.setPropertyValue("effectiveWidth",u.width)):r++}),r)for(var o=Xi((100-n)/r),s=0;s<e.length;s++)e[s].width||e[s].setPropertyValue("effectiveWidth",o)},t.prototype.updateColumns=function(){this._columns=void 0,this.updateRootStyle()},t.prototype.updateRootStyle=function(){var e;i.prototype.updateRootStyle.call(this),(e=this.elements)===null||e===void 0||e.forEach(function(n){return n.updateRootStyle()})},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():this.questionTitleLocation!="default"?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){var e=this.getQuestionTitleLocation();return e==="left"?!0:this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){var e=this.elements.some(function(n){if(n instanceof t)return n.hasElementWithTitleLocationLeft();if(n instanceof Be)return n.getTitleLocation()==="left"});return e},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns||this.generateColumns(),this._columns||[]},enumerable:!1,configurable:!0}),t.prototype.generateColumns=function(){var e=this.calcMaxRowColSpan(),n=[].concat(this.gridLayoutColumns);if(e<=this.gridLayoutColumns.length)n=this.gridLayoutColumns.slice(0,e);else for(var r=this.gridLayoutColumns.length;r<e;r++){var o=new Qa;o.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback,n.push(o)}this._columns=n;try{this._columnsReady=!1,this.updateColumnWidth(n)}finally{this._columnsReady=!0}this.gridLayoutColumns=n},t.prototype.updateGridColumns=function(){this.updateColumns(),this.elements.forEach(function(e){e.isPanel&&e.updateGridColumns()})},t.prototype.getColumsForElement=function(e){var n=this.findRowByElement(e);if(!n||!this.survey||!this.survey.gridLayoutEnabled)return[];for(var r=n.elements.length-1;r>=0&&n.elements[r].getPropertyValueWithoutDefault("colSpan");)r--;for(var o=n.elements.indexOf(e),s=0,u=0;u<o;u++)s+=n.elements[u].colSpan;var d=e.getPropertyValueWithoutDefault("colSpan");if(!d&&o===r){for(var y=0,u=0;u<n.elements.length;u++)u!==r&&(y+=n.elements[u].colSpan);d=this.columns.length-y}var V=this.columns.slice(s,s+(d||1));return e.setPropertyValue("effectiveColSpan",V.length),V},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return _e.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){var e=this.getIsPageVisible(null),n=this.getPropertyValue("isVisible",!0);e!==n&&this.onVisibleChanged()},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.isLazyRenderInRow=function(e){return!this.survey||!this.survey.isLazyRendering?!1:e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows()},t.prototype.createRowAndSetLazy=function(e){var n=this.createRow();return n.setIsLazyRendering(this.isLazyRenderInRow(e)),n},t.prototype.createRow=function(){return new za(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.onRowsChanged(),this.elements.forEach(function(e){return e.onFirstRendering()})},t.prototype.updateRows=function(){this.isLoadingFromJson||(this.getElementsForRows().forEach(function(e){e.isPanel&&e.updateRows()}),this.onRowsChanged())},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach(function(e){e.ensureVisibility()})},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||(this.blockAnimations(),this.setArrayPropertyDirectly("rows",this.buildRows()),this.updateColumns(),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var n=this,r=this.findRowByElement(e),o=this.rows.indexOf(r),s=r.elements.indexOf(e);r.elements.splice(s,1),r.elements.length==0?this.rows.splice(o,1):!r.elements[0].startWithNewLine&&this.rows[o-1]?(r.elements.forEach(function(u){return n.rows[o-1].addElement(u)}),this.rows.splice(o,1)):r.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var n=this,r=this.elements.indexOf(e),o=this.elements[r+1],s=function(T){var N=n.createRowAndSetLazy(T);return n.isDesignModeV2&&N.setIsLazyRendering(!1),n.rows.splice(T,0,N),N},u=function(T,N,U){for(var W,X=[],Y=3;Y<arguments.length;Y++)X[Y-3]=arguments[Y];var J=(W=T.elements).splice.apply(W,Ha([N,U],X));return T.updateVisible(),J};if(!o){r==0||e.startWithNewLine?u(s(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}var d=this.findRowByElement(o);if(d){var y=this.rows.indexOf(d),V=d.elements.indexOf(o);V==0?o.startWithNewLine?e.startWithNewLine||y<1?s(y).addElement(e):this.rows[y-1].addElement(e):u(d,0,0,e):e.startWithNewLine?u.apply(void 0,Ha([s(y+1),0,0],[e].concat(u(d,V,d.elements.length)))):u(d,V,0,e)}},t.prototype.canFireAddRemoveNotifications=function(e){return!!this.survey&&e.prevSurvey!==this.survey},t.prototype.onAddElement=function(e,n){var r=this,o=this.survey,s=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),s&&(e.isPanel?o.panelAdded(e,n,this,this.root):o.questionAdded(e,n,this,this.root)),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){r.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){r.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),!this.isRandomizing&&(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.unregisterElementPropertiesChanged=function(e){e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id)},t.prototype.onRemoveElementNotifySurvey=function(e){this.canFireAddRemoveNotifications(e)&&(e.isPanel?this.survey.panelRemoved(e):this.survey.questionRemoved(e))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.locCountRowUpdates>0||(this.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())},t.prototype.updateRowsVisibility=function(e){for(var n=this.rows,r=0;r<n.length;r++){var o=n[r];if(o.elements.indexOf(e)>-1){o.updateVisible(),o.visible&&!o.isNeedRender&&(o.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&this.getChildrenLayoutType()=="row"},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,n=this.getElementsForRows(),r=0;r<n.length;r++){var o=n[r],s=r==0||o.startWithNewLine,u=s?this.createRowAndSetLazy(e.length):e[e.length-1];s&&e.push(u),u.addElement(o)}return e.forEach(function(d){return d.updateVisible()}),e},t.prototype.getElementsForRows=function(){return this.elements},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&(this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e)),this.updateColumns())},t.prototype.updateRowsRemoveElementFromRow=function(e,n){if(!(!n||!n.panel)){var r=n.elements.indexOf(e);r<0||(n.elements.splice(r,1),n.elements.length>0?(this.blockRowsUpdates(),n.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),n.updateVisible()):n.index>=0&&n.panel.rows.splice(n.index,1))}},t.prototype.getAllRows=function(){var e=this,n=[];return this.rows.forEach(function(r){var o=[];r.elements.forEach(function(s){s.isPanel?o.push.apply(o,s.getAllRows()):s.getType()=="paneldynamic"&&(e.isDesignMode?o.push.apply(o,s.template.getAllRows()):s.panels.forEach(function(u){return o.push.apply(o,u.getAllRows())}))}),n.push(r),n.push.apply(n,o)}),n},t.prototype.findRowAndIndexByElement=function(e,n){if(!e)return{row:void 0,index:this.rows.length-1};n=n||this.rows;for(var r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return{row:n[r],index:r};return{row:null,index:-1}},t.prototype.forceRenderRow=function(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())},t.prototype.forceRenderElement=function(e,n,r){n===void 0&&(n=function(){}),r===void 0&&(r=0);var o=this.getAllRows(),s=this.findRowAndIndexByElement(e,o),u=s.row,d=s.index;if(d>=0&&d<o.length){var y=[];y.push(u);for(var V=d-1;V>=d-r&&V>=0;V--)y.push(o[V]);this.forceRenderRows(y,n)}},t.prototype.forceRenderRows=function(e,n){var r=this;n===void 0&&(n=function(){});var o=function(s){return function(){s--,s<=0&&n()}}(e.length);e.forEach(function(s){return new Fi(s.visibleElements,o)}),e.forEach(function(s){return r.forceRenderRow(s)})},t.prototype.findRowByElement=function(e){return this.findRowAndIndexByElement(e).row},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var n=this.findRowByElement(e);n&&n.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return this.textProcessor!=null?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){this.questions.forEach(function(e){return e.onHidingContent()})},t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.getQuestionClearIfInvisible("default")!=="none"&&!this.isLoadingFromJson))for(var e=this.questions,n=this.isVisible,r=0;r<e.length;r++){var o=e[r];n?o.updateValueWithDefaults():(o.clearValueIfInvisible("onHiddenContainer"),o.onHidingContent())}},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.questions.forEach(function(n){return n.onHidingContent()})},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsContentVisible=function(e){if(this.areInvisibleElementsShowing)return!0;for(var n=0;n<this.elements.length;n++)if(this.elements[n]!=e&&this.elements[n].isVisible)return!0;return!1},t.prototype.getIsPageVisible=function(e){return this.visible&&this.getIsContentVisible(e)},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var n=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),o=r,s=0;s<this.elements.length;s++)o+=this.elements[s].setVisibleIndex(o);return this.isContinueNumbering()&&(e+=o-r),e-n},t.prototype.updateVisibleIndexes=function(){this.lastVisibleIndex!==void 0&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.elements.length;e++){var n=this.elements[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.elements.length;n++){var r=this.elements[n];r.updateElementCss(e)}},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,n){return n===void 0&&(n=-1),this.canAddElement(e)?(n<0||n>=this.elements.length?this.elements.push(e):this.elements.splice(n,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0):!1},t.prototype.insertElement=function(e,n,r){if(r===void 0&&(r="bottom"),!n){this.addElement(e);return}this.blockRowsUpdates();var o=this.elements.indexOf(n),s=this.findRowByElement(n);r=="left"||r=="right"?r=="right"?(e.startWithNewLine=!1,o++):s.elements.indexOf(n)==0?(n.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r=="top"?o=this.elements.indexOf(s.elements[0]):o=this.elements.indexOf(s.elements[s.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,o)},t.prototype.insertElementAfter=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addPanel=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addNewQuestion=function(e,n,r){n===void 0&&(n=null),r===void 0&&(r=-1);var o=Se.Instance.createQuestion(e,n);return this.addQuestion(o,r)?o:null},t.prototype.addNewPanel=function(e){e===void 0&&(e=null);var n=this.createNewPanel(e);return this.addPanel(n)?n:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var n=j.createClass("panel");return n.name=e,n},t.prototype.removeElement=function(e){var n=this.elements.indexOf(e);if(n<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(n,1),this.updateColumns(),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,n){if(!(this.isDesignMode||this.isLoadingFromJson)){for(var r=this.elements.slice(),o=0;o<r.length;o++)r[o].runCondition(e,n);this.runConditionCore(e,n)}},t.prototype.onAnyValueChanged=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},t.prototype.checkBindings=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].checkBindings(e,n)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,n,r){this.dragDropPanelHelper.dragDropMoveElement(e,n,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(n){n.elements.length>1&&(e=!0)}),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return this.questionErrorLocation!=="default"?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.panel.number},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return this.cssClasses.panel.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return new _().append(e.error.root).toString()},t.prototype.getSerializableColumnsValue=function(){for(var e=-1,n=this.gridLayoutColumns.length-1;n>=0;n--)if(!this.gridLayoutColumns[n].isEmpty()){e=n;break}return this.gridLayoutColumns.slice(0,e+1)},t.prototype.afterRender=function(e){this.afterRenderCore(e)},t.prototype.dispose=function(){if(i.prototype.dispose.call(this),this.rows){for(var e=0;e<this.rows.length;e++)this.rows[e].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)},t.prototype.disposeElements=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose()},t.panelCounter=100,si([me()],t.prototype,"gridLayoutColumns",void 0),si([x({defaultValue:!0})],t.prototype,"showTitle",void 0),si([x({defaultValue:!0})],t.prototype,"showDescription",void 0),si([x()],t.prototype,"questionTitleWidth",void 0),t}(_e),ai=function(i){Ss(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.forcusFirstQuestionOnExpand=!0,n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],function(){n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var r;(r=n.parent)===null||r===void 0||r.updateColumns()}),n}return t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e&&this.isPanel?this.parent?this.parent.getSurvey(e):null:i.prototype.getSurvey.call(this,e)},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:i.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){var e=this;return this.getPropertyValue("no",void 0,function(){return e.calcNo()})},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e=h.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedPanelNo(this,e)),e||""},t.prototype.notifyStateChanged=function(e){this.isLoadingFromJson||this.locTitle.strChanged(),i.prototype.notifyStateChanged.call(this,e)},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(r){return!r&&e.state!=="default"&&(r=e.name),r},n},t.prototype.beforeSetVisibleIndex=function(e){if(this.isPage)return i.prototype.beforeSetVisibleIndex.call(this,e);var n=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(n=e),this.setPropertyValue("visibleIndex",n),this.resetPropertyValue("no"),n<0?0:1},t.prototype.getPanelStartIndex=function(e){return this.showQuestionNumbers==="off"?-1:this.showQuestionNumbers==="onpanel"?0:e},t.prototype.hasParentInQuestionIndex=function(){if(this.showQuestionNumbers!=="onpanel")return!1;var e=this.questionStartIndex,n=e.indexOf(".");return n>-1&&n<e.length-1},t.prototype.isContinueNumbering=function(){return this.showQuestionNumbers!=="off"&&this.showQuestionNumbers!=="onpanel"},t.prototype.notifySurveyOnVisibilityChanged=function(){this.survey!=null&&!this.isLoadingFromJson&&this.page&&this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(e){if(this.isPanel&&!e){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return i.prototype.getRenderedTitle.call(this,e)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){var e=this,n=function(){return e.getIndentSize(e.innerIndent)};return this.getPropertyValue("innerPaddingLeft",void 0,n)},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.resetIndents=function(){this.resetPropertyValue("innerPaddingLeft"),i.prototype.resetIndents.call(this)},t.prototype.getIndentSize=function(e){if(this.survey){if(e<1)return"";var n=this.survey.css;return!n||!n.question||!n.question.indent?"":e*n.question.indent+"px"}},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof Be||e instanceof t)&&e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e=this,n,r;if(!this.footerToolbarValue){var o=this.footerActions;this.hasEditButton&&o.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){e.cancelPreview()}}),this.onGetFooterActionsCallback?o=this.onGetFooterActionsCallback():o=(n=this.survey)===null||n===void 0?void 0:n.getUpdatedPanelFooterActions(this,o),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var s=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";s||(s=(r=this.cssClasses.panel)===null||r===void 0?void 0:r.footer),s&&(this.footerToolbarValue.containerCss=s),this.footerToolbarValue.setItems(o)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssPanelTitle()},enumerable:!1,configurable:!0}),t.prototype.getCssPanelTitle=function(){return this.getCssTitle(this.cssClasses.panel)},t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.panel.titleExpandableSvg},Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){if(this.isPage)return i.prototype.getCssError.call(this,e);var n=new _().append(i.prototype.getCssError.call(this,e)).append(e.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){i.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return this.startWithNewLine?i.prototype.needResponsiveWidth.call(this):!0},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return i.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return i.prototype.getIsNested.call(this)&&this.parent!==void 0},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.expand=function(e){e===void 0&&(e=!0),this.forcusFirstQuestionOnExpand=e,i.prototype.expand.call(this)},t.prototype.onElementExpanded=function(e){var n=this;if(this.forcusFirstQuestionOnExpand&&this.survey!=null&&!this.isLoadingFromJson){var r=this.getFirstQuestionToFocus(!1);r&&setTimeout(function(){!n.isDisposed&&n.survey&&n.survey.scrollElementToTop(r,r,null,r.inputId,!1,{behavior:"smooth"})},e?0:15)}},t.prototype.getCssRoot=function(e){return new _().append(i.prototype.getCssRoot.call(this,e)).append(e.container).append(e.asPage,this.showPanelAsPage).append(e.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t.prototype.afterRenderCore=function(e){var n;i.prototype.afterRenderCore.call(this,e),this.isPanel&&((n=this.survey)===null||n===void 0||n.afterRenderPanel(this,e))},t}(Os);j.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"readOnly:boolean",overridingProperty:"enableIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"questionTitleWidth",visibleIf:function(i){return!!i&&i.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"gridLayoutColumns:panellayoutcolumns",className:"panellayoutcolumn",isArray:!0,onSerializeValue:function(i){return i.getSerializableColumnsValue()},visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"questionErrorLocation",default:"default",choices:["default","top","bottom"]}],function(){return new Os}),j.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"width"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return I.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i.survey&&i.survey.gridLayoutEnabled}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3],visible:!1},{name:"page",isSerializable:!1,visibleIf:function(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"showNumber:boolean"},{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},{name:"questionStartIndex",visibleIf:function(i){return i.isPanel}},{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new ai},"panelbase"),pn.Instance.registerElement("panel",function(i){return new ai(i)});var xc=function(){function i(t){this.page=t}return i.prototype.getDragDropInfo=function(){return this.dragDropInfo},i.prototype.dragDropStart=function(t,e,n){n===void 0&&(n=-1),this.dragDropInfo=new ka(t,e,n)},i.prototype.dragDropMoveTo=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!this.dragDropInfo||(this.dragDropInfo.destination=t,this.dragDropInfo.isBottom=e,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert()))return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},i.prototype.correctDragDropInfo=function(t){if(t.destination){var e=t.destination.isPanel?t.destination:null;e&&(t.target.isLayoutTypeSupported(e.getChildrenLayoutType())||(t.isEdge=!0))}},i.prototype.dragDropAllowFromSurvey=function(){var t=this.dragDropInfo.destination;if(!t||!this.page.survey)return!0;var e=null,n=null,r=t.isPage||!this.dragDropInfo.isEdge&&t.isPanel?t:t.parent;if(!t.isPage){var o=t.parent;if(o){var s=o.elements,u=s.indexOf(t);u>-1&&(e=t,n=t,this.dragDropInfo.isBottom?e=u<s.length-1?s[u+1]:null:n=u>0?s[u-1]:null)}}var d={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,toElement:this.dragDropInfo.target,draggedElement:this.dragDropInfo.source,parent:r,fromElement:this.dragDropInfo.source?this.dragDropInfo.source.parent:null,insertAfter:n,insertBefore:e};return this.page.survey.dragAndDropAllow(d)},i.prototype.dragDropFinish=function(t){if(t===void 0&&(t=!1),!!this.dragDropInfo){var e=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(e),s=this.dragDropGetElementIndex(e,o);this.page.updateRowsRemoveElementFromRow(e,o);var u=[],d=[];if(!t&&o){var y=!1;if(this.page.isDesignModeV2){var V=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[s]&&o.panel.elements[s].startWithNewLine&&o.elements.length>1&&o.panel.elements[s]===r&&(u.push(e),d.push(o.panel.elements[s])),e.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[s]||!o.panel.elements[s].startWithNewLine)&&d.push(e),V&&V.elements[0]===n&&V.elements[1]&&u.push(V.elements[1]),o.elements.length<=1&&u.push(e),e.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&d.push(e)}this.page.survey.startMovingQuestion(),n&&n.parent&&(y=o.panel==n.parent,y?(o.panel.dragDropMoveElement(n,e,s),s=-1):n.parent.removeElement(n)),s>-1&&o.panel.addElement(e,s),this.page.survey.stopMovingQuestion()}return u.map(function(T){T.startWithNewLine=!0}),d.map(function(T){T.startWithNewLine=!1}),this.dragDropInfo=null,t?null:e}},i.prototype.dragDropGetElementIndex=function(t,e){if(!e)return-1;var n=e.elements.indexOf(t);if(e.index==0)return n;var r=e.panel.rows[e.index-1],o=r.elements[r.elements.length-1];return n+e.panel.elements.indexOf(o)+1},i.prototype.dragDropCanDropTagert=function(){var t=this.dragDropInfo.destination;return!t||t.isPage?!0:this.dragDropCanDropCore(this.dragDropInfo.target,t)},i.prototype.dragDropCanDropSource=function(){var t=this.dragDropInfo.source;if(!t)return!0;var e=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(t,e))return!1;if(this.page.isDesignModeV2){var n=this.page.dragDropFindRow(t),r=this.page.dragDropFindRow(e);if(n!==r&&(!t.startWithNewLine&&e.startWithNewLine||t.startWithNewLine&&!e.startWithNewLine))return!0;var o=this.page.dragDropFindRow(e);if(o&&o.elements.length==1)return!0}return this.dragDropCanDropNotNext(t,e,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},i.prototype.dragDropCanDropCore=function(t,e){if(!e)return!0;if(this.dragDropIsSameElement(e,t))return!1;if(t.isPanel){var n=t;if(n.containsElement(e)||n.getElementByName(e.name))return!1}return!0},i.prototype.dragDropCanDropNotNext=function(t,e,n,r){if(!e||e.isPanel&&!n||typeof t.parent>"u"||t.parent!==e.parent)return!0;var o=t.parent,s=o.elements.indexOf(t),u=o.elements.indexOf(e);return u<s&&!r&&u--,r&&u++,s<u?u-s>1:s-u>0},i.prototype.dragDropIsSameElement=function(t,e){return t==e||t.name==e.name},i}(),Vc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Es=function(i){Vc(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.hasShownValue=!1,n.timeSpent=0,n._isReadyForClean=!0,n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new xc(n),n}return t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!this.isPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!!this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return this.isPanel&&this.survey&&this.survey.state==="preview"&&!!this.parent&&!this.parent.isPanel},enumerable:!1,configurable:!0}),t.prototype.getElementsForRows=function(){var e,n=(e=this.survey)===null||e===void 0?void 0:e.currentSingleQuestion;return n?n.page===this?[n]:[]:i.prototype.getElementsForRows.call(this)},t.prototype.disposeElements=function(){this.isPageContainer||i.prototype.disposeElements.call(this)},t.prototype.onRemoveElement=function(e){this.isPageContainer?(e.parent=null,this.unregisterElementPropertiesChanged(e)):i.prototype.onRemoveElement.call(this,e)},t.prototype.getTemplate=function(){return this.isPanel?"panel":i.prototype.getTemplate.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.canShowPageNumber()||!this.survey)return"";var e=this.isStartPage?"":this.num+". ";return this.survey.getUpdatedPageNo(this,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.page.number},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return null},Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(e){return!e||e.showPageTitles},t.prototype.setTitleValue=function(e){i.prototype.setTitleValue.call(this,e),this.navigationLocStrChanged()},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.isEmpty&&this.locTitle.strChanged(),this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},t.prototype.getMarkdownHtml=function(e,n){var r=i.prototype.getMarkdownHtml.call(this,e,n);return n==="navigationTitle"&&this.canShowPageNumber()&&r?this.num+". "+r:r},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||this.visibleIndex==0},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){if(this.isPanel)return i.prototype.calcCssClasses.call(this,e);var n={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowReplace:""};return this.copyCssClasses(n.page,e.page),this.copyCssClasses(n.error,e.error),e.pageTitle&&(n.pageTitle=e.pageTitle),e.pageDescription&&(n.pageDescription=e.pageDescription),e.row&&(n.row=e.row),e.pageRow&&(n.pageRow=e.pageRow),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),e.rowCompact&&(n.rowCompact=e.rowCompact),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowReplace&&(n.rowReplace=e.rowReplace),this.survey&&this.survey.updatePageCssClasses(this,n),n},t.prototype.getCssPanelTitle=function(){return this.isPanel?i.prototype.getCssPanelTitle.call(this):this.cssClasses.page?new _().append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.isPanel||!this.cssClasses.page||!this.survey?"":new _().append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!this.survey.renderedHasHeader&&!(this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString()},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return this.isPanel?i.prototype.getCssError.call(this,e):new _().append(i.prototype.getCssError.call(this,e)).append(e.page.errorsContainer).toString()},Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!(this.isDesignMode||e!==!0))){for(var n=this.elements,r=0;r<n.length;r++)n[r].isPanel&&n[r].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=new Array;return this.addPanelsIntoList(r,e,n),r},t.prototype.getPanels=function(e,n){return e===void 0&&(e=!1),n===void 0&&(n=!1),this.getAllPanels(e,n)},Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),t.prototype.getMaxTimeToFinish=function(){if(this.timeLimit!==0)return this.timeLimit;var e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0},t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(i.prototype.onVisibleChanged.call(this),this.survey!=null&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,n,r){r===void 0&&(r=-1),this.dragDropPageHelper.dragDropStart(e,n,r)},t.prototype.dragDropMoveTo=function(e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,n,r)},t.prototype.dragDropFinish=function(e){return e===void 0&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){i.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},Object.defineProperty(t.prototype,"isReadyForClean",{get:function(){return this._isReadyForClean},set:function(e){var n=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==n&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()},enumerable:!1,configurable:!0}),t.prototype.enableOnElementRerenderedEvent=function(){i.prototype.enableOnElementRerenderedEvent.call(this),this.isReadyForClean=!1},t.prototype.disableOnElementRerenderedEvent=function(){i.prototype.disableOnElementRerenderedEvent.call(this),this.isReadyForClean=!0},Sc([x({defaultValue:-1,onSet:function(e,n){return n.onNumChanged(e)}})],t.prototype,"num",void 0),t}(ai);j.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(i){return!!i.survey&&(i.survey.progressBarType==="buttons"||i.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(i){return!!i.survey&&i.survey.progressBarType==="buttons"},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"state",visible:!1},{name:"isRequired",visible:!1},{name:"startWithNewLine",visible:!1},{name:"width",visible:!1},{name:"minWidth",visible:!1},{name:"maxWidth",visible:!1},{name:"colSpan",visible:!1,isSerializable:!1},{name:"effectiveColSpan:number",visible:!1,isSerializable:!1},{name:"innerIndent",visible:!1},{name:"indent",visible:!1},{name:"page",visible:!1,isSerializable:!1},{name:"showNumber",visible:!1},{name:"showQuestionNumbers",visible:!1},{name:"questionStartIndex",visible:!1},{name:"allowAdaptiveActions",visible:!1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText",visible:!1}],function(){return new Es},"panel");var Oc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ua=function(i){Oc(t,i);function t(e){var n=i.call(this)||this;return n.survey=e,n.onResize=n.addEvent(),n}return t.prototype.isListElementClickable=function(e){return!this.survey.onServerValidateQuestions||this.survey.onServerValidateQuestions.isEmpty||this.survey.checkErrorsMode==="onComplete"?!0:e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){e===void 0&&(e="center");var n=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(n+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(["footer","contentBottom"].indexOf(e)!==-1?"bottom":"top"),n+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(n+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(n+=" "+this.survey.css.progressButtonsFitSurveyWidth),n},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return new _().append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},t.prototype.getScrollButtonCss=function(e,n){return new _().append(this.survey.css.progressButtonsImageButtonLeft,n).append(this.survey.css.progressButtonsImageButtonRight,!n).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof Es||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var n=e.querySelector("."+this.survey.css.progressButtonsListContainer);return n?n.scrollWidth>n.offsetWidth:!1},t.prototype.isCanShowItemTitles=function(e){var n=e.querySelector("ul");if(!n||n.children.length<2)return!0;if(n.clientWidth>n.parentElement.clientWidth)return!1;for(var r=n.children[0].clientWidth,o=0;o<n.children.length;o++)if(Math.abs(n.children[o].clientWidth-r)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=0;r<n.length;r++)n[r].style.width=""},t.prototype.adjustConnectors=function(e){var n=e.querySelector("ul");if(n)for(var r=e.querySelectorAll(".sd-progress-buttons__connector"),o=this.showItemNumbers?36:20,s=(n.clientWidth-o)/(n.children.length-1)-o,u=0;u<r.length;u++)r[u].style.width=s+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return qe.currentType!=="defaultV2"?!1:this.survey.progressBarInheritWidthFrom==="survey"&&this.survey.widthMode=="static"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressWidth",{get:function(){return this.isFitToSurveyWidth?this.survey.renderedWidth:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemNumbers",{get:function(){return qe.currentType!=="defaultV2"?!1:this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return qe.currentType!=="defaultV2"?!0:this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var n="";return this.showItemNumbers&&(n+=this.survey.visiblePages.indexOf(e)+1),n},Object.defineProperty(t.prototype,"headerText",{get:function(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.processResponsiveness=function(e){this.onResize.fire(this,{width:e})},t}(fe),Ec=function(){function i(t,e,n){var r=this;this.model=t,this.element=e,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(o,s){if(r.viewModel.onUpdateScroller(o.isListContainerHasScroller(r.element)),r.model.clearConnectorsWidth(r.element),!o.showItemTitles){r.model.adjustConnectors(r.element);return}if(o.survey.isMobile){r.prevWidth=s.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),r.viewModel.onResize(r.canShowItemTitles);return}r.timer!==void 0&&clearTimeout(r.timer),r.timer=setTimeout(function(){(r.prevWidth===void 0||r.prevWidth<s.width&&!r.canShowItemTitles||r.prevWidth>s.width&&r.canShowItemTitles)&&(r.prevWidth=s.width,r.canShowItemTitles=o.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)},10)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,function(){return r.forceUpdate()},"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return i.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},i.prototype.dispose=function(){clearTimeout(this.timer),this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,"ProgressButtonsResponsivityManager"+this.viewModel.container),this.element=void 0,this.model=void 0},i}();function Tc(i,t){return i.isDesignMode||t.focusFirstQuestion(),!0}function Wa(i){if(i.parentQuestion)return Wa(i.parentQuestion);for(var t=i.parent;t&&t.getType()!=="page"&&t.parent;)t=t.parent;return t&&t.getType()==="page"?t:null}function $a(i,t){var e=Ja(i,t),n={items:e,searchEnabled:!1,locOwner:i},r=new on(n);r.allowSelection=!1;var o=function(s,u){r.selectedItem=!!s&&r.actions.filter(function(d){return d.id===s.name})[0]||u};return o(i.currentPage,e[0]),i.onCurrentPageChanged.add(function(s,u){o(i.currentPage)}),i.onFocusInQuestion.add(function(s,u){o(Wa(u.question))}),i.registerFunctionOnPropertyValueChanged("pages",function(){r.setItems(Ja(i,t))},"toc"),r}function Ja(i,t){var e=i.pages,n=(e||[]).map(function(r){return new xe({id:r.name,locTitle:r.locNavigationTitle,action:function(){if(R.activeElementBlur(),t&&t(),r.isPage)return i.tryNavigateToPage(r)},visible:new De(function(){return r.isVisible&&!r.isStartPage})})});return n}function Ga(i,t){t===void 0&&(t=!1);var e=kn.RootStyle;return t?e+" "+kn.RootStyle+"--mobile":(e+=" "+kn.RootStyle+"--"+(i.tocLocation||"").toLowerCase(),kn.StickyPosition&&(e+=" "+kn.RootStyle+"--sticky"),e)}var kn=function(){function i(t){var e=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){e.popupModel.toggleVisibility()},this.listModel=$a(t,function(){e.popupModel.isVisible=!1}),this.popupModel=new On("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new De(function(){return e.isMobile?"overlay":"popup"}),i.StickyPosition&&(t.onAfterRenderSurvey.add(function(n,r){return e.initStickyTOCSubscriptions(r.htmlElement)}),this.initStickyTOCSubscriptions(t.rootElement))}return i.prototype.initStickyTOCSubscriptions=function(t){var e=this;i.StickyPosition&&t&&(t.addEventListener("scroll",function(n){e.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))},i.prototype.updateStickyTOCSize=function(t){if(t){var e=t.querySelector("."+i.RootStyle);if(e&&(e.style.height="",!this.isMobile&&i.StickyPosition&&t)){var n=t.getBoundingClientRect().height,r=this.survey.headerView==="advanced"?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),o=t.querySelector(r),s=o?o.getBoundingClientRect().height:0,u=t.scrollTop>s?0:s-t.scrollTop;e.style.height=n-u-1+"px"}}},Object.defineProperty(i.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerCss",{get:function(){return Ga(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.survey.unRegisterFunctionOnPropertyValueChanged("pages","toc"),this.popupModel.dispose(),this.listModel.dispose()},i.RootStyle="sv_progress-toc",i.StickyPosition=!0,i}(),Rc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ee=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},dn=function(i){Rc(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;r.valuesHash={},r.variablesHash={},r.onTriggerExecuted=r.addEvent(),r.onCompleting=r.addEvent(),r.onComplete=r.addEvent(),r.onShowingPreview=r.addEvent(),r.onNavigateToUrl=r.addEvent(),r.onStarted=r.addEvent(),r.onPartialSend=r.addEvent(),r.onCurrentPageChanging=r.addEvent(),r.onCurrentPageChanged=r.addEvent(),r.onValueChanging=r.addEvent(),r.onValueChanged=r.addEvent(),r.onVariableChanged=r.addEvent(),r.onQuestionVisibleChanged=r.addEvent(),r.onVisibleChanged=r.onQuestionVisibleChanged,r.onPageVisibleChanged=r.addEvent(),r.onPanelVisibleChanged=r.addEvent(),r.onQuestionCreated=r.addEvent(),r.onQuestionAdded=r.addEvent(),r.onQuestionRemoved=r.addEvent(),r.onPanelAdded=r.addEvent(),r.onPanelRemoved=r.addEvent(),r.onPageAdded=r.addEvent(),r.onValidateQuestion=r.addEvent(),r.onSettingQuestionErrors=r.addEvent(),r.onServerValidateQuestions=r.addEvent(),r.onValidatePanel=r.addEvent(),r.onErrorCustomText=r.addEvent(),r.onValidatedErrorsOnCurrentPage=r.addEvent(),r.onProcessHtml=r.addEvent(),r.onGetQuestionDisplayValue=r.addEvent(),r.onGetQuestionTitle=r.addEvent(),r.onGetTitleTagName=r.addEvent(),r.onGetQuestionNumber=r.addEvent(),r.onGetQuestionNo=r.onGetQuestionNumber,r.onGetPanelNumber=r.addEvent(),r.onGetPageNumber=r.addEvent(),r.onGetProgressText=r.addEvent(),r.onProgressText=r.onGetProgressText,r.onTextMarkdown=r.addEvent(),r.onTextRenderAs=r.addEvent(),r.onSendResult=r.addEvent(),r.onGetResult=r.addEvent(),r.onOpenFileChooser=r.addEvent(),r.onUploadFiles=r.addEvent(),r.onDownloadFile=r.addEvent(),r.onClearFiles=r.addEvent(),r.onLoadChoicesFromServer=r.addEvent(),r.onLoadedSurveyFromService=r.addEvent(),r.onProcessTextValue=r.addEvent(),r.onUpdateQuestionCssClasses=r.addEvent(),r.onUpdatePanelCssClasses=r.addEvent(),r.onUpdatePageCssClasses=r.addEvent(),r.onUpdateChoiceItemCss=r.addEvent(),r.onAfterRenderSurvey=r.addEvent(),r.onAfterRenderHeader=r.addEvent(),r.onAfterRenderPage=r.addEvent(),r.onAfterRenderQuestion=r.addEvent(),r.onAfterRenderQuestionInput=r.addEvent(),r.onAfterRenderPanel=r.addEvent(),r.onFocusInQuestion=r.addEvent(),r.onFocusInPanel=r.addEvent(),r.onShowingChoiceItem=r.addEvent(),r.onChoicesLazyLoad=r.addEvent(),r.onChoicesSearch=r.addEvent(),r.onGetChoiceDisplayValue=r.addEvent(),r.onMatrixRowAdded=r.addEvent(),r.onMatrixRowAdding=r.addEvent(),r.onMatrixBeforeRowAdded=r.onMatrixRowAdding,r.onMatrixRowRemoving=r.addEvent(),r.onMatrixRowRemoved=r.addEvent(),r.onMatrixRenderRemoveButton=r.addEvent(),r.onMatrixAllowRemoveRow=r.onMatrixRenderRemoveButton,r.onMatrixDetailPanelVisibleChanged=r.addEvent(),r.onMatrixCellCreating=r.addEvent(),r.onMatrixCellCreated=r.addEvent(),r.onAfterRenderMatrixCell=r.addEvent(),r.onMatrixAfterCellRender=r.onAfterRenderMatrixCell,r.onMatrixCellValueChanged=r.addEvent(),r.onMatrixCellValueChanging=r.addEvent(),r.onMatrixCellValidate=r.addEvent(),r.onMatrixColumnAdded=r.addEvent(),r.onMultipleTextItemAdded=r.addEvent(),r.onDynamicPanelAdded=r.addEvent(),r.onDynamicPanelRemoved=r.addEvent(),r.onDynamicPanelRemoving=r.addEvent(),r.onTimerTick=r.addEvent(),r.onTimer=r.onTimerTick,r.onTimerPanelInfoText=r.addEvent(),r.onDynamicPanelItemValueChanged=r.addEvent(),r.onGetDynamicPanelTabTitle=r.addEvent(),r.onDynamicPanelCurrentIndexChanged=r.addEvent(),r.onCheckAnswerCorrect=r.addEvent(),r.onIsAnswerCorrect=r.onCheckAnswerCorrect,r.onDragDropAllow=r.addEvent(),r.onScrollToTop=r.addEvent(),r.onScrollingElementToTop=r.onScrollToTop,r.onLocaleChangedEvent=r.addEvent(),r.onGetQuestionTitleActions=r.addEvent(),r.onGetPanelTitleActions=r.addEvent(),r.onGetPageTitleActions=r.addEvent(),r.onGetPanelFooterActions=r.addEvent(),r.onGetMatrixRowActions=r.addEvent(),r.onElementContentVisibilityChanged=r.addEvent(),r.onGetExpressionDisplayValue=r.addEvent(),r.onPopupVisibleChanged=r.addEvent(),r.onOpenDropdownMenu=r.addEvent(),r.onElementWrapperComponentName=r.addEvent(),r.onElementWrapperComponentData=r.addEvent(),r.jsonErrors=null,r.cssValue=null,r.showHeaderOnCompletePage="auto",r._isLazyRenderingSuspended=!1,r.hideRequiredErrors=!1,r.cssVariables={},r._isMobile=!1,r._isCompact=!1,r.setValueOnExpressionCounter=0,r._isDesignMode=!1,r.validationAllowSwitchPages=!1,r.validationAllowComplete=!1,r.isNavigationButtonPressed=!1,r.mouseDownPage=null,r.isCalculatingProgressText=!1,r.isSmoothScrollEnabled=!1,r.onResize=new pt,r.isCurrentPageRendering=!0,r.isCurrentPageRendered=void 0,r.skeletonHeight=void 0,r.isTriggerIsRunning=!1,r.triggerValues=null,r.triggerKeys=null,r.conditionValues=null,r.isValueChangedOnRunningCondition=!1,r.conditionRunnerCounter=0,r.conditionUpdateVisibleIndexes=!1,r.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.setValueFromTriggerCounter=0,r.needRenderIcons=!0,r.skippedPages=[],r.skeletonComponentName="sv-skeleton",r.taskManager=new Cc,r.questionErrorComponent="sv-question-error",r.onBeforeRunConstructor();var o=function(u){return"<h3>"+u+"</h3>"};r.createHtmlLocString("completedHtml","completingSurvey",o),r.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",o,"completed-before"),r.createHtmlLocString("loadingHtml","loadingSurvey",o,"loading"),r.createLocalizableString("emptySurveyText",r,!0,"emptySurvey"),r.createLocalizableString("logo",r,!1),r.createLocalizableString("startSurveyText",r,!1,!0),r.createLocalizableString("pagePrevText",r,!1,!0),r.createLocalizableString("pageNextText",r,!1,!0),r.createLocalizableString("completeText",r,!1,!0),r.createLocalizableString("previewText",r,!1,!0),r.createLocalizableString("editText",r,!1,!0),r.createLocalizableString("questionTitleTemplate",r,!0),r.timerModelValue=new _a(r),r.timerModelValue.onTimerTick=function(u){r.doTimer(u)},r.createNewArray("pages",function(u){u.isReadyForCleanChangedCallback&&u.isReadyForCleanChangedCallback(),r.doOnPageAdded(u)},function(u){u.isReadyForClean?r.doOnPageRemoved(u):u.isReadyForCleanChangedCallback=function(){r.doOnPageRemoved(u),u.isReadyForCleanChangedCallback=void 0}}),r.createNewArray("triggers",function(u){u.setOwner(r)}),r.createNewArray("calculatedValues",function(u){u.setOwner(r)}),r.createNewArray("completedHtmlOnCondition",function(u){u.locOwner=r}),r.createNewArray("navigateToUrlOnCondition",function(u){u.locOwner=r}),r.registerPropertyChangedHandlers(["locale"],function(){r.onSurveyLocaleChanged()}),r.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){r.onFirstPageIsStartedChanged()}),r.registerPropertyChangedHandlers(["mode"],function(){r.onModeChanged()}),r.registerPropertyChangedHandlers(["progressBarType"],function(){r.updateProgressText()}),r.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){r.resetVisibleIndexes()}),r.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],function(){r.updateState()}),r.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){r.onStateAndCurrentPageChanged()}),r.registerPropertyChangedHandlers(["logo","logoPosition"],function(){r.updateHasLogo()}),r.registerPropertyChangedHandlers(["backgroundImage"],function(){r.updateRenderBackgroundImage()}),r.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],function(){r.updateBackgroundImageStyle()}),r.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],function(){r.updateButtonsVisibility()}),r.onGetQuestionNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetPanelNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetProgressText.onCallbacksChanged=function(){r.updateProgressText()},r.onTextMarkdown.onCallbacksChanged=function(){r.locStrsChanged()},r.onProcessHtml.onCallbacksChanged=function(){r.locStrsChanged()},r.onGetQuestionTitle.onCallbacksChanged=function(){r.locStrsChanged()},r.onUpdatePageCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdatePanelCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdateQuestionCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onShowingChoiceItem.onCallbacksChanged=function(){r.rebuildQuestionChoices()},r.navigationBarValue=r.createNavigationBar(),r.navigationBar.locOwner=r,r.onBeforeCreating(),e&&((typeof e=="string"||e instanceof String)&&(e=JSON.parse(e)),e&&e.clientId&&(r.clientId=e.clientId),r.fromJSON(e),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),n&&r.render(n),r.updateCss(),r.setCalculatedWidthModeUpdater(),r.notifier=new Ba(r.css.saveData),r.notifier.addAction(r.createTryAgainAction(),"error"),r.onPopupVisibleChanged.add(function(u,d){d.visible?r.onScrollCallback=function(){d.popup.hide()}:r.onScrollCallback=void 0}),r.progressBarValue=new Ua(r),r.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:r.timerModel}),r.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:r.progressBar,processResponsiveness:function(u){return r.progressBar.processResponsiveness&&r.progressBar.processResponsiveness(u)}}),r.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:r}),r.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:r}),r.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:r}),r.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:r});var s=new kn(r);return r.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(u){return s.updateStickyTOCSize(r.rootElement)}}),r.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:r.navigationBar}),r.locTitle.onStringChanged.add(function(){return r.titleIsEmpty=r.locTitle.isEmpty}),r}return Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return I.commentSuffix},set:function(e){I.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sjsVersion",{get:function(){return this.getPropertyValue("sjsVersion")},set:function(e){this.setPropertyValue("sjsVersion",e)},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,n){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,n,r,o){var s=this,u=this.createLocalizableString(e,this,!1,n);u.onGetLocalizationTextCallback=r,o&&(u.onGetTextCallback=function(d){return s.processHtml(d,o)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,n,r){e==="questionsOnPageMode"&&this.onQuestionsOnPageModeChanged(n)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,n){var r=function(){if(s=="model"||s=="children")return"continue";if(s.indexOf("on")==0&&o[s]&&o[s].add){var u=e[s],d=function(y,V){u(y,V)};o[s].add(d)}else o[s]=e[s]},o=this;for(var s in e)r();e&&e.data&&this.onValueChanged.add(function(u,d){e.data[d.name]=d.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new _().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new _().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new _().append(this.css.body).append(this.css.bodyLoading).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,qe.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,n){n===void 0&&(n=!0),n?this.mergeValues(e,this.css):this.cssValue=e,this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return new _().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new _().append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&this.state==="running").append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.insertAdvancedHeader=function(e){e.survey=this,this.layoutElements.push({id:"advanced-header",container:"header",component:"sv-header",index:-100,data:e,processResponsiveness:function(n){return e.processResponsiveness(n)}})},t.prototype.getNavigationCss=function(e,n){return new _().append(e).append(n).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return this.lazyRenderingValue===!0},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var n=this.currentPage;n&&n.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||I.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||I.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRenderingSuspended",{get:function(){return this._isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.suspendLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)},t.prototype.releaseLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)},t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&lr(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){(e===!0||e===void 0)&&(e="bottom"),e===!1&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompleteButton",{get:function(){return this.getPropertyValue("showCompleteButton",!0)},set:function(e){this.setPropertyValue("showCompleteButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),n=e?e.url:this.navigateToUrl;return n&&(n=this.processText(n,!1)),n},t.prototype.navigateTo=function(){var e=this.getNavigateToUrl(),n={url:e,allow:!0};this.onNavigateToUrl.fire(this,n),!(!n.url||!n.allow)&&Qi(n.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,n){this.makeRequiredErrorsInvisible(n),this.onSettingQuestionErrors.fire(this,{question:e,errors:n})},t.prototype.beforeSettingPanelErrors=function(e,n){this.makeRequiredErrorsInvisible(n)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var n=0;n<e.length;n++){var r=e[n].getErrorType();(r=="required"||r=="requireoneanswer")&&(e[n].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic")},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validateVisitedEmptyFields",{get:function(){return this.getPropertyValue("validateVisitedEmptyFields")},set:function(e){this.setPropertyValue("validateVisitedEmptyFields",e)},enumerable:!1,configurable:!0}),t.prototype.getValidateVisitedEmptyFields=function(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.getPropertyValue("commentAreaRows")},set:function(e){this.setPropertyValue("commentAreaRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){e===!0&&(e="onComplete"),e===!1&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){e===void 0&&(e=!1);for(var n=0;n<this.pages.length;n++)this.pages[n].clearIncorrectValues();if(e){var r=this.data,o=!1;for(var s in r)if(!this.getQuestionByValueName(s)&&!(this.iscorrectValueWithPostPrefix(s,I.commentSuffix)||this.iscorrectValueWithPostPrefix(s,I.matrix.totalsSuffix))){var u=this.getCalculatedValueByName(s);u&&u.includeIntoResult||(o=!0,delete r[s])}o&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n){return e.indexOf(n)!==e.length-n.length?!1:!!this.getQuestionByValueName(e.substring(0,e.indexOf(n)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValueWithoutDefault("locale")||A.currentLocale},set:function(e){e===A.defaultLocale&&!A.currentLocale&&(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},Object.defineProperty(t.prototype,"localeDir",{get:function(){return A.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var n=e.indexOf("default");if(n>-1){var r=A.defaultLocale,o=e.indexOf(r);o>-1&&e.splice(o,1),n=e.indexOf("default"),e[n]=r}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(!this.isClearingUnsedValues&&(i.prototype.locStrsChanged.call(this),!!this.currentPage)){if(this.isDesignMode)this.pages.forEach(function(o){return o.locStrsChanged()});else{var e=this.activePage;e&&e.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,n){return this.getSurveyMarkdownHtml(this,e,n)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,n){var r=this.getBuiltInRendererForString(e,n);r=this.elementWrapperComponentNameCore(r,e,"string",n);var o={element:e,name:n,renderAs:r};return this.onTextRenderAs.fire(this,o),o.renderAs},t.prototype.getRendererContextForString=function(e,n){return this.elementWrapperDataCore(n,e,"string")},t.prototype.getExpressionDisplayValue=function(e,n,r){var o={question:e,value:n,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,o),o.displayValue},t.prototype.getBuiltInRendererForString=function(e,n){if(this.isDesignMode)return gt.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,n){return this.getSurveyErrorCustomText(this,e,n)},t.prototype.getSurveyErrorCustomText=function(e,n,r){var o={text:n,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,o),o.text},t.prototype.getQuestionDisplayValue=function(e,n){var r={question:e,displayValue:n};return this.onGetQuestionDisplayValue.fire(this,r),r.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizableStringText("emptySurveyText")},set:function(e){this.setLocalizableStringText("emptySurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?Et(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?pr(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?Et(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?pr(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&this.logoPosition!=="none")},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return this.isDesignMode?!1:this.renderedHasLogo&&(this.logoPosition==="left"||this.logoPosition==="top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&(this.logoPosition==="right"||this.logoPosition==="bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){var e={left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"};return new _().append(this.css.logo).append(e[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.titleIsEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){e===void 0&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(function(n){return n.setIsMobile(e)}))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(an()||this.isMobile)&&!this.isValueEmpty(this.isLogoImageChoosen())&&!I.supportCreatorV2){var e=this.logoWidth;if(this.logoPosition==="left"||this.logoPosition==="right")return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=zr(e)},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),t.prototype.updateBackgroundImageStyle=function(){this.backgroundImageStyle={opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}},t.prototype.updateWrapperFormCss=function(){this.wrapperFormCss=new _().append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&this.backgroundImageAttachment==="fixed").toString()},Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e,n){if(!e)return null;var r=this.getFilteredValues(),o=this.getFilteredProperties(),s=new jt(e),u=void 0;return s.onRunComplete=function(d){u=d,n&&n(d)},s.run(r,o)||u},Object.defineProperty(t.prototype,"isSettingValueOnExpression",{get:function(){return this.setValueOnExpressionCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueOnExpression=function(){this.setValueOnExpressionCounter++},t.prototype.finishSetValueOnExpression=function(){this.setValueOnExpressionCounter--},t.prototype.runCondition=function(e){if(!e)return!1;var n=this.getFilteredValues(),r=this.getFilteredProperties();return new Ue(e).run(n,r)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(e.length==0)return null;for(var n=this.getFilteredValues(),r=this.getFilteredProperties(),o=0;o<e.length;o++)if(e[o].runCondition(n,r))return e[o];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,n){if(this.onGetTitleTagName.isEmpty)return n;var r={element:e,tagName:n};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){e!=="numRequireTitle"&&e!=="requireNumTitle"&&e!="numTitle"&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,n=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+n+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+n}),e.push({value:"numTitle",text:r+" "+n}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var n=[];e.indexOf("{")>-1;){e=e.substring(e.indexOf("{")+1);var r=e.indexOf("}");if(r<0)break;n.push(e.substring(0,r)),e=e.substring(r+1)}if(n.length>1){if(n[0]=="require")return"requireNumTitle";if(n[1]=="require"&&n.length==3)return"numRequireTitle";if(n.indexOf("require")<0)return"numTitle"}if(n.length==1&&n[0]=="title")return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,n,r,o){if(n="{"+n+"}",!e||e.indexOf(n)<0)return r;for(var s=e.indexOf(n),u="",d="",y=s-1;y>=0&&e[y]!="}";y--);for(y<s-1&&(u=e.substring(y+1,s)),s+=n.length,y=s;y<e.length&&e[y]!="{";y++);for(y>s&&(d=e.substring(s,y)),y=0;y<u.length&&u.charCodeAt(y)<33;)y++;for(u=u.substring(y),y=d.length-1;y>=0&&d.charCodeAt(y)<33;)y--;if(d=d.substring(0,y+1),!u&&!d)return r;var V=r||o;return u+V+d},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,n){if(this.onGetQuestionTitle.isEmpty)return n;var r={question:e,title:n};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,n){if(this.onGetQuestionNumber.isEmpty)return n;var r={question:e,number:n,no:n};return this.onGetQuestionNumber.fire(this,r),r.no===n?r.number:r.no},t.prototype.getUpdatedPanelNo=function(e,n){if(this.onGetPanelNumber.isEmpty)return n;var r={panel:e,number:n};return this.onGetPanelNumber.fire(this,r),r.number},t.prototype.getUpdatedPageNo=function(e,n){if(this.onGetPageNumber.isEmpty)return n;var r={page:e,number:n};return this.onGetPageNumber.fire(this,r),r.number},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){e===!0&&(e="on"),e===!1&&(e="off"),e=e.toLowerCase(),e=e==="onpage"?"onPage":e,e!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBar",{get:function(){return this.progressBarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){e==="correctquestion"&&(e="correctQuestion"),e==="requiredquestion"&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return!I.legacyProgressBarView&&qe.currentType==="defaultV2"&&hn(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return this.canShowProresBar()?["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)!==-1:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return this.canShowProresBar()?this.showProgressBar==="bottom"||this.showProgressBar==="both"||this.showProgressBar==="topbottom":!1},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return e===void 0&&(e=""),new _().append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||e=="header")).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||e=="footer")).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||this.showPreviewBeforeComplete!="showAllQuestions"},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){e=e.toLowerCase(),e!=this.mode&&(e!="edit"&&e!="display"||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var n=this.pages[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r],s=this.getDataValueCore(this.valuesHash,o);s!==void 0&&(e[o]=s)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e,!e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var n=this.data;this.mergeValues(e,n),this.setDataCore(n)}},t.prototype.setDataCore=function(e,n){if(n===void 0&&(n=!1),n&&(this.valuesHash={}),e)for(var r in e){var o=typeof r=="string"?r.trim():r;this.setDataValueCore(this.valuesHash,o,e[r])}this.updateAllQuestionsValue(n),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(n)},Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getData=function(e){var n=e||{includePages:!1,includePanels:!1};return!n.includePages&&!n.includePanels?this.data:this.getStructuredData(!!n.includePages,n.includePanels?-1:n.includePages?1:0)},t.prototype.getStructuredData=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=-1),n===0)return this.data;var r={};return this.pages.forEach(function(o){if(e){var s={};o.collectValues(s,n-1)&&(r[o.name]=s)}else o.collectValues(r,n)}),r},t.prototype.setStructuredData=function(e,n){if(n===void 0&&(n=!1),!!e){var r={};for(var o in e){var s=this.getQuestionByValueName(o);if(s)r[o]=e[o];else{var u=this.getPageByName(o);u||(u=this.getPanelByName(o)),u&&this.collectDataFromPanel(u,r,e[o])}}n?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,n,r){for(var o in r){var s=e.getElementByName(o);s&&(s.isPanel?this.collectDataFromPanel(s,n,r[o]):n[o]=r[o])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var n=this;if(this.editingObj!=e&&(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),o=0;o<r.length;o++)r[o].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(s,u){j.hasOriginalProperty(n.editingObj,u.name)&&(u.name==="locale"&&n.setDataCore({}),n.updateOnSetValue(u.name,n.editingObj[u.name],u.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),t.prototype.unConnectEditingObj=function(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var n=0;n<this.calculatedValues.length;n++){var r=this.calculatedValues[n];r.includeIntoResult&&r.name&&this.getVariable(r.name)!==void 0&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var n=[],r=[];if(this.getAllQuestions().forEach(function(y){var V=y.getPlainData(e);V&&(n.push(V),r.push(y.valueName||y.name))}),e.includeValues)for(var o=this.getValuesKeys(),s=0;s<o.length;s++){var u=o[s];if(r.indexOf(u)==-1){var d=this.getDataValueCore(this.valuesHash,u);d&&n.push({name:u,title:u,value:d,displayValue:d,isNode:!1,getString:function(y){return typeof y=="object"?JSON.stringify(y):y}})}}return n},t.prototype.getFilteredValues=function(){var e={};for(var n in this.variablesHash)e[n]=this.variablesHash[n];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var n=r[o];e[n]=this.getDataValueCore(this.valuesHash,n)}this.getAllQuestions().forEach(function(s){s.hasFilteredValue&&(e[s.getFilteredName()]=s.getFilteredValue())})}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var n=this.calculatedValues,r=0;r<n.length;r++)e[n[r].name]=n[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=j.getPropertiesByObj(this.editingObj),n=[],r=0;r<e.length;r++)n.push(e[r].name);return n},t.prototype.getDataValueCore=function(e,n){return this.editingObj?j.getObjPropertyValue(this.editingObj,n):this.getDataFromValueHash(e,n)},t.prototype.setDataValueCore=function(e,n,r){this.editingObj?j.setObjPropertyValue(this.editingObj,n,r):this.setDataToValueHash(e,n,r)},t.prototype.deleteDataValueCore=function(e,n){this.editingObj?this.editingObj[n]=null:this.deleteDataFromValueHash(e,n)},t.prototype.getDataFromValueHash=function(e,n){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,n):e[n]},t.prototype.setDataToValueHash=function(e,n,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,n,r):e[n]=r},t.prototype.deleteDataFromValueHash=function(e,n){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,n):delete e[n]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r];o.indexOf(this.commentSuffix)>0&&(e[o]=this.getDataValueCore(this.valuesHash,o))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=new Array,n=0;n<this.pages.length;n++)this.isPageInVisibleList(this.pages[n])&&e.push(this.pages[n]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.pages.length==0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var n=this.getPageByObject(e);if(!(e&&!n)&&!(!n&&this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(n!=null&&r.indexOf(n)<0)&&n!=this.currentPage){var o=this.currentPage;!this.isShowingPreview&&!this.currentPageChanging(n,o)||(this.setPropertyValue("currentPage",n),n&&(n.onFirstRendering(),n.updateCustomWidgets(),n.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(n,o))}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(!this.performValidationOnPageChanging(e))return!1;var n=this.visiblePages.indexOf(e),r=n<this.currentPageNo||!this.doServerValidation(!1,!1,e);return r&&(this.currentPage=e),r},t.prototype.performValidationOnPageChanging=function(e){if(this.isDesignMode)return!1;var n=this.visiblePages.indexOf(e);if(n<0||n>=this.visiblePageCount||n===this.currentPageNo)return!1;if(n<this.currentPageNo||this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(var r=this.currentPageNo+1;r<n;r++){var o=this.visiblePages[r];if(!o.validate(!0,!0))return!1;o.passed=!0}return!0},t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1?!0:!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return this.state==="starting"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return this.state=="running"||this.state=="preview"||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;e!==this.activePage&&this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&e.getType()=="page")return e;if(typeof e=="string"||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var n=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[n]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var n=this.visiblePages;e<0||e>=n.length||(this.currentPage=n[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){e===void 0&&(e=!0);var n=this.activePage;n&&(e&&n.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(n.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,n){this.setPropertyValue("completedState",e),n||(e=="saving"&&(n=this.getLocalizationString("savingData")),e=="error"&&(n=this.getLocalizationString("savingDataError")),e=="success"&&(n=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",n),this.state==="completed"&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,e==="error")},t.prototype.notify=function(e,n,r){r===void 0&&(r=!1),this.notifier.showActions=r,this.notifier.notify(e,n,r)},t.prototype.clear=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;if(this.onFirstPageIsStartedChanged(),n&&(this.currentPage=this.firstVisiblePage,this.currentSingleQuestion)){var o=this.getAllQuestions(!0);this.currentSingleQuestion=o.length>0?o[0]:void 0}e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,n){ln(e,n)},t.prototype.updateValuesWithDefaults=function(){if(!(this.isDesignMode||this.isLoading))for(var e=0;e<this.pages.length;e++)for(var n=this.pages[e].questions,r=0;r<n.length;r++)n[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,n){var r=this.createPageChangeEventOptions(e,n);r.allow=!0,r.allowChanging=!0,this.onCurrentPageChanging.fire(this,r);var o=r.allowChanging&&r.allow;return o&&(this.isCurrentPageRendering=!0),o},t.prototype.currentPageChanged=function(e,n){this.notifyQuestionsOnHidingContent(n);var r=this.createPageChangeEventOptions(e,n);n&&!n.isDisposed&&!n.passed&&n.validate(!1)&&(n.passed=!0),this.isCurrentPageRendered===!0&&(this.isCurrentPageRendered=!1),this.onCurrentPageChanged.fire(this,r)},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&!e.isDisposed&&e.questions.forEach(function(n){return n.onHidingContent()})},t.prototype.createPageChangeEventOptions=function(e,n){var r=e&&n?e.visibleIndex-n.visibleIndex:0;return{oldCurrentPage:n,newCurrentPage:e,isNextPage:r===1,isPrevPage:r===-1,isGoingForward:r>0,isGoingBackward:r<0,isAfterPreview:this.changeCurrentPageFromPreview===!0}},t.prototype.getProgress=function(){if(this.currentPage==null)return 0;if(this.progressBarType!=="pages"){var e=this.getProgressInfo();return this.progressBarType==="requiredQuestions"?e.requiredQuestionCount>=1?Math.ceil(e.requiredAnsweredQuestionCount*100/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(e.answeredQuestionCount*100/e.questionCount):100}var n=this.visiblePages,r=n.indexOf(this.currentPage);return Math.ceil(r*100/n.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.activePage;return e?e.navigationButtonsVisibility==="show"?this.showNavigationButtons==="none"?"bottom":this.showNavigationButtons:e.navigationButtonsVisibility==="hide"?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var n=this.isNavigationButtonsShowing;return n=="both"||n==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return this.mode=="edit"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.mode=="display"&&!this.isDesignMode||this.state=="preview"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return this.textUpdateMode=="onTyping"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var n=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(n))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&this.showPreviewBeforeComplete=="showAnsweredQuestions"&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)if(!e[n].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=R.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&R.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&R.setCookie(this.cookieName+"=;")},Object.defineProperty(t.prototype,"ignoreValidation",{get:function(){return!this.validationEnabled},set:function(e){this.validationEnabled=!e},enumerable:!1,configurable:!0}),t.prototype.nextPage=function(){return this.isLastPage?!1:this.doCurrentPageComplete(!1)},t.prototype.performNext=function(){var e=this.currentSingleQuestion;if(!e)return this.nextPage();if(!e.validate(!0))return!1;var n=this.getAllQuestions(!0),r=n.indexOf(e);return r<0||r===n.length-1?!1:(this.currentSingleQuestion=n[r+1],!0)},t.prototype.performPrevious=function(){var e=this.currentSingleQuestion;if(!e)return this.prevPage();var n=this.getAllQuestions(!0),r=n.indexOf(e);return r===0?!1:(this.currentSingleQuestion=n[r-1],!0)},t.prototype.hasErrorsOnNavigate=function(e){var n=this;if(!this.isEditMode||this.ignoreValidation)return!1;var r=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,o=function(s){(!s||r)&&n.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?this.isLastPage?this.validate(!0,this.focusOnFirstError,o,!0)!==!0&&!r:!1:this.validateCurrentPage(o)!==!0&&!r},t.prototype.checkForAsyncQuestionValidation=function(e,n){var r=this;this.clearAsyncValidationQuesitons();for(var o=function(){if(e[u].isRunningValidators){var d=e[u];d.onCompletedAsyncValidators=function(y){r.onCompletedAsyncQuestionValidators(d,n,y)},s.asyncValidationQuesitons.push(e[u])}},s=this,u=0;u<e.length;u++)o();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,n=0;n<e.length;n++)e[n].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,n,r){if(r){if(this.clearAsyncValidationQuesitons(),n(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var o=this.currentPage.questions,s=0;s<o.length;s++)if(o[s]!==e&&o[s].errors.length>0)return;e.focus(!0)}return}for(var u=this.asyncValidationQuesitons,d=0;d<u.length;d++)if(u[d].isRunningValidators)return;n(!1)},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,n){var r=this.validatePage(e,n);return r===void 0?r:!r},t.prototype.validatePage=function(e,n){return e||(e=this.activePage),e?this.checkIsPageHasErrors(e)?!1:n&&this.checkForAsyncQuestionValidation(e.questions,function(r){return n(r)})?void 0:!0:!0},t.prototype.hasErrors=function(e,n,r){e===void 0&&(e=!0),n===void 0&&(n=!1);var o=this.validate(e,n,r);return o===void 0?o:!o},t.prototype.validate=function(e,n,r,o){e===void 0&&(e=!0),n===void 0&&(n=!1),r&&(e=!0);for(var s=this.visiblePages,u=!0,d={fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},y=0;y<s.length;y++)s[y].validate(e,n,d)||(u=!1);return d.firstErrorQuestion&&(n||o)&&(n?d.firstErrorQuestion.focus(!0):this.currentPage=d.firstErrorQuestion.page),!u||!r?u:this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(V){return r(V)})?void 0:!0},t.prototype.ensureUniqueNames=function(e){if(e===void 0&&(e=null),e==null)for(var n=0;n<this.pages.length;n++)this.ensureUniqueName(this.pages[n]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var n=e.elements,r=0;r<n.length;r++)this.ensureUniqueNames(n[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPageByName(r)})},t.prototype.ensureUniquePanelName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPanelByName(r)})},t.prototype.ensureUniqueQuestionName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getQuestionByName(r)})},t.prototype.ensureUniqueElementName=function(e,n){var r=n(e.name);if(!(!r||r==e)){for(var o=this.getNewName(e.name);n(o);)var o=this.getNewName(e.name);e.name=o}},t.prototype.getNewName=function(e){for(var n=e.length;n>0&&e[n-1]>="0"&&e[n-1]<="9";)n--;var r=e.substring(0,n),o=0;return n<e.length&&(o=parseInt(e.substring(n))),o++,r+o},t.prototype.checkIsCurrentPageHasErrors=function(e){return e===void 0&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,n){if(n===void 0&&(n=void 0),n===void 0&&(n=this.focusOnFirstError),!e)return!0;var r=!1;return this.currentSingleQuestion?r=!this.currentSingleQuestion.validate(!0):r=!e.validate(!0,n),this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!(this.onValidatedErrorsOnCurrentPage.isEmpty||!e)){for(var n=e.questions,r=new Array,o=new Array,s=0;s<n.length;s++){var u=n[s];if(u.errors.length>0){r.push(u);for(var d=0;d<u.errors.length;d++)o.push(u.errors[d])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:o,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||this.state==="starting")return!1;this.resetNavigationButton();var n=this.skippedPages.find(function(s){return s.to==e.currentPage});if(n)this.currentPage=n.from,this.skippedPages.splice(this.skippedPages.indexOf(n),1);else{var r=this.visiblePages,o=r.indexOf(this.currentPage);this.currentPage=r[o-1]}return!0},t.prototype.tryComplete=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.completeLastPage=function(){return this.tryComplete()},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){return this.mouseDownPage&&this.mouseDownPage!==this.activePage?!1:(this.mouseDownPage=null,this.performNext())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.isValidateOnComplete&&(this.hasErrorsOnNavigate(!0)||this.doServerValidation(!0,!0))?!1:(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){e===void 0&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e)},t.prototype.doCurrentPageComplete=function(e){return this.isValidatingOnServer||(this.resetNavigationButton(),this.hasErrorsOnNavigate(e))?!1:this.doCurrentPageCompleteCore(e)},t.prototype.doCurrentPageCompleteCore=function(e){return this.doServerValidation(e)?!1:e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.questionsOnPageMode=="singlePage"},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleVisibleQuestion",{get:function(){return this.isSingleVisibleQuestionVal(this.questionsOnPageMode)},enumerable:!1,configurable:!0}),t.prototype.isSingleVisibleQuestionVal=function(e){return e==="questionPerPage"||e==="questionOnPage"},Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return e=="showAllQuestions"||e=="showAnsweredQuestions"},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.updatePagesContainer()},t.prototype.createRootPage=function(e,n){var r=j.createClass("page");return r.name=e,r.isPageContainer=!0,n.forEach(function(o){o.isStartPage||r.addElement(o)}),r},t.prototype.disposeContainerPage=function(){var e=this.pageContainerValue,n=[].concat(e.elements);n.forEach(function(r){return e.removeElement(r)}),e.dispose(),this.pageContainerValue=void 0},t.prototype.updatePagesContainer=function(){if(!this.isDesignMode){this.getAllQuestions().forEach(function(u){return u.updateElementVisibility()}),this.setPropertyValue("currentPage",void 0);var e="single-page",n="preview-page",r=void 0;if(this.isSinglePage){var o=this.pageContainerValue;o&&o.name===n?(r=o.elements[0],this.disposeContainerPage()):r=this.createRootPage(e,this.pages)}if(this.isShowingPreview&&(r=this.createRootPage(n,r?[r]:this.pages)),r&&(r.setSurveyImpl(this),this.pageContainerValue=r,this.currentPage=r),!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();var s=this.gotoPageFromPreview;this.gotoPageFromPreview=null,h.isValueEmpty(s)&&this.visiblePageCount>0&&(s=this.visiblePages[this.visiblePageCount-1]),s&&(this.changeCurrentPageFromPreview=!0,this.currentPage=s,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),this.pages.forEach(function(u){u.hasShown&&u.updateElementCss(!0)}),this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"currentSingleQuestion",{get:function(){return this.currentSingleQuestionValue},set:function(e){if(e!==this.currentSingleQuestion)if(this.currentSingleQuestionValue=e,e){var n=e.page;n.updateRows(),n!==this.currentPage?this.currentPage=n:this.focusFirstQuestionAutomatic&&e.focus(),this.updateButtonsVisibility()}else this.visiblePages.forEach(function(r){return r.updateRows()})},enumerable:!1,configurable:!0}),t.prototype.onQuestionsOnPageModeChanged=function(e){if(!(this.isShowingPreview||this.isDesignMode)&&(this.currentSingleQuestion=void 0,e==="singlePage"&&this.updatePagesContainer(),this.isSinglePage&&this.updatePagesContainer(),this.isSingleVisibleQuestion)){var n=this.getAllQuestions(!0);n.length>0&&(this.currentSingleQuestion=n[0])}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstElement",{get:function(){return this.getPropertyValue("isFirstElement")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastElement",{get:function(){return this.getPropertyValue("isLastElement")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage);var n=void 0,r=void 0,o=this.currentSingleQuestion;if(o){var s=this.getAllQuestions(!0),u=s.indexOf(o);u>=0&&(n=u===0,r=u===s.length-1)}this.setPropertyValue("isFirstElement",n),this.setPropertyValue("isLastElement",r)},Object.defineProperty(t.prototype,"isLastPageOrElement",{get:function(){return this.isLastElement!==void 0?this.isLastElement:this.isLastPage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstPageOrElement",{get:function(){return this.isFirstElement!==void 0?this.isFirstElement:this.isFirstPage},enumerable:!1,configurable:!0}),t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPageOrElement||!this.showPrevButton||this.state!=="running")return!1;if(this.isFirstElement!==void 0)return!0;var e=this.visiblePages[this.currentPageNo-1];return e&&e.getMaxTimeToFinish()<=0},t.prototype.calcIsShowNextButton=function(){return this.state==="running"&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&(this.state==="running"&&(this.isLastPageOrElement&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||e==="preview")&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="running"&&this.isLastPageOrElement},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="preview"},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=0;n<e.length;n++)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=e.length-1;n>=0;n--)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,n){if(e===void 0&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,n)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,n),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,n){var r=this;e===void 0&&(e=!1);var o=this.hasCookie,s=function(N){V=!0,r.setCompletedState("saving",N)},u=function(N){r.setCompletedState("error",N)},d=function(N){r.setCompletedState("success",N),r.navigateTo()},y=function(N){r.setCompletedState("","")},V=!1,T={isCompleteOnTrigger:e,completeTrigger:n,showSaveInProgress:s,showSaveError:u,showSaveSuccess:d,clearSaveMessages:y,showDataSaving:s,showDataSavingError:u,showDataSavingSuccess:d,showDataSavingClear:y};this.onComplete.fire(this,T),!o&&this.surveyPostId&&this.sendResult(),V||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,n){var r={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:n};return this.onCompleting.fire(this,r),r.allowComplete&&r.allow},t.prototype.start=function(){return!this.firstPageIsStarted||(this.isCurrentPageRendering=!0,this.checkIsPageHasErrors(this.startedPage,!0))?!1:(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,n,r){var o=this,s={data:{},errors:{},survey:this,complete:function(){o.completeServerValidation(s,n,r)}};if(e&&this.isValidateOnComplete)s.data=this.data;else for(var u=this.activePage.questions,d=0;d<u.length;d++){var y=u[d];if(y.visible){var V=this.getValue(y.getValueName());this.isValueEmpty(V)||(s.data[y.getValueName()]=V)}}return s},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,n,r){var o=this;if(n===void 0&&(n=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var s=typeof this.onServerValidateQuestions=="function";return this.serverValidationEventCount=s?1:this.onServerValidateQuestions.length,s?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,n,r)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return o.createServerValidationOptions(e,n,r)}),!0},t.prototype.completeServerValidation=function(e,n,r){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&Object.keys(e.errors).length===0))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),!(!e&&!e.survey))){var o=e.survey,s=!1;if(e.errors){var u=this.focusOnFirstError;for(var d in e.errors){var y=o.getQuestionByName(d);y&&y.errors&&(s=!0,y.addError(new ot(e.errors[d],this)),u&&(u=!1,y.page&&(this.currentPage=y.page),y.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}s||(n?this.showPreviewCore():r?this.currentPage=r:o.isLastPage?o.doComplete():o.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,n){var r;if(I.triggers.changeNavigationButtonsOnComplete){var o=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),n?this.completedByTriggers[e.id]={trigger:e,pageId:(r=this.currentPage)===null||r===void 0?void 0:r.id}:delete this.completedByTriggers[e.id],o!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var n=Object.keys(this.completedByTriggers);if(n.length===0)return!1;var r=(e=this.currentPage)===null||e===void 0?void 0:e.id;if(!r)return!0;for(var o=0;o<n.length;o++)if(r===this.completedByTriggers[n[o]].pageId)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedTrigger",{get:function(){if(this.canBeCompletedByTrigger){var e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return _e.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){e===void 0&&(e=!1),!(this.isCalculatingProgressText||this.isShowingPreview)&&(e&&this.progressBarType=="pages"&&this.onGetProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1))},t.prototype.getProgressText=function(){if(!this.isDesignMode&&this.currentPage==null)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},n=this.progressBarType.toLowerCase();if(n==="questions"||n==="requiredquestions"||n==="correctquestions"||!this.onGetProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onGetProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var n=this.progressBarType.toLowerCase();if(n==="questions")return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if(n==="requiredquestions")return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if(n==="correctquestions"){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var o=this.isDesignMode?this.pages:this.visiblePages,s=o.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",s,o.length)},t.prototype.getRootCss=function(){return new _().append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!I.animationEnabled).append(this.css.rootReadOnly,this.mode==="display"&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var n=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=_e.GetFirstNonTextElement(e));var r=e,o=this.css.variables;if(o){var s=Number.parseFloat(R.getComputedStyle(r).getPropertyValue(o.mobileWidth));if(s){var u=!1;this.resizeObserver=new ResizeObserver(function(d){B.requestAnimationFrame(function(){u||!hr(r)?u=!1:u=n.processResponsiveness(r.offsetWidth,s,r.offsetHeight)})}),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.beforeDestroySurveyElement=function(){this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0},t.prototype.processResponsiveness=function(e,n,r){var o=e<n,s=this.isMobile!==o;this.setIsMobile(o),this.layoutElements.forEach(function(d){return d.processResponsiveness&&d.processResponsiveness(e)});var u={height:r,width:e};return this.onResize.fire(this,u),s},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach(function(n){n.triggerResponsiveness(e)})},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,n){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:n})},t.prototype.updatePanelCssClasses=function(e,n){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:n})},t.prototype.updatePageCssClasses=function(e,n){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:n})},t.prototype.updateChoiceItemCss=function(e,n){n.question=e,this.onUpdateChoiceItemCss.fire(this,n)},t.prototype.afterRenderPage=function(e){var n=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var r=this.isCurrentPageRendered===!1;setTimeout(function(){return n.scrollToTopOnPageChange(r)},1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,!this.onAfterRenderPage.isEmpty&&this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,n){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:n})},t.prototype.afterRenderQuestionInput=function(e,n){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,o=I.environment.root;if(r&&n.id!==r&&typeof o<"u"){var s=o.getElementById(r);s&&(n=s)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:n})}},t.prototype.afterRenderPanel=function(e,n){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:n})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach(function(e){return e.surveyChoiceItemVisibilityChange()})},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,n,r){var o={question:e,item:n,visible:r};return this.onShowingChoiceItem.fire(this,o),o.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,n){this.onMatrixRowAdded.fire(this,{question:e,row:n})},t.prototype.matrixColumnAdded=function(e,n){this.onMatrixColumnAdded.fire(this,{question:e,column:n})},t.prototype.multipleTextItemAdded=function(e,n){this.onMultipleTextItemAdded.fire(this,{question:e,item:n})},t.prototype.getQuestionByValueNameFromArray=function(e,n,r){var o=this.getQuestionsByValueName(e);if(o){for(var s=0;s<o.length;s++){var u=o[s].getQuestionFromArray(n,r);if(u)return u}return null}},t.prototype.matrixRowRemoved=function(e,n,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:n,row:r})},t.prototype.matrixRowRemoving=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,o),o.allow},t.prototype.matrixAllowRemoveRow=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,o),o.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,n,r,o){var s={question:e,rowIndex:n,row:r,visible:o,detailPanel:r.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,s)},t.prototype.matrixCellCreating=function(e,n){n.question=e,this.onMatrixCellCreating.fire(this,n)},t.prototype.matrixCellCreated=function(e,n){n.question=e,this.onMatrixCellCreated.fire(this,n)},t.prototype.matrixAfterCellRender=function(e,n){n.question=e,this.onAfterRenderMatrixCell.fire(this,n)},t.prototype.matrixCellValueChanged=function(e,n){n.question=e,this.onMatrixCellValueChanged.fire(this,n)},t.prototype.matrixCellValueChanging=function(e,n){n.question=e,this.onMatrixCellValueChanging.fire(this,n)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.checkErrorsMode==="onValueChanging"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return this.checkErrorsMode==="onValueChanged"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChange",{get:function(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,n){return n.question=e,this.onMatrixCellValidate.fire(this,n),n.error?new ot(n.error,this):null},t.prototype.dynamicPanelAdded=function(e,n,r){if(!this.isLoadingFromJson&&this.hasQuestionVisibleIndeces(e,!0)&&this.updateVisibleIndexes(e.page),!this.onDynamicPanelAdded.isEmpty){var o=e.panels;n===void 0&&(n=o.length-1,r=o[n]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:n})}},t.prototype.dynamicPanelRemoved=function(e,n,r){for(var o=r?r.questions:[],s=0;s<o.length;s++)o[s].clearOnDeletingContainer();this.hasQuestionVisibleIndeces(e,!1)&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:n,panel:r})},t.prototype.hasQuestionVisibleIndeces=function(e,n){n&&e.setVisibleIndex(this.getStartVisibleIndex());for(var r=e.getNestedQuestions(!0),o=0;o<r.length;o++)if(r[o].visibleIndex>-1)return!0;return!1},t.prototype.dynamicPanelRemoving=function(e,n,r){var o={question:e,panelIndex:n,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,o),o.allow},t.prototype.dynamicPanelItemValueChanged=function(e,n){n.question=e,n.panelIndex=n.itemIndex,n.panelData=n.itemValue,this.onDynamicPanelItemValueChanged.fire(this,n)},t.prototype.dynamicPanelGetTabTitle=function(e,n){n.question=e,this.onGetDynamicPanelTabTitle.fire(this,n)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,n){n.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,n)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,n,r){var o={question:r,panel:e,actions:n};return this.onGetPanelFooterActions.fire(this,o),o.actions},t.prototype.getUpdatedElementTitleActions=function(e,n){return e.isPage?this.getUpdatedPageTitleActions(e,n):e.isPanel?this.getUpdatedPanelTitleActions(e,n):this.getUpdatedQuestionTitleActions(e,n)},t.prototype.getTitleActionsResult=function(e,n){return e!=n.actions?n.actions:e!=n.titleActions?n.titleActions:e},t.prototype.getUpdatedQuestionTitleActions=function(e,n){var r={question:e,actions:n,titleActions:n};return this.onGetQuestionTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPanelTitleActions=function(e,n){var r={panel:e,actions:n,titleActions:n};return this.onGetPanelTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPageTitleActions=function(e,n){var r={page:e,actions:n,titleActions:n};return this.onGetPageTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedMatrixRowActions=function(e,n,r){var o={question:e,actions:r,row:n};return this.onGetMatrixRowActions.fire(this,o),o.actions},t.prototype.scrollElementToTop=function(e,n,r,o,s,u,d,y){var V=this,T={element:e,question:n,page:r,elementId:o,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,T),!T.cancel&&T.allow){var N=this.getPageByElement(e);if(this.isLazyRendering&&N){var U=1,W=I.environment.rootElement,X=this.rootElement||d||W;this.skeletonHeight&&X&&typeof X.getBoundingClientRect=="function"&&(U=X.getBoundingClientRect().height/this.skeletonHeight-1),N.forceRenderElement(e,function(){V.suspendLazyRendering(),_e.ScrollElementToTop(T.elementId,s,u,function(){V.releaseLazyRendering(),lr(N.id),y&&y()})},U)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var Y=this.rootElement.querySelector(ke(this.css.rootWrapper));_e.ScrollElementToViewCore(Y,!1,s,u,y)}else _e.ScrollElementToTop(T.elementId,s,u,y)}},t.prototype.chooseFiles=function(e,n,r){this.onOpenFileChooser.isEmpty?Ki(e,n):this.onOpenFileChooser.fire(this,{input:e,element:r&&r.element||this.survey,elementType:r&&r.elementType,item:r&&r.item,propertyName:r&&r.propertyName,callback:n,context:r})},t.prototype.uploadFiles=function(e,n,r,o){var s=this;this.onUploadFiles.isEmpty?o("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",function(u){s.onUploadFiles.fire(s,{question:e,name:n,files:r||[],callback:function(d,y){o(d,y),u()}})}),this.surveyPostId&&this.uploadFilesCore(n,r,o)},t.prototype.downloadFile=function(e,n,r,o){this.onDownloadFile.isEmpty&&o&&o("skipped",r.content||r),this.onDownloadFile.fire(this,{question:e,name:n,content:r.content||r,fileValue:r,callback:o})},t.prototype.clearFiles=function(e,n,r,o,s){this.onClearFiles.isEmpty&&s&&s("success",r),this.onClearFiles.fire(this,{question:e,name:n,value:r,fileName:o,callback:s})},t.prototype.updateChoicesFromServer=function(e,n,r){var o={question:e,choices:n,serverResult:r};return this.onLoadChoicesFromServer.fire(this,o),o.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new qa},t.prototype.uploadFilesCore=function(e,n,r){var o=this,s=[];n.forEach(function(u){r&&r("uploading",u),o.createSurveyService().sendFile(o.surveyPostId,u,function(d,y){d?(s.push({content:y,file:u}),s.length===n.length&&r&&r("success",s)):r&&r("error",{response:y,file:u})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,n){n===void 0&&(n=-1),e!=null&&(n<0||n>=this.pages.length?this.pages.push(e):this.pages.splice(n,0,e))},t.prototype.addNewPage=function(e,n){e===void 0&&(e=null),n===void 0&&(n=-1);var r=this.createNewPage(e);return this.addPage(r,n),r},t.prototype.removePage=function(e){var n=this.pages.indexOf(e);n<0||(this.pages.splice(n,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,n){if(n===void 0&&(n=!1),!e)return null;n&&(e=e.toLowerCase());var r=n?this.questionHashes.namesInsensitive:this.questionHashes.names,o=r[e];return o?o[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getQuestionByValueName=function(e,n){n===void 0&&(n=!1);var r=this.getQuestionsByValueName(e,n);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,n){n===void 0&&(n=!1);var r=n?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,o=r[e];return o||null},t.prototype.getCalculatedValueByName=function(e){for(var n=0;n<this.calculatedValues.length;n++)if(e==this.calculatedValues[n].name)return this.calculatedValues[n];return null},t.prototype.getQuestionsByNames=function(e,n){n===void 0&&(n=!1);var r=[];if(!e)return r;for(var o=0;o<e.length;o++)if(e[o]){var s=this.getQuestionByName(e[o],n);s&&r.push(s)}return r},t.prototype.getPageByElement=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var n=0;n<this.pages.length;n++)if(this.pages[n].name==e)return this.pages[n];return null},t.prototype.getPagesByNames=function(e){var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getPageByName(e[r]);o&&n.push(o)}return n},t.prototype.getAllQuestions=function(e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1),r===void 0&&(r=!1),r&&(n=!1);for(var o=[],s=0;s<this.pages.length;s++)this.pages[s].addQuestionsToList(o,e,n);if(!r)return o;var u=[];return o.forEach(function(d){u.push(d),d.getNestedQuestions(e).forEach(function(y){return u.push(y)})}),u},t.prototype.getQuizQuestions=function(){for(var e=new Array,n=this.getPageStartIndex(),r=n;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var o=this.pages[r].questions,s=0;s<o.length;s++){var u=o[s];u.quizQuestionCount>0&&e.push(u)}return e},t.prototype.getPanelByName=function(e,n){n===void 0&&(n=!1);var r=this.getAllPanels();n&&(e=e.toLowerCase());for(var o=0;o<r.length;o++){var s=r[o].name;if(n&&(s=s.toLowerCase()),s==e)return r[o]}return null},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);for(var r=new Array,o=0;o<this.pages.length;o++)this.pages[o].addPanelsIntoList(r,e,n);return r},t.prototype.createNewPage=function(e){var n=j.createClass("page");return n.name=e,n},t.prototype.getValueChangeReason=function(){return this.isSettingValueOnExpression?"expression":this.isSettingValueFromTrigger?"trigger":void 0},t.prototype.questionOnValueChanging=function(e,n,r){if(this.editingObj){var o=j.findProperty(this.editingObj.getType(),e);o&&(n=o.settingValue(this.editingObj,n))}if(this.onValueChanging.isEmpty)return n;var s={name:e,question:this.getQuestionByValueName(r||e),value:this.getUnbindValue(n),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,s),s.value},t.prototype.updateQuestionValue=function(e,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var s=r[o].value;(s===n&&Array.isArray(s)&&this.editingObj||!this.isTwoValueEquals(s,n))&&r[o].updateValueFromSurvey(n,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var n=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&this.isValidateOnValueChange&&(n>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,n){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var o=!1,s=0;s<r.length;s++){var u=r[s];this.isTwoValueEquals(u.valueForSurvey,n)||(u.value=n),this.checkQuestionErrorOnValueChangedCore(u)&&(o=!0),o=o||u.errors.length>0}return o},t.prototype.fireOnValueChanged=function(e,n,r){this.onValueChanged.fire(this,{name:e,question:r,value:n,reason:this.getValueChangeReason()})},t.prototype.notifyQuestionOnValueChanged=function(e,n,r){if(!this.isLoadingFromJson){var o=this.getQuestionsByValueName(e);if(o)for(var s=0;s<o.length;s++){var u=o[s];this.checkQuestionErrorOnValueChanged(u),u.onSurveyValueChanged(n)}this.fireOnValueChanged(e,n,r?this.getQuestionByName(r):void 0),!this.isDisposed&&(this.checkElementsBindings(e,n),this.notifyElementsOnAnyValueOrVariableChanged(e,r))}},t.prototype.checkElementsBindings=function(e,n){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,n);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,n){if(this.isEndLoadingFromJson!=="processing"){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var r=0;r<this.pages.length;r++)this.pages[r].onAnyValueChanged(e,n);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var n=this.getAllQuestions(),r=0;r<n.length;r++){var o=n[r],s=o.getValueName();o.updateValueFromSurvey(this.getValue(s),e),o.requireUpdateCommentValue&&o.updateCommentFromSurvey(this.getComment(s))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].onSurveyValueChanged(this.getValue(e[n].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var n=this.getCurrentPageQuestions(!0),r={},o=0;o<n.length;o++){var s=n[o],u=s.getValueName();r[u]=this.getValue(u)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){e===void 0&&(e=!1);var n=[],r=this.currentPage;if(!r)return n;for(var o=0;o<r.questions.length;o++){var s=r.questions[o];!e&&!s.visible||!s.name||n.push(s)}return n},t.prototype.checkTriggers=function(e,n,r,o){if(r===void 0&&(r=!1),!(this.isCompleted||this.triggers.length==0||this.isDisplayMode)){if(this.isTriggerIsRunning){this.triggerValues=this.getFilteredValues();for(var s in e)this.triggerKeys[s]=e[s];return}var u=!1;if(!r&&o&&this.hasRequiredValidQuestionTrigger){var d=this.getQuestionByValueName(o);u=d&&!d.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var y=this.getFilteredProperties(),V=this.canBeCompletedByTrigger,T=0;T<this.triggers.length;T++){var N=this.triggers[T];u&&N.requireValidQuestion||N.checkExpression(n,r,this.triggerKeys,this.triggerValues,y)}V!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,n,r){var o={};o[e]={newValue:n,oldValue:r},this.runConditionOnValueChanged(e,n),this.checkTriggers(o,!1,!1,e)},Object.defineProperty(t.prototype,"hasRequiredValidQuestionTrigger",{get:function(){for(var e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runExpressions=function(){this.runConditions()},t.prototype.runConditions=function(){if(!(this.isCompleted||this.isEndLoadingFromJson==="processing"||this.isRunningConditions)){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),n=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(n),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<I.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,n){this.isRunningConditions?(this.conditionValues[e]=n,this.questionTriggersKeys&&(this.questionTriggersKeys[e]=n),this.isValueChangedOnRunningCondition=!0):(this.questionTriggersKeys={},this.questionTriggersKeys[e]=n,this.runConditions(),this.runQuestionsTriggers(e,n),this.questionTriggersKeys=void 0)},t.prototype.runConditionsCore=function(e){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(var r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,e);i.prototype.runConditionCore.call(this,this.conditionValues,e);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,e)},t.prototype.runQuestionsTriggers=function(e,n){var r=this;if(!(this.isDisplayMode||this.isDesignMode)){var o=this.getAllQuestions();o.forEach(function(s){s.runTriggers(e,n,r.questionTriggersKeys)})}},t.prototype.checkIfNewPagesBecomeVisible=function(e){var n=this.pages.indexOf(this.currentPage);if(!(n<=e+1)){for(var r=e+1;r<n;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}}},t.prototype.sendResult=function(e,n,r){var o=this;if(e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=!1),!!this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),!!e&&(n&&(this.clientId=n),!(r&&!this.clientId)))){var s=this.createSurveyService();s.locale=this.getLocale();var u=this.surveyShowDataSaving||!r&&s.isSurveJSIOService;u&&this.setCompletedState("saving",""),s.sendResult(e,this.data,function(d,y,V){(u||s.isSurveJSIOService)&&(d?o.setCompletedState("success",""):o.setCompletedState("error",y));var T={success:d,response:y,request:V};o.onSendResult.fire(o,T)},this.clientId,r)}},t.prototype.getResult=function(e,n){var r=this;this.createSurveyService().getResult(e,n,function(o,s,u,d){r.onGetResult.fire(r,{success:o,data:s,dataList:u,response:d})})},t.prototype.loadSurveyFromService=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null),e&&(this.surveyId=e),n&&(this.clientId=n);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),n?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(o,s,u,d){o&&(r.isCompletedBefore=u=="completed",r.loadSurveyFromServiceJson(s)),r.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(o,s,u){o&&r.loadSurveyFromServiceJson(s),r.isLoading=!1})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)e[n].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(e){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson)){if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)}},t.prototype.updatePageElementsVisibleIndexes=function(e){if(this.showQuestionNumbers=="onPage")for(var n=e?[e]:this.visiblePages,r=0;r<n.length;r++)n[r].setVisibleIndex(0);else for(var o=this.getStartVisibleIndex(),s=0;s<this.pages.length;s++)o+=this.pages[s].setVisibleIndex(o)},t.prototype.getStartVisibleIndex=function(){return this.showQuestionNumbers=="on"?0:-1},t.prototype.updatePageVisibleIndexes=function(){this.updateButtonsVisibility();for(var e=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?e++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,n){if(e){this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;var r=new je;r.toObject(e,this,n),r.errors.length>0&&(this.jsonErrors=r.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&I.version&&h.compareVerions(this.sjsVersion,I.version)>0&&He.warn("The version of the survey JSON schema (v"+this.sjsVersion+") is newer than your current Form Library version ("+I.version+"). Please update the Form Library to make sure that all survey features work as expected.")}},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&e.locale&&(this.locale=e.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),i.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged("standard"),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.titleIsEmpty=this.locTitle.isEmpty,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new xt;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,n="sv-nav-btn",r=new xe({id:"sv-nav-start",visible:new De(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:n}),o=new xe({id:"sv-nav-prev",visible:new De(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:n}),s=new xe({id:"sv-nav-next",visible:new De(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:n}),u=new xe({id:"sv-nav-preview",visible:new De(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:n}),d=new xe({id:"sv-nav-complete",visible:new De(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute(function(){return e.tryComplete()})},component:n});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,o.innerCss=e.cssNavigationPrev,s.innerCss=e.cssNavigationNext,u.innerCss=e.cssNavigationPreview,d.innerCss=e.cssNavigationComplete},[r,o,s,u,d]},t.prototype.onBeforeRunConstructor=function(){},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var n=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||n&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if(e==="pageno"){var n=this.currentPage;return n!=null?this.visiblePages.indexOf(n)+1:0}if(e==="pagecount")return this.visiblePageCount;if(e==="correctedanswers"||e==="correctanswers"||e==="correctedanswercount")return this.getCorrectedAnswerCount();if(e==="incorrectedanswers"||e==="incorrectanswers"||e==="incorrectedanswercount")return this.getInCorrectedAnswerCount();if(e==="questioncount")return this.getQuizQuestionCount()},t.prototype.getProcessedTextValueCore=function(e){var n=e.name.toLocaleLowerCase();if(["no","require","title"].indexOf(n)===-1){var r=this.getBuiltInVariableValue(n);if(r!==void 0){e.isExists=!0,e.value=r;return}if(n==="locale"){e.isExists=!0,e.value=this.locale?this.locale:A.defaultLocale;return}var o=this.getVariable(n);if(o!==void 0){e.isExists=!0,e.value=o;return}var s=this.getFirstName(n);if(s){var u=s.useDisplayValuesInDynamicTexts;e.isExists=!0;var d=s.getValueName().toLowerCase();n=d+n.substring(d.length),n=n.toLocaleLowerCase();var y={};y[d]=e.returnDisplayValue&&u?s.getDisplayValue(!1,void 0):s.value,e.value=new Re().getValue(n,y);return}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var n=this.getValue(e.name);if(n!==void 0){e.isExists=!0,e.value=n;return}var r=new Re,o=r.getFirstName(e.name);if(o!==e.name){var s={},u=this.getValue(o);h.isValueEmpty(u)&&(u=this.getVariable(o)),!h.isValueEmpty(u)&&(s[o]=u,e.value=r.getValue(e.name,s),e.isExists=r.hasValue(e.name,s))}},t.prototype.getFirstName=function(e){e=e.toLowerCase();var n;do n=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e);while(!n&&e);return n},t.prototype.reduceFirstName=function(e){var n=e.lastIndexOf("."),r=e.lastIndexOf("[");if(n<0&&r<0)return"";var o=Math.max(n,r);return e.substring(0,o)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&o.isParentVisible&&!o.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){var n=this.getQuestionsByValueName(e);return n||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.clearInvisibleValues==="none"?"none":"onComplete",n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var n=this.variablesHash[e];return this.isValueEmpty(n)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&new Re().hasValue(e,this.variablesHash)?new Re().getValue(e,this.variablesHash):n},t.prototype.setVariable=function(e,n){if(e){var r=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=n,this.notifyElementsOnAnyValueOrVariableChanged(e),h.isTwoValueEquals(r,n)||(this.checkTriggersAndRunConditions(e,n,r),this.onVariableChanged.fire(this,{name:e,value:n}))}},t.prototype.getVariableNames=function(){var e=[];for(var n in this.variablesHash)e.push(n);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:h.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||e.length==0)return null;var n=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(n)},t.prototype.setValue=function(e,n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!0);var u=n;if(o&&(u=this.questionOnValueChanging(e,n)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,u))&&!(!this.editingObj&&this.isValueEqual(e,u)&&this.isTwoValueEquals(u,n))){var d=this.getValue(e);this.isValueEmpyOnSetValue(e,u)?this.deleteDataValueCore(this.valuesHash,e):(u=this.getUnbindValue(u),this.setDataValueCore(this.valuesHash,e,u)),this.updateOnSetValue(e,u,d,r,o,s)}},t.prototype.isValueEmpyOnSetValue=function(e,n){return this.isValueEmpty(n,!1)?!this.editingObj||n===null||n===void 0?!0:this.editingObj.getDefaultPropertyValue(e)===n:!1},t.prototype.updateOnSetValue=function(e,n,r,o,s,u){o===void 0&&(o=!1),s===void 0&&(s=!0),this.updateQuestionValue(e,n),!(o===!0||this.isDisposed||this.isRunningElementsBindings)&&(u=u||e,this.checkTriggersAndRunConditions(e,n,r),s&&this.notifyQuestionOnValueChanged(e,n,u),o!=="text"&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,n){(n===""||n===void 0)&&(n=null);var r=this.getValue(e);return(r===""||r===void 0)&&(r=null),n===null||r===null?n===r:this.isTwoValueEquals(n,r)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var n={page:e};this.onPageAdded.fire(this,n)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),!this.runningPages&&(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,n){for(var r={},o=0;o<e.length;o++)r[e[o].name]=!0;for(var s=1;r[n+s];)s++;return n+s},t.prototype.tryGoNextPageAutomatic=function(e){var n=this;if(!(this.isEndLoadingFromJson||!this.goNextPageAutomatic||!this.currentPage)){var r=this.getQuestionByValueName(e);if(!(!r||r&&(!r.visible||!r.supportGoNextPageAutomatic()))&&!(!r.validate(!1)&&!r.supportGoNextPageError())){if(this.currentSingleQuestion){var o=this.currentSingleQuestion,s=function(){o===n.currentSingleQuestion&&(n.isLastElement?n.allowCompleteSurveyAutomatic&&n.tryCompleteOrShowPreview():n.performNext())};fn.safeTimeOut(s,I.autoAdvanceDelay)}var u=this.getCurrentPageQuestions();if(!(u.indexOf(r)<0)){for(var d=0;d<u.length;d++)if(u[d].hasInput&&u[d].isEmpty())return;if(!(this.isLastPage&&(this.goNextPageAutomatic!==!0||!this.allowCompleteSurveyAutomatic))&&!this.checkIsCurrentPageHasErrors(!1)){var y=this.currentPage,V=function(){y===n.currentPage&&(n.isLastPage?n.tryCompleteOrShowPreview():n.nextPage())};fn.safeTimeOut(V,I.autoAdvanceDelay)}}}}},t.prototype.tryCompleteOrShowPreview=function(){this.isShowPreviewBeforeComplete?this.showPreview():this.tryComplete()},t.prototype.getComment=function(e){var n=this.getValue(e+this.commentSuffix);return n||""},t.prototype.setComment=function(e,n,r){if(r===void 0&&(r=!1),n||(n=""),!this.isTwoValueEquals(n,this.getComment(e))){var o=e+this.commentSuffix;n=this.questionOnValueChanging(o,n,e),this.isValueEmpty(n)?this.deleteDataValueCore(this.valuesHash,o):this.setDataValueCore(this.valuesHash,o,n);var s=this.getQuestionsByValueName(e);if(s)for(var u=0;u<s.length;u++)s[u].updateCommentFromSurvey(n),this.checkQuestionErrorOnValueChanged(s[u]);r||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),r!=="text"&&this.tryGoNextPageAutomatic(e);var d=this.getQuestionByValueName(e);d&&(this.fireOnValueChanged(o,n,d),d.comment=n,d.comment!=n&&(d.comment=n))}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":e!=="default"?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,n,r){r&&this.updateVisibleIndexes(e.page),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:n})},t.prototype.pageVisibilityChanged=function(e,n){this.isLoadingFromJson||((n&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:n}))},t.prototype.panelVisibilityChanged=function(e,n){this.updateVisibleIndexes(e.page),this.onPanelVisibleChanged.fire(this,{panel:e,visible:n})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||(this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!I.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,n,r){this.questionHashesRemoved(e,n,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var n=e.questions,r=0;r<n.length;r++)this.questionHashesAdded(n[r])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,n,r){n&&(this.questionHashRemovedCore(this.questionHashes.names,e,n),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,n.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,n,r){var o=e[r];if(o){var o=e[r];o.indexOf(n)<0&&o.push(n)}else e[r]=[n]},t.prototype.questionHashRemovedCore=function(e,n,r){var o=e[r];if(o){var s=o.indexOf(n);s>-1&&o.splice(s,1),o.length==0&&delete e[r]}},t.prototype.panelAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var n={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,n),n.error?new ot(n.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var n={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,n),n.error?new ot(n.error,this):null},t.prototype.processHtml=function(e,n){n||(n="");var r={html:e,reason:n};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,n){return this.processTextEx({text:e,returnDisplayValue:n,doEncoding:!1}).text},t.prototype.processTextEx=function(e){var n=e.doEncoding===void 0?I.web.encodeUrlParams:e.doEncoding,r=e.text;(e.runAtDesign||!this.isDesignMode)&&(r=this.textPreProcessor.process(r,e.returnDisplayValue===!0,n));var o={text:r,hasAllValuesOnLastRun:!0};return o.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,o},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new qt,this.textPreProcessorValue.onProcess=function(n){e.getProcessedTextValue(n)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getSurveyMarkdownHtml=function(e,n,r){var o={element:e,text:n,name:r,html:null};return this.onTextMarkdown.fire(this,o),o.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectAnswerCount()},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),n=0,r=0;r<e.length;r++)n+=e[r].quizQuestionCount;return n},t.prototype.getInCorrectedAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getIncorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,n){this.onIsAnswerCorrect.isEmpty||(n.question=e,this.onIsAnswerCorrect.fire(this,n))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var n=this.getQuizQuestions(),r=0,o=0;o<n.length;o++){var s=n[o],u=s.correctAnswerCount;e?r+=u:r+=s.quizQuestionCount-u}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.showTimer?this.timerLocation:"none"},set:function(e){this.showTimer=e!=="none",this.showTimer&&(this.timerLocation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimer",{get:function(){return this.getPropertyValue("showTimer")},set:function(e){this.setPropertyValue("showTimer",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerLocation",{get:function(){return this.getPropertyValue("timerLocation")},set:function(e){this.setPropertyValue("timerLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.showTimer&&this.timerLocation==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.showTimer&&this.timerLocation==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoMode",{get:function(){return this.getTimerInfoVal(this.getPropertyValue("timerInfoMode"))},set:function(e){this.setPropertyValue("timerInfoMode",e)},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoVal=function(e){return e==="all"?"combined":e},Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){var e=this.timerInfoMode;return e==="combined"?"all":e},set:function(e){this.timerInfoMode=this.getTimerInfoVal(e)},enumerable:!1,configurable:!0}),t.prototype.updateGridColumns=function(){this.pages.forEach(function(e){return e.updateGridColumns()})},Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.isLoadingFromJson||(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new De(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater)},t.prototype.calculateWidthMode=function(){if(this.widthMode=="auto"){var e=!1;return this.pages.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("calculatedWidthMode")=="static",n=this.getPropertyValue("width");if(this.isScaled&&this.responsiveStartWidth>1){var r=this.responsiveStartWidth;try{n=n||this.staticStartWidth,r=isNaN(n)?parseFloat(n.toString().replace("px","")):n}catch{}return(e?r:this.responsiveStartWidth)*this.widthScale/100+"px"}return n&&!isNaN(n)&&(n=n+"px"),e&&n||void 0},enumerable:!1,configurable:!0}),t.prototype.setStaticStartWidth=function(e){this.staticStartWidth=e},t.prototype.setResponsiveStartWidth=function(e){this.responsiveStartWidth=e},Object.defineProperty(t.prototype,"isScaled",{get:function(){return Math.abs(this.widthScale-100)>.001},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,n;if(this.currentPage){var r=this.getTimerInfo(),o=r.spent,s=r.limit,u=r.minorSpent,d=r.minorLimit;s>0?e=this.getDisplayClockTime(s-o):e=this.getDisplayClockTime(o),u!==void 0&&(d>0?n=this.getDisplayClockTime(d-u):n=this.getDisplayClockTime(u))}return{majorText:e,minorText:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var n=new gt(this,!0);return n.text=e.text,n.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var n=e.timeSpent,r=this.timeSpent,o=e.getMaxTimeToFinish(),s=this.timeLimit;return this.timerInfoMode=="page"?{spent:n,limit:o}:this.timerInfoMode=="survey"?{spent:r,limit:s}:o>0&&s>0?{spent:n,limit:o,minorSpent:r,minorLimit:s}:o>0?{spent:n,limit:o,minorSpent:r}:s>0?{spent:r,limit:s,minorSpent:n}:{spent:n,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var n=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),o=e.getMaxTimeToFinish(),s=this.getDisplayTime(o),u=this.getDisplayTime(this.timeLimit);if(this.timerInfoMode=="page")return this.getTimerInfoPageText(e,n,s);if(this.timerInfoMode=="survey")return this.getTimerInfoSurveyText(r,u);if(this.timerInfoMode=="combined"){if(o<=0&&this.timeLimit<=0)return this.getLocalizationFormatString("timerSpentAll",n,r);if(o>0&&this.timeLimit>0)return this.getLocalizationFormatString("timerLimitAll",n,s,r,u);var d=this.getTimerInfoPageText(e,n,s),y=this.getTimerInfoSurveyText(r,u);return d+" "+y}return""},t.prototype.getTimerInfoPageText=function(e,n,r){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString("timerLimitPage",n,r):this.getLocalizationFormatString("timerSpentPage",n,r)},t.prototype.getTimerInfoSurveyText=function(e,n){var r=this.timeLimit>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,n)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var n=Math.floor(e/60),r=e%60,o=r.toString();return r<10&&(o="0"+o),n+":"+o},t.prototype.getDisplayTime=function(e){var n=Math.floor(e/60),r=e%60,o="";return n>0&&(o+=n+" "+this.getLocalizationString("timerMin")),o&&r==0?o:(o&&(o+=" "),o+r+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.isEditMode&&this.timerModel.start()},t.prototype.startTimerFromUI=function(){this.showTimer&&this.state==="running"&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimitPerPage",{get:function(){return this.getPropertyValue("timeLimitPerPage",0)},set:function(e){this.setPropertyValue("timeLimitPerPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.timeLimitPerPage},set:function(e){this.timeLimitPerPage=e},enumerable:!1,configurable:!0}),t.prototype.doTimer=function(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var n=e.getMaxTimeToFinish();n>0&&n==e.timeSpent&&(this.isLastPage?this.tryComplete():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,n){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(n)),r},t.prototype.setTriggerValue=function(e,n,r){if(e)if(r)this.setVariable(e,n);else{var o=this.getQuestionByName(e);if(this.startSetValueFromTrigger(),o)o.value=n;else{var s=new Re,u=s.getFirstName(e);if(u==e)this.setValue(e,n);else{if(!this.getQuestionByName(u))return;var d=this.getUnbindValue(this.getFilteredValues());s.setValue(d,e,n),this.setValue(u,d[u])}}this.finishSetValueFromTrigger()}},t.prototype.copyTriggerValue=function(e,n,r){if(!(!e||!n)){var o;if(r)o=this.processText("{"+n+"}",!0);else{var s=new Re;o=s.getValue(n,this.getFilteredValues())}this.setTriggerValue(e,o,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},Object.defineProperty(t.prototype,"isSettingValueFromTrigger",{get:function(){return this.setValueFromTriggerCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueFromTrigger=function(){this.setValueFromTriggerCounter++},t.prototype.finishSetValueFromTrigger=function(){this.setValueFromTriggerCounter--},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},Object.defineProperty(t.prototype,"isQuestionDragging",{get:function(){return this.isMovingQuestion},enumerable:!1,configurable:!0}),t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,n){var r;if(n===void 0&&(n=!1),!e||!e.isVisible||!e.page)return!1;var o=(r=this.focusingQuestionInfo)===null||r===void 0?void 0:r.question;if(o===e)return!1;this.focusingQuestionInfo={question:e,onError:n},this.skippedPages.push({from:this.currentPage,to:e.page});var s=this.activePage!==e.page&&!e.page.isStartPage;return s&&(this.currentPage=e.page,this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleQuestion=e)),s||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,n=(e=this.focusingQuestionInfo)===null||e===void 0?void 0:e.question;n&&!n.isDisposed&&n.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,n){var r=this.enterKeyAction||I.enterKeyAction;if(r=="loseFocus"&&n.target.blur(),r=="moveToNextEditor"){var o=this.currentPage.questions,s=o.indexOf(e);s>-1&&s<o.length-1?o[s+1].focus():n.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,n,r,o,s){if(this.onElementWrapperComponentName.isEmpty)return e;var u={componentName:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentName.fire(this,u),u.componentName},t.prototype.elementWrapperDataCore=function(e,n,r,o,s){if(this.onElementWrapperComponentData.isEmpty)return e;var u={data:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentData.fire(this,u),u.data},t.prototype.getElementWrapperComponentName=function(e,n){var r=n==="logo-image"?"sv-logo-image":t.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(r,e,"component",n)},t.prototype.getQuestionContentWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"content-component")},t.prototype.getRowWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"row")},t.prototype.getItemValueWrapperComponentName=function(e,n){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,n,"itemvalue",void 0,e)},t.prototype.getElementWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,e,"component",n)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,n,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var n=e.question;return this.elementWrapperDataCore(n,n,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var n=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,n);return n},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var n=this.removeLayoutElement(e.id);return this.layoutElements.push(e),n},t.prototype.findLayoutElement=function(e){var n=this.layoutElements.filter(function(r){return r.id===e})[0];return n},t.prototype.removeLayoutElement=function(e){var n=this.findLayoutElement(e);if(n){var r=this.layoutElements.indexOf(n);this.layoutElements.splice(r,1)}return n},t.prototype.getContainerContent=function(e){for(var n=[],r=0,o=this.layoutElements;r<o.length;r++){var s=o[r];if(this.mode!=="display"&&hn(s.id,"timerpanel"))e==="header"&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&n.push(s),e==="footer"&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&n.push(s);else if(this.state==="running"&&hn(s.id,this.progressBarComponentName)){if(this.questionsOnPageMode!="singlePage"||this.progressBarType=="questions"){var u=this.findLayoutElement("advanced-header"),d=u&&u.data,y=!d||d.hasBackground;hn(this.showProgressBar,"aboveHeader")&&(y=!1),hn(this.showProgressBar,"belowHeader")&&(y=!0),e==="header"&&!y&&(s.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="center"&&y&&(s.index&&delete s.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="footer"&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&n.push(s)}}else hn(s.id,"buttons-navigation")?(e==="contentTop"&&["top","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s),e==="contentBottom"&&["bottom","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s)):this.state==="running"&&hn(s.id,"toc-navigation")&&this.showTOC?(e==="left"&&["left","both"].indexOf(this.tocLocation)!==-1&&n.push(s),e==="right"&&["right","both"].indexOf(this.tocLocation)!==-1&&n.push(s)):hn(s.id,"advanced-header")?(this.state==="running"||this.state==="starting"||this.showHeaderOnCompletePage===!0&&this.state==="completed")&&s.container===e&&n.push(s):(Array.isArray(s.container)&&s.container.indexOf(e)!==-1||s.container===e)&&n.push(s)}return n.sort(function(V,T){return(V.index||0)-(T.index||0)}),n},t.prototype.processPopupVisiblityChanged=function(e,n,r){this.onPopupVisibleChanged.fire(this,{question:e,popup:n,visible:r})},t.prototype.processOpenDropdownMenu=function(e,n){var r=Object.assign({question:e},n);this.onOpenDropdownMenu.fire(this,r),n.menuType=r.menuType},t.prototype.getCssTitleExpandableSvg=function(){return null},t.prototype.applyTheme=function(e){var n=this;if(e){if(Object.keys(e).forEach(function(o){o!=="header"&&(o==="isPanelless"?n.isCompact=e[o]:n[o]=e[o])}),this.headerView==="advanced"||"header"in e){this.removeLayoutElement("advanced-header");var r=new Co;r.fromTheme(e),this.insertAdvancedHeader(r)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach(function(n){return n.themeChanged(e)})},t.prototype.dispose=function(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var e=0;e<this.layoutElements.length;e++)this.layoutElements[e].data&&this.layoutElements[e].data!==this&&this.layoutElements[e].data.dispose&&this.layoutElements[e].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(i.prototype.dispose.call(this),this.editingObj=null,!!this.pages){this.currentPage=null;for(var e=0;e<this.pages.length;e++)this.pages[e].setSurveyImpl(void 0),this.pages[e].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype._isElementShouldBeSticky=function(e){if(!e)return!1;var n=this.rootElement.querySelector(e);return n?this.rootElement.scrollTop>0&&n.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y:!1},t.prototype.onScroll=function(){this.rootElement&&(this._isElementShouldBeSticky(".sv-components-container-center")?this.rootElement.classList&&this.rootElement.classList.add("sv-root--sticky-top"):this.rootElement.classList&&this.rootElement.classList.remove("sv-root--sticky-top")),this.onScrollCallback&&this.onScrollCallback()},t.prototype.addScrollEventListener=function(){var e=this,n;this.scrollHandler=function(){e.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((n=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||n===void 0||n.addEventListener("scroll",this.scrollHandler))},t.prototype.removeScrollEventListener=function(){var e;this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||e===void 0||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.platform="unknown",Ee([x()],t.prototype,"completedCss",void 0),Ee([x()],t.prototype,"completedBeforeCss",void 0),Ee([x()],t.prototype,"loadingBodyCss",void 0),Ee([x()],t.prototype,"containerCss",void 0),Ee([x({onSet:function(e,n){n.updateCss()}})],t.prototype,"fitToContainer",void 0),Ee([x({onSet:function(e,n){if(e==="advanced"){var r=n.findLayoutElement("advanced-header");if(!r){var o=new Co;o.logoPositionX=n.logoPosition==="right"?"right":"left",o.logoPositionY="middle",o.titlePositionX=n.logoPosition==="right"?"left":"right",o.titlePositionY="middle",o.descriptionPositionX=n.logoPosition==="right"?"left":"right",o.descriptionPositionY="middle",n.insertAdvancedHeader(o)}}else n.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),Ee([x()],t.prototype,"showBrandInfo",void 0),Ee([x()],t.prototype,"enterKeyAction",void 0),Ee([x()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),Ee([x({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),Ee([x({defaultValue:{}})],t.prototype,"cssVariables",void 0),Ee([x()],t.prototype,"_isMobile",void 0),Ee([x()],t.prototype,"_isCompact",void 0),Ee([x({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImage",void 0),Ee([x()],t.prototype,"renderBackgroundImage",void 0),Ee([x()],t.prototype,"backgroundImageFit",void 0),Ee([x({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),Ee([x()],t.prototype,"backgroundImageStyle",void 0),Ee([x()],t.prototype,"wrapperFormCss",void 0),Ee([x({getDefaultValue:function(e){return e.progressBarType==="buttons"}})],t.prototype,"progressBarShowPageTitles",void 0),Ee([x()],t.prototype,"progressBarShowPageNumbers",void 0),Ee([x()],t.prototype,"progressBarInheritWidthFrom",void 0),Ee([x({defaultValue:!0})],t.prototype,"validationEnabled",void 0),Ee([x()],t.prototype,"rootCss",void 0),Ee([x({onSet:function(e,n){n.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),Ee([x()],t.prototype,"calculatedWidthMode",void 0),Ee([x({defaultValue:100,onSet:function(e,n,r){n.pages.forEach(function(o){return o.updateRootStyle()})}})],t.prototype,"widthScale",void 0),Ee([x()],t.prototype,"staticStartWidth",void 0),Ee([x()],t.prototype,"responsiveStartWidth",void 0),Ee([me()],t.prototype,"layoutElements",void 0),t}(ir);function hn(i,t){return!i||!t?!1:i.toUpperCase()===t.toUpperCase()}j.addClass("survey",[{name:"locale",choices:function(){return A.getLocales(!0)},onGetValue:function(i){return i.locale==A.defaultLocale?null:i.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo:file",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean"},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem",isArray:!0},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page",isArray:!0,onSerializeValue:function(i){return i.originalPages||i.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(i){return null},onSetValue:function(i,t,e){i.pages.splice(0,i.pages.length);var n=i.addNewPage("");e.toObject({questions:t},n,e==null?void 0:e.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"sjsVersion",visible:!1},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0,visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem",isArray:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},{name:"matrixDragHandleArea",visible:!1,default:"entireItem",choices:["entireItem","icon"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","auto","aboveheader","belowheader","bottom","topbottom"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions"],visibleIf:function(i){return i.showProgressBar!=="off"}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(i){return!!i&&i.showTOC}},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(i,t){t!=="autogonext"&&(t=h.isTwoValueEquals(t,!0)),i.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(i){return i.goNextPageAutomatic===!0}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"validateVisitedEmptyFields:boolean",dependsOn:"checkErrorsMode",visibleIf:function(i){return i.checkErrorsMode==="onValueChanged"}},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"commentAreaRows:number",minValue:1},{name:"startSurveyText",serializationProperty:"locStartSurveyText",visibleIf:function(i){return i.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(i){return i.showNavigationButtons!=="none"&&i.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(i){return!i||i.showQuestionNumbers!=="off"}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(i){return i?i.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["standard","singlePage","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"showTimer:boolean"},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timeLimitPerPage:number",alternativeName:"maxTimeToFinishPage",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timerLocation",default:"top",choices:["top","bottom"],enableIf:function(i){return i.showTimer}},{name:"timerInfoMode",alternativeName:"showTimerPanelMode",default:"combined",choices:["page","survey","combined"],enableIf:function(i){return i.showTimer}},{name:"showTimerPanel",visible:!1,isSerializable:!1},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"gridLayoutEnabled:boolean",default:!1},{name:"width",visibleIf:function(i){return i.widthMode==="static"}},{name:"fitToContainer:boolean",default:!0,visible:!1},{name:"headerView",default:"basic",choices:["basic","advanced"],visible:!1},{name:"backgroundImage:file",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}]);var Za=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ts=function(i){Za(t,i);function t(e){var n=i.call(this,e)||this;n.otherItemValue=new re("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n._renderedChoices=[],n.renderedChoicesAnimation=new Nt(n.getRenderedChoicesAnimationOptions(),function(o){n._renderedChoices=o,n.renderedChoicesChangedCallback&&n.renderedChoicesChangedCallback()},function(){return n._renderedChoices}),n.headItemsCount=0,n.footItemsCount=0,n.prevIsOtherSelected=!1,n.noneItemValue=n.createDefaultItem(I.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(I.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(I.dontKnowItemValue,"dontKnowText","dontKnowItemText"),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],function(){n.filterItems()||n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem","showRefuseItem","showDontKnowItem","isUsingRestful","isMessagePanelVisible"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],function(){n.onVisibleChanged()}),n.createNewArray("visibleChoices",function(){return n.updateRenderedChoices()},function(){return n.updateRenderedChoices()}),n.setNewRestfulProperty();var r=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(r),n.choicesByUrl.createItemValue=function(o){return n.createItemValue(o)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(o){n.onLoadChoicesFromUrl(o)},n.choicesByUrl.updateResultCallback=function(o,s){return n.survey?n.survey.updateChoicesFromServer(n,o,s):o},n}return Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&this.hasChoicesUrl},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){i.prototype.dispose.call(this);var e=this.getQuestionWithChoices();e&&e.removeDependedQuestion(this)},Object.defineProperty(t.prototype,"otherTextAreaModel",{get:function(){return this.otherTextAreaModelValue||(this.otherTextAreaModelValue=new Fn(this.getOtherTextAreaOptions())),this.otherTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getOtherTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.otherId},propertyName:"otherValue",className:function(){return e.cssClasses.other},placeholder:function(){return e.otherPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},maxLength:function(){return e.getOthersMaxLength()},autoGrow:function(){return e.survey&&e.survey.autoGrowComment},ariaRequired:function(){return e.ariaRequired||e.a11y_input_ariaRequired},ariaLabel:function(){return e.ariaLabel||e.a11y_input_ariaLabel},getTextValue:function(){return e.otherValue},onTextAreaChange:function(r){e.onOtherValueChange(r)},onTextAreaInput:function(r){e.onOtherValueInput(r)}};return n},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,n){var r=j.createClass(this.getItemValueType(),{value:e});return r.locOwner=this,n&&(r.text=n),r},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,n){var r=e?"select":n?"array":void 0;this.setPropertyValue("carryForwardQuestionType",r)},Object.defineProperty(t.prototype,"isUsingRestful",{get:function(){return this.getPropertyValueWithoutDefault("isUsingRestful")||!1},enumerable:!1,configurable:!0}),t.prototype.updateIsUsingRestful=function(){this.setPropertyValueDirectly("isUsingRestful",this.hasChoicesUrl)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.choicesOrder!=="none"&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(re.locStrsChanged(this.choicesFromUrl),re.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&re.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var n=this.otherValue;e!==n&&(this.prevOtherErrorValue=n)},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.updatePrevOtherErrorValue(e),this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRefuseItem",{get:function(){return this.getPropertyValue("showRefuseItem")},set:function(e){this.setPropertyValue("showRefuseItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseItem",{get:function(){return this.refuseItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseText",{get:function(){return this.getLocalizableStringText("refuseText")},set:function(e){this.setLocalizableStringText("refuseText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRefuseText",{get:function(){return this.getLocalizableString("refuseText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDontKnowItem",{get:function(){return this.getPropertyValue("showDontKnowItem")},set:function(e){this.setPropertyValue("showDontKnowItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowItem",{get:function(){return this.dontKnowItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowText",{get:function(){return this.getLocalizableStringText("dontKnowText")},set:function(e){this.setLocalizableStringText("dontKnowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDontKnowText",{get:function(){return this.getLocalizableString("dontKnowText")},enumerable:!1,configurable:!0}),t.prototype.createDefaultItem=function(e,n,r){var o=new re(e),s=this.createLocalizableString(n,o,!0,r);return o.locOwner=this,o.setLocText(s),o},Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n),this.choices.forEach(function(r){r.runConditionCore(e,n)})},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0;var e=this.comment;i.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&e!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(e==null||e==null)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),n=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n)},t.prototype.runItemsCondition=function(e,n){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,n);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,n){var r=this;this.setConditionalEnableChoicesRunner();var o=re.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,n,function(s,u){return u&&r.onEnableItemCallBack(s)});o&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.survey)===null||n===void 0||n.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.waitingChoicesByURL?this.createItemValue(e,n):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var n=re.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(n),!n&&(!e||this.value!=e.id)&&this.updateSelectedItemValues(),n||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new Ue(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new Ue(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisibility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(n,r){return e.survey.getChoiceItemVisibility(e,n,r)}:null},t.prototype.runConditionsForItems=function(e,n){this.filteredChoicesValue=[];var r=this.changeItemVisibility();return re.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,n,!this.survey||!this.survey.areInvisibleElementsShowing,function(o,s){return r?r(o,s):s})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,n){return e===n.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new H},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?i.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?i.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){e&&(this.prevIsOtherSelected=!0),this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(e){if(this.updatePrevOtherErrorValue(e),this.showCommentArea){i.prototype.setQuestionComment.call(this,e);return}this.onUpdateCommentOnAutoOtherMode(e),this.getStoreOthersAsComment()?i.prototype.setQuestionComment.call(this,e):this.setOtherValueInternally(e),this.updateChoicesDependedQuestions()},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var n=this.isOtherSelected;(!n&&e||n&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){!this.isSettingComment&&e!=this.otherValueCore&&(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(e){i.prototype.clearValue.call(this,e),this.prevOtherValue=void 0,this.selectedItemValues=void 0},t.prototype.updateCommentFromSurvey=function(e){i.prototype.updateCommentFromSurvey.call(this,e),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(n){if(!this.isReadOnlyAttr){this.setPropertyValue("renderedValue",n);var n=this.rendredValueToData(n);this.isTwoValueEquals(n,this.value)||(this.value=n)}},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(e,n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,e))&&(i.prototype.setQuestionValue.call(this,e,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(e)),this.updateChoicesDependedQuestions(),!(this.hasComment||!r))){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var s=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=s}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(e){i.prototype.setValueCore.call(this,e),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(e){e=this.valueFromData(e),(!this.choicesByUrl.isRunning&&!this.choicesByUrl.isWaitingForParameters||!this.isValueEmpty(e))&&(this.cachedValueForUrlRequests=e),i.prototype.setNewValue.call(this,e)},t.prototype.valueFromData=function(e){var n=re.getItemByValue(this.activeChoices,e);return n?n.value:i.prototype.valueFromData.call(this,e)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!e||(e=e.trim(),!e)?!1:this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!(this.waitingGetChoiceDisplayValueResponse||!this.survey||this.isEmpty())){var n=this.value,r=Array.isArray(n)?n:[n],o=r.some(function(s){return!re.getItemByValue(e.choices,s)});o&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:r,setItems:function(s){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];if(e.waitingGetChoiceDisplayValueResponse=!1,!s||!s.length){e.updateIsReady();return}var y=s.map(function(V,T){return e.createItemValue(r[T],V)});e.setCustomValuesIntoItems(y,u),Array.isArray(n)?e.selectedItemValues=y:e.selectedItemValues=y[0],e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,n){!Array.isArray(n)||n.length===0||n.forEach(function(r){var o=r.values,s=r.propertyName;if(Array.isArray(o))for(var u=0;u<e.length&&u<o.length;u++)e[u][s]=o[u]})},t.prototype.hasUnknownValue=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,n,r,o);for(var s=0;s<e.length;s++)if(this.hasUnknownValueItem(e,n,r,o))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!o&&this.isValueEmpty(e)||n&&e==this.otherItem.value||this.showNoneItem&&e==this.noneItem.value||this.showRefuseItem&&e==this.refuseItem.value||this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var s=r?this.getFilteredChoices():this.activeChoices;return re.getItemByValue(s,e)==null},t.prototype.isValueDisabled=function(e){var n=re.getItemByValue(this.getFilteredChoices(),e);return!!n&&!n.isEnabled},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibleChoices()},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var n=this.getQuestionWithChoices();this.isLockVisibleChoices=!!n&&n.name===e,n&&n.name!==e&&(n.removeDependedQuestion(this),this.isInDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue("choicesFromQuestion",void 0)),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){e=e.toLowerCase(),e!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++)n[r].isEnabled&&e.push(n[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!(this.isLoadingFromJson||this.isDisposed)){var e=new Array,n=this.calcVisibleChoices();n||(n=[]);for(var r=0;r<n.length;r++)e.push(n[r]);var o=this.visibleChoices;(!this.isTwoValueEquals(o,e)||this.choicesLazyLoadEnabled)&&(this.setArrayPropertyDirectly("visibleChoices",e),this.updateRenderedChoices())}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.showNoneItem&&!this.showRefuseItem&&!this.showDontKnowItem&&!this.hasOther&&this.choicesOrder=="none"},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,n){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,n);var r=new Array;this.addNonChoicesItems(r,n),r.sort(function(u,d){return u.index===d.index?0:u.index<d.index?-1:1});for(var o=0;o<r.length;o++){var s=r[o];s.index<0?(e.splice(o,0,s.item),this.headItemsCount++):(e.push(s.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,n){var r=this;n&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",function(){r.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,n,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,n){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,n,this.showNoneItem,I.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,n,this.showRefuseItem,I.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,n,this.showDontKnowItem,I.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,n,this.hasOther,I.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,n,r,o,s){this.canShowOptionItem(n,r,o)&&s.forEach(function(u){return e.push({index:u,item:n})})},t.prototype.canShowOptionItem=function(e,n,r){var o=n&&(this.canShowOptionItemCallback?this.canShowOptionItemCallback(e):!0)||r;if(this.canSurveyChangeItemVisibility()){var s=this.changeItemVisibility();return s(e,o)}return o},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.showNoneItem:e===this.refuseItem?this.showRefuseItem:e===this.dontKnowItem?this.showDontKnowItem:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return I.showDefaultItemsInCreatorV2&&this.isInDesignModeV2&&!this.customWidget},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0,includeQuestionTypes:!1});var r=i.prototype.getPlainData.call(this,e);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map(function(s,u){var d=re.getItemByValue(n.visibleChoices,s),y={name:u,title:"Choice",value:s,displayValue:n.getChoicesDisplayValue(n.visibleChoices,s),getString:function(V){return typeof V=="object"?JSON.stringify(V):V},isNode:!1};return d&&(e.calculations||[]).forEach(function(V){y[V.propertyName]=d[V.propertyName]}),n.isOtherSelected&&n.otherItemValue===d&&(y.isOther=!0,y.displayValue=n.otherValue),y}))}return r},t.prototype.getDisplayValueCore=function(e,n){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,n):n},t.prototype.getDisplayValueEmpty=function(){return re.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,n){if(n==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=this.getSingleSelectedItem();if(r&&this.isTwoValueEquals(r.value,n))return r.locText.textOrHtml;var o=re.getTextOrHtmlByValue(e,n);return o==""&&n?n:o},t.prototype.getDisplayArrayValue=function(e,n,r){for(var o=this,s=this.visibleChoices,u=[],d=[],y=0;y<n.length;y++)d.push(r?r(y):n[y]);if(h.isTwoValueEquals(this.value,d)&&this.getMultipleSelectedItems().forEach(function(T,N){return u.push(o.getItemDisplayValue(T,d[N]))}),u.length===0)for(var y=0;y<d.length;y++){var V=this.getChoicesDisplayValue(s,d[y]);V&&u.push(V)}return u.join(I.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,n){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&n)return n;if(this.comment)return this.comment}return e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return this.carryForwardQuestionType==="select"?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):this.carryForwardQuestionType==="array"?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMessagePanelVisible",{get:function(){return this.getPropertyValue("isMessagePanelVisible",!1)},set:function(e){this.setPropertyValue("isMessagePanelVisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyActiveChoicesInDesign",{get:function(){return this.isInDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var n=this.findCarryForwardQuestion(e),r=this.getQuestionWithChoicesCore(n),o=r?null:this.getQuestionWithArrayValue(n);return this.setCarryForwardQuestionType(!!r,!!o),r||o?n:null},t.prototype.getIsReadyDependsOn=function(){var e=i.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&e.push(this.carryForwardQuestion),e},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return e||(e=this.data),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&j.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isInDesignMode)return[];var n=e.value;if(!Array.isArray(n))return[];for(var r=[],o=0;o<n.length;o++){var s=n[o];if(h.isValueObject(s)){var u=this.getValueKeyName(s);if(u&&!this.isValueEmpty(s[u])){var d=this.choiceTextsFromQuestion?s[this.choiceTextsFromQuestion]:void 0;r.push(this.createItemValue(s[u],d))}}}return r},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var n=Object.keys(e);return n.length>0?n[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isInDesignMode)return[];for(var n=[],r=this.choicesFromQuestionMode=="selected"?!0:this.choicesFromQuestionMode=="unselected"?!1:void 0,o=e.visibleChoices,s=0;s<o.length;s++)if(!e.isBuiltInChoice(o[s])){if(r===void 0){n.push(this.copyChoiceItem(o[s]));continue}var u=e.isItemSelected(o[s]);(u&&r||!u&&!r)&&n.push(this.copyChoiceItem(o[s]))}return this.choicesFromQuestionMode==="selected"&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&n.push(this.createItemValue(e.otherItem.value,e.comment)),n},t.prototype.copyChoiceItem=function(e){var n=this.createItemValue(e.value);return n.setData(e),n},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;(!e||e.length==0)&&(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var n=0;n<e.length;n++)if(!this.isBuiltInChoice(e[n]))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return this.isNoneItem(e)||e===this.otherItem||e===this.newItemValue},t.prototype.isNoneItem=function(e){return this.getNoneItems().indexOf(e)>-1},t.prototype.getNoneItems=function(){return[this.noneItem,this.refuseItem,this.dontKnowItem]},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.supportRefuse=function(){return this.isSupportProperty("showRefuseItem")},t.prototype.supportDontKnow=function(){return this.isSupportProperty("showDontKnowItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!(!this.hasOther||!this.isOtherSelected||this.otherValue||n&&!this.prevOtherErrorValue)){var s=new no(this.otherErrorText,this);s.onUpdateErrorTextCallback=function(u){u.text=o.otherErrorText},e.push(s)}},t.prototype.setSurveyImpl=function(e,n){this.isRunningChoices=!0,i.prototype.setSurveyImpl.call(this,e,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(e){i.prototype.setSurveyCore.call(this,e),e&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return this.isSettingDefaultValue||this.showCommentArea?!1:this.storeOthersAsComment===!0||this.storeOthersAsComment=="default"&&(this.survey!=null?this.survey.storeOthersAsComment:!0)||this.hasChoicesUrl&&!this.choicesFromUrl},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),i.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),e!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;e&&r&&(e===r||n===r)&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(e,n){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(e)&&!this.getHasOther(e)?(r=this.getCommentFromValue(e),e=this.setOtherValueIntoValue(e)):this.data&&(r=this.data.getComment(this.getValueName()))),i.prototype.updateValueFromSurvey.call(this,e,n),(this.isRunningChoices||this.choicesByUrl.isRunning)&&!this.isEmpty()&&(this.cachedValueForUrlRequests=this.value),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.updateIsUsingRestful(),!(!this.choicesByUrl||this.isLoadingFromJson||this.isRunningChoices||this.isInDesignModeV2)){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){I.web.disableQuestionWhileLoadingChoices===!0&&!this.isReadOnly&&(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var n=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&n.push(this.choicesByUrl.error);var r=null,o=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,o=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var s=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,o);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=new Array,re.setData(r,e)),r)for(var u=0;u<r.length;u++)r[u].locOwner=this;this.setChoicesFromUrl(r,n,s)},t.prototype.canAvoidSettChoicesFromUrl=function(e){if(this.isFirstLoadChoicesFromUrl)return!1;var n=!e||Array.isArray(e)&&e.length===0;return n&&!this.isEmpty()?!1:h.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,n,r){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var o=this.updateCachedValueForUrlRequests(r,e);if(o&&!this.isReadOnly){var s=!this.isTwoValueEquals(this.value,o.value);try{this.isValueEmpty(o.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=s,s?this.value=o.value:this.setQuestionValue(o.value)}finally{this.allowNotifyValueChanged=!0}}}!this.isReadOnly&&!e&&!this.isFirstLoadChoicesFromUrl&&(this.value=null),this.errors=n,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++)r.push(this.createCachedValueForUrlRequests(e[o],!0));return r}var s=n?!this.hasUnknownValue(e):!0;return{value:e,isExists:s}},t.prototype.updateCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++){var s=this.updateCachedValueForUrlRequests(e[o],n);if(s&&!this.isValueEmpty(s.value)){var u=s.value,y=re.getItemByValue(n,s.value);y&&(u=y.value),r.push(u)}}return{value:r}}var d=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,y=re.getItemByValue(n,d);return y&&(d=y.value),{value:d}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var e=i.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!e)return e;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isInDesignMode)return e;var n=this.choicesOrder.toLowerCase();return n=="asc"?this.sortArray(e,1):n=="desc"?this.sortArray(e,-1):n=="random"?this.randomizeArray(e):e},t.prototype.sortArray=function(e,n){return e.sort(function(r,o){return h.compareStrings(r.calculatedText,o.calculatedText)*n})},t.prototype.randomizeArray=function(e){return h.randomizeArray(e)},Object.defineProperty(t.prototype,"hasChoicesUrl",{get:function(){return this.choicesByUrl&&!!this.choicesByUrl.url},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(){!this.hasValueToClearIncorrectValues()||!this.canClearIncorrectValues()||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.canClearIncorrectValues=function(){return!(this.carryForwardQuestion&&!this.carryForwardQuestion.isReady||this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1||this.hasChoicesUrl&&(!this.choicesFromUrl||this.choicesFromUrl.length==0))},t.prototype.hasValueToClearIncorrectValues=function(){return this.survey&&this.survey.keepIncorrectValues?!1:!this.keepIncorrectValues&&!this.isEmpty()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){!this.survey||!this.survey.clearValueOnDisableItems||this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)},t.prototype.canClearValueAnUnknown=function(e){return!this.getStoreOthersAsComment()&&this.isOtherSelected?!1:this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){i.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),!this.showCommentArea&&!this.getStoreOthersAsComment()&&!this.isOtherSelected&&(this.comment="")},t.prototype.getColumnClass=function(){return new _().append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var n={item:e},r=this.getItemClassCore(e,n);return n.css=r,this.survey&&this.survey.updateChoiceItemCss(this,n),n.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,n){var r=new _().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&this.colCount===0).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&this.colCount!==0).append(this.cssClasses.itemOnError,this.hasCssError()),o=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),s=o[0],u=o[1],d=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,y=!u&&!d&&!(this.survey&&this.survey.isDesignMode),V=e===this.noneItem;return n.isDisabled=u||s,n.isChecked=d,n.isNone=V,r.append(this.cssClasses.itemDisabled,u).append(this.cssClasses.itemReadOnly,s).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,d).append(this.cssClasses.itemHover,y).append(this.cssClasses.itemNone,V).toString()},t.prototype.getLabelClass=function(e){return new _().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new _().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},t.prototype.updateRenderedChoices=function(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices},t.prototype.getRenderedChoicesAnimationOptions=function(){var e=this;return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getKey:function(n){return n!=e.newItemValue?n.value:e.newItemValue},getLeaveOptions:function(n){var r=e.cssClasses.itemLeave;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:Vt,onAfterRunAnimation:Xe}},getAnimatedElement:function(n){return n.getRootElement()},getEnterOptions:function(n){var r=e.cssClasses.itemEnter;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:function(s){if(e.getCurrentColCount()==0&&e.bodyItems.indexOf(n)>=0){var u=s.parentElement.firstElementChild.offsetLeft;s.offsetLeft>u&&un(s,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}Vt(s)},onAfterRunAnimation:Xe}}}},Object.defineProperty(t.prototype,"renderedChoices",{get:function(){return this._renderedChoices},set:function(e){this.renderedChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,n=[],r=0;r<e;r++)this.renderedChoices[r]&&n.push(this.renderedChoices[r]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,n=[],r=this.renderedChoices,o=0;o<e;o++)this.renderedChoices[r.length-e+o]&&n.push(this.renderedChoices[r.length-e+o]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.renderedChoices.filter(function(n){return!e.isBuiltInChoice(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],n=this.getCurrentColCount();if(this.hasColumns&&this.renderedChoices.length>0){var r=!this.separateSpecialChoices&&!this.isInDesignMode?this.renderedChoices:this.dataChoices;if(I.showItemsInOrder=="column")for(var o=0,s=r.length%n,u=0;u<n;u++){for(var d=[],y=o;y<o+Math.floor(r.length/n);y++)d.push(r[y]);s>0&&(s--,d.push(r[y]),y++),o=y,e.push(d)}else for(var u=0;u<n;u++){for(var d=[],y=u;y<r.length;y+=n)d.push(r[y]);e.push(d)}}return e},enumerable:!1,configurable:!0}),t.prototype.getItemsColumnKey=function(e){return(e||[]).map(function(n){return n.value||""}).join("")},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return this.getCurrentColCount()==0&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return this.getCurrentColCount()==0&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var n=this.survey;return n?n.getItemValueWrapperComponentName(e,this):dn.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var n=this.survey;return n?n.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return new _().append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isDisabledAttr&&e.isEnabled},t.prototype.focusOtherComment=function(){var e;_e.FocusElement(this.otherId,!1,(e=this.survey)===null||e===void 0?void 0:e.rootElement)},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),!this.isDesignMode&&!this.prevIsOtherSelected&&this.isOtherSelected&&this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),wo([x({onSet:function(e,n){n.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),wo([x()],t.prototype,"separateSpecialChoices",void 0),wo([x({localizable:!0})],t.prototype,"otherPlaceholder",void 0),wo([me()],t.prototype,"_renderedChoices",void 0),t}(Be),li=function(i){Za(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:void 0)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){i.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(Ts);function Rs(i,t){var e;if(!i)return!1;if(i.templateQuestion){var n=(e=i.colOwner)===null||e===void 0?void 0:e.data;if(i=i.templateQuestion,!i.getCarryForwardQuestion(n))return!1}return i.carryForwardQuestionType===t}j.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return k("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return Rs(i,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Rs(i,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Rs(i,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(i){return i.choicesByUrl.getData()},onSetValue:function(i,t){i.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"defaultValue:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"correctAnswer:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"showRefuseItem:boolean",visible:!1,version:"1.9.128"},{name:"showDontKnowItem:boolean",visible:!1,version:"1.9.128"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(i){return i.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(i){return i.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(i){return i.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),j.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var Is=function(){function i(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(i.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),i}(),Qn=function(){function i(){}return i.calculatePosition=function(t,e,n,r,o,s){s===void 0&&(s="flex");var u=t.left,d=t.top;return s==="flex"&&(o=="center"?u=(t.left+t.right-n)/2:o=="left"?u=t.left-n:u=t.right),r=="middle"?d=(t.top+t.bottom-e)/2:r=="top"?d=t.top-e:d=t.bottom,o!="center"&&r!="middle"&&(r=="top"?d=d+t.height:d=d-t.height),{left:Math.round(u),top:Math.round(d)}},i.getCorrectedVerticalDimensions=function(t,e,n,r,o,s){o===void 0&&(o=!0),s===void 0&&(s={top:0,bottom:0});var u,d=n-i.bottomIndent;if(r==="top"&&(u={height:e,top:t}),t<-s.top)u={height:o?e+t:e,top:-s.top};else if(e+t>n){var y=Math.min(e,d-t);u={height:o?y:e,top:o?t:t-(e-y)}}return u&&(u.height=Math.min(u.height,d),u.top=Math.max(u.top,-s.top)),u},i.updateHorizontalDimensions=function(t,e,n,r,o,s){o===void 0&&(o="flex"),s===void 0&&(s={left:0,right:0}),e+=s.left+s.right;var u=void 0,d=t;return r==="center"&&(o==="fixed"?(t+e>n&&(u=n-t),d-=s.left):t<0?(d=s.left,u=Math.min(e,n)):e+t>n&&(d=n-e,d=Math.max(d,s.left),u=Math.min(e,n))),r==="left"&&t<0&&(d=s.left,u=Math.min(e,n)),r==="right"&&e+t>n&&(u=n-t),{width:u-s.left-s.right,left:d}},i.updateVerticalPosition=function(t,e,n,r,o){if(r==="middle")return r;var s=e-(t.top+(n!=="center"?t.height:0)),u=e+t.bottom-(n!=="center"?t.height:0)-o;return s>0&&u<=0&&r=="top"?r="bottom":u>0&&s<=0&&r=="bottom"?r="top":u>0&&s>0&&(r=s<u?"top":"bottom"),r},i.updateHorizontalPosition=function(t,e,n,r){if(n==="center")return n;var o=e-t.left,s=e+t.right-r;return o>0&&s<=0&&n=="left"?n="right":s>0&&o<=0&&n=="right"?n="left":s>0&&o>0&&(n=o<s?"left":"right"),n},i.calculatePopupDirection=function(t,e){var n;return e=="center"&&t!="middle"?n=t:e!="center"&&(n=e),n},i.calculatePointerTarget=function(t,e,n,r,o,s,u){s===void 0&&(s=0),u===void 0&&(u=0);var d={};return o!="center"?(d.top=t.top+t.height/2,d.left=t[o]):r!="middle"&&(d.top=t[r],d.left=t.left+t.width/2),d.left=Math.round(d.left-n),d.top=Math.round(d.top-e),o=="left"&&(d.left-=s+u),o==="center"&&(d.left-=s),d},i.bottomIndent=16,i}(),Ic=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ka='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',Ds=function(i){Ic(t,i);function t(e){var n=i.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.visibilityAnimation=new In(n,function(r){n._isVisible!==r&&(r?(n.updateBeforeShowing(),n.updateIsVisible(r)):(n.updateOnHiding(),n.updateIsVisible(r),n.updateAfterHiding(),n._isPositionSetValue=!1))},function(){return n._isVisible}),n.onVisibilityChanged=new pt,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=e,n.locale=n.model.locale,n}return t.prototype.updateIsVisible=function(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})},t.prototype.updateBeforeShowing=function(){this.model.onShow()},t.prototype.updateAfterHiding=function(){this.model.onHiding()},t.prototype.getLeaveOptions=function(){return{cssClass:"sv-popup--leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return this.model.displayMode!=="overlay"&&I.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return(e=this.container)===null||e===void 0?void 0:e.querySelector(this.fixedPopupContainer)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this.visibilityAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:i.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return new _().append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new xt,this.footerToolbar.updateCallback=function(r){e.footerToolbarValue.actions.forEach(function(o){return o.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}})};var n=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];n=this.model.updateFooterActions(n),this.footerToolbarValue.setItems(n)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.onModelChanging=function(e){},t.prototype.setupModel=function(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return this.model.displayMode==="overlay"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){e.key==="Tab"||e.keyCode===9?this.trapFocus(e):(e.key==="Escape"||e.keyCode===27)&&this.hidePopup()},t.prototype.trapFocus=function(e){var n=this.container.querySelectorAll(Ka),r=n[0],o=n[n.length-1];e.shiftKey?I.environment.root.activeElement===r&&(o.focus(),e.preventDefault()):I.environment.root.activeElement===o&&(r.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},Object.defineProperty(t.prototype,"isPositionSet",{get:function(){return this._isPositionSetValue},enumerable:!1,configurable:!0}),t.prototype.updateOnShowing=function(){this.prevActiveElement=I.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);e==null||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var n=e.container.querySelector(e.model.focusFirstInputSelector||Ka);n?n.focus():e.focusContainer()}},100)},t.prototype.clickOutside=function(e){this.hidePopup(),e==null||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=R.createElement("div");this.createdContainer=e,Ln(I.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,n){for(var r=e.target;r!==this.container;){if(R.getComputedStyle(r).overflowY==="auto"&&r.scrollHeight!==r.offsetHeight){var o=r.scrollHeight,s=r.scrollTop,u=r.clientHeight;if(!(n>0&&Math.abs(o-u-s)<1)&&!(n<0&&s<=0))return}r=r.parentElement}e.cancelable&&e.preventDefault()},Hn([x({defaultValue:"0px"})],t.prototype,"top",void 0),Hn([x({defaultValue:"0px"})],t.prototype,"left",void 0),Hn([x({defaultValue:"auto"})],t.prototype,"height",void 0),Hn([x({defaultValue:"auto"})],t.prototype,"width",void 0),Hn([x({defaultValue:"auto"})],t.prototype,"minWidth",void 0),Hn([x({defaultValue:!1})],t.prototype,"_isVisible",void 0),Hn([x()],t.prototype,"locale",void 0),t}(fe),Dc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),As=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Ya(i,t){var e=i||B.getInnerWidth(),n=t||B.getInnerHeight(),r=Math.min(e,n),o=r>=Ls.tabletSizeBreakpoint;return o}var Ls=function(i){Dc(t,i);function t(e){var n=i.call(this,e)||this;return n.scrollEventCallBack=function(r){if(n.isOverlay&&Le){r.stopPropagation(),r.preventDefault();return}n.hidePopup()},n.resizeEventCallback=function(){if(B.isAvailable()){var r=B.getVisualViewport(),o=R.getDocumentElement();o&&r&&o.style.setProperty("--sv-popup-overlay-height",r.height*r.scale+"px")}},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,dn.platform==="vue"||dn.platform==="vue3"||dn.platform=="react")},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(r){n.clientY=r.touches[0].clientY},n.touchMoveEventCallback=function(r){n.preventScrollOuside(r,n.clientY-r.changedTouches[0].clientY)},n.model.onRecalculatePosition.add(n.recalculatePositionHandler),n}return t.prototype.calculateIsTablet=function(e,n){this.isTablet=Ya(e,n)},t.prototype.getAvailableAreaRect=function(){var e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){var n=e.getBoundingClientRect();return new Is(n.x,n.y,n.width,n.height)}return new Is(0,0,B.getInnerWidth(),B.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.container,n=this.model.getTargetCallback?this.model.getTargetCallback(e):void 0;if(e&&e.parentElement&&!this.isModal&&!n&&(n=e.parentElement),!n)return null;var r=n.getBoundingClientRect(),o=this.getAvailableAreaRect();return new Is(r.left-o.left,r.top-o.top,r.width,r.height)},t.prototype._updatePosition=function(){var e,n,r,o=this.getTargetElementRect();if(o){var s=this.getAvailableAreaRect(),u=(e=this.container)===null||e===void 0?void 0:e.querySelector(this.containerSelector);if(u){var d=(n=this.container)===null||n===void 0?void 0:n.querySelector(this.fixedPopupContainer),y=u.querySelector(this.scrollingContentSelector),V=R.getComputedStyle(u),T=parseFloat(V.marginLeft)||0,N=parseFloat(V.marginRight)||0,U=parseFloat(V.marginTop)||0,W=parseFloat(V.marginBottom)||0,X=u.offsetHeight-y.offsetHeight+y.scrollHeight,Y=u.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=o.width+"px");var J=this.model.verticalPosition,ue=this.getActualHorizontalPosition();if(B.isAvailable()){var Me=[X,B.getInnerHeight()*.9,(r=B.getVisualViewport())===null||r===void 0?void 0:r.height];X=Math.ceil(Math.min.apply(Math,Me.filter(function(Un){return typeof Un=="number"}))),J=Qn.updateVerticalPosition(o,X,this.model.horizontalPosition,this.model.verticalPosition,s.height),ue=Qn.updateHorizontalPosition(o,Y,ue,s.width)}this.popupDirection=Qn.calculatePopupDirection(J,ue);var Ne=Qn.calculatePosition(o,X,Y+T+N,J,ue,this.model.positionMode);if(B.isAvailable()){var St=Qn.getCorrectedVerticalDimensions(Ne.top,X,s.height,J,this.model.canShrink,{top:U,bottom:W});if(St&&(this.height=St.height+"px",Ne.top=St.top),this.model.setWidthByTarget)this.width=o.width+"px",Ne.left=o.left;else{var Tt=Qn.updateHorizontalDimensions(Ne.left,Y,B.getInnerWidth(),ue,this.model.positionMode,{left:T,right:N});Tt&&(this.width=Tt.width?Tt.width+"px":void 0,Ne.left=Tt.left)}}if(d){var wr=d.getBoundingClientRect();Ne.top-=wr.top,Ne.left-=wr.left}Ne.left+=s.left,Ne.top+=s.top,this.left=Ne.left+"px",this.top=Ne.top+"px",this.showHeader&&(this.pointerTarget=Qn.calculatePointerTarget(o,Ne.top,Ne.left,J,ue,T,N),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;if(R.isAvailable()){var n=R.getComputedStyle(R.getBody()).direction=="rtl";n&&(this.model.horizontalPosition==="left"?e="right":this.model.horizontalPosition==="right"&&(e="left"))}return e},t.prototype.getStyleClass=function(){var e=this.model.overlayDisplayMode;return i.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&e!=="plain").append("sv-popup--tablet",this.isOverlay&&(e=="tablet-dropdown-overlay"||e=="auto"&&this.isTablet)).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||this.popupDirection=="top"||this.popupDirection=="bottom"))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(e){i.prototype.setComponentElement.call(this,e)},t.prototype.resetComponentElement=function(){i.prototype.resetComponentElement.call(this)},t.prototype.updateOnShowing=function(){var e=I.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),B.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(B.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(),this.resizeEventCallback()),B.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!B.getVisualViewport()&&this.isOverlay&&Le},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,n){var r=this;n===void 0&&(n=!0),e&&(this.height="auto"),n?setTimeout(function(){r._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){i.prototype.updateOnHiding.call(this),B.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(B.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),B.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.prototype.onModelChanging=function(e){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(r,o){n.isOverlay||n.updatePosition(o.isResetHeight)}),i.prototype.onModelChanging.call(this,e),e.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,As([x()],t.prototype,"isTablet",void 0),As([x({defaultValue:"left"})],t.prototype,"popupDirection",void 0),As([x({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(Ds),Ac=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Po=function(i){Ac(t,i);function t(e,n){var r=i.call(this)||this;r.question=e,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r.timer=void 0,r._markdownMode=!1,r.filteredItems=void 0,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.listModelFilterStringChanged=function(s){r.filterString!==s&&(r.filterString=s)},r.questionPropertyChangedHandler=function(s,u){r.onPropertyChangedHandler(s,u)},r.htmlCleanerElement=R.createElement("div"),e.onPropertyChanged.add(r.questionPropertyChangedHandler),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setChoicesLazyLoadEnabled(r.question.choicesLazyLoadEnabled),r.setSearchEnabled(r.question.searchEnabled),r.setTextWrapEnabled(r.question.textWrapEnabled),r.createPopup(),r.resetItemsSettings();var o=e.cssClasses;return r.updateCssClasses(o.popup,o.list),r}return Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return Le?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,n){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=n,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.loadQuestionChoices=function(e){var n=this;this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,o){n.setItems(r||[],o||0),n.popupRecalculatePosition(n.itemsSettings.skip===n.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var n=this,r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||r)&&(this.resetTimer(),this.filterString&&I.dropdownSearchDelay>0?this.timer=setTimeout(function(){n.loadQuestionChoices(e)},I.dropdownSearchDelay):this.loadQuestionChoices(e))},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.getDropdownMenuOptions=function(){var e=B.getInnerWidth(),n=B.getInnerHeight(),r=Ya(e,n),o="dropdown",s="desktop";return Le&&(o=r?"popup":"overlay",s=r?"tablet":"mobile"),{menuType:o,deviceType:s,hasTouchScreen:Le,screenHeight:n,screenWidth:e}},t.prototype.createPopup=function(){var e=this,n={verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1};this._popupModel=new On("sv-list",{model:this.listModel},n),this._popupModel.displayMode=Le?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=Le,this._popupModel.setWidthByTarget=!Le,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add(function(r,o){if(o.isVisible&&(e.listModel.renderElements=!0),o.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),o.isVisible){e.updatePopupFocusFirstInputSelector();var s=e.getDropdownMenuOptions(),u=s.menuType;e.question.processOpenDropdownMenu(s),u!==s.menuType&&(e._popupModel.updateDisplayMode(s.menuType),e.listModel.setSearchEnabled(e.searchEnabled&&s.menuType!=="dropdown")),e.question.onOpenedCallBack&&e.question.onOpenedCallBack()}o.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.ariaExpanded=o.isVisible?"true":"false",e.question.processPopupVisiblilityChanged(e.popupModel,o.isVisible)})},t.prototype.setFilterStringToListModel=function(e){var n=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0){this.listModel.focusedItem=this.getAvailableItems().filter(function(r){return r.id==n.question.selectedItem.value})[0],this.listModel.filterString&&this.listModel.actions.map(function(r){return r.selectedValue=!1});return}(!this.listModel.focusedItem||!this.listModel.isItemVisible(this.listModel.focusedItem))&&this.listModel.focusFirstVisibleItem()},t.prototype.setTextWrapEnabled=function(e){this.listModel.textWrapEnabled=e},t.prototype.popupRecalculatePosition=function(e){var n=this;setTimeout(function(){n.popupModel.recalculatePosition(e)},1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.setOnTextSearchCallbackForListModel=function(e){var n=this;e.setOnTextSearchCallback(function(r,o){if(n.filteredItems)return n.filteredItems.indexOf(r)>=0;var s=r.text.toLocaleLowerCase();s=I.comparator.normalizeTextCallback(s,"filter");var u=s.indexOf(o.toLocaleLowerCase());return n.question.searchMode=="startsWith"?u==0:u>-1})},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(u){e.question.value=u.id,e.question.searchEnabled&&e.applyInputString(u),e.popupModel.hide()});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new on(o);return this.setOnTextSearchCallbackForListModel(s),s.renderElements=!1,s.forceShowFilter=!0,s.areSameItemsCallback=function(u,d){return u===d},s},t.prototype.updateAfterListModelCreated=function(e){var n=this;e.isItemSelected=function(r){return!!r.selected},e.onPropertyChanged.add(function(r,o){o.name=="hasVerticalScroller"&&(n.hasScroll=o.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach(function(r){return r.disableTabStop=!0})},t.prototype.getPopupCssClasses=function(){return"sv-single-select-list"},t.prototype.updateCssClasses=function(e,n){this.popupModel.cssClass=new _().append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=n},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;if(this.filteredItems=void 0,!(!this.filterString&&!this.popupModel.isVisible)){var n={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,n),this.filteredItems=n.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var r=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(r)):r()}},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowSelectedItem",{get:function(){return!this.focused||this._markdownMode||!this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(e==null?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=e==null?void 0:e.title,this.hintString=e==null?void 0:e.title)},t.prototype.cleanHtml=function(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):""},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=e==null?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,e?this.applyHintString(this.listModel.focusedItem||this.question.selectedItem):this.hintString=""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return((e=this.hintString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return((e=this.inputString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return e==-1?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noTabIndex",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterReadOnly",{get:function(){return this.question.isInputReadOnly||!this.searchEnabled||!this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return Le?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.setSearchEnabled(Le&&e),this.searchEnabled=e},t.prototype.setChoicesLazyLoadEnabled=function(e){this.listModel.setOnFilterStringChangedCallback(e?this.listModelFilterStringChanged:void 0)},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){this.question.readOnly||this.question.isDesignMode||this.question.isPreviewStyle||this.question.isReadOnlyAttr||(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.question.focusInputElement(!1))},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,n){n.name=="value"&&(this.showInputFieldComponent=this.question.showInputFieldComponent),n.name=="textWrapEnabled"&&this.setTextWrapEnabled(n.newValue)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(!0),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var n,r=this.listModel.focusedItem;!r&&this.question.selectedItem?re.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=(n=this.listModel.focusedItem)===null||n===void 0?void 0:n.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=(e=this.listModel.focusedItem)===null||e===void 0?void 0:e.elementId},t.prototype.keyHandler=function(e){var n=e.which||e.keyCode;if(this.popupModel.isVisible&&e.keyCode===38?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):e.keyCode===40&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),e.keyCode===9)this.popupModel.hide();else if(!this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32))e.keyCode===32&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),e.keyCode===13&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32&&(!this.question.searchEnabled||!this.inputString)))e.keyCode===13&&this.question.searchEnabled&&!this.inputString&&this.question instanceof ui&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else if(n===46||n===8)this.searchEnabled||this.onClear(e);else if(e.keyCode===27)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((e.keyCode===38||e.keyCode===40||e.keyCode===32&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),e.keyCode===32&&this.question.searchEnabled)return;fr(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var n=e.target;n.scrollHeight-(n.scrollTop+n.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){if(this.focused=!1,this.popupModel.isVisible&&Le){this._popupModel.show();return}Wi(e),this._popupModel.hide(),this.resetFilterString(),this.inputString=null,this.hintString="",e.stopPropagation()},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},gn([x({defaultValue:!1})],t.prototype,"focused",void 0),gn([x({defaultValue:!0})],t.prototype,"searchEnabled",void 0),gn([x({defaultValue:"",onSet:function(e,n){n.onSetFilterString()}})],t.prototype,"filterString",void 0),gn([x({defaultValue:"",onSet:function(e,n){n.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),gn([x({})],t.prototype,"showInputFieldComponent",void 0),gn([x()],t.prototype,"ariaActivedescendant",void 0),gn([x({defaultValue:!1,onSet:function(e,n){e?n.listModel.addScrollEventListener(function(r){n.onScroll(r)}):n.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),gn([x({defaultValue:""})],t.prototype,"hintString",void 0),t}(fe),Lc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ui=function(i){Lc(t,i);function t(e){var n=i.call(this,e)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;this.renderAs=="select"&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||I.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!this.isOtherSelected},t.prototype.getChoices=function(){var e=i.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return e;for(var n=[],r=0;r<e.length;r++)n.push(e[r]);if(this.minMaxChoices.length===0||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r))}return n=n.concat(this.minMaxChoices),n},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new _().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),this.useDropdownList&&Nn(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return e==null?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDropdownList",{get:function(){return this.renderAs!=="select"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.useDropdownList&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new Po(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.dropdownListModelValue)===null||n===void 0||n.setInputStringFromSelectedItem(e),i.prototype.onSelectedItemValuesChangedHandler.call(this,e)},t.prototype.hasUnknownValue=function(e,n,r,o){return this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),this.lastSelectedItemValue=null,(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.dropdownListModelValue&&this.dropdownListModelValue.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){var n=e.which||e.keyCode;n===46&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},Yt([x()],t.prototype,"allowClear",void 0),Yt([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Yt([x()],t.prototype,"searchMode",void 0),Yt([x()],t.prototype,"textWrapEnabled",void 0),Yt([x({defaultValue:!1})],t.prototype,"inputHasValue",void 0),Yt([x({defaultValue:""})],t.prototype,"readOnlyText",void 0),Yt([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Yt([x()],t.prototype,"choicesLazyLoadPageSize",void 0),Yt([x()],t.prototype,"suggestedItem",void 0),t}(Ts);j.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:I.questions.dataList},{name:"textWrapEnabled:boolean",default:!0},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"searchMode",default:"contains",choices:["contains","startsWith"]},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new ui("")},"selectbase"),Se.Instance.registerQuestion("dropdown",function(i){var t=new ui(i);return t.choices=Se.DefaultChoices,t});var Ms=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xa=function(i){Ms(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.item=e,s.fullName=n,s.data=r,s.setValueDirectly(o),s.cellClick=function(u){s.value=u.value},s.registerPropertyChangedHandlers(["value"],function(){s.data&&s.data.onMatrixRowChanged(s)}),s.data&&s.data.hasErrorInRow(s)&&(s.hasError=!0),s}return Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.isReadOnly||this.setValueDirectly(this.data.getCorrectedRowValue(e))},enumerable:!1,configurable:!0}),t.prototype.setValueDirectly=function(e){this.setPropertyValue("value",e)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.item.enabled||this.data.isInputReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.data.isReadOnlyAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return!this.item.enabled||this.data.isDisabledAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTextClasses",{get:function(){return new _().append(this.data.cssClasses.rowTextCell).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasError",{get:function(){return this.getPropertyValue("hasError",!1)},set:function(e){this.setPropertyValue("hasError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses;return new _().append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()},enumerable:!1,configurable:!0}),t}(fe),el=function(i){Ms(t,i);function t(e){var n=i.call(this)||this;return n.cellsOwner=e,n.values={},n.locs={},n}return t.prototype.getType=function(){return"cells"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return Object.keys(this.values).length==0},enumerable:!1,configurable:!0}),t.prototype.valuesChanged=function(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()},t.prototype.getDefaultCellLocText=function(e){return this.getCellLocCore(this.defaultRowValue,e)},t.prototype.getCellDisplayLocText=function(e,n){return this.getCellLocCore(e,n)},t.prototype.getCellLocCore=function(e,n){var r=this;if(e=this.getCellRowColumnValue(e,this.rows),n=this.getCellRowColumnValue(n,this.columns),h.isValueEmpty(e)||h.isValueEmpty(n))return null;this.locs[e]||(this.locs[e]={});var o=this.locs[e][n];return o||(o=this.createString(),o.setJson(this.getCellLocData(e,n)),o.onGetTextCallback=function(s){if(!s){var u=re.getItemByValue(r.columns,n);if(u)return u.locText.getJson()||u.value}return s},o.onStrChanged=function(s,u){r.updateValues(e,n,u)},this.locs[e][n]=o),o},Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return I.matrix.defaultRowName},enumerable:!1,configurable:!0}),t.prototype.getCellLocData=function(e,n){var r=this.getCellLocDataFromValue(e,n);return r||this.getCellLocDataFromValue(this.defaultRowValue,n)},t.prototype.getCellLocDataFromValue=function(e,n){return!this.values[e]||!this.values[e][n]?null:this.values[e][n]},t.prototype.getCellText=function(e,n){var r=this.getCellLocCore(e,n);return r?r.calculatedText:null},t.prototype.setCellText=function(e,n,r){var o=this.getCellLocCore(e,n);o&&(o.text=r)},t.prototype.updateValues=function(e,n,r){r?(this.values[e]||(this.values[e]={}),this.values[e][n]=r,this.valuesChanged()):this.values[e]&&this.values[e][n]&&(delete this.values[e][n],Object.keys(this.values[e]).length==0&&delete this.values[e],this.valuesChanged())},t.prototype.getDefaultCellText=function(e){var n=this.getCellLocCore(this.defaultRowValue,e);return n?n.calculatedText:null},t.prototype.setDefaultCellText=function(e,n){this.setCellText(this.defaultRowValue,e,n)},t.prototype.getCellDisplayText=function(e,n){var r=this.getCellDisplayLocText(e,n);return r?r.calculatedText:null},Object.defineProperty(t.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),t.prototype.getCellRowColumnValue=function(e,n){if(e==null)return null;if(typeof e=="number"){if(e<0||e>=n.length)return null;e=n[e].value}return e.value?e.value:e},t.prototype.getJson=function(){if(this.isEmpty)return null;var e=this.values[this.defaultRowValue],n={};for(var r in this.values){var o={},s=this.values[r];for(var u in s)(r===this.defaultRowValue||!e||e[u]!==s[u])&&(o[u]=s[u]);n[r]=o}return n},t.prototype.setJson=function(e,n){var r=this;if(this.values={},e){for(var o in e)if(o!="pos"){var s=e[o];this.values[o]={};for(var u in s)u!="pos"&&(this.values[o][u]=s[u])}}this.locNotification=!0,this.runFuncOnLocs(function(d,y,V){return V.setJson(r.getCellLocData(d,y))}),this.locNotification=!1,this.valuesChanged()},t.prototype.locStrsChanged=function(){this.runFuncOnLocs(function(e,n,r){return r.strChanged()})},t.prototype.runFuncOnLocs=function(e){for(var n in this.locs){var r=this.locs[n];for(var o in r)e(n,o,r[o])}},t.prototype.createString=function(){return new gt(this.cellsOwner,!0)},t}(fe),js=function(i){Ms(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new gt(n),n.cellsValue=new el(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],function(){n.onColumnsChanged()}),n.registerPropertyChangedHandlers(["rows"],function(){n.runCondition(n.getDataFilteredValues(),n.getDataFilteredProperties()),n.onRowsChanged()}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"cellComponent",{get:function(){return this.getPropertyValue("cellComponent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponent",{set:function(e){this.setPropertyValue("cellComponent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eachRowUnique",{get:function(){return this.getPropertyValue("eachRowUnique")},set:function(e){this.setPropertyValue("eachRowUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){e=e.toLowerCase(),e!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,n){var r=new re(e,n);return this.columns.push(r),r},t.prototype.getItemClass=function(e,n){var r=e.value==n.value,o=this.isReadOnly,s=!r&&!o,u=this.hasCellText,d=this.cssClasses;return new _().append(d.cell,u).append(u?d.cellText:d.label).append(d.itemOnError,!u&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(u?d.cellTextSelected:d.itemChecked,r).append(u?d.cellTextDisabled:d.itemDisabled,this.isDisabledStyle).append(u?d.cellTextReadOnly:d.itemReadOnly,this.isReadOnlyStyle).append(u?d.cellTextPreview:d.itemPreview,this.isPreviewStyle).append(d.itemHover,s&&!u).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,n=0;n<this.rows.length;n++)this.isValueEmpty(this.correctAnswer[this.rows[n].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,n=this.value,r=0;r<this.rows.length;r++){var o=this.rows[r].value;!this.isValueEmpty(n[o])&&this.isTwoValueEquals(this.correctAnswer[o],n[o])&&e++}return e},t.prototype.runCondition=function(e,n){re.runEnabledConditionsForItems(this.rows,void 0,e,n),i.prototype.runCondition.call(this,e,n)},t.prototype.createRowsVisibleIfRunner=function(){return this.rowsVisibleIf?new Ue(this.rowsVisibleIf):null},t.prototype.onRowsChanged=function(){this.clearGeneratedRows(),i.prototype.onRowsChanged.call(this)},t.prototype.getVisibleRows=function(){if(this.generatedVisibleRows)return this.generatedVisibleRows;var e=new Array,n=this.value;n||(n={});for(var r=this.filteredRows||this.rows,o=0;o<r.length;o++){var s=r[o];if(!this.isValueEmpty(s.value)){var u=this.id+"_"+s.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(s,u,n[s.value]))}}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){if(this.survey&&this.survey.isDesignMode)return e;var n=this.rowsOrder.toLowerCase();return n==="random"?h.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()},t.prototype.isNewValueCorrect=function(e){return h.isValueObject(e,!0)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,n,r){this.cells.setCellText(e,n,r)},t.prototype.getCellText=function(e,n){return this.cells.getCellText(e,n)},t.prototype.setDefaultCellText=function(e,n){this.cells.setDefaultCellText(e,n)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,n){return this.cells.getCellDisplayText(e,n)},t.prototype.getCellDisplayLocText=function(e,n){var r=this.cells.getCellDisplayLocText(e,n);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n||this.hasCssError()){var o={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(r,o),o.noValue&&e.push(new ro(null,this)),o.isNotUnique&&e.push(new us(null,this))}},t.prototype.hasValuesInAllRows=function(){var e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue},t.prototype.checkErrorsAllRows=function(e,n,r){var o=this,s=this.generatedVisibleRows;if(s||(s=this.visibleRows),!!s){var u=this.isAllRowRequired||r,d=this.eachRowUnique;if(n.noValue=!1,n.isNotUnique=!1,e&&(this.errorsInRow=void 0),!(!u&&!d)){for(var y={},V=0;V<s.length;V++){var T=s[V].value,N=this.isValueEmpty(T),U=d&&!N&&y[T]===!0;N=N&&u,e&&(N||U)&&this.addErrorIntoRow(s[V]),N||(y[T]=!0),n.noValue=n.noValue||N,n.isNotUnique=n.isNotUnique||U}e&&s.forEach(function(W){W.hasError=o.hasErrorInRow(W)})}}},t.prototype.addErrorIntoRow=function(e){this.errorsInRow||(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0},t.prototype.refreshRowsErrors=function(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,n,r){var o=new Xa(e,n,this,r);return this.onMatrixRowCreated(o),o},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(e,n){if(n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,this.isRowChanging||n),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0)){this.isRowChanging=!0;var r=this.value;if(r||(r={}),this.rows.length==0)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var s=this.generatedVisibleRows[o],u=r[s.name];this.isValueEmpty(u)&&(u=null),this.generatedVisibleRows[o].setValueDirectly(u)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,n){var r={};for(var o in n){var s=e?re.getTextOrHtmlByValue(this.rows,o):o;s||(s=o);var u=re.getTextOrHtmlByValue(this.columns,n[o]);u||(u=n[o]),r[s]=u}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map(function(s){var u=n.rows.filter(function(V){return V.value===s})[0],d={name:s,title:u?u.text:"row",value:o[s],displayValue:re.getTextOrHtmlByValue(n.visibleColumns,o[s]),getString:function(V){return typeof V=="object"?JSON.stringify(V):V},isNode:!1},y=re.getItemByValue(n.visibleColumns,o[s]);return y&&(e.calculations||[]).forEach(function(V){d[V.propertyName]=y[V.propertyName]}),d})}return r},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.rows.length;r++){var o=this.rows[r];o.value&&e.push({name:this.getValueName()+"."+o.value,text:this.processedTitle+"."+o.calculatedText,question:this})}},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=new ui(n);r.choices=this.columns;var o=new je().toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearIncorrectValues=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),i.prototype.clearIncorrectValues.call(this)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)},t.prototype.clearInvisibleColumnValues=function(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)},t.prototype.clearInvisibleValuesInRows=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)},t.prototype.clearInvisibleValuesInRowsAndColumns=function(e,n,r){if(!this.isEmpty()){for(var o=this.getUnbindValue(this.value),s={},u=this.rows,d=0;d<u.length;d++){var y=u[d].value;o[y]&&(e&&!u[d].isVisible||n&&!this.getVisibleColumnByValue(o[y])?delete o[y]:s[y]=o[y])}r&&(o=s),!this.isTwoValueEquals(o,this.value)&&(this.value=o)}},t.prototype.getVisibleColumnByValue=function(e){var n=re.getItemByValue(this.columns,e);return n&&n.isVisible?n:null},t.prototype.getFirstInputElementId=function(){var e=this.generatedVisibleRows;return e||(e=this.visibleRows),e.length>0&&this.visibleColumns.length>0?this.inputId+"_"+e[0].name+"_0":i.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,!this.hasRows)this.setNewValue(e.value);else{var n=this.value;n||(n={}),n[e.name]=e.value,this.setNewValue(n)}this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var n=0;n<this.columns.length;n++)if(e===this.columns[n].value)return e;for(var n=0;n<this.columns.length;n++)if(this.isTwoValueEquals(e,this.columns[n].value))return this.columns[n].value;return e},t.prototype.hasErrorInRow=function(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(yt);j.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return k("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return k("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean",{name:"eachRowUnique:boolean",category:"validation"},"hideIfRowsEmpty:boolean",{name:"cellComponent",visible:!1,default:"survey-matrix-cell"}],function(){return new js("")},"matrixbase"),Se.Instance.registerQuestion("matrix",function(i){var t=new js(i);return t.rows=Se.DefaultRows,t.columns=Se.DefaultColums,t});var tl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nl=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},rl=function(i){tl(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.updateRemainingCharacterCounter=function(e,n){this.remainingCharacterCounter=h.getRemainingCharacterCounterText(e,n)},nl([x()],t.prototype,"remainingCharacterCounter",void 0),t}(fe),xo=function(i){tl(t,i);function t(e){var n=i.call(this,e)||this;return n.characterCounter=new rl,n}return t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return h.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return i.prototype.isEmpty.call(this)||this.value===""},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.textUpdateMode=="default"?i.prototype.getIsInputTextUpdate.call(this):this.textUpdateMode=="onTyping"},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){var e=this,n=function(){return e.hasPlaceholder()?e.placeHolder:void 0};return this.getPropertyValue("renderedPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){i.prototype.onReadOnlyChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.resetRenderedPlaceholder=function(){this.resetPropertyValue("renderedPlaceholder")},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateRemainingCharacterCounter(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateRemainingCharacterCounter(e)},t.prototype.convertToCorrectValue=function(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e},t.prototype.getValueSeparator=function(){return", "},t.prototype.getControlCssClassBuilder=function(){return new _().append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)},t.prototype.getControlClass=function(){return this.getControlCssClassBuilder().toString()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),nl([x({localizable:!0,onSet:function(e,n){return n.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(Be);j.addClass("textbase",[],function(){return new xo("")},"question");var Mc=function(){function i(t,e,n){var r=this;this.inputMaskInstance=t,this.inputElement=e,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(s,u){if(u.name!=="saveMaskedValue"){var d=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=d}},this.clickHandler=function(s){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&r.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(s){var u=r.createArgs(s),d=r.inputMaskInstance.processInput(u);r.inputElement.value=d.value,r.inputElement.setSelectionRange(d.caretPosition,d.caretPosition),d.cancelPreventDefault||s.preventDefault()},this.changeHandler=function(s){var u=r.inputMaskInstance.processInput({prevValue:"",insertedChars:s.target.value,selectionStart:0,selectionEnd:0});r.inputElement.value=u.value};var o=n;o==null&&(o=""),this.inputElement.value=t.getMaskedValue(o),this.prevUnmaskedValue=o,t.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return i.prototype.createArgs=function(t){var e={insertedChars:t.data,selectionStart:t.target.selectionStart,selectionEnd:t.target.selectionEnd,prevValue:t.target.value,inputDirection:"forward"};return t.inputType==="deleteContentBackward"&&(e.inputDirection="backward",e.selectionStart===e.selectionEnd&&(e.selectionStart=Math.max(e.selectionStart-1,0))),t.inputType==="deleteContentForward"&&e.selectionStart===e.selectionEnd&&(e.selectionEnd+=1),e},i.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler),this.inputElement.addEventListener("change",this.changeHandler))},i.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler),this.inputElement.removeEventListener("change",this.changeHandler))},i.prototype.dispose=function(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},i}(),Ns=/[0-9]/;function il(){var i=j.getChildrenClasses("masksettings")||[],t=i.map(function(e){var n=e.name;return e.name.indexOf("mask")!==-1&&(n=n.slice(0,n.indexOf("mask"))),n});return t.unshift("none"),t}var jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qs=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Vo=function(i){jc(t,i);function t(e){var n=i.call(this,e)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(r){n.isInputTextUpdate&&setTimeout(function(){n.updateValueOnEvent(r)},1),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyUp=function(r){n.updateDateValidationMessage(r),n.isInputTextUpdate?(!n._isWaitingForEnter||r.keyCode===13)&&(n.updateValueOnEvent(r),n._isWaitingForEnter=!1):r.keyCode===13&&n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyDown=function(r){n.onKeyDownPreprocess&&n.onKeyDownPreprocess(r),n.isInputTextUpdate&&(n._isWaitingForEnter=r.keyCode===229),n.onTextKeyDownHandler(r)},n.onChange=function(r){n.updateDateValidationMessage(r);var o=r.target===I.environment.root.activeElement;o?n.isInputTextUpdate&&n.updateValueOnEvent(r):n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new Hr(n),n.locDataListValue.onValueChanged=function(r,o){n.propertyValueChanged("dataList",r,o)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){n.setRenderedMinMax()}),n.registerPropertyChangedHandlers(["inputType","size"],function(){n.updateInputSize(),n.resetRenderedPlaceholder()}),n}return t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new Mc(this.maskInstance,this.input,this.value))},t.prototype.deleteMaskAdapter=function(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)},t.prototype.updateMaskAdapter=function(){this.deleteMaskAdapter(),this.createMaskAdapter()},t.prototype.onSetMaskType=function(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()},Object.defineProperty(t.prototype,"maskTypeIsEmpty",{get:function(){switch(this.inputType){case"tel":case"text":return this.maskType==="none";default:return!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){e&&(this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter())},enumerable:!1,configurable:!0}),t.prototype.setNewMaskSettingsProperty=function(){this.setPropertyValue("maskSettings",this.createMaskSettings())},t.prototype.createMaskSettings=function(){var e=!this.maskType||this.maskType==="none"?"masksettings":this.maskType+"mask";j.findClass(e)||(e="masksettings");var n=j.createClass(e);return n.owner=this.survey,n},t.prototype.isTextValue=function(){return this.isDateInputType||["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),(e==="datetime_local"||e==="datetime")&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return this.isTextInput?i.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(e,n)},t.prototype.getDisplayValueCore=function(e,n){return!this.maskTypeIsEmpty&&!h.isValueEmpty(n)?this.maskInstance.getMaskedValue(n):i.prototype.getDisplayValueCore.call(this,e,n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return Bt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskInstance",{get:function(){return this.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputValue",{get:function(){return!this._inputValue&&!this.maskTypeIsEmpty?this.maskInstance.getMaskedValue(""):this._inputValue},set:function(e){var n=e;this._inputValue=e,this.maskTypeIsEmpty||(n=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(n),n&&this.maskSettings.saveMaskedValue&&(n=this.maskInstance.getMaskedValue(n))),this.value=n},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.updateInputValue()},t.prototype.updateInputValue=function(){this.maskTypeIsEmpty?this._inputValue=this.value:this.maskSettings.saveMaskedValue?this._inputValue=this.value?this.value:this.maskInstance.getMaskedValue(""):this._inputValue=this.maskInstance.getMaskedValue(this.value)},t.prototype.hasToConvertToUTC=function(e){return I.storeUtcDates&&this.isDateTimeLocaleType()&&!!e},t.prototype.createDate=function(e){return D("question-text",e)},t.prototype.valueForSurveyCore=function(e){return this.hasToConvertToUTC(e)&&(e=this.createDate(e).toISOString()),i.prototype.valueForSurveyCore.call(this,e)},t.prototype.valueFromDataCore=function(e){if(this.hasToConvertToUTC(e)){var n=this.createDate(e),r=this.createDate(n.getTime()-n.getTimezoneOffset()*60*1e3),o=r.toISOString();e=o.substring(0,o.length-2)}return i.prototype.valueFromDataCore.call(this,e)},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!n){if(this.isValueLessMin){var s=new ot(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);s.onUpdateErrorTextCallback=function(T){T.text=o.getMinMaxErrorText(o.minErrorText,o.getCalculatedMinMax(o.renderedMin))},e.push(s)}if(this.isValueGreaterMax){var u=new ot(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);u.onUpdateErrorTextCallback=function(T){T.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},e.push(u)}this.dateValidationMessage&&e.push(new ot(this.dateValidationMessage,this));var d=this.getValidatorTitle(),y=new Xr;if(y.errorOwner=this,this.inputType==="email"&&!this.validators.some(function(T){return T.getType()==="emailvalidator"})){var V=y.validate(this.value,d);V&&V.error&&e.push(V.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions();return h.convertValToQuestionVal(e,n)},t.prototype.getMinMaxErrorText=function(e,n){if(h.isValueEmpty(n))return e;var r=n.toString();return this.inputType==="date"&&n.toDateString&&(r=n.toDateString()),e.replace("{0}",r)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return this.inputType==="date"||this.isDateTimeLocaleType()},enumerable:!1,configurable:!0}),t.prototype.isDateTimeLocaleType=function(){return this.inputType==="datetime-local"},t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e},t.prototype.setRenderedMinMax=function(e,n){var r=this;e===void 0&&(e=null),n===void 0&&(n=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(o){!o&&r.isDateInputType&&I.minDate&&(o=I.minDate),r.setPropertyValue("renderedMin",o)},e,n),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(o){!o&&r.isDateInputType&&(o=I.maxDate?I.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",o)},e,n)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?this.inputType!=="number"?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.maskTypeIsEmpty?i.prototype.getIsInputTextUpdate.call(this):!1},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&!this.isDateInputType},t.prototype.supportGoNextPageError=function(){return!this.isDateInputType},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.setNewValue=function(e){e=this.correctValueType(e),e&&(this.dateValidationMessage=void 0),i.prototype.setNewValue.call(this,e)},t.prototype.correctValueType=function(e){if(!e)return e;if(this.inputType==="number"||this.inputType==="range")return h.isNumber(e)?h.getNumber(e):"";if(this.inputType==="month"){var n=this.createDate(e),r=n.toISOString().indexOf(e)==0&&e.indexOf("T")==-1,o=r?n.getUTCMonth():n.getMonth(),s=r?n.getUTCFullYear():n.getFullYear(),u=o+1;return s+"-"+(u<10?"0":"")+u}return e},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&this.inputType!=="range"},t.prototype.getControlCssClassBuilder=function(){var e=this.getMaxLength();return i.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!e).append(this.cssClasses.characterCounterBig,e>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&I.readOnly.textRenderMode==="div"},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e},enumerable:!1,configurable:!0}),t.prototype.updateTextAlign=function(e){this.inputTextAlignment!=="auto"?e.textAlign=this.inputTextAlignment:!this.maskTypeIsEmpty&&this.maskSettings.getTextAlignment()!=="auto"&&(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var n=e.target.value;this.isTwoValueEquals(this.value,n)||(this.inputValue=n)},t.prototype.updateDateValidationMessage=function(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0},t.prototype.onBlurCore=function(e){this.updateDateValidationMessage(e),this.updateValueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.updateRemainingCharacterCounter(e.target.value),i.prototype.onFocusCore.call(this,e)},t.prototype.afterRenderQuestionElement=function(e){e&&(this.input=e instanceof HTMLInputElement?e:e.querySelector("input"),this.createMaskAdapter()),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter(),this.input=void 0},qs([x({onSet:function(e,n){n.onSetMaskType(e)}})],t.prototype,"maskType",void 0),qs([x()],t.prototype,"inputTextAlignment",void 0),qs([x()],t.prototype,"_inputValue",void 0),t}(xo),Nc=["number","range","date","datetime-local","month","time","week"];function Bt(i){var t=i?i.inputType:"";return t?Nc.indexOf(t)>-1:!1}function ol(i,t){var e=i.split(t);return e.length!==2||!h.isNumber(e[0])||!h.isNumber(e[1])?-1:parseFloat(e[0])*60+parseFloat(e[1])}function qc(i,t,e){var n=ol(i,e),r=ol(t,e);return n<0||r<0?!1:n>r}function sl(i,t,e,n){var r=n?e:t;if(!Bt(i)||h.isValueEmpty(t)||h.isValueEmpty(e))return r;if(i.inputType.indexOf("date")===0||i.inputType==="month"){var o=i.inputType==="month",s="question-text-minmax",u=D(s,o?t+"-01":t),d=D(s,o?e+"-01":e);if(!u||!d)return r;if(u>d)return n?t:e}if(i.inputType==="week"||i.inputType==="time"){var y=i.inputType==="week"?"-W":":";return qc(t,e,y)?n?t:e:r}if(i.inputType==="number"){if(!h.isNumber(t)||!h.isNumber(e))return r;if(h.getNumber(t)>h.getNumber(e))return n?t:e}return typeof t=="string"||typeof e=="string"?r:t>e?n?t:e:r}function al(i,t){i&&i.inputType&&(t.inputType=i.inputType!=="range"?i.inputType:"number",t.textUpdateMode="onBlur")}j.addClass("text",[{name:"inputType",default:"text",choices:I.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"autocomplete",alternativeName:"autoComplete",choices:I.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(i){return Bt(i)},onPropertyEditorUpdate:function(i,t){al(i,t)},onSettingValue:function(i,t){return sl(i,t,i.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(i){return Bt(i)},onSettingValue:function(i,t){return sl(i,i.min,t,!0)},onPropertyEditorUpdate:function(i,t){al(i,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},choices:function(i){var t=il();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:["inputType","maskType"],visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="number"||i.inputType==="range":!1}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="text":!1}}],function(){return new Vo("")},"textbase"),Se.Instance.registerQuestion("text",function(i){return new Vo(i)});var vr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_s=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ll=function(i){vr(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(Vo),Bs=function(i){vr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(e),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r.editor.onPropertyChanged.add(function(o,s){r.onPropertyChanged.fire(r,s)}),r}return t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new ll(e)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.editor.addUsedLocales(e)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return h.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.editor.defaultValueExpression},set:function(e){this.editor.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.editor.minValueExpression},set:function(e){this.editor.minValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.editor.maxValueExpression},set:function(e){this.editor.maxValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"maskType",{get:function(){return this.editor.maskType},set:function(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){this.setPropertyValue("maskSettings",e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputTextAlignment",{get:function(){return this.editor.inputTextAlignment},set:function(e){this.editor.inputTextAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){this.data!=null&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,n){this.data&&this.data.setMultipleTextValue(e,n)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,n){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,n){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var n=this.getSurvey();return n?n.getQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(fe),So=function(i){vr(t,i);function t(e){var n=i.call(this,e)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",function(r){r.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,r)}),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],function(){n.calcVisibleRows()}),n.registerPropertyChangedHandlers(["itemSize"],function(){n.updateItemsSize()}),n}return t.addDefaultItems=function(e){for(var n=Se.DefaultMutlipleTextItems,r=0;r<n.length;r++)e.addItem(n[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var n;(n=this.items)===null||n===void 0||n.map(function(r,o){return r.editor.id=e+"_"+o}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),i.prototype.onSurveyLoad.call(this)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.performForEveryEditor(function(r){r.editor.updateValueFromSurvey(r.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.performForEveryEditor(function(n){n.editor.onSurveyValueChanged(n.value)})},t.prototype.updateItemsSize=function(){this.performForEveryEditor(function(e){e.editor.updateInputSize()})},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor(function(e){e.editor.onSurveyLoad()})},t.prototype.performForEveryEditor=function(e){for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&e(r)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,n){n===void 0&&(n=null);var r=this.createTextItem(e,n);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var n=0;n<this.items.length;n++)if(this.items[n].name==e)return this.items[n];return null},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return n=i.prototype.getElementsInDesign.call(this,e),n.concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.items.length;r++){var o=this.items[r];e.push({name:this.getValueName()+"."+o.name,text:this.processedTitle+"."+o.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,n){this.items.forEach(function(r){return r.editor.collectNestedQuestions(e,n)})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=this.getItemByName(n);if(!r)return null;var o=new je().toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].localeChanged()},Object.defineProperty(t.prototype,"itemErrorLocation",{get:function(){return this.getPropertyValue("itemErrorLocation")},set:function(e){this.setPropertyValue("itemErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return this.itemErrorLocation!=="default"?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return this.getQuestionErrorLocation()=="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return this.getQuestionErrorLocation()=="bottom"},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return h.isValueObject(e,!0)},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTitleWidth",{get:function(){return this.getPropertyValue("itemTitleWidth")||""},set:function(e){this.setPropertyValue("itemTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.onRowCreated=function(e){return e},t.prototype.calcVisibleRows=function(){for(var e=this.colCount,n=this.items,r=0,o,s,u=[],d=0;d<n.length;d++)r==0&&(o=this.onRowCreated(new Fs),s=this.onRowCreated(new ul),this.showItemErrorOnTop?(u.push(s),u.push(o)):(u.push(o),u.push(s))),o.cells.push(new ks(n[d],this)),s.cells.push(new cl(n[d],this)),r++,(r>=e||d==n.length-1)&&(r=0,s.onAfterCreated());this.rows=u},t.prototype.getRows=function(){return h.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,n){return new Bs(e,n)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var n=null;this.value&&this.items[e].name in this.value&&(n=this.value[this.items[e].name]),this.items[e].onValueChanged(n)}},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.items.forEach(function(r){return r.editor.runCondition(e,n)})},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.items.length;e++)if(this.items[e].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=null);for(var o=!1,s=0;s<this.items.length;s++)this.items[s].editor.onCompletedAsyncValidators=function(u){r.raiseOnCompletedAsyncValidators()},!(n&&n.isOnValueChanged===!0&&this.items[s].editor.isEmpty())&&(o=this.items[s].editor.hasErrors(e,n)||o);return i.prototype.hasErrors.call(this,e)||o},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(e=e.concat(r))}return e},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.items.length;e++)this.items[e].editor.clearErrors()},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=0;e<this.items.length;e++){var n=this.items[e].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],n=0;n<this.items.length;n++)e.push(this.items[n].editor);return _e.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;for(var r={},o=0;o<this.items.length;o++){var s=this.items[o],u=n[s.name];if(!h.isValueEmpty(u)){var d=s.name;e&&s.title&&(d=s.title),r[d]=s.editor.getDisplayValue(e,u)}}return r},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,n){this.isMultipleItemValueChanging=!0,this.isValueEmpty(n)&&(n=void 0);var r=this.value;r||(r={}),r[e]=n,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getItemLabelCss=function(e){return new _().append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasses.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()},t.prototype.getItemCss=function(){return new _().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new _().append(this.cssClasses.itemTitle).toString()},_s([me()],t.prototype,"rows",void 0),t}(Be),Fs=function(i){vr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isVisible=!0,e.cells=[],e}return _s([x()],t.prototype,"isVisible",void 0),_s([me()],t.prototype,"cells",void 0),t}(fe),ul=function(i){vr(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onAfterCreated=function(){var e=this,n=function(){e.isVisible=e.cells.some(function(r){var o,s;return((o=r.item)===null||o===void 0?void 0:o.editor)&&((s=r.item)===null||s===void 0?void 0:s.editor.hasVisibleErrors)})};this.cells.forEach(function(r){var o,s;!((o=r.item)===null||o===void 0)&&o.editor&&((s=r.item)===null||s===void 0||s.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n))}),n()},t}(Fs),ks=function(){function i(t,e){this.item=t,this.question=e,this.isErrorsCell=!1}return i.prototype.getClassName=function(){return new _().append(this.question.cssClasses.cell).toString()},Object.defineProperty(i.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),i}(),cl=function(i){vr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isErrorsCell=!0,e}return t.prototype.getClassName=function(){return new _().append(i.prototype.getClassName.call(this)).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()},t}(ks);j.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:I.questions.inputTypes},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},choices:function(i){var t=il();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"defaultValueExpression:expression",visible:!1},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new Bs("")}),j.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem",isArray:!0},{name:"itemSize:number",minValue:0,visible:!1},{name:"colCount:number",default:1,choices:[1,2,3,4,5]},{name:"itemErrorLocation",default:"default",choices:["default","top","bottom"],visible:!1},{name:"itemTitleWidth",category:"layout"}],function(){return new So("")},"question"),Se.Instance.registerQuestion("multipletext",function(i){var t=new So(i);return So.addDefaultItems(t),t});var _c=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pl=function(i){_c(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],function(){n.onContentChanged()}),n}return t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e="";this.onCustomHtmlProducing?e=this.onCustomHtmlProducing():e=this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],n=/{(.*?(element:)[^$].*?)}/g,r=this.content,o=0,s=null;(s=n.exec(r))!==null;){s.index>o&&(e.push(r.substring(o,s.index)),o=s.index);var u=this.getQuestionFromText(s[0]);u?e.push(this.getHtmlForQuestion(u)):e.push(r.substring(o,s.index+s[0].length)),o=s.index+s[0].length}return o<r.length&&e.push(r.substring(o,r.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substring(1,e.length-1),e=e.replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(e,n){i.prototype.onAddElement.call(this,e,n),this.addElementToContent(e),e.renderWidth=""},t.prototype.onRemoveElement=function(e){var n=this.getElementContentText(e);this.content=this.content.replace(n,""),i.prototype.onRemoveElement.call(this,e)},t.prototype.dragDropMoveElement=function(e,n,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var n=this.getElementContentText(e);this.insertTextAtCursor(n)||(this.content=this.content+n)}},t.prototype.insertTextAtCursor=function(e,n){if(n===void 0&&(n=null),!this.isDesignMode||!B.isAvailable())return!1;var r=B.getSelection();if(r.getRangeAt&&r.rangeCount){var o=r.getRangeAt(0);o.deleteContents();var s=new Text(e);o.insertNode(s);var u=this;if(u.getContent){var d=u.getContent(n);this.content=d}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(ai);j.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new pl},"panel");var Bc=function(){function i(){}return i.getIconCss=function(t,e){return new _().append(t.icon).append(t.iconExpanded,!e).toString()},i}(),Fc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Oo=function(i){Fc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){return!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,n){},t.prototype.getConditionJson=function(e,n){return null},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(Be);j.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],function(){return new Oo("")},"question");var kc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),fl=function(i){kc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"empty"},t}(Be);j.addClass("empty",[],function(){return new fl("")},"question");var Qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ci=function(i){Qc(t,i);function t(e){var n=i.call(this,e)||this;return n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new re(""),n.selectAllItemValue.id="selectall",n.selectAllItemText=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText"),n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(n.selectAllItemText),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){n.onVisibleChoicesChanged()}),n}return t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){i.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&n<r.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){return this.allElementsSelected()},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.allElementsSelected=function(){for(var e=this.getNoneItems(),n=0;n<e.length;n++)if(this.isItemSelected(e[n]))return!1;var r=this.getVisibleEnableItems();if(r.length===0)return!1;var o=this.value;if(!o||!Array.isArray(o)||o.length===0||o.length<r.length)return!1;for(var s=[],n=0;n<o.length;n++)s.push(this.getRealValue(o[n]));for(var n=0;n<r.length;n++)if(s.indexOf(r[n].value)<0)return!1;return!0},t.prototype.selectAll=function(){for(var e=[],n=this.getVisibleEnableItems(),r=0;r<n.length;r++)e.push(n[r].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,n){if(!this.isReadOnlyAttr)if(e===this.selectAllItem)n===!0||n===!1?this.isAllSelected=n:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=n?[e.value]:[];else{var r=[].concat(this.renderedValue||[]),o=r.indexOf(e.value);n?o<0&&r.push(e.value):o>-1&&r.splice(o,1),this.renderedValue=r}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var n=this.renderedValue;if(!n||!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(this.isTwoValueEquals(n[r],e.value))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1);var s=this.valuePropertyName;return s&&typeof e=="object"&&e[s]!==void 0&&(e=e[s]),i.prototype.hasUnknownValueItem.call(this,e,n,r,o)},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this;if(this.valuePropertyName&&Array.isArray(e)&&e.length>0){var r=[];e.forEach(function(o){var s=typeof o=="object",u=s?o:{};s||(u[n.valuePropertyName]=o),r.push(u)}),e=r}return i.prototype.convertDefaultValue.call(this,e)},t.prototype.getRealValue=function(e){return e&&(this.valuePropertyName?e[this.valuePropertyName]:e)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.renderedValue,n=this.visibleChoices,r=this.selectedItemValues;if(this.isEmpty())return[];var o=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,n):n,s=e.map(function(d){return re.getItemByValue(o,d)}).filter(function(d){return!!d});!s.length&&!r&&this.updateSelectedItemValues();var u=this.validateItemValues(s);return u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!!this.valuePropertyName},enumerable:!1,configurable:!0}),t.prototype.getFilteredName=function(){var e=i.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(e+="-unwrapped"),e},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:i.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var n=this;if(e.length)return e;var r=this.selectedItemValues;if(r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=this.renderedValue;return o.map(function(s){return n.createItemValue(s)})},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var o=new ot(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);e.push(o)}},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return this.shouldCheckMaxSelectedChoices()?this.isItemSelected(e):!0},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.updateSelectAllItemProps(),this.maxSelectedChoices<1){this.otherItem.setIsEnabled(!0);return}this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.updateSelectAllItemProps=function(){this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())},t.prototype.getSelectAllEnabled=function(){if(!this.hasSelectAll)return!0;this.activeChoices;var e=this.getVisibleEnableItems().length,n=this.maxSelectedChoices;return n>0&&n<e?!1:e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,n=this.activeChoices,r=0;r<n.length;r++){var o=n[r];o.isEnabled&&o.isVisible&&e.push(o)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.minSelectedChoices},t.prototype.getItemClassCore=function(e,n){return this.value,n.isSelectAllItem=e===this.selectAllItem,new _().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){i.prototype.setDefaultValue.call(this);var e=this.defaultValue;if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=this.getRealValue(e[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return i.prototype.hasValueToClearIncorrectValues.call(this)||!h.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(e){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),e=this.valueFromData(e);var n=this.value;e||(e=[]),n||(n=[]),!this.isTwoValueEquals(n,e)&&(this.removeNoneItemsValues(n,e),i.prototype.setNewValue.call(this,e))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var n=this.getFirstUnknownIndex(e);return n<0?"":e[n]},t.prototype.getStoreOthersAsComment=function(){return this.valuePropertyName?!1:i.prototype.getStoreOthersAsComment.call(this)},t.prototype.setOtherValueIntoValue=function(e){var n=this.getFirstUnknownIndex(e);if(n<0)return e;var r=this.otherItem.value,o=this.valuePropertyName;if(o){var s={};s[o]=r,r=s}return e.splice(n,1,r),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(this.hasUnknownValueItem(e[n],!1,!1))return n;return-1},t.prototype.removeNoneItemsValues=function(e,n){var r=[];if(this.showNoneItem&&r.push(this.noneItem.value),this.showRefuseItem&&r.push(this.refuseItem.value),this.showDontKnowItem&&r.push(this.dontKnowItem.value),r.length>0){var o=this.noneIndexInArray(e,r),s=this.noneIndexInArray(n,r);if(o.index>-1)if(o.val===s.val)n.length>0&&n.splice(s.index,1);else{var u=this.noneIndexInArray(n,[o.val]);u.index>-1&&u.index<n.length-1&&n.splice(u.index,1)}else if(s.index>-1&&n.length>1){var d=this.convertValueToObject([s.val])[0];n.splice(0,n.length,d)}}},t.prototype.noneIndexInArray=function(e,n){if(!Array.isArray(e))return{index:-1,val:void 0};for(var r=e.length-1;r>=0;r--){var o=n.indexOf(this.getRealValue(e[r]));if(o>-1)return{index:r,val:n[o]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&i.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(e,n){i.prototype.addNonChoicesItems.call(this,e,n),this.supportSelectAll()&&this.addNonChoiceItem(e,this.selectAllItem,n,this.hasSelectAll,I.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(e){return e===this.selectAllItem||i.prototype.isBuiltInChoice.call(this,e)},t.prototype.isItemInList=function(e){return e==this.selectAllItem?this.hasSelectAll:i.prototype.isItemInList.call(this,e)},t.prototype.getDisplayValueEmpty=function(){var e=this;return re.getTextOrHtmlByValue(this.visibleChoices.filter(function(n){return n!=e.selectAllItemValue}),void 0)},t.prototype.getDisplayValueCore=function(e,n){if(!Array.isArray(n))return i.prototype.getDisplayValueCore.call(this,e,n);var r=this.valuePropertyName,o=function(s){var u=n[s];return r&&u[r]&&(u=u[r]),u};return this.getDisplayArrayValue(e,n,o)},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var n=this.value,r=!1,o=this.restoreValuesFromInvisible();if(!(!n&&o.length==0)){if(!Array.isArray(n)||n.length==0){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,o.length==0)return;n=[]}for(var s=[],u=0;u<n.length;u++){var d=this.getRealValue(n[u]),y=this.canClearValueAnUnknown(d);!e&&!y||e&&!this.isValueDisabled(d)?s.push(n[u]):(r=!0,y&&this.addIntoInvisibleOldValues(n[u]))}for(var u=0;u<o.length;u++)s.push(o[u]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,s.length==0?this.clearValue(!0):this.value=s,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++){var o=n[r];if(o!==this.selectAllItem){var s=n[r].value;h.isTwoValueEquals(s,this.invisibleOldValues[s])&&(this.isItemSelected(o)||e.push(s),delete this.invisibleOldValues[s])}}return e},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return(e=="contains"||e=="notcontains")&&(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return h.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,n){return!e||!Array.isArray(e)?!1:e.indexOf(n.value)>=0},t.prototype.valueFromData=function(e){if(!e)return e;if(!Array.isArray(e))return[i.prototype.valueFromData.call(this,e)];for(var n=[],r=0;r<e.length;r++){var o=re.getItemByValue(this.activeChoices,e[r]);o?n.push(o.value):n.push(e[r])}return n},t.prototype.rendredValueFromData=function(e){return e=this.convertValueFromObject(e),i.prototype.rendredValueFromData.call(this,e)},t.prototype.rendredValueToData=function(e){return e=i.prototype.rendredValueToData.call(this,e),this.convertValueToObject(e)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?h.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var n=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(n=this.data.getValue(this.getValueName())),h.convertArrayValueToObject(e,this.valuePropertyName,n)},t.prototype.renderedValueFromDataCore=function(e){if((!e||!Array.isArray(e))&&(e=[]),!this.hasActiveChoices)return e;for(var n=0;n<e.length;n++){if(e[n]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[n],!0,!1)){this.otherValue=e[n];var r=e.slice();return r[n]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var n=0;n<e.length;n++)if(e[n]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[n]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var n=[],r=this.renderedValue;if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]!==this.otherItem.value&&n.push(r[o]);e&&n.push(this.otherItem.value),this.value=n},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(li);j.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.minSelectedChoices;return e>0&&t<e?e:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.maxSelectedChoices;return e>0&&t>e?e:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(i){return i.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new ci("")},"checkboxbase"),Se.Instance.registerQuestion("checkbox",function(i){var t=new ci(i);return t.choices=Se.DefaultChoices,t});var Hc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},dl=function(i){Hc(t,i);function t(e){var n=i.call(this,e)||this;return n.onItemClick=function(r){n.isItemDisabled(r)||(n.isExpanded=!1,n.isItemSelected(r)?(n.selectedItems.splice(n.selectedItems.indexOf(r),1)[0],n.onSelectionChanged&&n.onSelectionChanged(r,"removed")):(n.selectedItems.push(r),n.onSelectionChanged&&n.onSelectionChanged(r,"added")))},n.isItemDisabled=function(r){return r.enabled!==void 0&&!r.enabled},n.isItemSelected=function(r){return!!n.allowSelection&&n.selectedItems.filter(function(o){return n.areSameItems(o,r)}).length>0},n.setSelectedItems(e.selectedItems||[]),n}return t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(n){var r=e.isItemSelected(n);n.visible=e.hideSelectedItems?!r:!0})},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){i.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},zc([x()],t.prototype,"hideSelectedItems",void 0),t}(on),Uc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Eo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},hl=function(i){Uc(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.setHideSelectedItems(e.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=e.closeOnSelect,r}return t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){var e=this.getSelectedActions();e.length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter(function(e){return e.selected})},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&Le&&!this.isValueEmpty(this.question.value)?this.itemSelector:i.prototype.getFocusFirstInputSelector.call(this)},t.prototype.getPopupCssClasses=function(){return"sv-multi-select-list"},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(u,d){e.resetFilterString(),u.id==="selectall"?e.selectAllItems():d==="added"&&u.value===I.noneItemValue?e.selectNoneItem():d==="added"?e.selectItem(u.value):d==="removed"&&e.deselectItem(u.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new dl(o);return this.setOnTextSearchCallbackForListModel(s),s.forceShowFilter=!0,s},t.prototype.resetFilterString=function(){i.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return Le&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var e=this;i.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add(function(n,r){e.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:e.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){e.popupModel.isVisible=!1},enabled:new De(function(){return!e.isTwoValueEquals(e.question.renderedValue,e.previousValue)})})}),this.popupModel.onVisibilityChanged.add(function(n,r){e.shouldResetAfterCancel&&r.isVisible&&(e.previousValue=[].concat(e.question.renderedValue||[]))}),this.popupModel.onCancel=function(){e.shouldResetAfterCancel&&(e.question.renderedValue=e.previousValue,e.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[I.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.push(e),this.question.renderedValue=n,this.updateListState()},t.prototype.deselectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.splice(n.indexOf(e),1),this.question.renderedValue=n,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){i.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(e){i.prototype.onClear.call(this,e),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){e.keyCode===8&&!this.filterString&&(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;!((e=this.listModel.focusedItem)===null||e===void 0)&&e.selected?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(e,n){i.prototype.onPropertyChangedHandler.call(this,e,n),(n.name==="value"||n.name==="renderedValue"||n.name==="placeholder")&&this.syncFilterStringPlaceholder()},Eo([x({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),Eo([x({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),Eo([x()],t.prototype,"previousValue",void 0),Eo([x({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(Po),Wc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Qs=function(i){Wc(t,i);function t(e){var n=i.call(this,e)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.deselectAllItemText=n.createLocalizableString("deselectAllText",n.selectAllItem,!0,"deselectAllItemText"),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.locStrsChanged=function(){var e;i.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),(e=this.dropdownListModelValue)===null||e===void 0||e.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue||(this.dropdownListModelValue=new hl(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new _().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),Nn(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(e,n,r,o){return n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.validateItemValues=function(e){var n=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var o=this.selectedItemValues;if(!e.length&&o&&o.length)return this.defaultSelectedItemValues=[].concat(o),o;var s=e.map(function(u){return u.value});return r.filter(function(u){return s.indexOf(u)===-1}).forEach(function(u){var d=n.getItemIfChoicesNotContainThisValue(u,n.itemDisplayNameMap[u]);d&&e.push(d)}),e.sort(function(u,d){return r.indexOf(u.value)-r.indexOf(d.value)}),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,n=function(r){e.itemDisplayNameMap[r.value]=r.text};(this.defaultSelectedItemValues||[]).forEach(n),(this.selectedItemValues||[]).forEach(n),this.visibleChoices.forEach(n)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.allElementsSelected=function(){var e=i.prototype.allElementsSelected.call(this);return this.updateSelectAllItemText(e),e},t.prototype.updateSelectAllItemText=function(e){this.selectAllItem.setLocText(e?this.deselectAllItemText:this.selectAllItemText)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||I.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),yn([x()],t.prototype,"searchMode",void 0),yn([x()],t.prototype,"allowClear",void 0),yn([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),yn([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),yn([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),yn([x()],t.prototype,"choicesLazyLoadPageSize",void 0),yn([x({getDefaultValue:function(){return I.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),yn([x()],t.prototype,"textWrapEnabled",void 0),t}(ci);j.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"textWrapEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""},{name:"searchMode",default:"contains",choices:["contains","startsWith"]}],function(){return new Qs("")},"checkbox"),Se.Instance.registerQuestion("tagbox",function(i){var t=new Qs(i);return t.choices=Se.DefaultChoices,t});var $c=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gl=function(i){$c(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.doDragOver=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="grabbing"}},e.doBanDropHere=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="not-allowed"}},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){if(this.parentElement.getType()==="imagepicker")return this.createImagePickerShortcut(this.draggedElement,e,n,r);var o=R.createElement("div");if(o){o.className="sv-drag-drop-choices-shortcut";var s=!0,u=n.closest("[data-sv-drop-target-item-value]").cloneNode(s);u.classList.add("sv-drag-drop-choices-shortcut__content");var d=u.querySelector(".svc-item-value-controls__drag-icon");d.style.visibility="visible";var y=u.querySelector(".svc-item-value-controls__remove");y.style.backgroundColor="transparent",u.classList.remove("svc-item-value--moveup"),u.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(u);var V=n.getBoundingClientRect();return o.shortcutXOffset=r.clientX-V.x,o.shortcutYOffset=r.clientY-V.y,this.isBottom=null,typeof this.onShortcutCreated=="function"&&this.onShortcutCreated(o),o}},t.prototype.createImagePickerShortcut=function(e,n,r,o){var s=R.createElement("div");if(s){s.style.cssText=` 
-      cursor: grabbing;
-      position: absolute;
-      z-index: 10000;
-      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));
-      background-color: var(--sjs-general-backcolor, var(--background, #fff));
-      padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
-      border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
-    `;var u=r.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=u.querySelector(".svc-image-item-value-controls");var d=u.querySelector(".sd-imagepicker__image-container"),y=u.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),d.style.width=y.width+"px",d.style.height=y.height+"px",y.style.objectFit="cover",y.style.borderRadius="4px",s.appendChild(y),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n;return n=this.parentElement.choices.filter(function(r){return""+r.value==e})[0],n},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return e.getType()==="ranking"?e.selectToRankEnabled?e.visibleChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,n){var r=this.getVisibleChoices();if(this.parentElement.getType()!=="imagepicker"){var o=r.indexOf(this.dropTarget),s=r.indexOf(this.draggedElement);if(s>o&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(s<o&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return r.indexOf(e)!==-1},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.calculateIsBottom=function(e,n){var r=n.getBoundingClientRect();return e>=r.y+r.height/2},t.prototype.afterDragOver=function(e){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o<r&&this.isBottom===!0)n.splice(o,1),n.splice(r,0,this.draggedElement);else if(o>r&&this.isBottom===!1)n.splice(r,1),n.splice(o,0,this.dropTarget);else return;this.parentElement.getType()!=="imagepicker"&&(o!==r&&(e.classList.remove("svc-item-value--moveup"),e.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),i.prototype.ghostPositionChanged.call(this))},t.prototype.doDrop=function(){var e=this.parentElement.choices,n=this.getVisibleChoices().filter(function(s){return e.indexOf(s)!==-1}),r=e.indexOf(this.draggedElement),o=n.indexOf(this.draggedElement);return e.splice(r,1),e.splice(o,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="flex",this.imagepickerControlsNode=null),i.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){e.getType()==="ranking"?e.updateRankingChoices():e.updateVisibleChoices()},t}(bs),Jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yl=function(i){Jc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isDragOverRootNode=!1,e.doDragOver=function(){var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="grabbing"},e.reorderRankedItem=function(n,r,o){if(r!=o){var s=n.rankingChoices,u=s[r];n.isValueSetByUser=!0,s.splice(r,1),s.splice(o,0,u),e.updateDraggedElementShortcut(o+1)}},e.doBanDropHere=function(){if(e.isDragOverRootNode){e.allowDropHere=!0;return}var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="not-allowed"},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=R.createElement("div");if(o){o.className=this.shortcutClass+" sv-ranking-shortcut";var s=!0,u=n.cloneNode(s);o.appendChild(u);var d=n.getBoundingClientRect();o.style.left=d.x,o.style.top=d.y,this.domAdapter.rootElement.append(o);var y=o.offsetHeight,V=r.clientY;return V>d.y+y&&(V=d.y+y-10),o.shortcutXOffset=r.clientX-d.x,o.shortcutYOffset=V-d.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px"),o}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new _().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,mo).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(e){return this.isDragOverRootNode=this.getIsDragOverRootNode(e),i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getIsDragOverRootNode=function(e){return typeof e.className=="string"&&e.className.indexOf("sv-ranking")!==-1},t.prototype.isDropTargetValid=function(e,n){var r=this.parentElement.rankingChoices;return r.indexOf(e)!==-1},t.prototype.calculateIsBottom=function(e,n){return this.dropTarget instanceof re&&this.draggedElement!==this.dropTarget?i.prototype.calculateIsBottom.call(this,e,n):!1},t.prototype.getIndices=function(e,n,r){var o=n.indexOf(this.draggedElement),s=r.indexOf(this.dropTarget);if(o<0&&this.draggedElement&&(this.draggedElement=re.getItemByValue(n,this.draggedElement.value)||this.draggedElement,o=n.indexOf(this.draggedElement)),s===-1){var u=e.value.length;s=u}else n==r?(!this.isBottom&&o<s&&s--,this.isBottom&&o>s&&s++):n!=r&&this.isBottom&&s++;return{fromIndex:o,toIndex:s}},t.prototype.afterDragOver=function(e){var n=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),r=n.fromIndex,o=n.toIndex;this.reorderRankedItem(this.parentElement,r,o)},t.prototype.updateDraggedElementShortcut=function(e){var n;if(!((n=this.domAdapter)===null||n===void 0)&&n.draggedElementShortcut){var r=e!==null?e+"":"",o=this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index");o.innerText=r}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,i.prototype.ghostPositionChanged.call(this)},t.prototype.doDrop=function(){return this.parentElement.setValue(),this.parentElement},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),i.prototype.clear.call(this)},t}(gl),Gc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ml=function(i){Gc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.selectToRank=function(n,r,o){var s=[].concat(n.rankingChoices),u=n.unRankingChoices,d=u[r];s.splice(o,0,d),e.updateChoices(n,s)},e.unselectFromRank=function(n,r,o){var s=[].concat(n.rankingChoices);s.splice(r,1),e.updateChoices(n,s)},e}return t.prototype.findDropTargetNodeByDragOverNode=function(e){if(e.dataset.ranking==="from-container"||e.dataset.ranking==="to-container")return e;var n=e.closest("[data-ranking='to-container']"),r=e.closest("[data-ranking='from-container']");return this.parentElement.unRankingChoices.length===0&&r?r:this.parentElement.rankingChoices.length===0&&n?n:i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(e,n){return e.dataset.ranking==="to-container"?"to-container":e.dataset.ranking==="from-container"||e.closest("[data-ranking='from-container']")?"from-container":i.prototype.getDropTargetByNode.call(this,e,n)},t.prototype.isDropTargetValid=function(e,n){return e==="to-container"||e==="from-container"?!0:i.prototype.isDropTargetValid.call(this,e,n)},t.prototype.afterDragOver=function(e){var n=this.parentElement,r=n.rankingChoices,o=n.unRankingChoices;if(this.isDraggedElementUnranked&&this.isDropTargetRanked){this.doRankBetween(e,o,r,this.selectToRank);return}if(this.isDraggedElementRanked&&this.isDropTargetRanked){this.doRankBetween(e,r,r,this.reorderRankedItem);return}if(this.isDraggedElementRanked&&!this.isDropTargetRanked){this.doRankBetween(e,r,o,this.unselectFromRank);return}},t.prototype.doRankBetween=function(e,n,r,o){var s=this.parentElement,u=this.getIndices(s,n,r),d=u.fromIndex,y=u.toIndex;o(s,d,y,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return this.parentElement.rankingChoices.indexOf(this.draggedElement)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return this.dropTarget==="to-container"?!0:this.parentElement.rankingChoices.indexOf(this.dropTarget)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,n){e.isValueSetByUser=!0,e.rankingChoices=n,e.updateUnRankingChoices(n)},t}(yl),Zc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Hs=function(i){Zc(t,i);function t(e){var n=i.call(this,e)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(i.prototype.onVisibleChoicesChanged.call(n),n.carryForwardStartUnranked&&!n.isValueSetByUser&&!n.selectToRankEnabled&&!n.defaultValue&&(n.value=[]),n.visibleChoices.length===1&&!n.selectToRankEnabled){n.value=[],n.value.push(n.visibleChoices[0].value),n.updateRankingChoices();return}if(n.isEmpty()){n.updateRankingChoices();return}if(n.selectToRankEnabled){n.updateRankingChoices();return}n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices(),n.updateRankingChoices()},n.localeChanged=function(){i.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new Nt(n.getChoicesAnimationOptions(!0),function(r){n._renderedRankingChoices=r},function(){return n.renderedRankingChoices}),n._unRankingChoicesAnimation=new Nt(n.getChoicesAnimationOptions(!1),function(r){n._renderedUnRankingChoices=r},function(){return n.renderedUnRankingChoices}),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(r,o,s){var u=r.target;n.isDragStartNodeValid(u)&&n.isAllowStartDrag(u,o)&&(n.draggedChoiceValue=o.value,n.draggedTargetNode=s,n.dragOrClickHelper.onPointerDown(r))},n.startDrag=function(r){var o=re.getItemByValue(n.activeChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(r,o,n,n.draggedTargetNode)},n.handlePointerUp=function(r,o,s){if(n.selectToRankEnabled){var u=r.target;n.isAllowStartDrag(u,o)&&n.handleKeydownSelectToRank(r,o," ",!1)}},n.handleKeydown=function(r,o){if(!n.isReadOnlyAttr&&!n.isDesignMode){var s=r.key,u=n.rankingChoices.indexOf(o);if(n.selectToRankEnabled){n.handleKeydownSelectToRank(r,o);return}if(s==="ArrowUp"&&u||s==="ArrowDown"&&u!==n.rankingChoices.length-1){var d=s=="ArrowUp"?u-1:u+1;n.dragDropRankingChoices.reorderRankedItem(n,u,d),n.setValueAfterKeydown(d,"",!0,r)}}},n.focusItem=function(r,o){if(n.domNode)if(n.selectToRankEnabled&&o){var s="[data-ranking='"+o+"']",u=n.domNode.querySelectorAll(s+" ."+n.cssClasses.item);u[r].focus()}else{var u=n.domNode.querySelectorAll("."+n.cssClasses.item);u[r].focus()}},n.isValueSetByUser=!1,n.setValue=function(){var r=[];n.rankingChoices.forEach(function(o){r.push(o.value)}),n.value=r,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()}),n.dragOrClickHelper=new Cs(n.startDrag),n}return t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){if(!(this.isDesignMode||e.disabled))return 0},t.prototype.supportContainerQueries=function(){return this.selectToRankEnabled},Object.defineProperty(t.prototype,"rootClass",{get:function(){return new _().append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,I.rankingDragHandleArea==="icon").append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal").append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="vertical").append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal"&&this.selectToRankSwapAreas).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(e){return this.selectToRankEnabled?i.prototype.isItemSelectedCore.call(this,e):!0},t.prototype.getItemClassCore=function(e,n){return new _().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===e).toString()},t.prototype.getContainerClasses=function(e){var n=!1,r=e==="to",o=e==="from";return r?n=this.renderedRankingChoices.length===0:o&&(n=this.renderedUnRankingChoices.length===0),new _().append(this.cssClasses.container).append(this.cssClasses.containerToMode,r).append(this.cssClasses.containerFromMode,o).append(this.cssClasses.containerEmptyMode,n).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return this.ghostPosition==="top"?this.cssClasses.dragDropGhostPositionTop:this.ghostPosition==="bottom"?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var n;return this.selectToRankEnabled?n=this.unRankingChoices.indexOf(e)!==-1:n=this.isEmpty(),new _().append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,n).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.updateRankingChoicesSync=function(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return h.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),!this.isLoadingFromJson&&this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),e&&(this.isValueSetByUser=!0)},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(n){e.indexOf(n.value)===-1&&e.push(n.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),n=this.visibleChoices,r=this.value.length-1;r>=0;r--)re.getItemByValue(n,this.value[r])||e.splice(r,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var n=this;return{getKey:function(r){return r.value},getRerenderEvent:function(){return n.onElementRerendered},isAnimationEnabled:function(){return n.animationAllowed&&!n.isDesignMode&&n.isVisible&&!!n.domNode},getReorderOptions:function(r,o){var s="";return r!==n.currentDropTarget&&(s=o?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:s}},getLeaveOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getEnterOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getAnimatedElement:function(r){var o,s=n.cssClasses,u="";n.selectToRankEnabled&&(!e&&s.containerFromMode?u=ke(s.containerFromMode):e&&s.containerToMode&&(u=ke(s.containerToMode)));var d=e?n.renderedRankingChoices.indexOf(r):n.renderedUnRankingChoices.indexOf(r);return(o=n.domNode)===null||o===void 0?void 0:o.querySelector(u+" [data-sv-drop-target-ranking-item='"+d+"']")},allowSyncRemovalAddition:!0}},Object.defineProperty(t.prototype,"rankingChoicesAnimation",{get:function(){return this._rankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoicesAnimation",{get:function(){return this._unRankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRankingChoices",{get:function(){return this._renderedRankingChoices},set:function(e){this.rankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedUnRankingChoices",{get:function(){return this._renderedUnRankingChoices},set:function(e){this.unRankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.updateRenderedRankingChoices=function(){this.renderedRankingChoices=this.rankingChoices},t.prototype.updateRenderedUnRankingChoices=function(){this.renderedUnRankingChoices=this.unRankingChoices},t.prototype.updateRankingChoices=function(e){var n=this;if(e===void 0&&(e=!1),this.selectToRankEnabled){this.updateRankingChoicesSelectToRankMode(e);return}var r=[];if(e&&(this.rankingChoices=[]),this.isEmpty()){this.rankingChoices=this.visibleChoices;return}this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.rankingChoices=r},t.prototype.updateUnRankingChoices=function(e){var n=[];this.visibleChoices.forEach(function(r){n.push(r)}),e.forEach(function(r){n.forEach(function(o,s){o.value===r.value&&n.splice(s,1)})}),this.unRankingChoices=n},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var n=this,r=[];this.isEmpty()||this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.updateUnRankingChoices(r),this.rankingChoices=r},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new ml(this.survey,null,this.longTap):new yl(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return I.rankingDragHandleArea==="icon"?e.classList.contains(this.cssClasses.itemIconHoverMod):!0},t.prototype.isAllowStartDrag=function(e,n){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(n)},t.prototype.canStartDragDueMaxSelectedChoices=function(e){if(!this.selectToRankEnabled)return!0;var n=e.closest("[data-ranking='from-container']");return n?this.checkMaxSelectedChoicesUnreached():!0},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(e){this.domNode=e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.domNode=void 0,i.prototype.beforeDestroyQuestionElement.call(this,e)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,n,r,o){if(o===void 0&&(o=!0),!this.isDesignMode){var s=e.key;if(r&&(s=r),!(s!==" "&&s!=="ArrowUp"&&s!=="ArrowDown")){var u=this.dragDropRankingChoices,d=this.rankingChoices,y=d.indexOf(n)!==-1,V=y?d:this.unRankingChoices,T=V.indexOf(n);if(!(T<0)){var N;if(s===" "&&!y){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(n))return;N=this.value.length,u.selectToRank(this,T,N),this.setValueAfterKeydown(N,"to-container",o,e);return}if(y){if(s===" "){u.unselectFromRank(this,T),N=this.unRankingChoices.indexOf(n),this.setValueAfterKeydown(N,"from-container",o,e);return}var U=s==="ArrowUp"?-1:s==="ArrowDown"?1:0;U!==0&&(N=T+U,!(N<0||N>=d.length)&&(u.reorderRankedItem(this,T,N),this.setValueAfterKeydown(N,"to-container",o,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,n,r,o){var s=this;r===void 0&&(r=!0),this.setValue(),r&&setTimeout(function(){s.focusItem(e,n)},1),o&&o.preventDefault()},t.prototype.getIconHoverCss=function(){return new _().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new _().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"sv-ranking-item"},Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankSwapAreas",{get:function(){return this.getPropertyValue("selectToRankSwapAreas",!1)},set:function(e){this.setPropertyValue("selectToRankSwapAreas",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return this.getPropertyValue("selectToRankAreasLayout")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedSelectToRankAreasLayout",{get:function(){return this.isMobileMode()?"vertical":this.selectToRankAreasLayout},enumerable:!1,configurable:!0}),t.prototype.isMobileMode=function(){return mo},Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropSvgIcon",{get:function(){return this.cssClasses.dragDropSvgIconId||"#icon-drag-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-reorder-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-rankingundefined-16x16"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),mn([me({onSet:function(e,n){return n.updateRenderedRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedRankingChoices()},onPush:function(e,n,r){return r.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),mn([me({onSet:function(e,n){return n.updateRenderedUnRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedUnRankingChoices()},onPush:function(e,n,r){return r.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),mn([me()],t.prototype,"_renderedRankingChoices",void 0),mn([me()],t.prototype,"_renderedUnRankingChoices",void 0),mn([x({defaultValue:null})],t.prototype,"currentDropTarget",void 0),mn([x({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),mn([x({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),mn([x({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(ci);j.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"showRefuseItem",visible:!1,isSerializable:!1},{name:"showDontKnowItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankSwapAreas:switch",default:!1,visible:!1,isSerializable:!0,dependsOn:"selectToRankEnabled"},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],function(){return new Hs("")},"checkbox"),Se.Instance.registerQuestion("ranking",function(i){var t=new Hs(i);return t.choices=Se.DefaultChoices,t});var Kc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zs=function(i){Kc(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"textAreaModel",{get:function(){return this.textAreaModelValue||(this.textAreaModelValue=new Fn(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,n=this,r=function(s){h.isTwoValueEquals(n.value,s,!1,!0,!1)||(n.value=s)},o={question:this,id:function(){return e.inputId},propertyName:"value",className:function(){return e.className},placeholder:function(){return e.renderedPlaceholder},isDisabledAttr:function(){return e.isDisabledAttr},isReadOnlyAttr:function(){return e.isReadOnlyAttr},autoGrow:function(){return e.renderedAutoGrow},maxLength:function(){return e.getMaxLength()},rows:function(){return e.rows},cols:function(){return e.cols},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},ariaLabelledBy:function(){return e.a11y_input_ariaLabelledBy},ariaDescribedBy:function(){return e.a11y_input_ariaDescribedBy},ariaInvalid:function(){return e.a11y_input_ariaInvalid},ariaErrormessage:function(){return e.a11y_input_ariaErrormessage},getTextValue:function(){return e.value},onTextAreaChange:function(s){r(s.target.value)},onTextAreaInput:function(s){e.onInput(s)},onTextAreaKeyDown:function(s){e.onKeyDown(s)},onTextAreaFocus:function(s){e.onFocus(s)},onTextAreaBlur:function(s){e.onBlur(s)}};return o},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAutoGrow",{get:function(){var e=this.autoGrow;return e===void 0&&this.survey?this.survey.autoGrowComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAllowResize",{get:function(){var e=this.allowResize;return e===void 0&&this.survey?this.survey.allowResizeComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.renderedAllowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(e){var n=I.environment.root;this.element=n.getElementById(this.inputId)||e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onBlurCore=function(e){i.prototype.onBlurCore.call(this,e)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),!this.acceptCarriageReturn&&(e.key==="Enter"||e.keyCode===13)&&(e.preventDefault(),e.stopPropagation())},t.prototype.setNewValue=function(e){!this.acceptCarriageReturn&&e&&(e=e.replace(new RegExp(`(\r
-|
-|\r)`,"gm"),"")),i.prototype.setNewValue.call(this,e)},t.prototype.getValueSeparator=function(){return`
-`},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed||this.textAreaModel.updateElement()},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(xo);j.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean",defaultFunc:function(){}},{name:"allowResize:boolean",defaultFunc:function(){}},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new zs("")},"textbase"),Se.Instance.registerQuestion("comment",function(i){return new zs(i)});var pi="environment",vn="user",Yc=function(){function i(){this.canFlipValue=void 0}return i.clear=function(){i.cameraList=void 0,i.cameraIndex=-1},i.setCameraList=function(t){var e=function(n){var r=n.label.toLocaleLowerCase();return r.indexOf(vn)>-1?vn:r.indexOf(pi)>-1?pi:r.indexOf("front")>-1?vn:r.indexOf("back")>-1?pi:""};i.clear(),Array.isArray(t)&&t.length>0&&(i.cameraIndex=-1,t.sort(function(n,r){if(n===r)return 0;if(n.label!==r.label){var o=e(n),s=e(r);if(o!==s){if(o===vn)return-1;if(s===vn)return 1;if(o===pi)return-1;if(s===pi)return 1}}var u=t.indexOf(n),d=t.indexOf(r);return u<d?-1:1})),i.cameraList=t},i.prototype.hasCamera=function(t){var e=this;if(i.cameraList!==void 0){this.hasCameraCallback(t);return}if(i.mediaDevicesCallback){var n=function(r){e.setVideoInputs(r),e.hasCameraCallback(t)};i.mediaDevicesCallback(n);return}typeof navigator<"u"&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(function(r){e.setVideoInputs(r),e.hasCameraCallback(t),e.updateCanFlipValue()}).catch(function(r){i.cameraList=null,e.hasCameraCallback(t)}):(i.cameraList=null,this.hasCameraCallback(t))},i.prototype.getMediaConstraints=function(t){var e=i.cameraList;if(!(!Array.isArray(e)||e.length<1)){i.cameraIndex<0&&(i.cameraIndex=0);var n=e[i.cameraIndex],r={};return n&&n.deviceId?r.deviceId={exact:n.deviceId}:r.facingMode=i.cameraFacingMode,t&&(t!=null&&t.height&&(r.height={ideal:t.height}),t!=null&&t.width&&(r.width={ideal:t.width})),{video:r,audio:!1}}},i.prototype.startVideo=function(t,e,n,r){var o=this;if(!t){e(void 0);return}t.style.width="100%",t.style.height="auto",t.style.height="100%",t.style.objectFit="contain";var s=this.getMediaConstraints({width:n,height:r});navigator.mediaDevices.getUserMedia(s).then(function(u){var d;t.srcObject=u,!(!((d=i.cameraList[i.cameraIndex])===null||d===void 0)&&d.deviceId)&&u.getTracks()[0].getCapabilities().facingMode&&(i.canSwitchFacingMode=!0,o.updateCanFlipValue()),t.play(),e(u)}).catch(function(u){e(void 0)})},i.prototype.getImageSize=function(t){return{width:t.videoWidth,height:t.videoHeight}},i.prototype.snap=function(t,e){if(!t||!R.isAvailable())return!1;var n=R.getDocument(),r=n.createElement("canvas"),o=this.getImageSize(t);r.height=o.height,r.width=o.width;var s=r.getContext("2d");return s.clearRect(0,0,r.width,r.height),s.drawImage(t,0,0,r.width,r.height),r.toBlob(e,"image/png"),!0},i.prototype.updateCanFlipValue=function(){var t=i.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||i.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},i.prototype.canFlip=function(t){return this.canFlipValue===void 0&&this.updateCanFlipValue(),t&&(this.onCanFlipChangedCallback=t),this.canFlipValue},i.prototype.flip=function(){this.canFlip()&&(i.canSwitchFacingMode?i.cameraFacingMode=i.cameraFacingMode===vn?"environment":vn:i.cameraIndex>=i.cameraList.length-1?i.cameraIndex=0:i.cameraIndex++)},i.prototype.hasCameraCallback=function(t){t(Array.isArray(i.cameraList))},i.prototype.setVideoInputs=function(t){var e=[];t.forEach(function(n){n.kind==="videoinput"&&e.push(n)}),i.setCameraList(e.length>0?e:null)},i.cameraIndex=-1,i.cameraFacingMode=vn,i.canSwitchFacingMode=!1,i}(),Us=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ae=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Xc(i,t,e){var n=atob(i.split(",")[1]),r=new Uint8Array(n.split("").map(function(o){return o.charCodeAt(0)})).buffer;return new File([r],t,{type:e})}var vl=function(i){Us(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isUploading=!1,e.onUploadStateChanged=e.addEvent(),e.onStateChanged=e.addEvent(),e}return t.prototype.stateChanged=function(e){this.currentState!=e&&(e==="loading"&&(this.isUploading=!0),e==="loaded"&&(this.isUploading=!1),e==="error"&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},Object.defineProperty(t.prototype,"showLoadingIndicator",{get:function(){return this.isUploading&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(e){this.clearOnDeletingContainer(),i.prototype.clearValue.call(this,e)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),this.isUploading&&this.waitForUpload&&e.push(new _n(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var n=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,function(r,o){Array.isArray(r)&&(n.setValueFromResult(r),Array.isArray(o)&&(o.forEach(function(s){return n.errors.push(new _n(s,n))}),n.stateChanged("error"))),r==="success"&&Array.isArray(o)&&n.setValueFromResult(o),r==="error"&&(typeof o=="string"&&n.errors.push(new _n(o,n)),Array.isArray(o)&&o.length>0&&o.forEach(function(s){return n.errors.push(new _n(s,n))}),n.stateChanged("error")),n.stateChanged("loaded")}))},t.prototype.loadPreview=function(e){},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.stateChanged(this.isEmpty()?"empty":"loaded")},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),Ae([x()],t.prototype,"isUploading",void 0),Ae([x({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(Be),bl=function(i){Us(t,i);function t(e,n){var r=i.call(this)||this;return r.question=e,r.index=n,r.id=t.getId(),r}return t.getId=function(){return"sv_sfp_"+t.pageCounter++},Object.defineProperty(t.prototype,"css",{get:function(){return this.question.cssClasses.page},enumerable:!1,configurable:!0}),t.pageCounter=0,Ae([me({})],t.prototype,"items",void 0),t}(fe),Ws=function(i){Us(t,i);function t(e){var n=i.call(this,e)||this;return n.isDragging=!1,n.fileNavigator=new xt,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n._renderedPages=[],n.pagesAnimation=new rr(n.getPagesAnimationOptions(),function(r){n._renderedPages=r},function(){return n.renderedPages}),n.calcAvailableItemsCount=function(r,o,s){var u=Math.floor(r/(o+s));return(u+1)*(o+s)-s<=r&&u++,u},n.dragCounter=0,n.onDragEnter=function(r){n.canDragDrop()&&(r.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(r){if(!n.canDragDrop())return r.returnValue=!1,!1;r.dataTransfer.dropEffect="copy",r.preventDefault()},n.onDrop=function(r){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,r.preventDefault();var o=r.dataTransfer;n.onChange(o)}},n.onDragLeave=function(r){n.canDragDrop()&&(n.dragCounter--,n.dragCounter===0&&(n.isDragging=!1))},n.doChange=function(r){var o=r.target||r.srcElement;n.onChange(o)},n.doClean=function(){if(n.needConfirmRemoveFile){Wt({message:n.confirmRemoveAllMessage,funcOnYes:function(){n.clearFilesCore()},locale:n.getLocale(),rootElement:n.survey.rootElement,cssClass:n.cssClasses.confirmDialog});return}n.clearFilesCore()},n.doDownloadFileFromContainer=function(r){r.stopPropagation();var o=r.currentTarget;if(o&&o.getElementsByTagName){var s=o.getElementsByTagName("a")[0];s==null||s.click()}},n.doDownloadFile=function(r,o){r.stopPropagation(),Dn()&&(r.preventDefault(),sr(o.content,o.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new xt,n.actionsContainer.locOwner=n,n.fileIndexAction=new xe({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new xe({id:"prevPage",iconSize:16,action:function(){n.navigationDirection="left",n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new xe({id:"nextPage",iconSize:16,action:function(){n.navigationDirection="right",n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new xe({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new De(function(){return new _().append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()}),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new xe({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new De(function(){return new _().append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()}),action:function(){n.stopVideo()}}),n.changeCameraAction=new xe({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new De(function(){return new _().append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()}),visible:new De(function(){return n.canFlipCamera()}),action:function(){n.flipCamera()}}),n.chooseFileAction=new xe({iconName:"icon-choosefile",id:"sv-file-choose-file",iconSize:"auto",data:{question:n},enabledIf:function(){return!n.isInputReadOnly},component:"sv-file-choose-btn"}),n.startCameraAction=new xe({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new De(function(){return!n.isAnswered}),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new xe({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new De(function(){return n.cssClasses.removeButton}),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach(function(r){r.cssClasses={}}),n.registerFunctionOnPropertiesValueChanged(["sourceType","currentMode","isAnswered"],function(){n.updateActionsVisibility()}),n.actionsContainer.actions=[n.chooseFileAction,n.startCameraAction,n.cleanAction],n.fileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return Object.defineProperty(t.prototype,"supportFileNavigator",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.containsMultiplyFiles,o=this.pageSize<this.previewValue.length;return!e&&!n&&r&&o&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return Math.ceil(this.previewValue.length/this.pageSize)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionsContainerVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.isDefaultV2Theme;return!e&&!n&&r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoId",{get:function(){return this.id+"_video"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVideoUI",{get:function(){return this.currentMode!=="file"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return this.currentMode!=="camera"},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;this.currentMode==="file"||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout(function(){e.startVideoInCamera()},0))},Object.defineProperty(t.prototype,"videoHtmlElement",{get:function(){var e;return(e=this.rootElement)===null||e===void 0?void 0:e.querySelector("#"+this.videoId)},enumerable:!1,configurable:!0}),t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoHtmlElement,function(n){e.videoStream=n,n||e.stopVideo()},Et(this.imageWidth),Et(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;if(this.isPlayingVideo){var n=function(r){if(r){var o=new File([r],"snap_picture.png",{type:"image/png"});e.loadFiles([o])}};this.camera.snap(this.videoHtmlElement,n),this.stopVideo()}},t.prototype.canFlipCamera=function(){var e=this;return this.canFlipCameraValue===void 0&&(this.canFlipCameraValue=this.camera.canFlip(function(n){e.canFlipCameraValue=n})),this.canFlipCameraValue},t.prototype.flipCamera=function(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())},t.prototype.closeVideoStream=function(){this.videoStream&&(this.videoStream.getTracks().forEach(function(e){e.stop()}),this.videoStream=void 0)},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(e){i.prototype.updateElementCssCore.call(this,e),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId,this.updateCurrentMode()},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.pagesCount)},t.prototype.updateFileNavigator=function(){this.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.updateRenderedPages=function(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])},t.prototype.updatePages=function(){var e=this;this.blockAnimations();var n;this.pages=[],this.renderedPages=[],this.previewValue.forEach(function(r,o){o%e.pageSize==0&&(n=new bl(e,e.pages.length),e.pages.push(n)),n.items.push(r)}),this.releaseAnimations(),this.updateRenderedPages()},t.prototype.previewValueChanged=function(){var e=this;this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection="left-delete"):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout(function(){e.processResponsiveness(0,e._width)},1),this.prevPreviewLength=this.previewValue.length},t.prototype.getType=function(){return"file"},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||this.loadPreview(e)},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),t.prototype.chooseFile=function(e){var n=this;if(this.rootElement){var r=this.rootElement.querySelector("#"+this.inputId);r&&(e.preventDefault(),e.stopImmediatePropagation(),r&&(this.survey?this.survey.chooseFiles(r,function(o){return n.loadFiles(o)},{element:this,elementType:this.getType(),propertyName:this.name}):r.click()))}},Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"takePhotoCaption",{get:function(){return this.getLocalizableStringText("takePhotoCaption")},set:function(e){this.setLocalizableStringText("takePhotoCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTakePhotoCaption",{get:function(){return this.getLocalizableString("takePhotoCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearButtonCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){var e=this;return this.locRenderedPlaceholderValue===void 0&&(this.locRenderedPlaceholderValue=new De(function(){var n=e.isReadOnly,r=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&e.sourceType!="camera",o=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&e.sourceType!="file",s;return n?s=e.locNoFileChosenCaption:r&&o?s=e.locFileOrPhotoPlaceholder:r?s=e.locFilePlaceholder:s=e.locPhotoPlaceholder,s})),this.locRenderedPlaceholderValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMode",{get:function(){return this.getPropertyValue("currentMode",this.sourceType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayingVideo",{get:function(){return this.getPropertyValue("isPlayingVideo",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsPlayingVideo=function(e){this.setPropertyValue("isPlayingVideo",e)},t.prototype.updateCurrentMode=function(){var e=this;!this.isDesignMode&&this.survey&&(this.sourceType!=="file"?this.camera.hasCamera(function(n){e.setPropertyValue("currentMode",n&&e.isDefaultV2Theme?e.sourceType:"file")}):this.setPropertyValue("currentMode",this.sourceType))},t.prototype.updateActionsVisibility=function(){var e=this.isDesignMode;this.chooseFileAction.visible=!e&&this.hasFileUI||e&&this.sourceType!=="camera",this.startCameraAction.visible=!e&&this.hasVideoUI||e&&this.sourceType!=="file",this.cleanAction.visible=!!this.isAnswered},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var n=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(r,o){r==="success"&&(n.value=void 0,n.errors=[],e&&e(),n.indexToShow=0,n.fileIndexAction.title=n.getFileIndexCaption())}))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChooseButton",{get:function(){return!this.isReadOnly&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFileDecorator",{get:function(){var e=this.isPlayingVideo,n=this.showLoadingIndicator;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,n=this.isPlayingVideo;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPreviewContainer",{get:function(){return this.previewValue&&this.previewValue.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonCore",{get:function(){var e=this.showLoadingIndicator,n=this.isReadOnly,r=this.isEmpty();return!n&&!r&&!e&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return this.showRemoveButtonCore&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){var e=new _().append(this.cssClasses.removeButtonBottom).append(this.cssClasses.contextButton).toString();return this.showRemoveButtonCore&&e},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter(function(n){return n.name===e})[0])},t.prototype.removeFileByContent=function(e){var n=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(r,o){if(r==="success"){var s=n.value;Array.isArray(s)?n.value=s.filter(function(u){return!h.isTwoValueEquals(u,e,!0,!1,!1)}):n.value=void 0}})},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map(function(n){return{name:n.file.name,type:n.file.type,content:n.content}}))},t.prototype.loadFiles=function(e){var n=this;if(this.survey&&(this.errors=[],!!this.allFilesOk(e))){var r=function(){n.stateChanged("loading");var o=[];n.storeDataAsText?e.forEach(function(s){var u=new FileReader;u.onload=function(d){o=o.concat([{name:s.name,type:s.type,content:u.result}]),o.length===e.length&&(n.value=(n.value||[]).concat(o))},u.readAsDataURL(s)}):n.uploadFiles(e)};this.allowMultiple?r():this.clear(r)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new Yc),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var n=this;if(!(this.showPreview&&this.prevLoadedPreviewValue===e)&&(this.previewValue.splice(0,this.previewValue.length),!(!this.showPreview||!e))){this.prevLoadedPreviewValue=e;var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(r.forEach(function(o){var s=o.content||o;n.previewValue.push({name:o.name,type:o.type,content:s})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new Cl(this,function(o,s){o!=="error"&&(s.forEach(function(u){n.previewValue.push(u)}),n.previewValueChanged()),n.isFileLoading=!1,n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r))}},t.prototype.allFilesOk=function(e){var n=this,r=this.errors?this.errors.length:0;return(e||[]).forEach(function(o){n.maxSize>0&&o.size>n.maxSize&&n.errors.push(new Gr(n.maxSize,n))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var n="data:image",r=e.content&&e.content.substring(0,n.length);r=r&&r.toLowerCase();var o=r===n||!!e.type&&e.type.toLowerCase().indexOf("image/")===0;return o},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(o,s){return{name:s,title:"File",value:o.content&&o.content||o,displayValue:o.name&&o.name||o,getString:function(u){return typeof u=="object"?JSON.stringify(u):u},isNode:!1}})}return n},t.prototype.getImageWrapperCss=function(e){return new _().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return new _().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return new _().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return new _().append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return new _().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new _().append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return new _().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(B.isFileReaderAvailable()&&!(!e||!e.files||e.files.length<1)){for(var n=[],r=this.allowMultiple?e.files.length:1,o=0;o<r;o++)n.push(e.files[o]);e.value="",this.loadFiles(n)}},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.actionsContainer.cssClasses=e.actionBar,this.actionsContainer.cssClasses.itemWithTitle=this.actionsContainer.cssClasses.item,this.actionsContainer.cssClasses.item="",this.actionsContainer.cssClasses.itemAsIcon=n.contextButton,this.actionsContainer.containerCss=n.actionsContainer,n},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.updateCurrentMode(),this.updateActionsVisibility(),this.loadPreview(this.value)},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getObservedElementSelector=function(){return ke(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return ke(this.cssClasses.fileList)},Object.defineProperty(t.prototype,"renderedPages",{get:function(){return this._renderedPages},set:function(e){this.pagesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.getPagesAnimationOptions=function(){var e=this;return{getEnterOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new _().append(r+"--enter-from-left",e.navigationDirection=="left"||e.navigationDirection=="left-delete").append(r+"--enter-from-right",e.navigationDirection=="right").toString():""}},getLeaveOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new _().append(r+"--leave-to-left",e.navigationDirection=="right").append(r+"--leave-to-right",e.navigationDirection=="left").toString():""}},getAnimatedElement:function(n){var r;return(r=e.rootElement)===null||r===void 0?void 0:r.querySelector("#"+n.id)},isAnimationEnabled:function(){return e.animationAllowed&&!!e.rootElement},getRerenderEvent:function(){return e.onElementRerendered}}},t.prototype.triggerResponsiveness=function(e){e&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),i.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,n){if(this._width=n,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector(),o=r?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(o){var s=o.querySelector(ke(this.cssClasses.page));if(s){var u=s.querySelector(ke(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(R.getComputedStyle(s).gap)),u&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(R.getComputedStyle(u).width)))}}}return this.calculatedGapBetweenItems&&this.calculatedItemWidth?(this.pageSize=this.calcAvailableItemsCount(n,this.calculatedItemWidth,this.calculatedGapBetweenItems),!0):!1},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&this.currentMode!=="camera"&&!this.isPlayingVideo},t.prototype.afterRenderQuestionElement=function(e){this.rootElement=e},t.prototype.beforeDestroyQuestionElement=function(e){this.rootElement=void 0},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,n){var r=this;if(n.stopPropagation(),this.needConfirmRemoveFile){Wt({message:this.getConfirmRemoveMessage(e.name),funcOnYes:function(){r.clearFilesCore()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var n=this.previewValue.indexOf(e);this.removeFileByContent(n===-1?e:this.value[n])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),i.prototype.dispose.call(this)},Ae([x()],t.prototype,"isDragging",void 0),Ae([me({})],t.prototype,"previewValue",void 0),Ae([me({})],t.prototype,"pages",void 0),Ae([x({defaultValue:0,onSet:function(e,n){n.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),Ae([x({defaultValue:1,onSet:function(e,n){n.updateFileNavigator()}})],t.prototype,"pageSize",void 0),Ae([x({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),Ae([x()],t.prototype,"allowCameraAccess",void 0),Ae([x({onSet:function(e,n){n.isLoadingFromJson||n.updateCurrentMode()}})],t.prototype,"sourceType",void 0),Ae([x()],t.prototype,"canFlipCameraValue",void 0),Ae([x({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),Ae([x({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),Ae([x({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),Ae([x({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),Ae([x({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),Ae([x({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),Ae([x({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),Ae([x({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),Ae([x({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),Ae([x({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),Ae([x({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),Ae([x()],t.prototype,"locRenderedPlaceholderValue",void 0),Ae([me()],t.prototype,"_renderedPages",void 0),t}(vl);j.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0,visible:!1},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(i){return!!i.showPreview}},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"},{name:"sourceType",choices:["file","camera","file-camera"],default:"file",category:"general",visible:!0,visibleIf:function(){return I.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return I.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return I.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return I.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],function(){return new Ws("")},"question"),Se.Instance.registerQuestion("file",function(i){return new Ws(i)});var Cl=function(){function i(t,e){this.fileQuestion=t,this.callback=e,this.loaded=[]}return i.prototype.load=function(t){var e=this,n=0;this.loaded=new Array(t.length),t.forEach(function(r,o){e.fileQuestion.survey&&e.fileQuestion.survey.downloadFile(e.fileQuestion,e.fileQuestion.name,r,function(s,u){!e.fileQuestion||!e.callback||(s!=="error"?(e.loaded[o]={content:u,name:r.name,type:r.type},n++,n===t.length&&e.callback(s,e.loaded)):e.callback("error",e.loaded))})})},i.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},i}(),ep=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$s=function(i){ep(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("html",n);return r.onGetTextCallback=function(o){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(o):o},n}return t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(e){return this.ignoreHtmlProgressing?e:i.prototype.getProcessedText.call(this,e)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return new _().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(Oo);j.addClass("html",[{name:"html:html",serializationProperty:"locHtml"},{name:"hideNumber",visible:!1},{name:"state",visible:!1},{name:"titleLocation",visible:!1},{name:"descriptionLocation",visible:!1},{name:"errorLocation",visible:!1},{name:"indent",visible:!1},{name:"width",visible:!1}],function(){return new $s("")},"nonvalue"),Se.Instance.registerQuestion("html",function(i){return new $s(i)});var tp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Js=function(i){tp(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&!this.isOtherSelected},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(e){this.isMouseDown=!0,i.prototype.setNewComment.call(this,e),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.isReadOnlyAttr||(this.renderedValue=e.value)},t.prototype.getDefaultTitleActions=function(){var e=this,n=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new xe({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new De(function(){return e.canShowClearButton})});n.push(r)}return n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}(li);j.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new Js("")},"checkboxbase"),Se.Instance.registerQuestion("radiogroup",function(i){var t=new Js(i);return t.choices=Se.DefaultChoices,t});var Gs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},To=function(i){Gs(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.itemValue=e,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),dt([x({defaultValue:""})],t.prototype,"highlight",void 0),dt([x({defaultValue:""})],t.prototype,"text",void 0),dt([x()],t.prototype,"style",void 0),t}(fe),np=function(i){Gs(t,i);function t(e,n,r){var o=i.call(this,e,n)||this;return o.description=r,o}return t}(re),Zs=function(i){Gs(t,i);function t(e){var n=i.call(this,e)||this;return n._syncPropertiesChanging=!1,n.iCounter=0,n.createItemValues("rateValues"),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateType"],function(){n.setIconsToRateValues(),n.resetRenderedItems(),n.updateRateCount()}),n.registerFunctionOnPropertiesValueChanged(["rateValues"],function(){n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerSychProperties(["rateValues"],function(){n.autoGenerate=n.rateValues.length==0,n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],function(){n.updateColors(n.survey.themeVariables)}),n.registerFunctionOnPropertiesValueChanged(["displayMode"],function(){n.updateRenderAsBasedOnDisplayMode(!0)}),n.registerSychProperties(["autoGenerate"],function(){!n.autoGenerate&&n.rateValues.length===0&&n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.resetRenderedItems()}),n.createLocalizableString("minRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMinRateDescription=!r.isEmpty}),n.createLocalizableString("maxRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMaxRateDescription=!r.isEmpty}),n.initPropertyDependencies(),n}return t.prototype.setIconsToRateValues=function(){var e=this;this.rateType=="smileys"&&this.rateValues.map(function(n){return n.icon=e.getItemSmiley(n)})},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.jsonObj.rateMin!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMax===void 0&&this.updateRateMax(),this.jsonObj.rateMax!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMin===void 0&&this.updateRateMin(),this.jsonObj.autoGenerate===void 0&&this.jsonObj.rateValues!==void 0&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()},t.prototype.registerSychProperties=function(e,n){var r=this;this.registerFunctionOnPropertiesValueChanged(e,function(){r._syncPropertiesChanging||(r._syncPropertiesChanging=!0,n(),r._syncPropertiesChanging=!1)})},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;this.useRateValues()?e=this.rateValues.length:e=Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1,e>10&&this.rateDisplayMode=="smileys"&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],function(){if(!e.useRateValues())e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1);else if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&e.rateDisplayMode=="smileys")return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var n=e.rateValues.length;n<e.rateCount;n++)e.rateValues.push(new re(k("choices_Item")+(n+1)))}),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],function(){e.updateRateCount()})},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this,n;return!this.readOnly&&((n=this.visibleRateValues.filter(function(r){return r.value==e.value})[0])===null||n===void 0?void 0:n.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){if(this.colorMode==="monochrome"||!R.isAvailable()||t.colorsCalculated)return;function n(o){var s=getComputedStyle(R.getDocumentElement());return s.getPropertyValue&&s.getPropertyValue(o)}function r(o,s){var u=!!e&&e[o];if(u||(u=n(s)),!u)return null;var d=R.createElement("canvas");if(!d)return null;var y=d.getContext("2d");y.fillStyle=u,y.fillStyle=="#000000"&&(y.fillStyle=n(s));var V=y.fillStyle;if(V.startsWith("rgba"))return V.substring(5,V.length-1).split(",").map(function(N){return+N.trim()});var T=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(V);return T?[parseInt(T[1],16),parseInt(T[2],16),parseInt(T[3],16),1]:null}t.badColor=r("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=r("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=r("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=r("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=r("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=r("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0,this.resetRenderedItems()},t.prototype.getDisplayValueCore=function(e,n){if(!this.useRateValues)return i.prototype.getDisplayValueCore.call(this,e,n);var r=re.getTextOrHtmlByValue(this.visibleRateValues,n);return r||n},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return this.renderAs==="dropdown"},t.prototype.itemValuePropertyChanged=function(e,n,r,o){!this.useRateValues()&&o!==void 0&&(this.autoGenerate=!1),i.prototype.itemValuePropertyChanged.call(this,e,n,r,o)},t.prototype.runConditionCore=function(e,n){i.prototype.runConditionCore.call(this,e,n),this.runRateItesmCondition(e,n)},t.prototype.runRateItesmCondition=function(e,n){var r;if(this.useRateValues()){var o=!1;if(!((r=this.survey)===null||r===void 0)&&r.areInvisibleElementsShowing?this.rateValues.forEach(function(u){o=o||!u.isVisible,u.setIsVisible(u,!0)}):o=re.runConditionsForItems(this.rateValues,void 0,void 0,e,n,!0),o&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){var s=re.getItemByValue(this.rateValues,this.value);s&&!s.isVisible&&this.clearValue()}}},t.prototype.getRateValuesCore=function(){if(!this.useRateValues())return this.createRateValues();var e=new Array;return this.rateValues.forEach(function(n){n.isVisible&&e.push(n)}),e},t.prototype.calculateRateValues=function(){var e=this.getRateValuesCore();return this.rateType=="smileys"&&e.length>10&&(e=e.slice(0,10)),e},t.prototype.calculateRenderedRateItems=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){var s=null;return e.displayRateDescriptionsAsExtremeItems&&(o==0&&(s=new To(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),o==n.length-1&&(s=new To(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),s||(s=new To(r)),s})},t.prototype.calculateVisibleChoices=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){return e.getRatingItemValue(r,o)})},t.prototype.resetRenderedItems=function(){if(this.autoGenerate){var e=this.getRateValuesCore();this.rateMax=e[e.length-1].value}Array.isArray(this.getPropertyValueWithoutDefault("renderedRateItems"))&&this.setArrayPropertyDirectly("renderedRateItems",this.calculateRenderedRateItems()),Array.isArray(this.getPropertyValueWithoutDefault("visibleChoices"))&&this.setArrayPropertyDirectly("visibleChoices",this.calculateVisibleChoices)},Object.defineProperty(t.prototype,"renderedRateItems",{get:function(){var e=this;return this.getPropertyValue("renderedRateItems",void 0,function(){return e.calculateRenderedRateItems()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){var e=this;return this.getPropertyValue("visibleChoices",void 0,function(){return e.calculateVisibleChoices()})},enumerable:!1,configurable:!0}),t.prototype.createRateValues=function(){for(var e=[],n=this.rateMin,r=this.rateStep;n<=this.rateMax&&e.length<I.ratingMaximumRateValueCount;){var o=new re(n);o.locOwner=this,o.ownerPropertyName="rateValues",e.push(o),n=this.correctValue(n+r,r)}return e},t.prototype.getRatingItemValue=function(e,n){if(!e)return null;var r=e.value,o;r===this.rateMin&&(o=this.minRateDescription&&this.locMinRateDescription),(r===this.rateMax||n===I.ratingMaximumRateValueCount)&&(o=this.maxRateDescription&&this.locMaxRateDescription);var s=new np(r,e.text,o);return s.locOwner=e.locOwner,s.ownerPropertyName=e.ownerPropertyName,s},t.prototype.correctValue=function(e,n){if(!e||Math.round(e)==e)return e;for(var r=0;Math.round(n)!=n;)n*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0||this.renderAs==="dropdown"},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(e){var n=i.prototype.getPlainDataCalculatedValue.call(this,e);if(n!==void 0||!this.useRateValues||this.isEmpty())return n;var r=re.getItemByValue(this.visibleRateValues,this.value);return r?r[e]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.updateRenderAsBasedOnDisplayMode=function(e){this.isDesignMode?(e||this.renderAs==="dropdown")&&(this.renderAs="default"):(e||this.displayMode!=="auto")&&(this.renderAs=this.displayMode==="dropdown"?"dropdown":"default")},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.renderAs==="dropdown"&&this.displayMode==="auto"?this.displayMode=this.renderAs:this.updateRenderAsBasedOnDisplayMode()},Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return this.rateType=="stars"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return this.rateType=="smileys"},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return this.renderAs=="dropdown"?"sv-rating-dropdown-item":this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var n=re.getItemByValue(this.rateValues,e);return n?n.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===(typeof this.value=="string"?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!Le&&!(this.isReadOnly||!e.itemValue.isEnabled||this.isDesignMode)){var n=!0,r=this.value!=null;if(this.rateType!=="stars"){e.highlight="highlighted";return}for(var o=0;o<this.renderedRateItems.length;o++)this.renderedRateItems[o].highlight=n&&!r&&"highlighted"||!n&&r&&"unhighlighted"||"none",this.renderedRateItems[o]==e&&(n=!1),this.renderedRateItems[o].itemValue.value==this.value&&(r=!1)}},t.prototype.onItemMouseOut=function(e){Le||this.renderedRateItems.forEach(function(n){return n.highlight="none"})},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&I.matrix.rateSize=="small"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=(this.displayMode=="buttons"||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",n="";return(this.hasMaxLabel||this.hasMinLabel)&&(this.rateDescriptionLocation=="top"&&(n=this.cssClasses.rootLabelsTop),this.rateDescriptionLocation=="bottom"&&(n=this.cssClasses.rootLabelsBottom),this.rateDescriptionLocation=="topBottom"&&(n=this.cssClasses.rootLabelsDiagonal)),new _().append(this.cssClasses.root).append(e).append(n).append(this.cssClasses.itemSmall,this.itemSmallMode&&this.rateType!="labels").toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var n=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"],r=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"],o=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,s=r.slice(0,o),u=n.filter(function(d){return s.indexOf(d)!=-1});return this.useRateValues()?u[this.rateValues.indexOf(e)]:u[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,n){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,s=(this.rateCount-1)/2,u=n?t.normalColorLight:t.normalColor;if(e<s?o=u:(r=u,e-=s),!r||!o)return null;for(var d=[0,0,0,0],y=0;y<4;y++)d[y]=r[y]+(o[y]-r[y])*e/s,y<3&&(d[y]=Math.trunc(d[y]));return"rgba("+d[0]+", "+d[1]+", "+d[2]+", "+d[3]+")"},t.prototype.getItemStyle=function(e,n){if(n===void 0&&(n="none"),this.scaleColorMode==="monochrome"&&this.rateColorMode=="default"||this.isPreviewStyle||this.isReadOnlyStyle)return{};var r=this.visibleRateValues.indexOf(e),o=this.getRenderedItemColor(r,!1),s=n=="highlighted"&&this.scaleColorMode==="colored"&&this.getRenderedItemColor(r,!0);return s?{"--sd-rating-item-color":o,"--sd-rating-item-color-light":s}:{"--sd-rating-item-color":o}},t.prototype.getItemClass=function(e,n){var r=this,o=this.value==e.value;this.isStar&&(this.useRateValues()?o=this.rateValues.indexOf(this.rateValues.filter(function(Un){return Un.value==r.value})[0])>=this.rateValues.indexOf(e):o=this.value>=e.value);var s=this.isReadOnly||!e.isEnabled,u=!s&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),d=this.renderedRateItems.filter(function(Un){return Un.itemValue==e})[0],y=this.isStar&&(d==null?void 0:d.highlight)=="highlighted",V=this.isStar&&(d==null?void 0:d.highlight)=="unhighlighted",T=this.cssClasses.item,N=this.cssClasses.selected,U=this.cssClasses.itemDisabled,W=this.cssClasses.itemReadOnly,X=this.cssClasses.itemPreview,Y=this.cssClasses.itemHover,J=this.cssClasses.itemOnError,ue=null,Me=null,Ne=null,St=null,Tt=null;this.isStar&&(T=this.cssClasses.itemStar,N=this.cssClasses.itemStarSelected,U=this.cssClasses.itemStarDisabled,W=this.cssClasses.itemStarReadOnly,X=this.cssClasses.itemStarPreview,Y=this.cssClasses.itemStarHover,J=this.cssClasses.itemStarOnError,ue=this.cssClasses.itemStarHighlighted,Me=this.cssClasses.itemStarUnhighlighted,Tt=this.cssClasses.itemStarSmall),this.isSmiley&&(T=this.cssClasses.itemSmiley,N=this.cssClasses.itemSmileySelected,U=this.cssClasses.itemSmileyDisabled,W=this.cssClasses.itemSmileyReadOnly,X=this.cssClasses.itemSmileyPreview,Y=this.cssClasses.itemSmileyHover,J=this.cssClasses.itemSmileyOnError,ue=this.cssClasses.itemSmileyHighlighted,Ne=this.cssClasses.itemSmileyScaleColored,St=this.cssClasses.itemSmileyRateColored,Tt=this.cssClasses.itemSmileySmall);var wr=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return new _().append(T).append(N,o).append(U,this.isDisabledStyle).append(W,this.isReadOnlyStyle).append(X,this.isPreviewStyle).append(Y,u).append(ue,y).append(Ne,this.scaleColorMode=="colored").append(St,this.rateColorMode=="scale"&&o).append(Me,V).append(J,this.hasCssError()).append(Tt,this.itemSmallMode).append(this.cssClasses.itemFixedSize,wr).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new _().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),n=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return this.displayMode!="dropdown"&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(n-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){this.dropdownListModelValue||(this.dropdownListModelValue=new Po(this),this.ariaExpanded="false")},t.prototype.getCompactRenderAs=function(){return this.displayMode=="buttons"?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return this.displayMode=="dropdown"?"dropdown":"default"},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.renderAs==="dropdown"&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.ariaExpanded=e?"false":void 0,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.onBlurCore=function(e){var n;(n=this.dropdownListModel)===null||n===void 0||n.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),Nn(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.colorsCalculated=!1,dt([x({defaultValue:!1})],t.prototype,"inputHasValue",void 0),dt([x()],t.prototype,"autoGenerate",void 0),dt([x()],t.prototype,"rateCount",void 0),dt([x({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),dt([x({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),dt([x()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),dt([x()],t.prototype,"displayMode",void 0),dt([x()],t.prototype,"rateDescriptionLocation",void 0),dt([x()],t.prototype,"rateType",void 0),dt([x()],t.prototype,"scaleColorMode",void 0),dt([x()],t.prototype,"rateColorMode",void 0),t}(Be);j.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:1},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(i){return i.rateDisplayMode=="smileys"},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(i){return i.rateDisplayMode=="smileys"&&i.scaleColorMode=="monochrome"},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(i,t){return t<2?2:t>I.ratingMaximumRateValueCount&&t>i.rateValues.length?I.ratingMaximumRateValueCount:t>10&&i.rateDisplayMode=="smileys"?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return k("choices_Item")},category:"rateValues",visibleIf:function(i){return!i.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(i,t){return t>i.rateMax-i.rateStep?i.rateMax-i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(i,t){return t<i.rateMin+i.rateStep?i.rateMin+i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(i,t){return t<=0&&(t=1),t>i.rateMax-i.rateMin&&(t=i.rateMax-i.rateMin),t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:9},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:18},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:19},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:21,visibleIf:function(i){return i.rateType=="labels"}},{name:"rateDescriptionLocation",default:"leftRight",choices:["leftRight","top","bottom","topBottom"],visibleIndex:20},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:0},{name:"itemComponent",visible:!1,defaultFunc:function(i){return i?(i.getOriginalObj&&(i=i.getOriginalObj()),i.getDefaultItemComponent()):"sv-rating-item"}}],function(){return new Zs("")},"question"),Se.Instance.registerQuestion("rating",function(i){return new Zs(i)});var rp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),br=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ks=function(i){rp(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return this.renderAs!=="checkbox"},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.isDesignMode||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=void 0,this.booleanValueRendered=void 0):(this.value=e==!0?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){e===!0&&(e="true"),e===!1&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if(!(e==="indeterminate"||e===void 0||e===null))return e=="true"?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return this.titleLocation==="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return this.booleanValue!==null&&this.booleanValue!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelLeft",{get:function(){return this.swapOrder?this.getLocalizableString("labelTrue"):this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelRight",{get:function(){return this.swapOrder?this.getLocalizableString("labelFalse"):this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return this.valueTrue!==void 0?this.valueTrue:!0},t.prototype.getValueFalse=function(){return this.valueFalse!==void 0?this.valueFalse:!1},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;(e==="indeterminate"||e===null||e===void 0)&&this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,n){return this.defaultValue==e||n!==void 0&&this.defaultValue===n},t.prototype.getDisplayValueCore=function(e,n){return n==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return new _().append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return new _().append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&e===!this.swapOrder).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this)},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){if(this.booleanValue===!0)return this.locLabelTrue;if(this.booleanValue===!1)return this.locLabelFalse},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e==="true"&&this.valueTrue!=="true"&&(e=!0),e==="false"&&this.valueFalse!=="false"&&(e=!1),(e==="indeterminate"||e===null)&&(e=void 0),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.onLabelClick=function(e,n){return this.allowClick&&(Ji(e),this.booleanValue=n),!0},t.prototype.calculateBooleanValueByEvent=function(e,n){var r=!1;R.isAvailable()&&(r=R.getComputedStyle(e.target).direction=="rtl"),this.booleanValue=r?!n:n},t.prototype.onSwitchClickModel=function(e){if(this.allowClick){Ji(e);var n=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,n);return}return!0},t.prototype.onKeyDownCore=function(e){return(e.key==="ArrowLeft"||e.key==="ArrowRight")&&(e.stopPropagation(),this.calculateBooleanValueByEvent(e,e.key==="ArrowRight")),!0},t.prototype.getRadioItemClass=function(e,n){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&n===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(r+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(r+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(r+=" "+e.radioItemPreview),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(e){return i.prototype.createActionContainer.call(this,this.renderAs!=="checkbox")},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"switch"},enumerable:!1,configurable:!0}),br([x()],t.prototype,"booleanValueRendered",void 0),br([x()],t.prototype,"showTitle",void 0),br([x({localizable:!0})],t.prototype,"label",void 0),br([x({defaultValue:!1})],t.prototype,"swapOrder",void 0),br([x()],t.prototype,"valueTrue",void 0),br([x()],t.prototype,"valueFalse",void 0),t}(Be);j.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"swapOrder:boolean",category:"general"},{name:"renderAs",default:"default",visible:!1}],function(){return new Ks("")},"question"),Se.Instance.registerQuestion("boolean",function(i){return new Ks(i)});var wl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ft=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Pl=function(i){wl(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="imageitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e),this.imageNotLoaded=!1,this.videoNotLoaded=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof fi&&this.locOwner.contentMode=="video"?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof fi&&this.locOwner.contentMode=="video"?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),Ft([x({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),Ft([x({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(re),fi=function(i){wl(t,i);function t(e){var n=i.call(this,e)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(r,o){r.contentNotLoaded=!1;var s=o.target;n.contentMode=="video"?r.aspectRatio=s.videoWidth/s.videoHeight:r.aspectRatio=s.naturalWidth/s.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],function(){n._width&&n.processResponsiveness(0,n._width)}),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],function(){n.calcIsResponsive()}),n.calcIsResponsive(),n}return t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?h.isArrayContainsEqual(this.value,this.correctAnswer):i.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var n=this.value,r=e;if(this.isValueEmpty(n)||!r.imageLink||r.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(n,e.value);if(!Array.isArray(n))return!1;for(var o=0;o<n.length;o++)if(this.isTwoValueEquals(n[o],e.value))return!0;return!1},t.prototype.getItemEnabled=function(e){var n=e;return!n.imageLink||n.contentNotLoaded?!1:i.prototype.getItemEnabled.call(this,e)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var e=this.value;if(!e)return;if(!Array.isArray(e)||e.length==0){this.clearValue(!0);return}for(var n=[],r=0;r<e.length;r++)this.hasUnknownValue(e[r],!0)||n.push(e[r]);if(n.length==e.length)return;n.length==0?this.clearValue(!0):this.value=n}else i.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(e,n){return!this.multiSelect&&!Array.isArray(n)?i.prototype.getDisplayValueCore.call(this,e,n):this.getDisplayArrayValue(e,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var e=i.prototype.getValueCore.call(this);return e!==void 0?e:this.multiSelect?[]:e},t.prototype.convertValToArrayForMultSelect=function(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(e)?e:[e]},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageScale",{get:function(){return this.survey?this.survey.widthScale/100:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale;return e||150*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale;return e||200*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),e==="video"&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return!1},t.prototype.addToVisibleChoices=function(e,n){this.addNewItemToVisibleChoices(e,n)},t.prototype.getSelectBaseRootCss=function(){return new _().append(i.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,this.getCurrentColCount()==1).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some(function(n){return e[n]!==void 0&&e[n]!==null})},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return ke(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.needResponsiveWidth=function(){return this.colCount>2},t.prototype.getCurrentColCount=function(){return this.responsiveColCount===void 0||this.colCount===0?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,n){this._width=n=Math.floor(n);var r=function(ue,Me,Ne){var St=Math.floor(ue/(Me+Ne));return(St+1)*(Me+Ne)-Ne<=ue&&St++,St};if(this.isResponsive){var o=this.choices.length+(this.isDesignMode?1:0),s=(this.gapBetweenItems||0)*this.imageScale,u=this.minImageWidth*this.imageScale,d=this.maxImageWidth*this.imageScale,y=this.maxImageHeight*this.imageScale,V=this.minImageHeight*this.imageScale,T=this.colCount,N;if(T===0)if((s+u)*o-s>n){var U=r(n,u,s);N=Math.floor((n-s*(U-1))/U)}else N=Math.floor((n-s*(o-1))/o);else{var W=r(n,u,s);W<T?(this.responsiveColCount=W>=1?W:1,T=this.responsiveColCount):this.responsiveColCount=T,N=Math.floor((n-s*(T-1))/T)}N=Math.max(u,Math.min(N,d));var X=Number.MIN_VALUE;this.choices.forEach(function(ue){var Me=N/ue.aspectRatio;X=Me>X?Me:X}),X>y?X=y:X<V&&(X=V);var Y=this.responsiveImageWidth,J=this.responsiveImageHeight;return this.responsiveImageWidth=N,this.responsiveImageHeight=X,Y!==this.responsiveImageWidth||J!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),e&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),i.prototype.triggerResponsiveness.call(this,e)},t.prototype.afterRender=function(e){var n=this;i.prototype.afterRender.call(this,e);var r=this.getObservedElementSelector(),o=e&&r?e.querySelector(r):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(R.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},Ft([x({})],t.prototype,"responsiveImageHeight",void 0),Ft([x({})],t.prototype,"responsiveImageWidth",void 0),Ft([x({})],t.prototype,"isResponsiveValue",void 0),Ft([x({})],t.prototype,"maxImageWidth",void 0),Ft([x({})],t.prototype,"minImageWidth",void 0),Ft([x({})],t.prototype,"maxImageHeight",void 0),Ft([x({})],t.prototype,"minImageHeight",void 0),Ft([x({})],t.prototype,"responsiveColCount",void 0),t}(li);j.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(i){return new Pl(i)},"itemvalue"),j.addClass("responsiveImageSize",[],void 0,"number"),j.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"showRefuseItem",visible:!1},{name:"showDontKnowItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return I.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return I.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return I.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return I.supportCreatorV2}}],function(){return new fi("")},"checkboxbase"),j.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),j.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),j.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),j.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),Se.Instance.registerQuestion("imagepicker",function(i){var t=new fi(i);return t});var ip=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),op=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},xl=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],sp="https://www.youtube.com/",Vl="embed",Ys=function(i){ip(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("imageLink",n,!1);return r.onGetTextCallback=function(o){return ap(o,n.contentMode=="youtube")},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return n.calculateRenderedMode()}),n}return t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?pr(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?Et(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?pr(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?Et(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),e==="video"&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),n=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&n.isDefaultValue(this.imageWidth);return new _().append(this.cssClasses.image).append(this.cssClasses.adaptive,r).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){this.contentMode!=="auto"?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return h.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var n=0;n<xl.length;n++)if(e.endsWith(xl[n]))return!0;return!1},op([x({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(Oo);function ap(i,t){if(!i||!h.isUrlYoutubeVideo(i))return t?"":i;var e=i.toLocaleLowerCase();if(e.indexOf(Vl)>-1)return i;for(var n="",r=i.length-1;r>=0&&!(i[r]==="="||i[r]==="/");r--)n=i[r]+n;return sp+Vl+"/"+n}j.addClass("image",[{name:"imageLink:file",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],function(){return new Ys("")},"nonvalue"),Se.Instance.registerQuestion("image",function(i){return new Ys(i)});/*!
- * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
- * (c) 2024 Szymon Nowak | Released under the MIT license
- */class Ro{constructor(t,e,n,r){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=n||0,this.time=r||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class Xs{static fromPoints(t,e){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new Xs(t[1],n,r,t[2],e.start,e.end)}static calculateControlPoints(t,e,n){const r=t.x-e.x,o=t.y-e.y,s=e.x-n.x,u=e.y-n.y,d={x:(t.x+e.x)/2,y:(t.y+e.y)/2},y={x:(e.x+n.x)/2,y:(e.y+n.y)/2},V=Math.sqrt(r*r+o*o),T=Math.sqrt(s*s+u*u),N=d.x-y.x,U=d.y-y.y,W=T/(V+T),X={x:y.x+N*W,y:y.y+U*W},Y=e.x-X.x,J=e.y-X.y;return{c1:new Ro(d.x+Y,d.y+J),c2:new Ro(y.x+Y,y.y+J)}}constructor(t,e,n,r,o,s){this.startPoint=t,this.control2=e,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=s}length(){let e=0,n,r;for(let o=0;o<=10;o+=1){const s=o/10,u=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),d=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const y=u-n,V=d-r;e+=Math.sqrt(y*y+V*V)}n=u,r=d}return e}point(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}class lp{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,e,n){this._et.addEventListener(t,e,n)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,n){this._et.removeEventListener(t,e,n)}}function up(i,t=250){let e=0,n=null,r,o,s;const u=()=>{e=Date.now(),n=null,r=i.apply(o,s),n||(o=null,s=[])};return function(...y){const V=Date.now(),T=t-(V-e);return o=this,s=y,T<=0||T>t?(n&&(clearTimeout(n),n=null),e=V,r=i.apply(o,s),n||(o=null,s=[])):n||(n=window.setTimeout(u,T)),r}}class Io extends lp{constructor(t,e={}){super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=n=>{n.buttons===1&&this._strokeBegin(n)},this._handleMouseMove=n=>{this._strokeMoveUpdate(n)},this._handleMouseUp=n=>{n.buttons===1&&this._strokeEnd(n)},this._handleTouchStart=n=>{if(n.cancelable&&n.preventDefault(),n.targetTouches.length===1){const r=n.changedTouches[0];this._strokeBegin(r)}},this._handleTouchMove=n=>{n.cancelable&&n.preventDefault();const r=n.targetTouches[0];this._strokeMoveUpdate(r)},this._handleTouchEnd=n=>{if(n.target===this.canvas){n.cancelable&&n.preventDefault();const o=n.changedTouches[0];this._strokeEnd(o)}},this._handlePointerStart=n=>{n.preventDefault(),this._strokeBegin(n)},this._handlePointerMove=n=>{this._strokeMoveUpdate(n)},this._handlePointerEnd=n=>{this._drawingStroke&&(n.preventDefault(),this._strokeEnd(n))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle="throttle"in e?e.throttle:16,this.minDistance="minDistance"in e?e.minDistance:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in e?e.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?up(Io.prototype._strokeUpdate,this.throttle):Io.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise((n,r)=>{const o=new Image,s=e.ratio||window.devicePixelRatio||1,u=e.width||this.canvas.width/s,d=e.height||this.canvas.height/s,y=e.xOffset||0,V=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,y,V,u,d),n()},o.onerror=T=>{r(T)},o.crossOrigin="anonymous",o.src=t,this._isEmpty=!1})}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return typeof e!="object"&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`;default:return typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;this._drawingStroke=!0;const n=this._getPointGroupOptions(),r=Object.assign(Object.assign({},n),{points:[]});this._data.push(r),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=t.clientX,n=t.clientY,r=t.pressure!==void 0?t.pressure:t.force!==void 0?t.force:0,o=this._createPoint(e,n,r),s=this._data[this._data.length-1],u=s.points,d=u.length>0&&u[u.length-1],y=d?o.distanceTo(d)<=this.minDistance:!1,V=this._getPointGroupOptions(s);if(!d||!(d&&y)){const T=this._addPoint(o,V);d?T&&this._drawCurve(T,V):this._drawDot(o,V),u.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,n){const r=this.canvas.getBoundingClientRect();return new Ro(t-r.left,e-r.top,n,new Date().getTime())}_addPoint(t,e){const{_lastPoints:n}=this;if(n.push(t),n.length>2){n.length===3&&n.unshift(n[0]);const r=this._calculateCurveWidths(n[1],n[2],e),o=Xs.fromPoints(n,r);return n.shift(),o}return null}_calculateCurveWidths(t,e,n){const r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),s={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,s}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,n){const r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const n=this._ctx,r=t.endWidth-t.startWidth,o=Math.ceil(t.length())*2;n.beginPath(),n.fillStyle=e.penColor;for(let s=0;s<o;s+=1){const u=s/o,d=u*u,y=d*u,V=1-u,T=V*V,N=T*V;let U=N*t.startPoint.x;U+=3*T*u*t.control1.x,U+=3*V*d*t.control2.x,U+=y*t.endPoint.x;let W=N*t.startPoint.y;W+=3*T*u*t.control1.y,W+=3*V*d*t.control2.y,W+=y*t.endPoint.y;const X=Math.min(t.startWidth+y*r,e.maxWidth);this._drawCurveSegment(U,W,X)}n.closePath(),n.fill()}_drawDot(t,e){const n=this._ctx,r=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}_fromData(t,e,n){for(const r of t){const{points:o}=r,s=this._getPointGroupOptions(r);if(o.length>1)for(let u=0;u<o.length;u+=1){const d=o[u],y=new Ro(d.x,d.y,d.pressure,d.time);u===0&&this._reset(s);const V=this._addPoint(y,s);V&&e(V,s)}else this._reset(s),n(o[0],s)}}toSVG({includeBackgroundColor:t=!1}={}){const e=this._data,n=Math.max(window.devicePixelRatio||1,1),r=0,o=0,s=this.canvas.width/n,u=this.canvas.height/n,d=document.createElementNS("http://www.w3.org/2000/svg","svg");if(d.setAttribute("xmlns","http://www.w3.org/2000/svg"),d.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),d.setAttribute("viewBox",`${r} ${o} ${s} ${u}`),d.setAttribute("width",s.toString()),d.setAttribute("height",u.toString()),t&&this.backgroundColor){const y=document.createElement("rect");y.setAttribute("width","100%"),y.setAttribute("height","100%"),y.setAttribute("fill",this.backgroundColor),d.appendChild(y)}return this._fromData(e,(y,{penColor:V})=>{const T=document.createElement("path");if(!isNaN(y.control1.x)&&!isNaN(y.control1.y)&&!isNaN(y.control2.x)&&!isNaN(y.control2.y)){const N=`M ${y.startPoint.x.toFixed(3)},${y.startPoint.y.toFixed(3)} C ${y.control1.x.toFixed(3)},${y.control1.y.toFixed(3)} ${y.control2.x.toFixed(3)},${y.control2.y.toFixed(3)} ${y.endPoint.x.toFixed(3)},${y.endPoint.y.toFixed(3)}`;T.setAttribute("d",N),T.setAttribute("stroke-width",(y.endWidth*2.25).toFixed(3)),T.setAttribute("stroke",V),T.setAttribute("fill","none"),T.setAttribute("stroke-linecap","round"),d.appendChild(T)}},(y,{penColor:V,dotSize:T,minWidth:N,maxWidth:U})=>{const W=document.createElement("circle"),X=T>0?T:(N+U)/2;W.setAttribute("r",X.toString()),W.setAttribute("cx",y.x.toString()),W.setAttribute("cy",y.y.toString()),W.setAttribute("fill",V),d.appendChild(W)}),d.outerHTML}}var cp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},pp=300,fp=200,ea=function(i){cp(t,i);function t(e){var n=i.call(this,e)||this;return n.valueIsUpdatingInternally=!1,n._loadedData=void 0,n.updateValueHandler=function(){n._loadedData=void 0,n.scaleCanvas(!1,!0),n.loadPreview(n.value)},n}return t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var n=this.getPenColorFromTheme(),r=this.getPropertyByName("penColor");e.penColor=this.penColor||n||r.defaultValue||"#1ab394";var o=this.getPropertyByName("backgroundColor"),s=n?"transparent":void 0,u=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=u||s||o.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(e){return new _().append(i.prototype.getCssRoot.call(this,e)).append(e.small,this.signatureWidth.toString()==="300").toString()},t.prototype.getFormat=function(){return this.dataFormat==="jpeg"?"image/jpeg":this.dataFormat==="svg"?"image/svg+xml":""},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(e){e&&(this.isDesignMode||this.initSignaturePad(e),this.element=e),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.themeChanged=function(e){this.signaturePad&&this.updateColors(this.signaturePad)},t.prototype.resizeCanvas=function(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight},t.prototype.scaleCanvas=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!1);var r=this.canvas,o=r.offsetWidth/this.containerWidth;(this.scale!=o||n)&&(this.scale=o,r.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*o,this.signaturePad.maxWidth=this.penMaxWidth*o,r.getContext("2d").scale(1/o,1/o),e&&this.loadPreview(this.value))},t.prototype.fromUrl=function(e){var n=this;if(this.isFileLoading=!0,Hi(e))this.fromDataUrl(e),this.isFileLoading=!1;else{var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=function(){if(n.canvas){var o=R.createElement("canvas");o.width=n.containerWidth,o.height=n.containerHeight;var s=o.getContext("2d");s.drawImage(r,0,0);var u=o.toDataURL(n.getFormat());n.fromDataUrl(u)}n.isFileLoading=!1},r.onerror=function(){n.isFileLoading=!1}}},t.prototype.fromDataUrl=function(e){this._loadedData=e,this.signaturePad&&this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},Object.defineProperty(t.prototype,"loadedData",{get:function(){return this._loadedData},enumerable:!1,configurable:!0}),t.prototype.loadPreview=function(e){var n=this;if(!e){this.signaturePad&&this.canvas&&(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.valueWasChangedFromLastUpload=!1;return}if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var r=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new Cl(this,function(o,s){o==="success"&&s&&s.length>0&&s[0].content?(n.fromDataUrl(s[0].content),n.isFileLoading=!1):o==="skipped"&&n.fromUrl(e),n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r)}},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||(this._loadedData=void 0,this.loadPreview(e))},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.loadPreview(this.value)},t.prototype.initSignaturePad=function(e){var n=this,r=e.getElementsByTagName("canvas")[0];this.canvas=r,this.resizeCanvas();var o=new Io(r,{backgroundColor:"#ffffff"});this.signaturePad=o,this.isInputReadOnly&&o.off(),this.readOnlyChangedCallback=function(){n.isInputReadOnly?o.off():o.on()},this.updateColors(o),o.addEventListener("beginStroke",function(){n.scaleCanvas(),n.isDrawingValue=!0,r.focus()},{once:!1}),o.addEventListener("endStroke",function(){n.isDrawingValue=!1,n.storeDataAsText?n.updateValue():n.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var s=function(u,d){(d.name==="signatureWidth"||d.name==="signatureHeight")&&(n.valueIsUpdatingInternally||n.updateValueHandler())};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat")},set:function(e){this.setPropertyValue("dataFormat",ta(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.signatureHeight||fp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||pp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCanvasWidth",{get:function(){return this.signatureAutoScaleEnabled?"100%":this.containerWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){var e=!this.nothingIsDrawn(),n=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getPropertyValue("backgroundImage")},set:function(e){this.setPropertyValue("backgroundImage",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.nothingIsDrawn=function(){var e=this.isDrawingValue,n=this.isEmpty(),r=this.isUploading,o=this.valueWasChangedFromLastUpload;return!e&&n&&!r&&!o},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.onBlurCore=function(e){if(i.prototype.onBlurCore.call(this,e),!this.storeDataAsText&&!this.element.contains(e.relatedTarget)){if(!this.valueWasChangedFromLastUpload)return;this.uploadFiles([Xc(this.signaturePad.toDataURL(this.getFormat()),this.name+"."+ta(this.dataFormat),this.getFormat())]),this.valueWasChangedFromLastUpload=!1}},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=e!=null&&e.length?e.map(function(n){return n.content})[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(e){this.valueWasChangedFromLastUpload=!1,i.prototype.clearValue.call(this,e),this._loadedData=void 0,this.loadPreview(this.value)},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.signatureWidth===300&&this.width&&typeof this.width=="number"&&this.width&&(He.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&this.height&&(He.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},Xt([x({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),Xt([x({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),Xt([x({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),Xt([x()],t.prototype,"signatureAutoScaleEnabled",void 0),Xt([x()],t.prototype,"penMinWidth",void 0),Xt([x()],t.prototype,"penMaxWidth",void 0),Xt([x({})],t.prototype,"showPlaceholder",void 0),Xt([x({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),Xt([x({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(vl);function ta(i){return i||(i="png"),i=i.replace("image/","").replace("+xml",""),i!=="jpeg"&&i!=="svg"&&(i="png"),i}j.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"signatureAutoScaleEnabled:boolean",category:"general",default:!1},{name:"penMinWidth:number",category:"general",default:.5},{name:"penMaxWidth:number",category:"general",default:2.5},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"showPlaceholder:boolean",category:"general",default:!0},{name:"placeholder:text",serializationProperty:"locPlaceholder",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.showPlaceholder}},{name:"backgroundImage:file",category:"general"},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"jpeg",text:"JPEG"},{value:"svg",text:"SVG"}],onSettingValue:function(i,t){return ta(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new ea("")},"question"),Se.Instance.registerQuestion("signaturepad",function(i){return new ea(i)});var Sl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),di=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},dp=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},hp=function(i){Sl(t,i);function t(e,n,r){var o=i.call(this,r)||this;return o.data=e,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(e){var n=i.prototype.getQuestionByName.call(this,e);if(n)return n;var r=this.panelIndex;n=r>-1?this.data.getSharedQuestionFromArray(e,r):void 0;var o=n?n.name:e;return this.sharedQuestions[o]=e,n},t.prototype.getQuestionDisplayText=function(e){var n=this.sharedQuestions[e.name];if(!n)return i.prototype.getQuestionDisplayText.call(this,e);var r=this.panelItem.getValue(n);return e.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){if(e.name==st.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name==st.VisibleIndexVariableName){var n=this.visiblePanelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name.toLowerCase().indexOf(st.ParentItemVariableName+".")==0){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,st.ItemVariableName),s=st.ItemVariableName+e.name.substring(st.ParentItemVariableName.length),u=o.processValue(s,e.returnDisplayValue);e.isExists=u.isExists,e.value=u.value}return!0}return!1},t}(yr),st=function(){function i(t,e){this.data=t,this.panelValue=e,this.textPreProcessor=new hp(t,this,i.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(i.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),i.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},i.prototype.getValue=function(t){var e=this.getAllValues();return e[t]},i.prototype.setValue=function(t,e){var n=this.data.getPanelItemData(this),r=n?n[t]:void 0;if(!h.isTwoValueEquals(e,r,!1,!0,!1)){this.data.setPanelItemData(this,t,h.getUnbindValue(e));for(var o=this.panel.questions,s=i.ItemVariableName+"."+t,u=0;u<o.length;u++){var d=o[u];d.getValueName()!==t&&d.checkBindings(t,e),d.runTriggers(s,e)}}},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getValue(t+I.commentSuffix);return e||""},i.prototype.setComment=function(t,e,n){this.setValue(t+I.commentSuffix,e)},i.prototype.findQuestionByName=function(t){if(t){var e=i.ItemVariableName+".";if(t.indexOf(e)===0)return this.panel.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},i.prototype.getFilteredValues=function(){var t={},e=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in e)t[n]=e[n];if(t[i.ItemVariableName]=this.getAllValues(),this.data){var r=i.IndexVariableName,o=i.VisibleIndexVariableName;delete t[r],delete t[o],t[r.toLowerCase()]=this.data.getItemIndex(this),t[o.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[i.ParentItemVariableName]=s.parent.getValue())}return t},i.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},i.ItemVariableName="panel",i.ParentItemVariableName="parentpanel",i.IndexVariableName="panelIndex",i.VisibleIndexVariableName="visiblePanelIndex",i}(),gp=function(){function i(t){this.data=t}return i.prototype.getSurveyData=function(){return null},i.prototype.getSurvey=function(){return this.data.getSurvey()},i.prototype.getTextProcessor=function(){return null},i}(),na=function(i){Sl(t,i);function t(e){var n=i.call(this,e)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",function(r){n.onPanelAdded(r)},function(r){n.onPanelRemoved(r)}),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(r){n.addOnPropertyChangedCallback(r),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.createLocalizableString("tabTitlePlaceholder",n,!0,"tabTitlePlaceholder"),n.registerPropertyChangedHandlers(["panelsState"],function(){n.setPanelsState()}),n.registerPropertyChangedHandlers(["newPanelPosition","displayMode","showProgressBar"],function(){n.updateFooterActions()}),n.registerPropertyChangedHandlers(["allowAddPanel"],function(){n.updateNoEntriesTextDefaultLoc()}),n.registerPropertyChangedHandlers(["minPanelCount"],function(){n.onMinPanelCountChanged()}),n.registerPropertyChangedHandlers(["maxPanelCount"],function(){n.onMaxPanelCountChanged()}),n}return Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var n=0;n<this.visiblePanelsCore.length;n++){var r=this.visiblePanelsCore[n].getFirstQuestionToFocus(e);if(r)return r}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.showAddPanelButton?this.addButtonId:i.prototype.getFirstInputElementId.call(this)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,n=0;n<e.length;n++)this.addOnPropertyChangedCallback(e[n])},t.prototype.addOnPropertyChangedCallback=function(e){var n=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add(function(r,o){n.onTemplateElementPropertyChanged(r,o)}),e.isPanel&&(e.addElementCallback=function(r){n.addOnPropertyChangedCallback(r)})},t.prototype.onTemplateElementPropertyChanged=function(e,n){if(!(this.isLoadingFromJson||this.useTemplatePanel||this.panelsCore.length==0)){var r=j.findProperty(e.getType(),n.name);if(r)for(var o=this.panelsCore,s=0;s<o.length;s++){var u=o[s].getQuestionByName(e.name);u&&u[n.name]!==n.newValue&&(u[n.name]=n.newValue)}}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},t.prototype.clearOnDeletingContainer=function(){this.panelsCore.forEach(function(e){e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabTitlePlaceholder",{get:function(){return this.locTabTitlePlaceholder.text},set:function(e){this.locTabTitlePlaceholder.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTabTitlePlaceholder",{get:function(){return this.getLocalizableString("tabTitlePlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.getPropertyValue("templateVisibleIf")},set:function(e){this.setPropertyValue("templateVisibleIf",e),this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],n=0;n<this.panelsCore.length;n++)e.push(this.panelsCore[n].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsCore",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelsCore",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),!!e.visible){for(var n=0,r=this.panelsCore,o=0;o<r.length&&r[o]!==e;o++)r[o].visible&&n++;this.visiblePanelsCore.splice(n,0,e),this.addTabFromToolbar(e,n),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var n=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanelsCore;n>=r.length&&(n=r.length-1),this.currentPanel=n>=0?r[n]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var n=this.visiblePanelsCore,r=n.indexOf(e);return r>-1&&(n.splice(r,1),this.removeTabFromToolbar(e)),r},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e},set:function(e){if(!(this.isRenderModeList||this.useTemplatePanel)){var n=this.getPropertyValue("currentPanel"),r=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&r<0||e===n)&&(n&&n.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),r>-1&&this.survey)){var o={panel:e,visiblePanelIndex:r};this.survey.dynamicPanelCurrentIndexChanged(this,o)}}},enumerable:!1,configurable:!0}),t.prototype.updateRenderedPanels=function(){this.isRenderModeList?this.renderedPanels=[].concat(this.visiblePanels):this.currentPanel?this.renderedPanels=[this.currentPanel]:this.renderedPanels=[]},Object.defineProperty(t.prototype,"renderedPanels",{get:function(){return this._renderedPanels},set:function(e){this.renderedPanels.length==0||e.length==0?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))},enumerable:!1,configurable:!0}),t.prototype.getPanelsAnimationOptions=function(){var e=this,n=function(){if(e.isRenderModeList)return"";var r=new _,o=!1,s=e.renderedPanels.filter(function(d){return d!==e.currentPanel})[0],u=e.visiblePanels.indexOf(s);return u<0&&(o=!0,u=e.removedPanelIndex),r.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",o).append("sv-pd-animation-left",u<=e.currentIndex).append("sv-pd-animation-right",u>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(r){var o,s;if(r&&e.cssContent){var u=ke(e.cssContent);return(s=(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+u+" #"+r.id))===null||s===void 0?void 0:s.parentElement}},getEnterOptions:function(){var r=new _().append(e.cssClasses.panelWrapperEnter).append(n()).toString();return{onBeforeRunAnimation:function(o){if(e.focusNewPanelCallback){var s=e.isRenderModeList?o:o.parentElement;_e.ScrollElementToViewCore(s,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&o.parentElement?un(o.parentElement,{heightTo:o.offsetHeight+"px"}):Vt(o)},onAfterRunAnimation:function(o){Xe(o),o.parentElement&&Xe(o.parentElement)},cssClass:r}},getLeaveOptions:function(){var r=new _().append(e.cssClasses.panelWrapperLeave).append(n()).toString();return{onBeforeRunAnimation:function(o){!e.isRenderModeList&&o.parentElement?un(o.parentElement,{heightFrom:o.offsetHeight+"px"}):Vt(o)},onAfterRunAnimation:function(o){Xe(o),o.parentElement&&Xe(o.parentElement)},cssClass:r}},isAnimationEnabled:function(){return e.animationAllowed&&!!e.getWrapperElement()}}},t.prototype.disablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.blockAnimations()})},t.prototype.enablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.releaseAnimations()})},t.prototype.updatePanelsAnimation=function(){var e=this;this._panelsAnimations=new(this.isRenderModeList?Nt:rr)(this.getPanelsAnimationOptions(),function(n,r){e._renderedPanels=n,r||(e.isPanelsAnimationRunning=!1,e.focusNewPanel())},function(){return e._renderedPanels})},Object.defineProperty(t.prototype,"panelsAnimation",{get:function(){return this._panelsAnimations||this.updatePanelsAnimation(),this._panelsAnimations},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach(function(e){return e.onHidingContent()})},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="top"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="bottom"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return e===void 0&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:i.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(e){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=e):i.prototype.setValueCore.call(this,e)},t.prototype.setIsMobile=function(e){i.prototype.setIsMobile.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.setIsMobile(e)})})},t.prototype.themeChanged=function(e){i.prototype.themeChanged.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.themeChanged(e)})})},Object.defineProperty(t.prototype,"panelCount",{get:function(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue("panelCount"):this.panelsCore.length},set:function(e){if(!(e<0)){if(!this.canBuildPanels||this.wasNotRenderedInSurvey){this.setPropertyValue("panelCount",e);return}if(!(e==this.panelsCore.length||this.useTemplatePanel)){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var n=this.panelCount;n<e;n++){var r=this.createNewPanel();this.panelsCore.push(r),this.displayMode=="list"&&this.panelsState!="default"&&(this.panelsState==="expanded"?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new gp(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsCore[e];n!=this.template&&n.setSurveyImpl(n.data)}},t.prototype.setPanelsState=function(){if(!(this.useTemplatePanel||this.displayMode!="list"||!this.templateTitle))for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsState;n==="firstExpanded"&&(n=e===0?"expanded":"collapsed"),this.panelsCore[e].state=n}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if((!e||!Array.isArray(e))&&(e=[]),e.length!=this.panelCount){for(var n=e.length;n<this.panelCount;n++){var r=this.panels[n].getValue(),o=h.isValueEmpty(r)?{}:r;e.push(o)}e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minPanelCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinPanelCountChanged=function(){var e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)},Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>I.panel.maxPanelCount&&(e=I.panel.maxPanelCount),this.setPropertyValue("maxPanelCount",e),this.updateFooterActions())},enumerable:!1,configurable:!0}),t.prototype.onMaxPanelCountChanged=function(){var e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()},Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addButtonId",{get:function(){return this.id+"addPanel"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newPanelPosition",{get:function(){return this.getPropertyValue("newPanelPosition")},set:function(e){this.setPropertyValue("newPanelPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateErrorLocation",{get:function(){return this.getPropertyValue("templateErrorLocation")},set:function(e){this.setPropertyValue("templateErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible,!0)},enumerable:!1,configurable:!0}),t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return this.showQuestionNumbers==="onSurvey"},Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.showProgressBar},set:function(e){this.showProgressBar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){var e=this.displayMode;if(e=="carousel"){var n=this.progressBarLocation;if(n=="top")return"progressTop";if(n=="bottom")return"progressBottom";if(n=="topBottom")return"progressTopBottom"}return e},set:function(e){(e||"").startsWith("progress")?(e=="progressTop"?this.progressBarLocation="top":e=="progressBottom"?this.progressBarLocation="bottom":e=="progressTopBottom"&&(this.progressBarLocation="topBottom"),this.displayMode="carousel"):this.displayMode=e},enumerable:!1,configurable:!0}),t.prototype.updatePanelView=function(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return this.displayMode==="list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return this.displayMode==="tab"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(e){if(!this.isVisible)return 0;for(var n=this.showQuestionNumbers==="onSurvey",r=n?e:0,o=this.isDesignMode?[this.template]:this.visiblePanelsCore,s=0;s<o.length;s++){var u=this.setPanelVisibleIndex(o[s],r,this.showQuestionNumbers!="off");n&&(r+=u)}return i.prototype.setVisibleIndex.call(this,n?-1:e),n?r-e:1},t.prototype.setPanelVisibleIndex=function(e,n,r){return r?e.setVisibleIndex(n):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return this.isDesignMode||this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1&&this.newPanelPosition!=="next"?!1:this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return this.isDesignMode?!1:this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var n=[];if(this.useTemplatePanel)new st(this,this.template),n.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),n.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,dp([0,this.panelsCore.length],n)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.panelCount==0)){for(var e=[],n=0;n<this.panelCount;n++)e.push(this.defaultPanelValue);this.value=e}},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!this.isRowEmpty(e[n]))return!1;return!0},t.prototype.getProgressInfo=function(){return _e.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel||!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return this.displayMode==="list"&&this.panelsState!=="default"&&e.expand(),this.focusNewPanelCallback=function(){e.focusFirstQuestion()},this.isPanelsAnimationRunning||this.focusNewPanel(),e},t.prototype.focusNewPanel=function(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)},t.prototype.addPanel=function(e){var n=this.currentIndex;return e===void 0&&(e=n<0?this.panelCount:n+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(n<0?this.panelCount-1:n,e),this.isRenderModeList||(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,n){this.panelCount++;var r=this.value;if(!(!Array.isArray(r)||r.length!==this.panelCount)){var o=!1,s=this.panelCount-1;if(n<s){o=!0;var u=r[s];r.splice(s,1),r.splice(n,0,u)}if(this.isValueEmpty(this.defaultPanelValue)||(o=!0,this.copyValue(r[n],this.defaultPanelValue)),this.defaultValueFromLastPanel&&r.length>1){var d=e>-1&&e<=s?e:s;o=!0,this.copyValue(r[n],r[d])}o&&(this.value=r)}},t.prototype.canLeaveCurrentPanel=function(){return!(this.displayMode!=="list"&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,n){for(var r in n)e[r]=n[r]},t.prototype.removePanelUI=function(e){var n=this,r=this.getVisualPanelIndex(e);if(!(r<0||r>=this.visiblePanelCount)&&this.canRemovePanel){var o=function(){var s;n.removePanel(r);var u=n.visiblePanelCount,d=r>=u?u-1:r,y=u===0?n.addButtonId:d>-1?n.getPanelRemoveButtonId(n.visiblePanels[d]):"";y&&_e.FocusElement(y,!0,(s=n.survey)===null||s===void 0?void 0:s.rootElement)};this.isRequireConfirmOnDelete(e)?Wt({message:this.confirmDeleteText,funcOnYes:function(){o()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):o()}},t.prototype.getPanelRemoveButtonId=function(e){return e.id+"_remove_button"},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var n=this.getVisualPanelIndex(e);if(n<0||n>=this.visiblePanelCount)return!1;var r=this.visiblePanelsCore[n].getValue();return!this.isValueEmpty(r)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(r,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return this.currentIndex<0||!this.canLeaveCurrentPanel()?!1:(this.currentIndex++,!0)},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(s){var n=this.getVisualPanelIndex(s);if(!(n<0||n>=this.visiblePanelCount)){this.removedPanelIndex=n;var r=this.visiblePanelsCore[n],o=this.panelsCore.indexOf(r);if(!(o<0)&&!(this.survey&&!this.survey.dynamicPanelRemoving(this,o,r))){this.panelsCore.splice(o,1),this.updateBindings("panelCount",this.panelCount);var s=this.value;!s||!Array.isArray(s)||o>=s.length||(this.isValueChangingInternally=!0,s.splice(o,1),this.value=s,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,o,r),this.isValueChangingInternally=!1)}}},t.prototype.getVisualPanelIndex=function(e){if(h.isNumber(e))return e;for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r]===e||n[r].data===e)return r;return-1},t.prototype.getPanelVisibleIndexById=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].id===e)return r;return-1},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.panelsCore,n=0;n<e.length;n++)e[n].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].clearErrors()},t.prototype.getQuestionFromArray=function(e,n){return n<0||n>=this.panelsCore.length?null:this.panelsCore[n].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var n=this.panelsCore[e];n.clearIncorrectValues();var r=this.value,o=r&&e<r.length?r[e]:null;if(o){var s=!1;for(var u in o)if(!this.getSharedQuestionFromArray(u,e)){var d=n.getQuestionByName(u);d||this.iscorrectValueWithPostPrefix(n,u,I.commentSuffix)||this.iscorrectValueWithPostPrefix(n,u,I.matrix.totalsSuffix)||(delete o[u],s=!0)}s&&(r[e]=o,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n,r){return n.indexOf(r)!==n.length-r.length?!1:!!e.getQuestionByName(n.substring(0,n.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,n){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,n):null},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=n!=null&&n.isValidator?n.errorOwner:n,o=!!n&&(n===!0||this.template.questions.indexOf(r)>-1),s=new Array,u=this.template.questions,d=0;d<u.length;d++)u[d].addConditionObjectsByContext(s,n);for(var y=0;y<I.panel.maxPanelCountInCondition;y++)for(var V="["+y+"].",T=this.getValueName()+V,N=this.processedTitle+V,d=0;d<s.length;d++)s[d].context?e.push(s[d]):e.push({name:T+s[d].name,text:N+s[d].text,question:s[d].question});if(o){for(var T=n===!0?this.getValueName()+".":"",N=n===!0?this.processedTitle+".":"",d=0;d<s.length;d++)if(s[d].question!=n){var U={name:T+st.ItemVariableName+"."+s[d].name,text:N+st.ItemVariableName+"."+s[d].text,question:s[d].question};U.context=this,e.push(U)}}},t.prototype.collectNestedQuestionsCore=function(e,n){var r=n?this.visiblePanelsCore:this.panelsCore;Array.isArray(r)&&r.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(e,n)})})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var s=this.template.getQuestionByName(r);return s?s.getConditionJson(e,n):null},t.prototype.onReadOnlyChanged=function(){var e=this.isReadOnly;this.template.readOnly=e;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=e;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText")},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.panelCount<this.minPanelCount&&(this.panelCount=this.minPanelCount),this.panelCount>this.maxPanelCount&&(this.panelCount=this.maxPanelCount),this.buildPanelsFirstTime(),i.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(e===void 0&&(e=!1),!this.hasPanelBuildFirstTime&&!(!e&&this.wasNotRenderedInSurvey)){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var n=0;n<this.panelCount;n++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),this.showAddPanelButton||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},Object.defineProperty(t.prototype,"showAddPanelButton",{get:function(){return this.allowAddPanel&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasNotRenderedInSurvey",{get:function(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canBuildPanels",{get:function(){return!this.isLoadingFromJson&&!this.useTemplatePanel},enumerable:!1,configurable:!0}),t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].onFirstRendering()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].localeChanged()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runPanelsCondition(this.panelsCore,e,n)},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.visiblePanelsCore.forEach(function(o){o.questions.forEach(function(s){return s.runTriggers(e,n,r)})})},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,n,r){var o={};n&&n instanceof Object&&(o=JSON.parse(JSON.stringify(n))),this.parentQuestion&&this.parent&&(o[st.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var s=0;s<e.length;s++){var u=e[s],d=this.getPanelItemData(u.data),y=h.createCopy(o),V=st.ItemVariableName;y[V]=d,y[st.IndexVariableName.toLowerCase()]=s;var T=h.createCopy(r);T[V]=u,u.runCondition(y,T)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(e,n),this.panelsCore[r].onAnyValueChanged(st.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,n){n===void 0&&(n=null);for(var r=[],o,s=0;s<this.panelsCore.length;s++)o=this.isValueDuplicated(this.panelsCore[s],r,n,e)||o;return o},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion,n=e.parent;n;)n.updateContainsErrors(),n=n.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;if(this.changingValueQuestion){var r=this.changingValueQuestion.hasErrors(e,n);r=this.hasKeysDuplicated(e,n)||r,this.updatePanelsContainsErrors()}else r=this.hasErrorInPanels(e,n);return i.prototype.hasErrors.call(this,e,n)||r},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=this.visiblePanelsCore,n=0;n<e.length;n++){var r=[];e[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(e){if(!e){if(this.survey&&this.survey.getQuestionClearIfInvisible("onHidden")==="none")return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}i.prototype.clearValueOnHidding.call(this,e)},t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=e==="onHidden"?"onHiddenContainer":e;this.clearValueInPanelsIfInvisible(n),i.prototype.clearValueIfInvisible.call(this,e)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n],o=r.questions;this.isSetPanelItemData={};for(var s=0;s<o.length;s++){var u=o[s];u.visible&&!r.isVisible||(u.clearValueIfInvisible(e),this.isSetPanelItemData[u.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.panelsCore.length;e++)for(var n=this.panelsCore[e].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,s=0;s<o.length;s++){var u=o[s].getAllErrors();u&&u.length>0&&(e=e.concat(u))}return e},t.prototype.getDisplayValueCore=function(e,n){var r=this.getUnbindValue(n);if(!r||!Array.isArray(r))return r;for(var o=0;o<this.panelsCore.length&&o<r.length;o++){var s=r[o];s&&(r[o]=this.getPanelDisplayValue(o,s,e))}return r},t.prototype.getPanelDisplayValue=function(e,n,r){if(!n)return n;for(var o=this.panelsCore[e],s=Object.keys(n),u=0;u<s.length;u++){var d=s[u],y=o.getQuestionByValueName(d);if(y||(y=this.getSharedQuestionFromArray(d,e)),y){var V=y.getDisplayValue(r,n[d]);n[d]=V,r&&y.title&&y.title!==d&&(n[y.title]=V,delete n[d])}}return n},t.prototype.hasErrorInPanels=function(e,n){for(var r=!1,o=this.visiblePanels,s=[],u=0;u<o.length;u++)this.setOnCompleteAsyncInPanel(o[u]);for(var d=!!n&&n.focusOnFirstError,y=0;y<o.length;y++){var V=o[y].hasErrors(e,d,n);V=this.isValueDuplicated(o[y],s,n,e)||V,!this.isRenderModeList&&V&&!r&&d&&(this.currentIndex=y),r=V||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var n=this,r=e.questions,o=0;o<r.length;o++)r[o].onCompletedAsyncValidators=function(s){n.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,n,r,o){if(!this.keyName)return!1;var s=e.getQuestionByValueName(this.keyName);if(!s||s.isEmpty())return!1;var u=s.value;this.changingValueQuestion&&s!=this.changingValueQuestion&&s.hasErrors(o,r);for(var d=0;d<n.length;d++)if(u==n[d])return o&&s.addError(new oo(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=s),!0;return n.push(u),!1},t.prototype.getPanelActions=function(e){var n=this,r=e.footerActions;return this.panelRemoveButtonLocation!=="right"&&r.push(new xe({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new De(function(){return[n.canRemovePanel,e.state!=="collapsed",n.panelRemoveButtonLocation!=="right"].every(function(o){return o===!0})}),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,n=this.createAndSetupNewPanelObject(),r=this.template.toJSON();new je().toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),new st(this,n),!this.isDesignMode&&!this.isReadOnly&&!this.isValueEmpty(n.getValue())&&this.runPanelsCondition([n],this.getDataFilteredValues(),this.getDataFilteredProperties());for(var o=n.questions,s=0;s<o.length;s++)o[s].setParentQuestion(this);return this.wasRendered&&(n.onFirstRendering(),n.locStrsChanged()),n.onGetFooterActionsCallback=function(){return e.getPanelActions(n)},n.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},n.registerPropertyChangedHandlers(["visible"],function(){n.visible?e.onPanelAdded(n):e.onPanelRemoved(n),e.updateFooterActions()}),n},t.prototype.createAndSetupNewPanelObject=function(){var e=this,n=this.createNewPanelObject();return n.isInteractiveDesignElement=!1,n.setParentQuestion(this),n.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},n},t.prototype.getTemplateQuestionTitleLocation=function(){return this.templateTitleLocation!="default"?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(e){return this.templateErrorLocation!=="default"?this.templateErrorLocation:i.prototype.getChildErrorLocation.call(this,e)},t.prototype.createNewPanelObject=function(){return j.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!(this.isValueChangingInternally||this.useTemplatePanel)){var e=this.value,n=e&&Array.isArray(e)?e.length:0;n==0&&this.getPropertyValue("panelCount")>0&&(n=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=n,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(e){if(!this.settingPanelCountBasedOnValue){i.prototype.setQuestionValue.call(this,e,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(e){if(!(e===void 0&&this.isAllPanelsEmpty())){i.prototype.onSurveyValueChanged.call(this,e);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);e===void 0&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!h.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.updateValueFromSurvey(r[s.getValueName()]),s.updateCommentFromSurvey(r[s.getValueName()+I.commentSuffix]),s.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.onSurveyValueChanged(r[s.getValueName()])}},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var n=this.items.indexOf(e);return n>-1?n:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].data===e)return r;return n.length},t.prototype.getPanelItemData=function(e){var n=this.items,r=n.indexOf(e),o=this.value;return r<0&&Array.isArray(o)&&o.length>n.length&&(r=n.length),r<0?{}:!o||!Array.isArray(o)||o.length<=r?{}:o[r]},t.prototype.setPanelItemData=function(e,n,r){if(!(this.isSetPanelItemData[n]>this.maxCheckCount)){this.isSetPanelItemData[n]||(this.isSetPanelItemData[n]=0),this.isSetPanelItemData[n]++;var o=this.items,s=o.indexOf(e);s<0&&(s=o.length);var u=this.getUnbindValue(this.value);if((!u||!Array.isArray(u))&&(u=[]),u.length<=s)for(var d=u.length;d<=s;d++)u.push({});if(u[s]||(u[s]={}),this.isValueEmpty(r)?delete u[s][n]:u[s][n]=r,s>=0&&s<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[s].getQuestionByValueName(n)),this.value=u,this.changingValueQuestion=null,this.survey){var y={question:this,panel:e.panel,name:n,itemIndex:s,itemValue:u[s],value:r};this.survey.dynamicPanelItemValueChanged(this,y)}this.isSetPanelItemData[n]--,this.isSetPanelItemData[n]-1&&delete this.isSetPanelItemData[n]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map(function(o,s){var u={name:o.name||s,title:o.title||"Panel",value:o.getValue(),displayValue:o.getValue(),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!0,data:o.questions.map(function(d){return d.getPlainData(e)}).filter(function(d){return!!d})};return(e.calculations||[]).forEach(function(d){u[d.propertyName]=o[d.propertyName]}),u}),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n];r.updateElementCss(e)}},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return new _().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.visiblePanelCount;return new _().append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(e){return new _().append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getPanelRemoveButtonCss=function(){return new _().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getAddButtonCss=function(){return new _().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode",this.displayMode==="list").toString()},t.prototype.getPrevButtonCss=function(){return new _().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return new _().append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&this.visiblePanelCount===0},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!!(e&&e.needResponsiveWidth())},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new Tn,this.additionalTitleToolbarValue.dotsItem.popupModel.showPointer=!1,this.additionalTitleToolbarValue.dotsItem.popupModel.verticalPosition="bottom",this.additionalTitleToolbarValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var n=[],r=new xe({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),o=new xe({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),s=new xe({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),u=new xe({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),d=new xe({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),y=new xe({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});n.push(r,o,s,u,d,y),this.updateFooterActionsCallback=function(){var V=e.legacyNavigation,T=e.isRenderModeList,N=e.isMobile,U=!V&&!T;r.visible=U&&e.currentIndex>0,o.visible=U&&e.currentIndex<e.visiblePanelCount-1,o.needSpace=N&&o.visible&&r.visible,s.visible=e.canAddPanel,s.needSpace=e.isMobile&&!o.visible&&r.visible,d.visible=!e.isRenderModeList&&!N,d.needSpace=!V&&!e.isMobile;var W=V&&!T;u.visible=W,y.visible=W,u.needSpace=W},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(n)},t.prototype.createTabByPanel=function(e,n){var r=this;if(this.isRenderModeTab){var o=new gt(e,!0);o.onGetTextCallback=function(d){if(d||(d=r.locTabTitlePlaceholder.renderedHtml),!r.survey)return d;var y={title:d,panel:e,visiblePanelIndex:n};return r.survey.dynamicPanelGetTabTitle(r,y),y.title},o.sharedData=this.locTemplateTabTitle;var s=this.getPanelVisibleIndexById(e.id)===this.currentIndex,u=new xe({id:e.id,pressed:s,locTitle:o,disableHide:s,action:function(){r.currentIndex=r.getPanelVisibleIndexById(u.id)}});return u}},t.prototype.getAdditionalTitleToolbarCss=function(e){var n=e??this.cssClasses;return new _().append(n.tabsRoot).append(n.tabsLeft,this.tabAlign==="left").append(n.tabsRight,this.tabAlign==="right").append(n.tabsCenter,this.tabAlign==="center").toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach(function(n){var r=n.id===e.id;n.pressed=r,n.disableHide=r,n.mode==="popup"&&n.disableHide&&n.raiseUpdate()})}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var n=[],r=this.visiblePanelsCore,o=function(d){s.visiblePanelsCore.forEach(function(y){return n.push(e.createTabByPanel(r[d],d))})},s=this,u=0;u<r.length;u++)o(u);this.additionalTitleToolbar.setItems(n)}},t.prototype.addTabFromToolbar=function(e,n){if(this.isRenderModeTab){var r=this.createTabByPanel(e,n);this.additionalTitleToolbar.actions.splice(n,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var n=this.additionalTitleToolbar.getActionById(e.id);n&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(n),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.isReadOnly&&this.visiblePanelCount==1?!1:this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.renderedPanels.length-1},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e),r=this.additionalTitleToolbar;return r&&(r.containerCss=this.getAdditionalTitleToolbarCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=e.list),n},t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.updateFooterActions()},t.maxCheckCount=3,di([me({})],t.prototype,"_renderedPanels",void 0),di([x({onSet:function(e,n){n.fireCallback(n.renderModeChangedCallback),n.updatePanelView()}})],t.prototype,"displayMode",void 0),di([x({onSet:function(e,n){n.fireCallback(n.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),di([x({onSet:function(e,n){}})],t.prototype,"progressBarLocation",void 0),di([x({defaultValue:!1,onSet:function(e,n){n.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(Be);j.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(i){return i.displayMode==="tab"}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(i){return i.displayMode==="tab"}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"newPanelPosition",choices:["next","last"],default:"last",category:"layout"},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",defaultFunc:function(){return I.panel.maxPanelCount}},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(i){return i.displayMode==="list"}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(i){return i.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(i){return i.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(i){return i.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0,visible:!1},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"],visible:!1},{name:"displayMode",default:"list",choices:["list","carousel","tab"]},{name:"showProgressBar:boolean",default:!0,visibleIf:function(i){return i.displayMode==="carousel"}},{name:"progressBarLocation",default:"top",choices:["top","bottom","topBottom"],visibleIf:function(i){return i.showProgressBar}},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(i){return i.displayMode==="tab"}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"],visibleIf:function(i){return i.allowRemovePanel}}],function(){return new na("")},"question"),Se.Instance.registerQuestion("paneldynamic",function(i){return new na(i)});var yp=function(){function i(){}return i.getProgressTextInBarCss=function(t){return new _().append(t.progressText).append(t.progressTextInBar).toString()},i.getProgressTextUnderBarCss=function(t){return new _().append(t.progressText).append(t.progressTextUnderBar).toString()},i}(),bn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ol=function(i){bn(t,i);function t(){var e=i.call(this)||this;return e.idValue=t.idCounter++,e.registerPropertyChangedHandlers(["operator","value","name"],function(){e.oldPropertiesChanged()}),e.registerPropertyChangedHandlers(["expression"],function(){e.onExpressionChanged()}),e}return Object.defineProperty(t,"operators",{get:function(){return t.operatorsValue!=null||(t.operatorsValue={empty:function(e,n){return!e},notempty:function(e,n){return!!e},equal:function(e,n){return e==n},notequal:function(e,n){return e!=n},contains:function(e,n){return e&&e.indexOf&&e.indexOf(n)>-1},notcontains:function(e,n){return!e||!e.indexOf||e.indexOf(n)==-1},greater:function(e,n){return e>n},less:function(e,n){return e<n},greaterorequal:function(e,n){return e>=n},lessorequal:function(e,n){return e<=n}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),n=this.expression?this.expression:this.buildExpression();return n&&(e+=", "+n),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,n,r,o,s){s===void 0&&(s=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(n&&!this.canBeExecutedOnComplete()||this.isCheckRequired(r)&&(this.conditionRunner?this.perform(o,s):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,o,s)))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){var n=t.operators[this.operator](e,this.value);n?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,n){var r=this;this.conditionRunner.onRunComplete=function(o){r.triggerResult(o,e,n)},this.conditionRunner.run(e,n)},t.prototype.triggerResult=function(e,n,r){e?(this.onSuccess(n,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,n){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.conditionRunner=null},t.prototype.buildExpression=function(){return!this.name||this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+ze.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){return e?(this.createConditionRunner(),this.conditionRunner&&this.conditionRunner.hasFunction()===!0?!0:new Re().isAnyKeyChanged(e,this.getUsedVariables())):!1},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var n="-unwrapped",r=e.length-1;r>=0;r--){var o=e[r];o.endsWith(n)&&e.push(o.substring(0,o.length-n.length))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new Ue(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return this.operator!=="empty"&&this.operator!="notempty"},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(fe),zn=function(i){bn(t,i);function t(){var e=i.call(this)||this;return e.ownerValue=null,e}return Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(Ol),El=function(i){bn(t,i);function t(){var e=i.call(this)||this;return e.pages=[],e.questions=[],e}return t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,n){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var n=this.owner.getObjects(this.pages,this.questions),r=0;r<n.length;r++)e(n[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(zn),Tl=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!I.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,n){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(zn),Rl=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(e,n,r){if(i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="setToName"){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,n){!this.setToName||!this.owner||this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(zn),Il=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return this.canBeExecuted(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!I.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,n){!this.gotoName||!this.owner||this.owner.focusQuestion(this.gotoName)},t}(zn),Dl=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!e},t.prototype.onSuccess=function(e,n){var r=this;if(!(!this.owner||!this.runExpression)){var o=new jt(this.runExpression);o.canRun&&(o.onRunComplete=function(s){r.onCompleteRunExpression(s)},o.run(e,n))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&e!==void 0&&this.owner.setTriggerValue(this.setToName,h.convertValToQuestionVal(e),!1)},t}(zn),Al=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,n){!this.setToName||!this.owner||this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var e=i.prototype.getUsedVariables.call(this);return e.length===0&&this.fromName&&e.push(this.fromName),e},t}(zn);j.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),j.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),j.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new El},"surveytrigger"),j.addClass("completetrigger",[],function(){return new Tl},"surveytrigger"),j.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(i){return!!i&&!!i.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new Rl},"surveytrigger"),j.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new Al},"surveytrigger"),j.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new Il},"surveytrigger"),j.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new Dl},"surveytrigger");var Ll=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mp=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ml=function(i){Ll(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.closeOnCompleteTimeout=0,n?r.surveyValue=n:r.surveyValue=r.createSurvey(e),r.surveyValue.fitToContainer=!0,r.windowElement=R.createElement("div"),r.survey.onComplete.add(function(o,s){r.onSurveyComplete()}),r.registerPropertyChangedHandlers(["isShowing"],function(){r.showingChangedCallback&&r.showingChangedCallback()}),r.registerPropertyChangedHandlers(["isExpanded"],function(){r.onExpandedChanged()}),r.width=new De(function(){return r.survey.width}),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return this.getPropertyValue("isFullScreen",!1)},set:function(e){!this.isExpanded&&e&&(this.isExpanded=!0),this.setPropertyValue("isFullScreen",e),this.setCssRoot()},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},t.prototype.toggleFullScreen=function(){this.isFullScreen=!this.isFullScreen},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.isFullScreen&&!e&&(this.isFullScreen=!1),this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"allowClose",{get:function(){return this.getPropertyValue("allowClose",!1)},set:function(e){this.setPropertyValue("allowClose",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowFullScreen",{get:function(){return this.getPropertyValue("allowFullScreen",!1)},set:function(e){this.setPropertyValue("allowFullScreen",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){var e=this.getPropertyValue("cssRoot","");return this.isCollapsed&&(e+=" "+this.getPropertyValue("cssRootCollapsedMod","")),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootCollapsedMod",{get:function(){return this.getPropertyValue("cssRootCollapsedMod")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootContent",{get:function(){return this.getPropertyValue("cssRootContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitleCollapsed",{get:function(){return this.getPropertyValue("cssHeaderTitleCollapsed","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButtonsContainer",{get:function(){return this.getPropertyValue("cssHeaderButtonsContainer","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCollapseButton",{get:function(){return this.getPropertyValue("cssHeaderCollapseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCloseButton",{get:function(){return this.getPropertyValue("cssHeaderCloseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderFullScreenButton",{get:function(){return this.getPropertyValue("cssHeaderFullScreenButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e=e+"px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(!(!this.css||!this.css.window)){var e=this.css.window;this.setCssRoot(),this.setPropertyValue("cssRootCollapsedMod",e.rootCollapsedMod),this.setPropertyValue("cssRootContent",e.rootContent),this.setPropertyValue("cssBody",e.body);var n=e.header;n&&(this.setPropertyValue("cssHeaderRoot",n.root),this.setPropertyValue("cssHeaderTitleCollapsed",n.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",n.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",n.collapseButton),this.setPropertyValue("cssHeaderCloseButton",n.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",n.fullScreenButton),this.updateCssButton())}},t.prototype.setCssRoot=function(){var e=this.css.window;this.isFullScreen?this.setPropertyValue("cssRoot",e.root+" "+e.rootFullScreenMode):this.setPropertyValue("cssRoot",e.root)},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new dn(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(this.closeOnCompleteTimeout==0)this.hide();else{var e=this,n=null,r=function(){e.hide(),clearInterval(n)};n=setInterval(r,this.closeOnCompleteTimeout*1e3)}},t.prototype.onScroll=function(){this.survey.onScroll()},mp([x()],t.prototype,"width",void 0),t}(fe),vp=function(i){Ll(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Ml),bp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ra=function(i){bp(t,i);function t(e){var n=i.call(this,e)||this;return n.onScrollOutsideCallback=function(r){n.preventScrollOuside(r,r.deltaY)},n}return t.prototype.getStyleClass=function(){return i.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var e=this;i.prototype.createFooterActionBar.call(this),this.footerToolbar.containerCss="sv-footer-action-bar",this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){e.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(e){(e.key==="Escape"||e.keyCode===27)&&this.model.onCancel(),i.prototype.onKeyDown.call(this,e)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),i.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),i.prototype.updateOnHiding.call(this)},t}(Ds),ia=function(){return ia=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},ia.apply(this,arguments)};function Cp(i,t){var e,n=ia({},i);n.verticalPosition="top",n.horizontalPosition="left",n.showPointer=!1,n.isModal=!0,n.displayMode=i.displayMode||"popup";var r=new On(i.componentName,i.data,n);r.isFocusedContent=(e=i.isFocusedContent)!==null&&e!==void 0?e:!0;var o=new ra(r);if(t&&t.appendChild){var s=R.createElement("div");t.appendChild(s),o.setComponentElement(s)}o.container||o.initializePopupContainer();var u=function(d,y){y.isVisible||s&&o.resetComponentElement(),o.onVisibilityChanged.remove(u)};return o.onVisibilityChanged.add(u),o}function wp(i){return i.isModal?new ra(i):new Ls(i)}var jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),oa=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Nl=function(i){jl(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="buttongroupitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o}return t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},oa([x()],t.prototype,"iconName",void 0),oa([x()],t.prototype,"iconSize",void 0),oa([x()],t.prototype,"showCaption",void 0),t}(re),ql=function(i){jl(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(li);j.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new ql("")},"checkboxbase"),j.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(i){return new Nl(i)},"itemvalue");var Pp=function(){function i(t,e,n){this.question=t,this.item=e,this.index=n}return Object.defineProperty(i.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showCaption",{get:function(){return this.item.showCaption||this.item.showCaption===void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"labelClass",{get:function(){return new _().append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),i.prototype.onChange=function(){this.question.renderedValue=this.item.value},i}(),xp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vp=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Do=function(i){xp(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getSurvey=function(e){return this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var n=this,r=j.getProperties(this.getType());r.forEach(function(o){var s=e[o.name];n[o.name]=s!==void 0?s:o.getDefaultValue(n)})},t.prototype.getData=function(){var e=this,n={},r=j.getProperties(this.getType());return r.forEach(function(o){var s=e[o.name];o.isDefaultValue(s)||(n[o.name]=s)}),n},t.prototype.processInput=function(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}},t.prototype.getUnmaskedValue=function(e){return e},t.prototype.getMaskedValue=function(e){return e},t.prototype.getTextAlignment=function(){return"auto"},t.prototype.getTypeForExpressions=function(){return"text"},Vp([x()],t.prototype,"saveMaskedValue",void 0),t}(fe);j.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(i){return i?i.getType()!=="masksettings":!1}}],function(){return new Do});var Sp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Op=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function sa(i){for(var t=[],e=!1,n=Object.keys(I.maskSettings.patternDefinitions),r=0;r<i.length;r++){var o=i[r];o===I.maskSettings.patternEscapeChar?e=!0:e?(e=!1,t.push({type:"fixed",value:o})):t.push({type:n.indexOf(o)!==-1?"regex":"const",value:o})}return t}function Ep(i,t,e){for(var n=I.maskSettings.patternDefinitions[e.value];t<i.length;){if(i[t].match(n))return t;t++}return t}function Tp(i,t,e){for(var n=i??"",r="",o=0,s=typeof t=="string"?sa(t):t,u=0;u<s.length;u++)switch(s[u].type){case"regex":if(o<n.length&&(o=Ep(n,o,s[u])),o<n.length)r+=n[o];else if(e)r+=I.maskSettings.patternPlaceholderChar;else return r;o++;break;case"const":case"fixed":r+=s[u].value,s[u].value===n[o]&&o++;break}return r}function aa(i,t,e,n){n===void 0&&(n=!1);var r="";if(!i)return r;for(var o=typeof t=="string"?sa(t):t,s=0;s<o.length;s++)if(o[s].type==="fixed"&&!n&&(r+=o[s].value),o[s].type==="regex"){var u=I.maskSettings.patternDefinitions[o[s].value];if(i[s]&&i[s].match(u))r+=i[s];else if(e){r="";break}else break}return r}var la=function(i){Sp(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.literals=[],e}return t.prototype.updateLiterals=function(){this.literals=sa(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,n,r){e==="pattern"&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(e,n){i.prototype.fromJSON.call(this,e,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return Tp(r,this.literals,n)},t.prototype._getUnmaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return aa(r,this.literals,n)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return n;var r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=aa(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),s=aa(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return n.value=this._getMaskedValue(o+(e.insertedChars||"")+s,!0),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r).length,n},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},Op([x()],t.prototype,"pattern",void 0),t}(Do);j.addClass("patternmask",[{name:"pattern"}],function(){return new la},"masksettings");var Rp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Ip(i,t,e){t===void 0&&(t=!0),e===void 0&&(e=3);var n=[];if(t){for(var r=i.length-e;r>-e;r-=e)n.push(i.substring(r,r+e));n=n.reverse()}else for(var r=0;r<i.length;r+=e)n.push(i.substring(r,r+e));return n}var ua=function(i){Rp(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.calccaretPosition=function(e,n,r){for(var o=e?this.displayNumber(this.parseNumber(e),!1).length:0,s=0,u=n.selectionStart,d=!n.insertedChars&&n.inputDirection==="forward",y=0;y<r.length;y++){var V=r[y];if(V!==this.thousandsSeparator&&s++,s===o+(d?1:0)){d?u=y:u=y+1;break}}return u},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1);var o=e.integralPart;n&&o&&(o=Ip(o).join(this.thousandsSeparator));var s=e.fractionalPart,u=e.isNegative?"-":"";if(s===""){if(r)return!o||o==="0"?o:u+o;var d=e.hasDecimalSeparator&&!r?this.decimalSeparator:"",y=o+d;return y==="0"?y:u+y}else return o=o||"0",s=s.substring(0,this.precision),[u+o,s].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var n,r=e.isNegative?"-":"";return e.fractionalPart?n=parseFloat(r+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):n=parseInt(r+e.integralPart||"0"),n},t.prototype.validateNumber=function(e,n){var r=this.min||Number.MIN_SAFE_INTEGER,o=this.max||Number.MAX_SAFE_INTEGER;if(this.numericalCompositionIsEmpty(e))return!0;if(this.min!==void 0||this.max!==void 0){var s=this.convertNumber(e);if(Number.isNaN(s)||s>=r&&s<=o)return!0;if(!n){if(!e.hasDecimalSeparator&&s!=0){var u=s,d=s;if(s>0){if(s+1>r&&s<=o)return!0;for(;u=u*10+9,d=d*10,!(d>o);)if(u>r)return!0;return!1}if(s<0){if(s>=r&&s-1<o)return!0;for(;u=u*10,d=d*10-9,!(u<r);)if(d<o)return!0;return!1}}else{var y=Math.pow(.1,(e.fractionalPart||"").length);if(s>=0)return s+y>r&&s<=o;if(s<0)return s>=r&&s-y<o}return s>=0&&s<=o||s<0&&s>=r}return!1}return!0},t.prototype.parseNumber=function(e){for(var n={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},r=e==null?"":e.toString(),o=0,s=0;s<r.length;s++){var u=r[s];switch(u){case"-":{this.allowNegativeValues&&(this.min===void 0||this.min<0)&&o++;break}case this.decimalSeparator:{this.precision>0&&(n.hasDecimalSeparator=!0);break}case this.thousandsSeparator:break;default:u.match(Ns)&&(n.hasDecimalSeparator?n.fractionalPart+=u:n.integralPart+=u)}}return n.isNegative=o%2!==0,n.integralPart.length>1&&n.integralPart[0]==="0"&&(n.integralPart=n.integralPart.slice(1)),n},t.prototype.getNumberMaskedValue=function(e,n){n===void 0&&(n=!1);var r=this.parseNumber(e);if(!this.validateNumber(r,n))return null;var o=this.displayNumber(r,!0,n);return o},t.prototype.getNumberUnmaskedValue=function(e){var n=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(n))return this.convertNumber(n)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var n=e==null?"":e.toString();return n=n.replace(".",this.decimalSeparator),this.getNumberMaskedValue(n,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=e.prevValue.slice(e.selectionEnd),s=r+o,u=this.parseNumber(s);if(!this.validateNumber(u,!1))return n;var d=this.getNumberMaskedValue(s),y=this.calccaretPosition(r,e,d);return n.value=d,n.caretPosition=y,n},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return e===""||e===void 0||e===null},Cr([x()],t.prototype,"allowNegativeValues",void 0),Cr([x()],t.prototype,"decimalSeparator",void 0),Cr([x()],t.prototype,"precision",void 0),Cr([x()],t.prototype,"thousandsSeparator",void 0),Cr([x()],t.prototype,"min",void 0),Cr([x()],t.prototype,"max",void 0),t}(Do);j.addClass("numericmask",[{name:"allowNegativeValues:boolean",default:!0},{name:"decimalSeparator",default:".",maxLength:1},{name:"thousandsSeparator",default:",",maxLength:1},{name:"precision:number",default:2,minValue:0},{name:"min:number"},{name:"max:number"}],function(){return new ua},"masksettings");var Dp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ao=function(){return Ao=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Ao.apply(this,arguments)},_l=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Bl(i,t){switch(i){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}function Ap(i,t){var e=t;return i.count<i.maxCount&&(i.type==="day"&&parseInt(t[0])===0||i.type==="month"&&parseInt(t[0])===0)&&(e=t.slice(1,t.length)),e}function Lp(i){for(var t=[],e,n=function(s,u,d){if(d===void 0&&(d=!1),e&&e===s){t[t.length-1].count++;var y=Bl(s,t[t.length-1].count);t[t.length-1].maxCount=y}else{var y=Bl(s,1);t.push({type:s,value:u,count:1,maxCount:y,upperCase:d})}},r=0;r<i.length;r++){var o=i[r];switch(o){case"m":n("month",o);break;case"d":n("day",o);break;case"y":n("year",o);break;case"h":n("hour",o,!1);break;case"H":n("hour",o,!0);break;case"M":n("minute",o);break;case"s":n("second",o);break;case"t":n("timeMarker",o);break;case"T":n("timeMarker",o,!0);break;default:t.push({type:"separator",value:o,count:1,maxCount:1,upperCase:!1});break}e=t[t.length-1].type}return t}var Fl=function(i){Dp(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.defaultDate="1970-01-01T",e.turnOfTheCentury=68,e.twelve=12,e.lexems=[],e.inputDateTimeData=[],e.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},e}return Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some(function(e){return e.type==="day"||e.type==="month"||e.type==="year"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some(function(e){return e.type==="hour"||e.type==="minute"||e.type==="second"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter(function(e){return e.type==="hour"&&!e.upperCase}).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.getTypeForExpressions=function(){return this.hasTimePart?"datetime-local":"datetime"},t.prototype.updateLiterals=function(){this.lexems=Lp(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var n="",r=0;r<e.length;r++)e[r].match(Ns)&&(n+=e[r]);return n},t.prototype.getMaskedStrFromISO=function(e){var n=this,r=new Date(e);return this.initInputDateTimeData(),this.hasTimePart||(r=new Date(e+"T00:00:00")),this.hasDatePart||(r=new Date(this.defaultDate+e)),isNaN(r)||this.lexems.forEach(function(o,s){var u=n.inputDateTimeData[s];switch(u.isCompleted=!0,o.type){case"hour":{n.is12Hours?u.value=((r.getHours()-1)%n.twelve+1).toString():u.value=r.getHours().toString();break}case"minute":{u.value=r.getMinutes().toString();break}case"second":{u.value=r.getSeconds().toString();break}case"timeMarker":{var d=r.getHours()>=n.twelve?"pm":"am";u.value=o.upperCase?d.toUpperCase():d;break}case"day":{u.value=r.getDate().toString();break}case"month":{u.value=(r.getMonth()+1).toString();break}case"year":{var y=r.getFullYear();o.count==2&&(y=y%100),u.value=y.toString();break}}}),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach(function(n){e.inputDateTimeData.push({lexem:n,isCompleted:!1,value:void 0})})},t.prototype.getISO_8601Format=function(e){var n=[],r=[];if(e.year!==void 0){var o=this.getPlaceholder(4,e.year.toString(),"0")+e.year;n.push(o)}if(e.month!==void 0&&e.year!==void 0){var s=this.getPlaceholder(2,e.month.toString(),"0")+e.month;n.push(s)}if(e.day!==void 0&&e.month!==void 0&&e.year!==void 0){var u=this.getPlaceholder(2,e.day.toString(),"0")+e.day;n.push(u)}if(e.hour!==void 0){var d=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;r.push(d)}if(e.minute!==void 0&&e.hour!==void 0){var y=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;r.push(y)}if(e.second!==void 0&&e.minute!==void 0&&e.hour!==void 0){var V=this.getPlaceholder(2,e.second.toString(),"0")+e.second;r.push(V)}var T=[];return n.length>0&&T.push(n.join("-")),r.length>1&&T.push(r.join(":")),T.join("T")},t.prototype.isYearValid=function(e){if(e.min===void 0&&e.max===void 0)return!1;var n=e.year.toString(),r=e.min.toISOString().slice(0,n.length),o=e.max.toISOString().slice(0,n.length);return e.year>=parseInt(r)&&e.year<=parseInt(o)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,n){var r=e.day==29&&e.month==2,o=e.min.getFullYear(),s=e.max.getFullYear();r&&(o=Math.ceil(o/4)*4,s=Math.floor(o/4)*4,o>s&&(o=void 0,s=void 0));var u=e.year!==void 0?e.year:n?s:o,d=e.month!==void 0?e.month:n&&this.hasDatePart?12:1,y=e.day!==void 0?e.day:n&&this.hasDatePart?this.getMaxDateForMonth(u,d):1,V=e.hour!==void 0?e.hour:n?23:0,T=e.minute!==void 0?e.minute:n?59:0,N=e.second!==void 0?e.second:n?59:0;return{year:u,month:d,day:y,hour:V,minute:T,second:N}},t.prototype.getMaxDateForMonth=function(e,n){return n==2?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][n-1]},t.prototype.isDateValid=function(e){var n=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),r=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(n)&&(n.getDate()===e.day||e.day===void 0)&&(n.getMonth()===e.month-1||e.month===void 0)&&(n.getFullYear()===e.year||e.year===void 0)&&r>=e.min&&n<=e.max},t.prototype.getPlaceholder=function(e,n,r){var o=e-(n||"").length,s=o>0?r.repeat(o):"";return s},t.prototype.isDateValid12=function(e){return this.is12Hours?this.is12Hours&&e.hour>this.twelve?!1:e.timeMarker?e.timeMarker[0].toLowerCase()==="p"?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):this.isDateValid(e)?!0:(e.hour+=this.twelve,this.isDateValid(e)):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,n){var r=e.value;if(r){var o="timeMarker",s=Ao({},n);s[o]=r,this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1),e.value=r||void 0,n[o]=r||void 0}},t.prototype.updateInputDateTimeData=function(e,n){var r=e.value;if(r){var o=e.lexem.type,s=Ao({},n);if(s[o]=parseInt(this.parseTwoDigitYear(e)),r.length===e.lexem.maxCount)if(this.isDateValid12(s)){e.isCompleted=!0,e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0;return}else r=r.slice(0,r.length-1);s[o]=parseInt(r);var u=parseInt(r[0]),d=this.validBeginningOfNumbers[o+(e.lexem.upperCase?"U":"")];o==="year"&&!this.isYearValid(s)?(r=r.slice(0,r.length-1),e.isCompleted=!1):d!==void 0&&u>d?this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1):d!==void 0&&u!==0&&u<=d&&(this.checkValidationDateTimePart(s,o,e),e.isCompleted&&!this.isDateValid12(s)&&(r=r.slice(0,r.length-1))),e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0}},t.prototype.checkValidationDateTimePart=function(e,n,r){var o=e[n],s=o*10,u=10;n==="month"&&(u=3),n==="hour"&&(u=this.is12Hours?3:5),r.isCompleted=!0;for(var d=0;d<u;d++)if(e[n]=s+d,this.isDateValid12(e)){r.isCompleted=!1;break}e[n]=o},t.prototype.getCorrectDatePartFormat=function(e,n){var r=e.lexem,o=e.value||"";if(o&&r.type==="timeMarker")return n&&(o=o+this.getPlaceholder(r.count,o,r.value)),o;if(o&&e.isCompleted&&(o=parseInt(o).toString()),o&&e.isCompleted){var s=this.getPlaceholder(r.count,o,"0");o=s+o}else o=Ap(r,o),n&&(o+=this.getPlaceholder(r.count,o,r.value));return o},t.prototype.createIDateTimeComposition=function(){var e,n;this.hasDatePart?(e=this.min||"0001-01-01",n=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),n=this.defaultDate+(this.max||"23:59:59"));var r={hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(n)};return r},t.prototype.parseTwoDigitYear=function(e){var n=e.value;if(e.lexem.type!=="year"||e.lexem.count>2)return n;this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4)));var r=parseInt(n),o=(r>this.turnOfTheCentury?"19":"20")+n;return o},t.prototype.getFormatedString=function(e){var n="",r="",o=!1,s=this.inputDateTimeData.length-1;if(!e){var u=this.inputDateTimeData.filter(function(N){return!!N.value});s=this.inputDateTimeData.indexOf(u[u.length-1])}for(var d=0;d<this.inputDateTimeData.length;d++){var y=this.inputDateTimeData[d];switch(y.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(y.value===void 0&&!e)return n+=o?r:"",n;var V=e||s>d,T=this.getCorrectDatePartFormat(y,V);n+=r+T,o=y.isCompleted;break;case"separator":r=y.lexem.value;break}}return n},t.prototype.cleanTimeMarker=function(e,n){var r="";e=e.toUpperCase();for(var o=0;o<e.length;o++)(!r&&(e[o]=="P"||e[o]=="A")||r&&e[o]=="M")&&(r+=e[o]);return n?r=r.toUpperCase():r=r.toLowerCase(),r},t.prototype.setInputDateTimeData=function(e){var n=this,r=0;this.initInputDateTimeData(),this.lexems.forEach(function(o,s){if(e.length>0&&r<e.length){if(o.type==="separator")return;var u=n.inputDateTimeData[s],d=e[r],y=void 0;o.type==="timeMarker"?y=n.cleanTimeMarker(d,o.upperCase):y=n.leaveOnlyNumbers(d),u.value=y.slice(0,o.maxCount),r++}})},t.prototype._getMaskedValue=function(e,n){var r=this;n===void 0&&(n=!0);var o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var u=this.createIDateTimeComposition();this.inputDateTimeData.forEach(function(y){y.lexem.type==="timeMarker"?r.updateTimeMarkerInputDateTimeData(y,u):r.updateInputDateTimeData(y,u)});var d=this.getFormatedString(n);return d},t.prototype.getParts=function(e){for(var n=[],r=this.lexems.filter(function(T){return T.type!=="separator"}),o=this.lexems.filter(function(T){return T.type==="separator"}).map(function(T){return T.value}),s="",u=!1,d=!1,y=0;y<e.length;y++){var V=e[y];if(V.match(Ns)||V===r[n.length].value||r[n.length].type==="timeMarker"?(u=!1,d=!1,s+=V):o.indexOf(V)!==-1?d||(u=!0,n.push(s),s=""):u||(d=!0,n.push(s),s=""),n.length>=r.length){u=!1;break}}return(s!=""||u)&&n.push(s),n},t.prototype.getUnmaskedValue=function(e){var n=this,r,o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var u=(r=this.inputDateTimeData.filter(function(V){return V.lexem.type==="timeMarker"})[0])===null||r===void 0?void 0:r.value.toLowerCase()[0],d=this.createIDateTimeComposition(),y=!1;return this.inputDateTimeData.forEach(function(V){var T=V.value;if(!(V.lexem.type=="timeMarker"||V.lexem.type=="separator")){if(!T||T.length<V.lexem.count){y=!0;return}var N=parseInt(n.parseTwoDigitYear(V));V.lexem.type=="hour"&&u==="p"&&N!=n.twelve&&(N+=n.twelve),d[V.lexem.type]=N}}),y?"":this.getISO_8601Format(d)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart),o=e.prevValue.slice(e.selectionEnd);return n.value=this._getMaskedValue(r+(e.insertedChars||"")+o),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r+(e.insertedChars||""),!1).length,n},_l([x()],t.prototype,"min",void 0),_l([x()],t.prototype,"max",void 0),t}(la);j.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(i){return!!i.pattern}},{name:"max",type:"datetime",enableIf:function(i){return!!i.pattern}}],function(){return new Fl},"patternmask");var Mp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),kl=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ql=function(i){Mp(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var n=this.prefix||"",r=this.suffix||"",o=e;return o&&(o.indexOf(n)===-1&&(o=n+o),o.indexOf(r)===-1&&(o+=r),o)},t.prototype.unwrapInputArgs=function(e){var n=e.prevValue;if(n){if(this.prefix&&n.indexOf(this.prefix)!==-1){n=n.slice(n.indexOf(this.prefix)+this.prefix.length);var r=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-r,0),e.selectionEnd-=r}this.suffix&&n.indexOf(this.suffix)!==-1&&(n=n.slice(0,n.indexOf(this.suffix))),e.prevValue=n}},t.prototype.processInput=function(e){this.unwrapInputArgs(e);var n=i.prototype.processInput.call(this,e),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(e){var n=i.prototype.getMaskedValue.call(this,e);return this.wrapText(n)},kl([x()],t.prototype,"prefix",void 0),kl([x()],t.prototype,"suffix",void 0),t}(ua);j.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new Ql},"numericmask");var hi,ca;hi="1.12.20",I.version=hi,ca="2025-01-21";function jp(i,t){if(hi!=i){var e="survey-core has version '"+hi+"' and "+t+" has version '"+i+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(e)}}function Np(i){Hl(i)}function Hl(i){_p(i,zl,ca)}function qp(i){return zl[i.toString()]===!0}var zl={};function _p(i,t,e){if(i){var n=function(s){var u={},d,y=0,V,T=0,N,U="",W=String.fromCharCode,X=s.length,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0;d<64;d++)u[Y.charAt(d)]=d;for(V=0;V<X;V++){var J=u[s.charAt(V)];for(y=(y<<6)+J,T+=6;T>=8;)((N=y>>>(T-=8)&255)||V<X-2)&&(U+=W(N))}return U},r=n(i);if(r){var o=r.indexOf(";");o<0||Bp(r.substring(0,o))&&(r=r.substring(o+1),r.split(",").forEach(function(s){var u=s.indexOf("=");u>0&&(t[s.substring(0,u)]=new Date(e)<=new Date(s.substring(u+1)))}))}}}function Bp(i){if(!i)return!0;var t="domains:",e=i.indexOf(t);if(e<0)return!0;var n=i.substring(e+t.length).toLowerCase().split(",");if(!Array.isArray(n)||n.length===0)return!0;var r=B.getLocation();if(r&&r.hostname){var o=r.hostname.toLowerCase();n.push("localhost");for(var s=0;s<n.length;s++)if(o.indexOf(n[s])>-1)return!0;return!1}return!0}var Fp={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},kp={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},Qp={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},Hp={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},zp={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},Up={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},Wp={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},$p={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"};function Jp(i,t){Object.keys(i||{}).forEach(function(e){var n=e.substring(1);t.style.setProperty("--"+n,i[e])})}var Ul=function(){function i(){i.autoApplyTheme()}return i.autoApplyTheme=function(){if(!(qe.currentType==="bootstrap"||qe.currentType==="bootstrapmaterial")){var t=i.getIncludedThemeCss();t.length===1&&i.applyTheme(t[0].name)}},i.getAvailableThemes=function(){var t=qe.getAvailableThemes().filter(function(e){return["defaultV2","default","modern"].indexOf(e)!==-1}).map(function(e){return{name:e,theme:qe[e]}});return t},i.getIncludedThemeCss=function(){if(typeof I.environment>"u")return[];var t=I.environment.rootElement,e=i.getAvailableThemes(),n=An(t)?t.host:t;if(n){var r=getComputedStyle(n);if(r.length)return e.filter(function(o){return o.theme.variables&&r.getPropertyValue(o.theme.variables.themeMark)})}return[]},i.findSheet=function(t){if(typeof I.environment>"u")return null;for(var e=I.environment.root.styleSheets,n=0;n<e.length;n++)if(e[n].ownerNode&&e[n].ownerNode.id===t)return e[n];return null},i.createSheet=function(t){var e=I.environment.stylesSheetsMountContainer,n=R.createElement("style");return n.id=t,n.appendChild(new Text("")),Ln(e).appendChild(n),i.Logger&&i.Logger.log("style sheet "+t+" created"),n.sheet},i.applyTheme=function(t,e){if(t===void 0&&(t="default"),!(typeof I.environment>"u")){var n=I.environment.rootElement,r=An(n)?n.host:n;if(qe.currentType=t,i.Enabled){if(t!=="bootstrap"&&t!=="bootstrapmaterial"){Jp(i.ThemeColors[t],r),i.Logger&&i.Logger.log("apply theme "+t+" completed");return}var o=i.ThemeCss[t];if(!o){qe.currentType="defaultV2";return}i.insertStylesRulesIntoDocument();var s=e||i.ThemeSelector[t]||i.ThemeSelector.default,u=(t+s).trim(),d=i.findSheet(u);if(!d){d=i.createSheet(u);var y=i.ThemeColors[t]||i.ThemeColors.default;Object.keys(o).forEach(function(V){var T=o[V];Object.keys(y||{}).forEach(function(N){return T=T.replace(new RegExp("\\"+N,"g"),y[N])});try{V.indexOf("body")===0?d.insertRule(V+" { "+T+" }",0):d.insertRule(s+V+" { "+T+" }",0)}catch{}})}}i.Logger&&i.Logger.log("apply theme "+t+" completed")}},i.insertStylesRulesIntoDocument=function(){if(i.Enabled){var t=i.findSheet(i.SurveyJSStylesSheetId);t||(t=i.createSheet(i.SurveyJSStylesSheetId)),Object.keys(i.Styles).length&&Object.keys(i.Styles).forEach(function(e){try{t.insertRule(e+" { "+i.Styles[e]+" }",0)}catch{}}),Object.keys(i.Media).length&&Object.keys(i.Media).forEach(function(e){try{t.insertRule(i.Media[e].media+" { "+e+" { "+i.Media[e].style+" } }",0)}catch{}})}},i.SurveyJSStylesSheetId="surveyjs-styles",i.Styles={},i.Media={},i.ThemeColors={modern:Fp,default:kp,orange:Qp,darkblue:Hp,darkrose:zp,stone:Up,winter:Wp,winterstone:$p},i.ThemeCss={},i.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},i.Enabled=!0,i}();dn.prototype.onBeforeRunConstructor=function(){B.isAvailable()&&Ul.autoApplyTheme()};var Cn={root:"sv_main sv_default_css",rootProgress:"sv_progress",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv_q_m_cell_responsive_title"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",rowTextCell:"sv-table__cell--row-text",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"sv_matrix_dynamic_button--add",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",previewItem:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};qe.default=Cn,qe.orange=Cn,qe.darkblue=Cn,qe.darkrose=Cn,qe.stone=Cn,qe.winter=Cn,qe.winterstone=Cn;var Wl={root:"sv-root-modern",rootProgress:"sv-progress",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",number:"sv-page__num",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-matrix__cell-responsive-title",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowTextCell:"sv-table__cell--row-text",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",previewItem:"sd-file__preview-item",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};qe.modern=Wl;var $l=function(){function i(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new pt}return i.prototype.processId=function(t,e){return t.indexOf(e)==0&&(t=t.substring(e.length)),t=ur[t]||t,t},i.prototype.registerIconFromSymbol=function(t,e){this.icons[t]=e},i.prototype.registerIconFromSvgViaElement=function(t,e,n){if(n===void 0&&(n=this.iconPrefix),!!R.isAvailable()){t=this.processId(t,n);var r=R.createElement("div");r.innerHTML=e;var o=R.createElement("symbol"),s=r.querySelector("svg");o.innerHTML=s.innerHTML;for(var u=0;u<s.attributes.length;u++)o.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[u].name,s.attributes[u].value);o.id=n+t,this.registerIconFromSymbol(t,o.outerHTML)}},i.prototype.registerIconFromSvg=function(t,e,n){n===void 0&&(n=this.iconPrefix),t=this.processId(t,n);var r="<svg ",o="</svg>";e=e.trim();var s=e.toLowerCase();return s.substring(0,r.length)===r&&s.substring(s.length-o.length,s.length)===o?(this.registerIconFromSymbol(t,'<symbol id="'+n+t+'" '+e.substring(r.length,s.length-o.length)+"</symbol>"),!0):!1},i.prototype.registerIconsFromFolder=function(t){var e=this;t.keys().forEach(function(n){e.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),t(n))})},i.prototype.registerIcons=function(t){for(var e in t)this.registerIconFromSvg(e,t[e]);this.updateMarkup()},i.prototype.iconsRenderedHtml=function(){var t=this;return Object.keys(this.icons).map(function(e){return t.icons[e]}).join("")},i.prototype.updateMarkup=function(){this.onIconsChanged.fire(this,{})},i}(),Gp=new $l,Lo={};function Zp(i,t){Lo[i]||(Lo[i]={});var e=Lo[i];for(var n in t)e[n]=t[n]}}})})}(qo)),qo.exports}var Jn=Zu(),_o={exports:{}};/*!
- * surveyjs - Survey JavaScript library v1.12.20
- * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
- * License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */var Eh=_o.exports,Uu;function Th(){return Uu||(Uu=1,function(ne,S){(function(O,P){ne.exports=P(vh(),bh(),Zu())})(Eh,function(z,O,P){return function(B){var R={};function D(C){if(R[C])return R[C].exports;var h=R[C]={i:C,l:!1,exports:{}};return B[C].call(h.exports,h,h.exports,D),h.l=!0,h.exports}return D.m=B,D.c=R,D.d=function(C,h,w){D.o(C,h)||Object.defineProperty(C,h,{enumerable:!0,get:w})},D.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},D.t=function(C,h){if(h&1&&(C=D(C)),h&8||h&4&&typeof C=="object"&&C&&C.__esModule)return C;var w=Object.create(null);if(D.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:C}),h&2&&typeof C!="string")for(var A in C)D.d(w,A,(function(k){return C[k]}).bind(null,A));return w},D.n=function(C){var h=C&&C.__esModule?function(){return C.default}:function(){return C};return D.d(h,"a",h),h},D.o=function(C,h){return Object.prototype.hasOwnProperty.call(C,h)},D.p="",D(D.s="./src/entries/react-ui.ts")}({"./build/survey-core/icons/iconsV1.js":function(B,R,D){/*!
- * surveyjs - Survey JavaScript library v1.12.20
- * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
- * License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */(function(h,w){B.exports=w()})(this,function(){return function(C){var h={};function w(A){if(h[A])return h[A].exports;var k=h[A]={i:A,l:!1,exports:{}};return C[A].call(k.exports,k,k.exports,w),k.l=!0,k.exports}return w.m=C,w.c=h,w.d=function(A,k,le){w.o(A,k)||Object.defineProperty(A,k,{enumerable:!0,get:le})},w.r=function(A){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},w.t=function(A,k){if(k&1&&(A=w(A)),k&8||k&4&&typeof A=="object"&&A&&A.__esModule)return A;var le=Object.create(null);if(w.r(le),Object.defineProperty(le,"default",{enumerable:!0,value:A}),k&2&&typeof A!="string")for(var $ in A)w.d(le,$,(function(ie){return A[ie]}).bind(null,$));return le},w.n=function(A){var k=A&&A.__esModule?function(){return A.default}:function(){return A};return w.d(k,"a",k),k},w.o=function(A,k){return Object.prototype.hasOwnProperty.call(A,k)},w.p="",w(w.s="./packages/survey-core/src/iconsV1.ts")}({"./packages/survey-core/src/iconsV1.ts":function(C,h,w){w.r(h),w.d(h,"icons",function(){return k});var A=w("./packages/survey-core/src/images-v1 sync recursive \\.svg$"),k={};A.keys().forEach(function(le){k[le.substring(2,le.length-4).toLowerCase()]=A(le)})},"./packages/survey-core/src/images-v1 sync recursive \\.svg$":function(C,h,w){var A={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v1/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v1/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v1/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v1/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v1/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v1/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v1/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v1/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v1/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v1/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v1/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v1/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v1/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v1/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v1/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v1/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v1/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v1/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v1/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v1/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v1/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v1/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v1/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v1/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v1/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v1/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v1/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v1/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v1/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v1/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v1/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v1/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v1/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v1/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v1/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v1/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v1/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v1/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v1/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v1/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v1/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v1/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v1/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg"};function k($){var ie=le($);return w(ie)}function le($){if(!w.o(A,$)){var ie=new Error("Cannot find module '"+$+"'");throw ie.code="MODULE_NOT_FOUND",ie}return A[$]}k.keys=function(){return Object.keys(A)},k.resolve=le,C.exports=k,k.id="./packages/survey-core/src/images-v1 sync recursive \\.svg$"},"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v1/ModernCheck.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernRadio.svg":function(C,h){C.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v1/ProgressButton.svg":function(C,h){C.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v1/RemoveFile.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v1/TimerCircle.svg":function(C,h){C.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v1/add-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 11H17V13H13V17H11V13H7V11H11V7H13V11ZM23 12C23 18.1 18.1 23 12 23C5.9 23 1 18.1 1 12C1 5.9 5.9 1 12 1C18.1 1 23 5.9 23 12ZM21 12C21 7 17 3 12 3C7 3 3 7 3 12C3 17 7 21 12 21C17 21 21 17 21 12Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowleft-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.4L8.7 13.3L7.3 14.7L0.599998 7.99999L7.3 1.29999L8.7 2.69999L4.4 6.99999H15V8.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowright-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-32x32.svg":function(C,h){C.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27 6H23.8C23.34 6 22.92 5.77 22.66 5.39L22.25 4.78C21.51 3.66 20.26 3 18.92 3H13.06C11.72 3 10.48 3.67 9.73 4.78L9.32 5.39C9.07 5.77 8.64 6 8.18 6H4.98C2.79 6 1 7.79 1 10V24C1 26.21 2.79 28 5 28H27C29.21 28 31 26.21 31 24V10C31 7.79 29.21 6 27 6ZM29 24C29 25.1 28.1 26 27 26H5C3.9 26 3 25.1 3 24V10C3 8.9 3.9 8 5 8H8.2C9.33 8 10.38 7.44 11 6.5L11.41 5.89C11.78 5.33 12.41 5 13.07 5H18.93C19.6 5 20.22 5.33 20.59 5.89L21 6.5C21.62 7.44 22.68 8 23.8 8H27C28.1 8 29 8.9 29 10V24ZM16 9C12.13 9 9 12.13 9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9ZM16 21C13.24 21 11 18.76 11 16C11 13.24 13.24 11 16 11C18.76 11 21 13.24 21 16C21 18.76 18.76 21 16 21ZM17 13C17 13.55 16.55 14 16 14C14.9 14 14 14.9 14 16C14 16.55 13.55 17 13 17C12.45 17 12 16.55 12 16C12 13.79 13.79 12 16 12C16.55 12 17 12.45 17 13Z"></path></svg>'},"./packages/survey-core/src/images-v1/cancel-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.003 14.413L0.292999 9.70303L1.703 8.29303L5.003 11.583L14.293 2.29303L15.703 3.70303L5.003 14.413Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevrondown-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevronright-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.64648 12.6465L6.34648 13.3465L11.7465 8.04648L6.34648 2.64648L5.64648 3.34648L10.2465 8.04648L5.64648 12.6465Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9.43 8.0025L13.7 3.7225C14.09 3.3325 14.09 2.6925 13.7 2.2925C13.31 1.9025 12.67 1.9025 12.27 2.2925L7.99 6.5725L3.72 2.3025C3.33 1.9025 2.69 1.9025 2.3 2.3025C1.9 2.6925 1.9 3.3325 2.3 3.7225L6.58 8.0025L2.3 12.2825C1.91 12.6725 1.91 13.3125 2.3 13.7125C2.69 14.1025 3.33 14.1025 3.73 13.7125L8.01 9.4325L12.29 13.7125C12.68 14.1025 13.32 14.1025 13.72 13.7125C14.11 13.3225 14.11 12.6825 13.72 12.2825L9.44 8.0025H9.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.4101 12L20.7001 4.71C21.0901 4.32 21.0901 3.69 20.7001 3.3C20.3101 2.91 19.6801 2.91 19.2901 3.3L12.0001 10.59L4.71006 3.29C4.32006 2.9 3.68006 2.9 3.29006 3.29C2.90006 3.68 2.90006 4.32 3.29006 4.71L10.5801 12L3.29006 19.29C2.90006 19.68 2.90006 20.31 3.29006 20.7C3.49006 20.9 3.74006 20.99 4.00006 20.99C4.26006 20.99 4.51006 20.89 4.71006 20.7L12.0001 13.41L19.2901 20.7C19.4901 20.9 19.7401 20.99 20.0001 20.99C20.2601 20.99 20.5101 20.89 20.7101 20.7C21.1001 20.31 21.1001 19.68 20.7101 19.29L13.4201 12H13.4101Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapse-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 6L3 5L8 10L13 5L14 6L8 12L2 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/delete-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./packages/survey-core/src/images-v1/drag-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16ZM9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg":function(C,h){C.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M18 9C19.1 9 20 9.9 20 11C20 12.1 19.1 13 18 13C16.9 13 16 12.1 16 11C16 9.9 16.9 9 18 9ZM20 5C20 3.9 19.1 3 18 3C16.9 3 16 3.9 16 5C16 6.1 16.9 7 18 7C19.1 7 20 6.1 20 5ZM14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11C10 12.1 10.9 13 12 13C13.1 13 14 12.1 14 11ZM14 5C14 3.9 13.1 3 12 3C10.9 3 10 3.9 10 5C10 6.1 10.9 7 12 7C13.1 7 14 6.1 14 5ZM8 11C8 9.9 7.1 9 6 9C4.9 9 4 9.9 4 11C4 12.1 4.9 13 6 13C7.1 13 8 12.1 8 11ZM8 5C8 3.9 7.1 3 6 3C4.9 3 4 3.9 4 5C4 6.1 4.9 7 6 7C7.1 7 8 6.1 8 5Z"></path></svg>'},"./packages/survey-core/src/images-v1/expand-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 14L5 13L10 8L5 3L6 2L12 8L6 14Z"></path></svg>'},"./packages/survey-core/src/images-v1/expanddetails-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/file-72x72.svg":function(C,h){C.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v1/flip-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M23 12.0037C23 14.2445 21.7794 16.3052 19.5684 17.8257C19.3984 17.9458 19.1983 18.0058 19.0082 18.0058C18.688 18.0058 18.3779 17.8557 18.1778 17.5756C17.8677 17.1155 17.9777 16.4953 18.4379 16.1852C20.0887 15.0448 21.0091 13.5643 21.0091 12.0138C21.0091 8.70262 16.9673 6.01171 12.005 6.01171C11.4948 6.01171 10.9945 6.04172 10.5043 6.09173L11.7149 7.30215C12.105 7.69228 12.105 8.32249 11.7149 8.71263C11.5148 8.9127 11.2647 9.00273 11.0045 9.00273C10.7444 9.00273 10.4943 8.90269 10.2942 8.71263L6.58254 5.00136L10.2842 1.2901C10.6744 0.899964 11.3047 0.899964 11.6949 1.2901C12.085 1.68023 12.085 2.31045 11.6949 2.70058L10.3042 4.09105C10.8545 4.03103 11.4147 4.00102 11.985 4.00102C18.0578 4.00102 22.99 7.59225 22.99 12.0037H23ZM12.2851 15.2949C11.895 15.685 11.895 16.3152 12.2851 16.7054L13.4957 17.9158C13.0055 17.9758 12.4952 17.9958 11.995 17.9958C7.03274 17.9958 2.99091 15.3049 2.99091 11.9937C2.99091 10.4332 3.90132 8.95271 5.56207 7.82232C6.02228 7.51222 6.13233 6.89201 5.82219 6.43185C5.51205 5.97169 4.89177 5.86166 4.43156 6.17176C2.22055 7.69228 1 9.76299 1 11.9937C1 16.4052 5.93224 19.9965 12.005 19.9965C12.5753 19.9965 13.1355 19.9665 13.6858 19.9064L12.2951 21.2969C11.905 21.6871 11.905 22.3173 12.2951 22.7074C12.4952 22.9075 12.7453 22.9975 13.0055 22.9975C13.2656 22.9975 13.5157 22.8975 13.7158 22.7074L17.4275 18.9961L13.7158 15.2849C13.3256 14.8947 12.6953 14.8947 12.3051 15.2849L12.2851 15.2949Z"></path></svg>'},"./packages/survey-core/src/images-v1/folder-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.93 9H21V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H10L8 3H4C3.46957 3 2.96086 3.21071 2.58579 3.58579C2.21071 3.96086 2 4.46957 2 5L2 21H21L23.89 11.63C23.9916 11.3244 24.0179 10.9988 23.9667 10.6809C23.9155 10.363 23.7882 10.0621 23.5958 9.80392C23.4034 9.54571 23.1514 9.33779 22.8614 9.19782C22.5714 9.05786 22.2519 8.99 21.93 9ZM4 5H7.17L8.59 6.41L9.17 7H19V9H6L4 15V5ZM22 11L19.54 19H4.77L7.44 11H22Z"></path></svg>'},"./packages/survey-core/src/images-v1/fullsize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 13H4C2.9 13 2 12.1 2 11V5C2 3.9 2.9 3 4 3H12C13.1 3 14 3.9 14 5V11C14 12.1 13.1 13 12 13ZM4 5V11H12V5H4Z"></path></svg>'},"./packages/survey-core/src/images-v1/image-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M36 8H12C9.79 8 8 9.79 8 12V36C8 38.21 9.79 40 12 40H36C38.21 40 40 38.21 40 36V12C40 9.79 38.21 8 36 8ZM38 36C38 37.1 37.1 38 36 38H12C10.9 38 10 37.1 10 36V12C10 10.9 10.9 10 12 10H36C37.1 10 38 10.9 38 12V36ZM14 17C14 15.34 15.34 14 17 14C18.66 14 20 15.34 20 17C20 18.66 18.66 20 17 20C15.34 20 14 18.66 14 17ZM27 24L36 36H12L19 27L23 29L27 24Z"></path></svg>'},"./packages/survey-core/src/images-v1/loading-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/maximize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.71 10.71L4.42 13H6.01C6.56 13 7.01 13.45 7.01 14C7.01 14.55 6.56 15 6.01 15H2C1.45 15 1 14.55 1 14V10C1 9.45 1.45 9 2 9C2.55 9 3 9.45 3 10V11.59L5.29 9.3C5.68 8.91 6.31 8.91 6.7 9.3C7.09 9.69 7.09 10.32 6.7 10.71H6.71ZM14 1H10C9.45 1 9 1.45 9 2C9 2.55 9.45 3 10 3H11.59L9.3 5.29C8.91 5.68 8.91 6.31 9.3 6.7C9.5 6.9 9.75 6.99 10.01 6.99C10.27 6.99 10.52 6.89 10.72 6.7L13.01 4.41V6C13.01 6.55 13.46 7 14.01 7C14.56 7 15.01 6.55 15.01 6V2C15.01 1.45 14.56 1 14.01 1H14Z"></path></svg>'},"./packages/survey-core/src/images-v1/minimize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 9H3C2.45 9 2 8.55 2 8C2 7.45 2.45 7 3 7H13C13.55 7 14 7.45 14 8C14 8.55 13.55 9 13 9Z"></path></svg>'},"./packages/survey-core/src/images-v1/more-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/navmenu-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z"></path></svg>'},"./packages/survey-core/src/images-v1/noimage-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/ranking-arrows.svg":function(C,h){C.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-2.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small-2.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/rating-star.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/reorder-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 5L12 0L7 5H11V9H13V5H17Z"></path><path d="M13 19V15H11V19H7L12 24L17 19H13Z"></path></svg>'},"./packages/survey-core/src/images-v1/restoredown-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 6C15 6.55 14.55 7 14 7H10C9.45 7 9 6.55 9 6V2C9 1.45 9.45 1 10 1C10.55 1 11 1.45 11 2V3.59L13.29 1.29C13.49 1.09 13.74 1 14 1C14.26 1 14.51 1.1 14.71 1.29C15.1 1.68 15.1 2.31 14.71 2.7L12.42 4.99H14.01C14.56 4.99 15.01 5.44 15.01 5.99L15 6ZM6 9H2C1.45 9 0.999998 9.45 0.999998 10C0.999998 10.55 1.45 11 2 11H3.59L1.29 13.29C0.899998 13.68 0.899998 14.31 1.29 14.7C1.68 15.09 2.31 15.09 2.7 14.7L4.99 12.41V14C4.99 14.55 5.44 15 5.99 15C6.54 15 6.99 14.55 6.99 14V10C6.99 9.45 6.54 9 5.99 9H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/search-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})})},"./build/survey-core/icons/iconsV2.js":function(B,R,D){/*!
- * surveyjs - Survey JavaScript library v1.12.20
- * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
- * License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */(function(h,w){B.exports=w()})(this,function(){return function(C){var h={};function w(A){if(h[A])return h[A].exports;var k=h[A]={i:A,l:!1,exports:{}};return C[A].call(k.exports,k,k.exports,w),k.l=!0,k.exports}return w.m=C,w.c=h,w.d=function(A,k,le){w.o(A,k)||Object.defineProperty(A,k,{enumerable:!0,get:le})},w.r=function(A){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},w.t=function(A,k){if(k&1&&(A=w(A)),k&8||k&4&&typeof A=="object"&&A&&A.__esModule)return A;var le=Object.create(null);if(w.r(le),Object.defineProperty(le,"default",{enumerable:!0,value:A}),k&2&&typeof A!="string")for(var $ in A)w.d(le,$,(function(ie){return A[ie]}).bind(null,$));return le},w.n=function(A){var k=A&&A.__esModule?function(){return A.default}:function(){return A};return w.d(k,"a",k),k},w.o=function(A,k){return Object.prototype.hasOwnProperty.call(A,k)},w.p="",w(w.s="./packages/survey-core/src/iconsV2.ts")}({"./packages/survey-core/src/iconsV2.ts":function(C,h,w){w.r(h),w.d(h,"icons",function(){return k});var A=w("./packages/survey-core/src/images-v2 sync recursive \\.svg$"),k={};A.keys().forEach(function(le){k[le.substring(2,le.length-4).toLowerCase()]=A(le)})},"./packages/survey-core/src/images-v2 sync recursive \\.svg$":function(C,h,w){var A={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v2/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v2/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v2/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v2/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v2/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v2/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v2/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v2/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v2/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v2/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v2/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v2/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v2/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v2/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v2/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v2/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v2/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v2/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v2/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v2/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v2/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v2/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v2/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v2/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v2/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v2/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v2/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v2/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v2/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v2/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v2/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v2/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v2/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v2/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v2/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v2/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v2/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v2/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v2/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v2/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v2/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v2/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v2/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg"};function k($){var ie=le($);return w(ie)}function le($){if(!w.o(A,$)){var ie=new Error("Cannot find module '"+$+"'");throw ie.code="MODULE_NOT_FOUND",ie}return A[$]}k.keys=function(){return Object.keys(A)},k.resolve=le,C.exports=k,k.id="./packages/survey-core/src/images-v2 sync recursive \\.svg$"},"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v2/ModernCheck.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernRadio.svg":function(C,h){C.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v2/ProgressButton.svg":function(C,h){C.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v2/RemoveFile.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v2/TimerCircle.svg":function(C,h){C.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v2/add-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowleft-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowright-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-32x32.svg":function(C,h){C.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z"></path></svg>'},"./packages/survey-core/src/images-v2/cancel-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.8099 11.75L15.2799 9.28C15.5699 8.99 15.5699 8.51 15.2799 8.22C14.9899 7.93 14.5099 7.93 14.2199 8.22L11.7499 10.69L9.27994 8.22C8.98994 7.93 8.50994 7.93 8.21994 8.22C7.92994 8.51 7.92994 8.99 8.21994 9.28L10.6899 11.75L8.21994 14.22C7.92994 14.51 7.92994 14.99 8.21994 15.28C8.36994 15.43 8.55994 15.5 8.74994 15.5C8.93994 15.5 9.12994 15.43 9.27994 15.28L11.7499 12.81L14.2199 15.28C14.3699 15.43 14.5599 15.5 14.7499 15.5C14.9399 15.5 15.1299 15.43 15.2799 15.28C15.5699 14.99 15.5699 14.51 15.2799 14.22L12.8099 11.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.0275 5.0275L6.5275 12.5275C6.3775 12.6775 6.1875 12.7475 5.9975 12.7475C5.8075 12.7475 5.6175 12.6775 5.4675 12.5275L2.4675 9.5275C2.1775 9.2375 2.1775 8.7575 2.4675 8.4675C2.7575 8.1775 3.2375 8.1775 3.5275 8.4675L5.9975 10.9375L12.9675 3.9675C13.2575 3.6775 13.7375 3.6775 14.0275 3.9675C14.3175 4.2575 14.3175 4.7375 14.0275 5.0275Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevrondown-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevronright-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.35 8.34627L7.35 12.3463C7.25 12.4463 7.12 12.4963 7 12.4963C6.88 12.4963 6.74 12.4463 6.65 12.3463C6.45 12.1463 6.45 11.8363 6.65 11.6363L10.3 7.98627L6.65 4.34627C6.45 4.15627 6.45 3.83627 6.65 3.64627C6.85 3.45627 7.16 3.44627 7.35 3.64627L11.35 7.64627C11.55 7.84627 11.55 8.15627 11.35 8.35627V8.34627Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.35 11.65C12.55 11.85 12.55 12.16 12.35 12.36C12.25 12.46 12.12 12.51 12 12.51C11.88 12.51 11.74 12.46 11.65 12.36L8 8.71L4.35 12.36C4.25 12.46 4.12 12.51 4 12.51C3.88 12.51 3.74 12.46 3.65 12.36C3.45 12.16 3.45 11.85 3.65 11.65L7.3 8L3.65 4.35C3.45 4.16 3.45 3.84 3.65 3.65C3.85 3.46 4.16 3.45 4.35 3.65L8 7.3L11.65 3.65C11.85 3.45 12.16 3.45 12.36 3.65C12.56 3.85 12.56 4.16 12.36 4.36L8.71 8.01L12.36 11.66L12.35 11.65Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.12 10.9325C20.64 10.4125 20.93 9.7225 20.93 8.9925C20.93 8.2625 20.64 7.5725 20.12 7.0525L16.95 3.8825C15.88 2.8125 14.13 2.8125 13.06 3.8825L3.88 13.0525C3.36 13.5725 3.07 14.2625 3.07 14.9925C3.07 15.7225 3.36 16.4125 3.88 16.9325L5.64 18.6925C6.57 19.6225 7.78 20.0825 9 20.0825C10.22 20.0825 11.43 19.6225 12.36 18.6925L20.12 10.9325ZM14.12 4.9325C14.36 4.6925 14.67 4.5625 15 4.5625C15.33 4.5625 15.65 4.6925 15.88 4.9325L19.05 8.1025C19.54 8.5925 19.54 9.3825 19.05 9.8725L12.99 15.9325L8.05 10.9925L14.12 4.9325ZM6.7 17.6325L4.94 15.8725C4.45 15.3825 4.45 14.5925 4.94 14.1025L7 12.0425L11.94 16.9825L11.3 17.6225C10.07 18.8525 7.93 18.8525 6.7 17.6225V17.6325ZM22.75 20.9925C22.75 21.4025 22.41 21.7425 22 21.7425H14C13.59 21.7425 13.25 21.4025 13.25 20.9925C13.25 20.5825 13.59 20.2425 14 20.2425H22C22.41 20.2425 22.75 20.5825 22.75 20.9925ZM4.75 20.9925C4.75 21.4025 4.41 21.7425 4 21.7425H2C1.59 21.7425 1.25 21.4025 1.25 20.9925C1.25 20.5825 1.59 20.2425 2 20.2425H4C4.41 20.2425 4.75 20.5825 4.75 20.9925Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.5275 12.4675C13.8175 12.7575 13.8175 13.2375 13.5275 13.5275C13.3775 13.6775 13.1875 13.7475 12.9975 13.7475C12.8075 13.7475 12.6175 13.6775 12.4675 13.5275L7.9975 9.0575L3.5275 13.5275C3.3775 13.6775 3.1875 13.7475 2.9975 13.7475C2.8075 13.7475 2.6175 13.6775 2.4675 13.5275C2.1775 13.2375 2.1775 12.7575 2.4675 12.4675L6.9375 7.9975L2.4675 3.5275C2.1775 3.2375 2.1775 2.7575 2.4675 2.4675C2.7575 2.1775 3.2375 2.1775 3.5275 2.4675L7.9975 6.9375L12.4675 2.4675C12.7575 2.1775 13.2375 2.1775 13.5275 2.4675C13.8175 2.7575 13.8175 3.2375 13.5275 3.5275L9.0575 7.9975L13.5275 12.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapse-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/delete-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/drag-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.19 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg":function(C,h){C.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/expand-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/expanddetails-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/file-72x72.svg":function(C,h){C.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v2/flip-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 17.4775C14.82 17.7675 14.82 18.2475 14.53 18.5375L11.53 21.5375C11.38 21.6875 11.19 21.7575 11 21.7575C10.81 21.7575 10.62 21.6875 10.47 21.5375C10.18 21.2475 10.18 20.7675 10.47 20.4775L12.2 18.7475C12.13 18.7475 12.07 18.7475 12 18.7475C6.62 18.7475 2.25 15.7475 2.25 12.0575C2.25 10.2975 3.22 8.6375 4.99 7.3875C5.33 7.1475 5.8 7.2275 6.03 7.5675C6.27 7.9075 6.19 8.3775 5.85 8.6075C4.49 9.5675 3.74 10.7875 3.74 12.0575C3.74 14.9175 7.44 17.2475 11.99 17.2475C12.05 17.2475 12.11 17.2475 12.17 17.2475L10.46 15.5375C10.17 15.2475 10.17 14.7675 10.46 14.4775C10.75 14.1875 11.23 14.1875 11.52 14.4775L14.52 17.4775H14.53ZM12 5.2575C11.93 5.2575 11.87 5.2575 11.8 5.2575L13.53 3.5275C13.82 3.2375 13.82 2.7575 13.53 2.4675C13.24 2.1775 12.76 2.1775 12.47 2.4675L9.47 5.4675C9.18 5.7575 9.18 6.2375 9.47 6.5275L12.47 9.5275C12.62 9.6775 12.81 9.7475 13 9.7475C13.19 9.7475 13.38 9.6775 13.53 9.5275C13.82 9.2375 13.82 8.7575 13.53 8.4675L11.82 6.7575C11.88 6.7575 11.94 6.7575 12 6.7575C16.55 6.7575 20.25 9.0875 20.25 11.9475C20.25 13.2075 19.5 14.4375 18.14 15.3975C17.8 15.6375 17.72 16.1075 17.96 16.4475C18.11 16.6575 18.34 16.7675 18.57 16.7675C18.72 16.7675 18.87 16.7275 19 16.6275C20.77 15.3775 21.75 13.7175 21.75 11.9575C21.75 8.2675 17.38 5.2675 12 5.2675V5.2575Z"></path></svg>'},"./packages/survey-core/src/images-v2/folder-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.72 9.24C21.45 8.92 21.12 8.67 20.75 8.5V8C20.75 6.48 19.52 5.25 18 5.25H10.65C10.32 4.1 9.26 3.25 8 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18.33C19.66 20.75 20.8 19.8 21.04 18.49L22.31 11.49C22.46 10.69 22.24 9.86 21.72 9.24ZM4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H8C8.69 4.75 9.25 5.31 9.25 6C9.25 6.41 9.59 6.75 10 6.75H18C18.69 6.75 19.25 7.31 19.25 8V8.25H9.27C7.94 8.25 6.8 9.2 6.56 10.51L5.29 17.51C5.19 18.07 5.27 18.64 5.51 19.15C5.06 18.96 4.75 18.52 4.75 18ZM20.83 11.22L19.56 18.22C19.45 18.81 18.94 19.25 18.33 19.25H8C7.63 19.25 7.28 19.09 7.04 18.8C6.8 18.51 6.7 18.14 6.77 17.78L8.04 10.78C8.15 10.19 8.66 9.75 9.27 9.75H19.6C19.97 9.75 20.32 9.91 20.56 10.2C20.8 10.49 20.9 10.86 20.83 11.22Z"></path></svg>'},"./packages/survey-core/src/images-v2/fullsize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.25H4C3.04 3.25 2.25 4.04 2.25 5V11C2.25 11.96 3.04 12.75 4 12.75H12C12.96 12.75 13.75 11.96 13.75 11V5C13.75 4.04 12.96 3.25 12 3.25ZM12.25 11C12.25 11.14 12.14 11.25 12 11.25H4C3.86 11.25 3.75 11.14 3.75 11V5C3.75 4.86 3.86 4.75 4 4.75H12C12.14 4.75 12.25 4.86 12.25 5V11Z"></path></svg>'},"./packages/survey-core/src/images-v2/image-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z"></path></svg>'},"./packages/survey-core/src/images-v2/loading-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/maximize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z"></path></svg>'},"./packages/survey-core/src/images-v2/minimize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/more-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/navmenu-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/noimage-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/ranking-arrows.svg":function(C,h){C.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-2.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small-2.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/rating-star.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/reorder-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.9444 10.75H15.0544C15.7144 10.75 16.3144 10.39 16.6144 9.80002C16.9144 9.22002 16.8644 8.52002 16.4844 7.98002L13.4244 3.71002C12.7644 2.79002 11.2344 2.79002 10.5744 3.71002L7.5244 7.99002C7.1444 8.53002 7.0944 9.22002 7.3944 9.81002C7.6944 10.4 8.2944 10.76 8.9544 10.76L8.9444 10.75ZM8.7444 8.86002L11.7944 4.58002C11.8644 4.49002 11.9544 4.48002 11.9944 4.48002C12.0344 4.48002 12.1344 4.49002 12.1944 4.58002L15.2544 8.86002C15.3344 8.97002 15.3044 9.07002 15.2744 9.12002C15.2444 9.17002 15.1844 9.26002 15.0544 9.26002H8.9444C8.8144 9.26002 8.7444 9.18002 8.7244 9.12002C8.7044 9.06002 8.6644 8.97002 8.7444 8.86002ZM15.0544 13.25H8.9444C8.2844 13.25 7.6844 13.61 7.3844 14.2C7.0844 14.78 7.1344 15.48 7.5144 16.02L10.5744 20.3C10.9044 20.76 11.4344 21.03 11.9944 21.03C12.5544 21.03 13.0944 20.76 13.4144 20.3L16.4744 16.02C16.8544 15.48 16.9044 14.79 16.6044 14.2C16.3044 13.61 15.7044 13.25 15.0444 13.25H15.0544ZM15.2644 15.15L12.2044 19.43C12.0744 19.61 11.9244 19.61 11.7944 19.43L8.7344 15.15C8.6544 15.04 8.6844 14.94 8.7144 14.89C8.7444 14.84 8.8044 14.75 8.9344 14.75H15.0444C15.1744 14.75 15.2444 14.83 15.2644 14.89C15.2844 14.95 15.3244 15.04 15.2444 15.15H15.2644Z"></path></svg>'},"./packages/survey-core/src/images-v2/restoredown-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.69 8.71C7.73 8.8 7.75 8.9 7.75 9V13C7.75 13.41 7.41 13.75 7 13.75C6.59 13.75 6.25 13.41 6.25 13V10.81L3.53 13.53C3.38 13.68 3.19 13.75 3 13.75C2.81 13.75 2.62 13.68 2.47 13.53C2.18 13.24 2.18 12.76 2.47 12.47L5.19 9.75H3C2.59 9.75 2.25 9.41 2.25 9C2.25 8.59 2.59 8.25 3 8.25H7C7.1 8.25 7.19 8.27 7.29 8.31C7.47 8.39 7.62 8.53 7.7 8.72L7.69 8.71ZM13 6.25H10.81L13.53 3.53C13.82 3.24 13.82 2.76 13.53 2.47C13.24 2.18 12.76 2.18 12.47 2.47L9.75 5.19V3C9.75 2.59 9.41 2.25 9 2.25C8.59 2.25 8.25 2.59 8.25 3V7C8.25 7.1 8.27 7.19 8.31 7.29C8.39 7.47 8.53 7.62 8.72 7.7C8.81 7.74 8.91 7.76 9.01 7.76H13.01C13.42 7.76 13.76 7.42 13.76 7.01C13.76 6.6 13.42 6.26 13.01 6.26L13 6.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/search-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.9975 2.25C9.7275 2.25 6.2475 5.73 6.2475 10C6.2475 11.87 6.9075 13.58 8.0175 14.92L2.4675 20.47C2.1775 20.76 2.1775 21.24 2.4675 21.53C2.6175 21.68 2.8075 21.75 2.9975 21.75C3.1875 21.75 3.3775 21.68 3.5275 21.53L9.0775 15.98C10.4175 17.08 12.1275 17.75 13.9975 17.75C18.2675 17.75 21.7475 14.27 21.7475 10C21.7475 5.73 18.2675 2.25 13.9975 2.25ZM13.9975 16.25C10.5475 16.25 7.7475 13.45 7.7475 10C7.7475 6.55 10.5475 3.75 13.9975 3.75C17.4475 3.75 20.2475 6.55 20.2475 10C20.2475 13.45 17.4475 16.25 13.9975 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})})},"./src/entries/react-ui.ts":function(B,R,D){D.r(R),D.d(R,"Survey",function(){return Mt}),D.d(R,"attachKey2click",function(){return xn}),D.d(R,"ReactSurveyElementsWrapper",function(){return k}),D.d(R,"SurveyNavigationBase",function(){return Ht}),D.d(R,"SurveyTimerPanel",function(){return Ir}),D.d(R,"SurveyPage",function(){return xi}),D.d(R,"SurveyRow",function(){return we}),D.d(R,"SurveyPanel",function(){return ze}),D.d(R,"SurveyFlowPanel",function(){return Kn}),D.d(R,"SurveyQuestion",function(){return nn}),D.d(R,"SurveyElementErrors",function(){return rn}),D.d(R,"SurveyQuestionAndErrorsCell",function(){return Ci}),D.d(R,"ReactSurveyElement",function(){return ie}),D.d(R,"SurveyElementBase",function(){return $}),D.d(R,"SurveyQuestionElementBase",function(){return ce}),D.d(R,"SurveyQuestionCommentItem",function(){return nt}),D.d(R,"SurveyQuestionComment",function(){return wt}),D.d(R,"SurveyQuestionCheckbox",function(){return Ii}),D.d(R,"SurveyQuestionCheckboxItem",function(){return Dr}),D.d(R,"SurveyQuestionRanking",function(){return Ar}),D.d(R,"SurveyQuestionRankingItem",function(){return Di}),D.d(R,"SurveyQuestionRankingItemContent",function(){return Lr}),D.d(R,"RatingItem",function(){return jt}),D.d(R,"RatingItemStar",function(){return jr}),D.d(R,"RatingItemSmiley",function(){return Ai}),D.d(R,"RatingDropdownItem",function(){return fe}),D.d(R,"TagboxFilterString",function(){return Vn}),D.d(R,"SurveyQuestionOptionItem",function(){return Li}),D.d(R,"SurveyQuestionDropdownBase",function(){return Xn}),D.d(R,"SurveyQuestionDropdown",function(){return qr}),D.d(R,"SurveyQuestionTagboxItem",function(){return er}),D.d(R,"SurveyQuestionTagbox",function(){return Ut}),D.d(R,"SurveyQuestionDropdownSelect",function(){return Ye}),D.d(R,"SurveyQuestionMatrix",function(){return on}),D.d(R,"SurveyQuestionMatrixRow",function(){return Mi}),D.d(R,"SurveyQuestionMatrixCell",function(){return Ge}),D.d(R,"SurveyQuestionHtml",function(){return ji}),D.d(R,"SurveyQuestionFile",function(){return tr}),D.d(R,"SurveyFileChooseButton",function(){return Br}),D.d(R,"SurveyFilePreview",function(){return Tn}),D.d(R,"SurveyQuestionMultipleText",function(){return sn}),D.d(R,"SurveyQuestionRadiogroup",function(){return Rn}),D.d(R,"SurveyQuestionRadioItem",function(){return In}),D.d(R,"SurveyQuestionText",function(){return rr}),D.d(R,"SurveyQuestionBoolean",function(){return rt}),D.d(R,"SurveyQuestionBooleanCheckbox",function(){return or}),D.d(R,"SurveyQuestionBooleanRadio",function(){return Fi}),D.d(R,"SurveyQuestionEmpty",function(){return Hr}),D.d(R,"SurveyQuestionMatrixDropdownCell",function(){return Qi}),D.d(R,"SurveyQuestionMatrixDropdownBase",function(){return Ln}),D.d(R,"SurveyQuestionMatrixDropdown",function(){return Hi}),D.d(R,"SurveyQuestionMatrixDynamic",function(){return Ur}),D.d(R,"SurveyQuestionMatrixDynamicAddButton",function(){return cr}),D.d(R,"SurveyQuestionPanelDynamic",function(){return dr}),D.d(R,"SurveyProgress",function(){return ke}),D.d(R,"SurveyProgressButtons",function(){return hr}),D.d(R,"SurveyProgressToc",function(){return Zi}),D.d(R,"SurveyQuestionRating",function(){return Yi}),D.d(R,"SurveyQuestionRatingDropdown",function(){return un}),D.d(R,"SurveyQuestionExpression",function(){return Xe}),D.d(R,"PopupSurvey",function(){return qn}),D.d(R,"SurveyWindow",function(){return ss}),D.d(R,"ReactQuestionFactory",function(){return Ce}),D.d(R,"ReactElementFactory",function(){return A}),D.d(R,"SurveyQuestionImagePicker",function(){return I}),D.d(R,"SurveyQuestionImage",function(){return $r}),D.d(R,"SurveyQuestionSignaturePad",function(){return Jr}),D.d(R,"SurveyQuestionButtonGroup",function(){return as}),D.d(R,"SurveyQuestionCustom",function(){return _n}),D.d(R,"SurveyQuestionComposite",function(){return ro}),D.d(R,"Popup",function(){return Qe}),D.d(R,"ListItemContent",function(){return io}),D.d(R,"ListItemGroup",function(){return ot}),D.d(R,"List",function(){return Nn}),D.d(R,"TitleActions",function(){return Je}),D.d(R,"TitleElement",function(){return tt}),D.d(R,"SurveyActionBar",function(){return Re}),D.d(R,"LogoImage",function(){return ft}),D.d(R,"SurveyHeader",function(){return Or}),D.d(R,"SvgIcon",function(){return ge}),D.d(R,"SurveyQuestionMatrixDynamicRemoveButton",function(){return Zr}),D.d(R,"SurveyQuestionMatrixDetailButton",function(){return Kr}),D.d(R,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return sr}),D.d(R,"SurveyQuestionPanelDynamicAddButton",function(){return Ui}),D.d(R,"SurveyQuestionPanelDynamicRemoveButton",function(){return Yr}),D.d(R,"SurveyQuestionPanelDynamicPrevButton",function(){return jn}),D.d(R,"SurveyQuestionPanelDynamicNextButton",function(){return Et}),D.d(R,"SurveyQuestionPanelDynamicProgressText",function(){return fr}),D.d(R,"SurveyNavigationButton",function(){return ei}),D.d(R,"QuestionErrorComponent",function(){return Fn}),D.d(R,"MatrixRow",function(){return Wt}),D.d(R,"Skeleton",function(){return Gt}),D.d(R,"NotifierComponent",function(){return Gn}),D.d(R,"ComponentsContainer",function(){return Pt}),D.d(R,"CharacterCounterComponent",function(){return Ot}),D.d(R,"HeaderMobile",function(){return Be}),D.d(R,"HeaderCell",function(){return gr}),D.d(R,"Header",function(){return co}),D.d(R,"SurveyLocStringViewer",function(){return Bn}),D.d(R,"SurveyLocStringEditor",function(){return re}),D.d(R,"LoadingIndicatorComponent",function(){return Pe}),D.d(R,"SvgBundleComponent",function(){return Si}),D.d(R,"PopupModal",function(){return Er}),D.d(R,"SurveyModel",function(){return C.SurveyModel}),D.d(R,"SurveyWindowModel",function(){return C.SurveyWindowModel}),D.d(R,"Model",function(){return C.SurveyModel}),D.d(R,"settings",function(){return C.settings}),D.d(R,"surveyLocalization",function(){return C.surveyLocalization}),D.d(R,"surveyStrings",function(){return C.surveyStrings});var C=D("survey-core"),h=D("react"),w=D.n(h),A=function(){function p(){this.creatorHash={}}return p.prototype.registerElement=function(l,a){this.creatorHash[l]=a},p.prototype.getAllTypes=function(){var l=new Array;for(var a in this.creatorHash)l.push(a);return l.sort()},p.prototype.isElementRegistered=function(l){return!!this.creatorHash[l]},p.prototype.createElement=function(l,a){var c=this.creatorHash[l];return c==null?null:c(a)},p.Instance=new p,p}(),k=function(){function p(){}return p.wrapRow=function(l,a,c){var f=l.getRowWrapperComponentName(c),g=l.getRowWrapperComponentData(c);return A.Instance.createElement(f,{element:a,row:c,componentData:g})},p.wrapElement=function(l,a,c){var f=l.getElementWrapperComponentName(c),g=l.getElementWrapperComponentData(c);return A.Instance.createElement(f,{element:a,question:c,componentData:g})},p.wrapQuestionContent=function(l,a,c){var f=l.getQuestionContentWrapperComponentName(c),g=l.getElementWrapperComponentData(c);return A.Instance.createElement(f,{element:a,question:c,componentData:g})},p.wrapItemValue=function(l,a,c,f){var g=l.getItemValueWrapperComponentName(f,c),L=l.getItemValueWrapperComponentData(f,c);return A.Instance.createElement(g,{key:a==null?void 0:a.key,element:a,question:c,item:f,componentData:L})},p.wrapMatrixCell=function(l,a,c,f){f===void 0&&(f="cell");var g=l.getElementWrapperComponentName(c,f),L=l.getElementWrapperComponentData(c,f);return A.Instance.createElement(g,{element:a,cell:c,componentData:L})},p}();C.SurveyModel.platform="react";var le=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$=function(p){le(l,p);function l(a){var c=p.call(this,a)||this;return c._allowComponentUpdate=!0,c.prevStateElements=[],c}return l.renderLocString=function(a,c,f){return c===void 0&&(c=null),A.Instance.createElement(a.renderAs,{locStr:a.renderAsData,style:c,key:f})},l.renderQuestionDescription=function(a){var c=l.renderLocString(a.locDescription);return h.createElement("div",{style:a.hasDescription?void 0:{display:"none"},id:a.ariaDescriptionId,className:a.cssDescription},c)},l.prototype.componentDidMount=function(){this.makeBaseElementsReact()},l.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())},l.prototype.componentDidUpdate=function(a,c){var f;this.makeBaseElementsReact();var g=this.getStateElements();this.disableStateElementsRerenderEvent(((f=this.prevStateElements)!==null&&f!==void 0?f:[]).filter(function(L){return!g.includes(L)})),this.prevStateElements=[],this.getStateElements().forEach(function(L){L.afterRerender()})},l.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},l.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},l.prototype.shouldComponentUpdate=function(a,c){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate},l.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var a=this.renderElement();return this.startEndRendering(-1),a&&(a=this.wrapElement(a)),this.changedStatePropNameValue=void 0,a},l.prototype.wrapElement=function(a){return a},Object.defineProperty(l.prototype,"isRendering",{get:function(){for(var a=this.getRenderedElements(),c=0,f=a;c<f.length;c++){var g=f[c];if(g.reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),l.prototype.getRenderedElements=function(){return this.getStateElements()},l.prototype.startEndRendering=function(a){for(var c=this.getRenderedElements(),f=0,g=c;f<g.length;f++){var L=g[f];L.reactRendering||(L.reactRendering=0),L.reactRendering+=a}},l.prototype.canRender=function(){return!0},l.prototype.renderElement=function(){return null},Object.defineProperty(l.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),l.prototype.makeBaseElementsReact=function(){for(var a=this.getStateElements(),c=0;c<a.length;c++)a[c].enableOnElementRerenderedEvent(),this.makeBaseElementReact(a[c])},l.prototype.unMakeBaseElementsReact=function(){for(var a=this.getStateElements(),c=0;c<a.length;c++)this.unMakeBaseElementReact(a[c])},l.prototype.disableStateElementsRerenderEvent=function(a){a.forEach(function(c){c.disableOnElementRerenderedEvent()})},l.prototype.getStateElements=function(){var a=this.getStateElement();return a?[a]:[]},l.prototype.getStateElement=function(){return null},Object.defineProperty(l.prototype,"isDisplayMode",{get:function(){var a=this.props;return a.isDisplayMode||!1},enumerable:!1,configurable:!0}),l.prototype.renderLocString=function(a,c,f){return c===void 0&&(c=null),l.renderLocString(a,c,f)},l.prototype.canMakeReact=function(a){return!!a&&!!a.iteratePropertiesHash},l.prototype.makeBaseElementReact=function(a){var c=this;this.canMakeReact(a)&&(a.iteratePropertiesHash(function(f,g){if(c.canUsePropInState(g)){var L=f[g];if(Array.isArray(L)){var L=L;L.onArrayChanged=function(H){c.isRendering||(c.changedStatePropNameValue=g,c.setState(function(ye){var ae={};return ae[g]=L,ae}))}}}}),a.setPropertyValueCoreHandler=function(f,g,L){if(f[g]!==L){if(f[g]=L,!c.canUsePropInState(g)||c.isRendering)return;c.changedStatePropNameValue=g,c.setState(function(F){var H={};return H[g]=L,H})}})},l.prototype.canUsePropInState=function(a){return!0},l.prototype.unMakeBaseElementReact=function(a){this.canMakeReact(a)&&(a.setPropertyValueCoreHandler=void 0,a.iteratePropertiesHash(function(c,f){var g=c[f];if(Array.isArray(g)){var g=g;g.onArrayChanged=function(){}}}))},l}(h.Component),ie=function(p){le(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),l}($),ce=function(p){le(l,p);function l(a){return p.call(this,a)||this}return l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateDomElement()},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateDomElement()},l.prototype.componentWillUnmount=function(){if(p.prototype.componentWillUnmount.call(this),this.questionBase){var a=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(a),a&&a.removeAttribute("data-rendered")}},l.prototype.updateDomElement=function(){var a=this.content||this.control;a&&a.getAttribute("data-rendered")!=="r"&&(a.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(a))},Object.defineProperty(l.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.isDefaultRender||!!this.questionBase.customWidget.widgetJson.render:!1},Object.defineProperty(l.prototype,"isDisplayMode",{get:function(){var a=this.props;return a.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),l.prototype.wrapCell=function(a,c,f){if(!f)return c;var g=this.questionBase.survey,L=null;return g&&(L=k.wrapMatrixCell(g,c,a,f)),L??c},l.prototype.setControl=function(a){a&&(this.control=a)},l.prototype.setContent=function(a){a&&(this.content=a)},l}($),We=function(p){le(l,p);function l(a){var c=p.call(this,a)||this;return c.updateValueOnEvent=function(f){C.Helpers.isTwoValueEquals(c.questionBase.value,f.target.value,!1,!0,!1)||c.setValueCore(f.target.value)},c.updateValueOnEvent=c.updateValueOnEvent.bind(c),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.setValueCore=function(a){this.questionBase.value=a},l.prototype.getValueCore=function(){return this.questionBase.value},l.prototype.updateDomElement=function(){if(this.control){var a=this.control,c=this.getValueCore();C.Helpers.isTwoValueEquals(c,a.value,!1,!0,!1)||(a.value=this.getValue(c))}p.prototype.updateDomElement.call(this)},l.prototype.getValue=function(a){return C.Helpers.isValueEmpty(a)?"":a},l}(ce),be=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),pe=function(p){be(l,p);function l(a){var c=p.call(this,a)||this;return c.element.cssClasses,c.rootRef=h.createRef(),c}return l.prototype.getStateElement=function(){return this.element},Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?(a.element!==this.element&&(a.element&&a.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0):!1},l.prototype.renderElement=function(){var a=this.element,c=this.createElement(a,this.index),f=a.cssClassesValue,g=function(){var L=a;L&&L.isQuestion&&L.focusIn()};return h.createElement("div",{className:f.questionWrapper,style:a.rootStyle,"data-key":c.key,key:c.key,onFocus:g,ref:this.rootRef},c)},l.prototype.createElement=function(a,c){var f=c?"-"+c:0;if(!this.row.isNeedRender)return A.Instance.createElement(a.skeletonComponentName,{key:a.name+f,element:a,css:this.css});var g=a.getTemplate();return A.Instance.isElementRegistered(g)||(g="question"),A.Instance.createElement(g,{key:a.name+f,element:a,creator:this.creator,survey:this.survey,css:this.css})},l}($),x=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),we=function(p){x(l,p);function l(a){var c=p.call(this,a)||this;return c.rootRef=h.createRef(),c.recalculateCss(),c}return l.prototype.recalculateCss=function(){this.row.visibleElements.map(function(a){return a.cssClasses})},l.prototype.getStateElement=function(){return this.row},Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},l.prototype.renderElementContent=function(){var a=this,c=this.row.visibleElements.map(function(f,g){var L=g?"-"+g:0,F=f.name+L;return h.createElement(pe,{element:f,index:g,row:a.row,survey:a.survey,creator:a.creator,css:a.css,key:F})});return h.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},c)},l.prototype.renderElement=function(){var a=this.survey,c=this.renderElementContent(),f=k.wrapRow(a,c,this.row);return f||c},l.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this);var c=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),c&&!this.row.isNeedRender){var f=c;setTimeout(function(){a.row.startLazyRendering(f)},10)}},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?(a.row!==this.row&&(a.row.isNeedRender=this.row.isNeedRender,a.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0):!1},l.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},l.prototype.createElement=function(a,c){var f=c?"-"+c:0,g=a.getType();return A.Instance.isElementRegistered(g)||(g="question"),A.Instance.createElement(g,{key:a.name+f,element:a,creator:this.creator,survey:this.survey,css:this.css})},l}($),me=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),lt=function(p){me(l,p);function l(a){var c=p.call(this,a)||this;return c.rootRef=h.createRef(),c}return l.prototype.getStateElement=function(){return this.panelBase},l.prototype.canUsePropInState=function(a){return a!=="elements"&&p.prototype.canUsePropInState.call(this,a)},Object.defineProperty(l.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),l.prototype.getPanelBase=function(){return this.props.element||this.props.question},l.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},l.prototype.getCss=function(){return this.props.css},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.doAfterRender()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this);var a=this.rootRef.current;a&&a.removeAttribute("data-rendered")},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),!(a.page&&this.survey&&this.survey.activePage&&a.page.id===this.survey.activePage.id)&&this.doAfterRender()},l.prototype.doAfterRender=function(){var a=this.rootRef.current;a&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(a):this.survey.afterRenderPage(a))},l.prototype.getIsVisible=function(){return this.panelBase.isVisible},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},l.prototype.renderRows=function(a){var c=this;return this.panelBase.visibleRows.map(function(f){return c.createRow(f,a)})},l.prototype.createRow=function(a,c){return h.createElement(we,{key:a.id,row:a,survey:this.survey,creator:this.creator,css:c})},l}($),Fe=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ge=function(p){Fe(l,p);function l(a){var c=p.call(this,a)||this;return c.svgIconRef=w.a.createRef(),c}return l.prototype.updateSvg=function(){this.props.iconName&&Object(C.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},l.prototype.componentDidUpdate=function(){this.updateSvg()},l.prototype.render=function(){var a="sv-svg-icon";return this.props.className&&(a+=" "+this.props.className),this.props.iconName?w.a.createElement("svg",{className:a,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},w.a.createElement("use",null)):null},l.prototype.componentDidMount=function(){this.updateSvg()},l}(w.a.Component);A.Instance.registerElement("sv-svg-icon",function(p){return w.a.createElement(ge,p)});var en=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ke=function(p){en(l,p);function l(a){return p.call(this,a)||this}return l.prototype.render=function(){var a="sv-action-bar-separator "+this.props.cssClasses;return w.a.createElement("div",{className:a})},l}(w.a.Component);A.Instance.registerElement("sv-action-bar-separator",function(p){return w.a.createElement(Ke,p)});var vt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$e=function(p){vt(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){var a=this.item.getActionRootCss(),c=this.item.needSeparator?w.a.createElement(Ke,null):null,f=A.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return w.a.createElement("div",{className:a,id:this.item.id},w.a.createElement("div",{className:"sv-action__content"},c,f))},l}($),ut=function(p){vt(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){return w.a.createElement(w.a.Fragment,null,this.renderInnerButton())},l.prototype.renderText=function(){if(!this.item.hasTitle)return null;var a=this.item.getActionBarItemTitleCss();return w.a.createElement("span",{className:a},this.item.title)},l.prototype.renderButtonContent=function(){var a=this.renderText(),c=this.item.iconName?w.a.createElement(ge,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return w.a.createElement(w.a.Fragment,null,c,a)},l.prototype.renderInnerButton=function(){var a=this,c=this.item.getActionBarItemCss(),f=this.item.tooltip||this.item.title,g=this.renderButtonContent(),L=this.item.disableTabStop?-1:void 0,F=xn(w.a.createElement("button",{className:c,type:"button",disabled:this.item.disabled,onMouseDown:function(H){return a.item.doMouseDown(H)},onFocus:function(H){return a.item.doFocus(H)},onClick:function(H){return a.item.doAction(H)},title:f,tabIndex:L,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},g),this.item,{processEsc:!1});return F},l}($);A.Instance.registerElement("sv-action-bar-item",function(p){return w.a.createElement(ut,p)});var ht=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Qe=function(p){ht(l,p);function l(a){var c=p.call(this,a)||this;return c.containerRef=w.a.createRef(),c.createModel(),c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.createModel=function(){this.popup=Object(C.createPopupViewModel)(this.props.model)},l.prototype.setTargetElement=function(){var a=this.containerRef.current;this.popup.setComponentElement(a)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.setTargetElement()},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.setTargetElement()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},l.prototype.shouldComponentUpdate=function(a,c){var f;if(!p.prototype.shouldComponentUpdate.call(this,a,c))return!1;var g=a.model!==this.popup.model;return g&&((f=this.popup)===null||f===void 0||f.dispose(),this.createModel()),g},l.prototype.render=function(){this.popup.model=this.model;var a;return this.model.isModal?a=w.a.createElement(bt,{model:this.popup}):a=w.a.createElement(Rt,{model:this.popup}),w.a.createElement("div",{ref:this.containerRef},a)},l}($);A.Instance.registerElement("sv-popup",function(p){return w.a.createElement(Qe,p)});var bt=function(p){ht(l,p);function l(a){var c=p.call(this,a)||this;return c.handleKeydown=function(f){c.model.onKeyDown(f)},c.clickInside=function(f){f.stopPropagation()},c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},l.prototype.renderContainer=function(a){var c=this,f=a.showHeader?this.renderHeaderPopup(a):null,g=a.title?this.renderHeaderContent():null,L=this.renderContent(),F=a.showFooter?this.renderFooter(this.model):null;return w.a.createElement("div",{className:"sv-popup__container",style:{left:a.left,top:a.top,height:a.height,width:a.width,minWidth:a.minWidth},onClick:function(H){c.clickInside(H)}},f,w.a.createElement("div",{className:"sv-popup__body-content"},g,w.a.createElement("div",{className:"sv-popup__scrolling-content"},L),F))},l.prototype.renderHeaderContent=function(){return w.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},l.prototype.renderContent=function(){var a=A.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return w.a.createElement("div",{className:"sv-popup__content"},a)},l.prototype.renderHeaderPopup=function(a){return null},l.prototype.renderFooter=function(a){return w.a.createElement("div",{className:"sv-popup__body-footer"},w.a.createElement(Re,{model:a.footerToolbar}))},l.prototype.render=function(){var a=this,c=this.renderContainer(this.model),f=new C.CssClassBuilder().append("sv-popup").append(this.model.styleClass).toString(),g={display:this.model.isVisible?"":"none"};return w.a.createElement("div",{tabIndex:-1,className:f,style:g,onClick:function(L){a.model.clickOutside(L)},onKeyDown:this.handleKeydown},c)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},l}($),Rt=function(p){ht(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.renderHeaderPopup=function(a){var c=a;return c?w.a.createElement("span",{style:{left:c.pointerTarget.left,top:c.pointerTarget.top},className:"sv-popup__pointer"}):null},l}(bt),je=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),j=function(p){je(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderInnerButton=function(){var a=p.prototype.renderInnerButton.call(this);return w.a.createElement(w.a.Fragment,null,a,w.a.createElement(Qe,{model:this.item.popupModel}))},l.prototype.componentDidMount=function(){this.viewModel=new C.ActionDropdownViewModel(this.item)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},l}(ut);A.Instance.registerElement("sv-action-bar-item-dropdown",function(p){return w.a.createElement(j,p)});var wn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Re=function(p){wn(l,p);function l(a){var c=p.call(this,a)||this;return c.rootRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"handleClick",{get:function(){return this.props.handleClick!==void 0?this.props.handleClick:!0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(p.prototype.componentDidMount.call(this),!!this.model.hasActions){var a=this.rootRef.current;a&&this.model.initResponsivityManager(a,function(c){setTimeout(c,100)})}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},l.prototype.componentDidUpdate=function(a,c){if(p.prototype.componentDidUpdate.call(this,a,c),a.model!=this.props.model&&a.model.resetResponsivityManager(),this.model.hasActions){var f=this.rootRef.current;f&&this.model.initResponsivityManager(f,function(g){setTimeout(g,100)})}},l.prototype.getStateElement=function(){return this.model},l.prototype.renderElement=function(){if(!this.model.hasActions)return null;var a=this.renderItems();return w.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(c){c.stopPropagation()}:void 0},a)},l.prototype.renderItems=function(){return this.model.renderedActions.map(function(a,c){return w.a.createElement($e,{item:a,key:"item"+c})})},l}($);A.Instance.registerElement("sv-action-bar",function(p){return w.a.createElement(Re,p)});var He=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),he=function(p){He(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){if(this.element.isTitleRenderedAsString)return $.renderLocString(this.element.locTitle);var a=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return w.a.createElement(w.a.Fragment,null,a)},l.prototype.renderTitleSpans=function(a,c){var f=function(F){return w.a.createElement("span",{"data-key":F,key:F}," ")},g=[];a.isRequireTextOnStart&&(g.push(this.renderRequireText(a)),g.push(f("req-sp")));var L=a.no;return L&&(g.push(w.a.createElement("span",{"data-key":"q_num",key:"q_num",className:a.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},L)),g.push(f("num-sp"))),a.isRequireTextBeforeTitle&&(g.push(this.renderRequireText(a)),g.push(f("req-sp"))),g.push($.renderLocString(a.locTitle,null,"q_title")),a.isRequireTextAfterTitle&&(g.push(f("req-sp")),g.push(this.renderRequireText(a))),g},l.prototype.renderRequireText=function(a){return w.a.createElement("span",{"data-key":"req-text",key:"req-text",className:a.cssRequiredText,"aria-hidden":!0},a.requiredText)},l}(w.a.Component),It=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Je=function(p){It(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=w.a.createElement(he,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?w.a.createElement("div",{className:"sv-title-actions"},w.a.createElement("span",{className:"sv-title-actions__title"},a),w.a.createElement(Re,{model:this.element.getTitleToolbar()})):a},l}(w.a.Component);C.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),A.Instance.registerElement("sv-title-actions",function(p){return w.a.createElement(Je,p)});var Qt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),tt=function(p){Qt(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var a=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return w.a.createElement(ge,{className:this.element.getCssTitleExpandableSvg(),iconName:a,size:"auto"})},l.prototype.render=function(){var a=this.element;if(!a||!a.hasTitle)return null;var c=a.titleAriaLabel||void 0,f=this.renderTitleExpandableSvg(),g=w.a.createElement(Je,{element:a,cssClasses:a.cssClasses}),L=void 0,F=void 0;a.hasTitleEvents&&(F=function(ye){Object(C.doKey2ClickUp)(ye.nativeEvent)});var H=a.titleTagName;return w.a.createElement(H,{className:a.cssTitle,id:a.ariaTitleId,"aria-label":c,tabIndex:a.titleTabIndex,"aria-expanded":a.titleAriaExpanded,role:a.titleAriaRole,onClick:L,onKeyUp:F},f,g)},l}(w.a.Component),Ce=function(){function p(){this.creatorHash={}}return p.prototype.registerQuestion=function(l,a){this.creatorHash[l]=a},p.prototype.getAllTypes=function(){var l=new Array;for(var a in this.creatorHash)l.push(a);return l.sort()},p.prototype.createQuestion=function(l,a){var c=this.creatorHash[l];return c==null?null:c(a)},p.Instance=new p,p}(),tn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ot=function(p){tn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.getStateElement=function(){return this.props.counter},l.prototype.renderElement=function(){return w.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},l}($);A.Instance.registerElement("sv-character-counter",function(p){return w.a.createElement(Ot,p)});var Dt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),At=function(p){Dt(l,p);function l(a){var c=p.call(this,a)||this;return c.initialValue=c.viewModel.getTextValue()||"",c.textareaRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.viewModel.question},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this);var a=this.textareaRef.current;a&&this.viewModel.setElement(a)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},l.prototype.renderElement=function(){var a=this;return w.a.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(c){a.viewModel.onTextAreaInput(c)},onFocus:function(c){a.viewModel.onTextAreaFocus(c)},onBlur:function(c){a.viewModel.onTextAreaBlur(c)},onKeyDown:function(c){a.viewModel.onTextAreaKeyDown(c)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},l}($);A.Instance.registerElement("sv-text-area",function(p){return w.a.createElement(At,p)});var Ct=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),wt=function(p){Ct(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderCharacterCounter=function(){var a=null;return this.question.getMaxLength()&&(a=h.createElement(Ot,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),a},l.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return h.createElement("div",null,this.question.value);var a=this.renderCharacterCounter(),c=this.props.question.textAreaModel;return h.createElement(h.Fragment,null,h.createElement(At,{viewModel:c}),a)},l}(We),nt=function(p){Ct(l,p);function l(a){var c=p.call(this,a)||this;return c.textAreaModel=c.getTextAreaModel(),c}return l.prototype.canRender=function(){return!!this.props.question},l.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},l.prototype.renderElement=function(){var a=this.props.question;if(a.isReadOnlyRenderDiv()){var c=this.textAreaModel.getTextValue()||"";return h.createElement("div",null,c)}return h.createElement(At,{viewModel:this.textAreaModel})},l}(ie),ct=function(p){Ct(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},l}(nt);Ce.Instance.registerQuestion("comment",function(p){return h.createElement(wt,p)});var Vr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Sr=function(p){Vr(l,p);function l(a){var c=p.call(this,a)||this;return c.widgetRef=h.createRef(),c}return l.prototype._afterRender=function(){if(this.questionBase.customWidget){var a=this.widgetRef.current;a&&(this.questionBase.customWidget.afterRender(this.questionBase,a),this.questionBase.customWidgetData.isNeedRender=!1)}},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c);var f=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!f&&this._afterRender()},l.prototype.componentWillUnmount=function(){if(p.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var a=this.widgetRef.current;a&&this.questionBase.customWidget.willUnmount(this.questionBase,a)}},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&this.questionBase.visible},l.prototype.renderElement=function(){var a=this.questionBase.customWidget;if(a.isDefaultRender)return h.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var c=null;if(a.widgetJson.render)c=a.widgetJson.render(this.questionBase);else if(a.htmlTemplate){var f={__html:a.htmlTemplate};return h.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:f})}return h.createElement("div",{ref:this.widgetRef},c)},l}(ce),mi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),vi=function(p){mi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=this.element,c=a.hasTitle?w.a.createElement(tt,{element:a}):null,f=a.hasDescriptionUnderTitle?$.renderQuestionDescription(this.element):null,g=a.hasAdditionalTitleToolbar?w.a.createElement(Re,{model:a.additionalTitleToolbar}):null,L={width:void 0};return a instanceof C.Question&&(L.width=a.titleWidth),w.a.createElement("div",{className:a.cssHeader,onClick:function(F){return a.clickTitleFunction&&a.clickTitleFunction(F.nativeEvent)},style:L},c,f,g)},l}(w.a.Component),Pn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),nn=function(p){Pn(l,p);function l(a){var c=p.call(this,a)||this;return c.isNeedFocus=!1,c.rootRef=h.createRef(),c}return l.renderQuestionBody=function(a,c){var f=c.customWidget;return f?h.createElement(Sr,{creator:a,question:c}):a.createQuestionElement(c)},l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var a=this.rootRef.current;a&&a.removeAttribute("data-rendered")},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.doAfterRender()},l.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var a=this.rootRef.current;a&&a.getAttribute("data-rendered")!=="r"&&(a.setAttribute("data-rendered","r"),a.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(a))}},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.question&&!!this.creator},l.prototype.renderQuestionContent=function(){var a=this.question,c={display:this.question.renderedIsExpanded?"":"none"},f=a.cssClasses,g=this.renderQuestion(),L=this.question.showErrorOnTop?this.renderErrors(f,"top"):null,F=this.question.showErrorOnBottom?this.renderErrors(f,"bottom"):null,H=a&&a.hasComment?this.renderComment(f):null,ye=a.hasDescriptionUnderInput?this.renderDescription():null;return h.createElement("div",{className:a.cssContent||void 0,style:c,role:"presentation"},L,g,H,F,ye)},l.prototype.renderElement=function(){var a=this.question,c=a.cssClasses,f=this.renderHeader(a),g=a.hasTitleOnLeftTop?f:null,L=a.hasTitleOnBottom?f:null,F=this.question.showErrorsAboveQuestion?this.renderErrors(c,""):null,H=this.question.showErrorsBelowQuestion?this.renderErrors(c,""):null,ye=a.getRootStyle(),ae=this.wrapQuestionContent(this.renderQuestionContent());return h.createElement(h.Fragment,null,h.createElement("div",{ref:this.rootRef,id:a.id,className:a.getRootCss(),style:ye,role:a.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":a.ariaLabelledBy,"aria-describedby":a.ariaDescribedBy,"aria-expanded":a.ariaExpanded},F,g,ae,L,H))},l.prototype.wrapElement=function(a){var c=this.question.survey,f=null;return c&&(f=k.wrapElement(c,a,this.question)),f??a},l.prototype.wrapQuestionContent=function(a){var c=this.question.survey,f=null;return c&&(f=k.wrapQuestionContent(c,a,this.question)),f??a},l.prototype.renderQuestion=function(){return l.renderQuestionBody(this.creator,this.question)},l.prototype.renderDescription=function(){return $.renderQuestionDescription(this.question)},l.prototype.renderComment=function(a){var c=$.renderLocString(this.question.locCommentText);return h.createElement("div",{className:this.question.getCommentAreaCss()},h.createElement("div",null,c),h.createElement(nt,{question:this.question,cssClasses:a,otherCss:a.other,isDisplayMode:this.question.isInputReadOnly}))},l.prototype.renderHeader=function(a){return h.createElement(vi,{element:a})},l.prototype.renderErrors=function(a,c){return h.createElement(rn,{element:this.question,cssClasses:a,creator:this.creator,location:c,id:this.question.id+"_errors"})},l}($);A.Instance.registerElement("question",function(p){return h.createElement(nn,p)});var rn=function(p){Pn(l,p);function l(a){var c=p.call(this,a)||this;return c.state=c.getState(),c}return Object.defineProperty(l.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),l.prototype.getState=function(a){return a===void 0&&(a=null),a?{error:a.error+1}:{error:0}},l.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},l.prototype.componentWillUnmount=function(){},l.prototype.renderElement=function(){for(var a=[],c=0;c<this.element.errors.length;c++){var f="error"+c;a.push(this.creator.renderError(f,this.element.errors[c],this.cssClasses,this.element))}return h.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},a)},l}(ie),bi=function(p){Pn(l,p);function l(a){return p.call(this,a)||this}return l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(l.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.doAfterRender()},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.doAfterRender()},l.prototype.doAfterRender=function(){},l.prototype.canRender=function(){return!!this.question},l.prototype.renderContent=function(){var a=this.renderQuestion();return h.createElement(h.Fragment,null,a)},l.prototype.getShowErrors=function(){return this.question.isVisible},l.prototype.renderQuestion=function(){return nn.renderQuestionBody(this.creator,this.question)},l}(ie),Ci=function(p){Pn(l,p);function l(a){var c=p.call(this,a)||this;return c.cellRef=h.createRef(),c}return l.prototype.componentWillUnmount=function(){if(p.prototype.componentWillUnmount.call(this),this.question){var a=this.cellRef.current;a&&a.removeAttribute("data-rendered")}},l.prototype.renderCellContent=function(){return h.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},l.prototype.renderElement=function(){var a=this.getCellStyle(),c=this.props.cell,f=function(){c.focusIn()};return h.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:c.colSpans,title:c.getTitle(),style:a,onFocus:f},this.wrapCell(this.props.cell,this.renderCellContent()))},l.prototype.getCellStyle=function(){return null},l.prototype.getHeaderText=function(){return""},l.prototype.wrapCell=function(a,c){if(!a)return c;var f=this.question.survey,g=null;return f&&(g=k.wrapMatrixCell(f,c,a,this.props.reason)),g??c},l}(bi),wi=function(p){Pn(l,p);function l(a){var c=p.call(this,a)||this;return c.state={changed:0},c.question&&c.registerCallback(c.question),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.update=function(){this.setState({changed:this.state.changed+1})},l.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},l.prototype.registerCallback=function(a){var c=this;a.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),function(){c.update()},"__reactSubscription")},l.prototype.unRegisterCallback=function(a){a.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},l.prototype.componentDidUpdate=function(a){a.question&&a.question!==this.question&&this.unRegisterCallback(a.cell),this.question&&this.registerCallback(this.question)},l.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},l.prototype.render=function(){return h.createElement(rn,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},l}(h.Component),Pi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),xi=function(p){Pi(l,p);function l(a){return p.call(this,a)||this}return l.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(l.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.renderTitle(),c=this.renderDescription(),f=this.renderRows(this.panelBase.cssClasses),g=h.createElement(rn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return h.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},a,c,g,f)},l.prototype.renderTitle=function(){return h.createElement(tt,{element:this.page})},l.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var a=$.renderLocString(this.page.locDescription);return h.createElement("div",{className:this.panelBase.cssClasses.page.description},a)},l}(lt),Fo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Or=function(p){Fo(l,p);function l(a){var c=p.call(this,a)||this;return c.state={changed:0},c.rootRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){var a=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){a.setState({changed:a.state.changed+1})}},l.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},l.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var a=$.renderLocString(this.survey.locDescription);return w.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},w.a.createElement(tt,{element:this.survey}),this.survey.renderedHasDescription?w.a.createElement("div",{className:this.css.description},a):null)},l.prototype.renderLogoImage=function(a){if(!a)return null;var c=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),f=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return A.Instance.createElement(c,{data:f})},l.prototype.render=function(){return this.survey.renderedHasHeader?w.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),w.a.createElement("div",{className:this.css.headerClose})):null},l}(w.a.Component);A.Instance.registerElement("survey-header",function(p){return w.a.createElement(Or,p)});var Vi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ko=function(p){Vi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){return w.a.createElement("div",{className:"sv-brand-info"},w.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},w.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),w.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",w.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),w.a.createElement("div",{className:"sv-brand-info__terms"},w.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},l}(w.a.Component),Qo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Gn=function(p){Qo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.notifier},l.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var a={visibility:this.notifier.active?"visible":"hidden"};return w.a.createElement("div",{className:this.notifier.css,style:a,role:"alert","aria-live":"polite"},w.a.createElement("span",null,this.notifier.message),w.a.createElement(Re,{model:this.notifier.actionBar}))},l}($);A.Instance.registerElement("sv-notifier",function(p){return w.a.createElement(Gn,p)});var Zn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Pt=function(p){Zn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this,c=this.props.survey.getContainerContent(this.props.container),f=this.props.needRenderWrapper!==!1;return c.length==0?null:f?w.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},c.map(function(g){return A.Instance.createElement(g.component,{survey:a.props.survey,model:g.data,container:a.props.container,key:g.id})})):w.a.createElement(w.a.Fragment,null,c.map(function(g){return A.Instance.createElement(g.component,{survey:a.props.survey,model:g.data,container:a.props.container,key:g.id})}))},l}(w.a.Component);A.Instance.registerElement("sv-components-container",function(p){return w.a.createElement(Pt,p)});var Ho=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Si=function(p){Ho(l,p);function l(a){var c=p.call(this,a)||this;return c.onIconsChanged=function(){c.containerRef.current&&(c.containerRef.current.innerHTML=C.SvgRegistry.iconsRenderedHtml())},c.containerRef=w.a.createRef(),c}return l.prototype.componentDidMount=function(){this.onIconsChanged(),C.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},l.prototype.componentWillUnmount=function(){C.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},l.prototype.render=function(){var a={display:"none"};return w.a.createElement("svg",{style:a,id:"sv-icon-holder-global-container",ref:this.containerRef})},l}(w.a.Component),zo=D("react-dom"),Oi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Er=function(p){Oi(l,p);function l(a){var c=p.call(this,a)||this;return c.isInitialized=!1,c.init=function(){c.isInitialized||(C.settings.showModal=function(f,g,L,F,H,ye,ae){ae===void 0&&(ae="popup");var Ve=Object(C.createDialogOptions)(f,g,L,F,void 0,void 0,H,ye,ae);return c.showDialog(Ve)},C.settings.showDialog=function(f,g){return c.showDialog(f,g)},c.isInitialized=!0)},c.clean=function(){c.isInitialized&&(C.settings.showModal=void 0,C.settings.showDialog=void 0,c.isInitialized=!1)},c.state={changed:0},c.descriptor={init:c.init,clean:c.clean},c}return l.addModalDescriptor=function(a){C.settings.showModal||a.init(),this.modalDescriptors.push(a)},l.removeModalDescriptor=function(a){a.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(a),1),!C.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},l.prototype.renderElement=function(){return this.model?Object(zo.createPortal)(w.a.createElement(bt,{model:this.model}),this.model.container):null},l.prototype.showDialog=function(a,c){var f=this;this.model=Object(C.createPopupModalViewModel)(a,c);var g=function(L,F){F.isVisible||(f.model.dispose(),f.model=void 0,f.setState({changed:f.state.changed+1}))};return this.model.onVisibilityChanged.add(g),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},l.prototype.componentDidMount=function(){l.addModalDescriptor(this.descriptor)},l.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),l.removeModalDescriptor(this.descriptor)},l.modalDescriptors=[],l}($),Ei=D("./build/survey-core/icons/iconsV1.js"),Uo=D("./build/survey-core/icons/iconsV2.js"),Wo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Lt=function(){return Lt=Object.assign||function(p){for(var l,a=1,c=arguments.length;a<c;a++){l=arguments[a];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(p[f]=l[f])}return p},Lt.apply(this,arguments)};Object(C.addIconsToThemeSet)("v1",Ei.icons),Object(C.addIconsToThemeSet)("v2",Uo.icons),C.SvgRegistry.registerIcons(Ei.icons);var Mt=function(p){Wo(l,p);function l(a){var c=p.call(this,a)||this;return c.previousJSON={},c.isSurveyUpdated=!1,c.createSurvey(a),c.updateSurvey(a,{}),c.rootRef=h.createRef(),c.rootNodeId=a.id||null,c.rootNodeClassName=a.className||"",c}return Object.defineProperty(l,"cssType",{get:function(){return C.surveyCss.currentType},set:function(a){C.StylesManager.applyTheme(a)},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.survey},l.prototype.onSurveyUpdated=function(){if(this.survey){var a=this.rootRef.current;a&&this.survey.afterRenderSurvey(a),this.survey.startTimerFromUI(),this.setSurveyEvents()}},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?(this.isModelJSONChanged(a)&&(this.destroySurvey(),this.createSurvey(a),this.updateSurvey(a,{}),this.isSurveyUpdated=!0),!0):!1},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateSurvey(this.props,a),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.onSurveyUpdated()},l.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.destroySurvey()},l.prototype.doRender=function(){var a;this.survey.state=="completed"?a=this.renderCompleted():this.survey.state=="completedbefore"?a=this.renderCompletedBefore():this.survey.state=="loading"?a=this.renderLoading():this.survey.state=="empty"?a=this.renderEmptySurvey():a=this.renderSurvey();var c=this.survey.backgroundImage?h.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,f=this.survey.headerView==="basic"?h.createElement(Or,{survey:this.survey}):null,g=function(ye){ye.preventDefault()},L=h.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(L=null);var F=this.survey.getRootCss(),H=this.rootNodeClassName?this.rootNodeClassName+" "+F:F;return h.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:H,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?h.createElement(Si,null):null,h.createElement(Er,null),h.createElement("div",{className:this.survey.wrapperFormCss},c,h.createElement("form",{onSubmit:g},L,h.createElement("div",{className:this.css.container},f,h.createElement(Pt,{survey:this.survey,container:"header",needRenderWrapper:!1}),a,h.createElement(Pt,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),h.createElement(Gn,{notifier:this.survey.notifier})))},l.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(l.prototype,"css",{get:function(){return this.survey.css},set:function(a){this.survey.css=a},enumerable:!1,configurable:!0}),l.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var a={__html:this.survey.processedCompletedHtml};return h.createElement(h.Fragment,null,h.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.completedCss}),h.createElement(Pt,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},l.prototype.renderCompletedBefore=function(){var a={__html:this.survey.processedCompletedBeforeHtml};return h.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.completedBeforeCss})},l.prototype.renderLoading=function(){var a={__html:this.survey.processedLoadingHtml};return h.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.loadingBodyCss})},l.prototype.renderSurvey=function(){var a=this.survey.activePage?this.renderPage(this.survey.activePage):null;this.survey.isShowStartingPage;var c=this.survey.activePage?this.survey.activePage.id:"",f=this.survey.bodyCss,g={};return this.survey.renderedWidth&&(g.maxWidth=this.survey.renderedWidth),h.createElement("div",{className:this.survey.bodyContainerCss},h.createElement(Pt,{survey:this.survey,container:"left"}),h.createElement("div",{className:"sv-components-column sv-components-column--expandable"},h.createElement(Pt,{survey:this.survey,container:"center"}),h.createElement("div",{id:c,className:f,style:g},h.createElement(Pt,{survey:this.survey,container:"contentTop"}),a,h.createElement(Pt,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?h.createElement(ko,null):null)),h.createElement(Pt,{survey:this.survey,container:"right"}))},l.prototype.renderPage=function(a){return h.createElement(xi,{survey:this.survey,page:a,css:this.css,creator:this})},l.prototype.renderEmptySurvey=function(){return h.createElement("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},l.prototype.createSurvey=function(a){a||(a={}),this.previousJSON={},a?a.model?this.survey=a.model:a.json&&(this.previousJSON=a.json,this.survey=new C.SurveyModel(a.json)):this.survey=new C.SurveyModel,a.css&&(this.survey.css=this.css)},l.prototype.isModelJSONChanged=function(a){return a.model?this.survey!==a.model:a.json?!C.Helpers.isTwoValueEquals(a.json,this.previousJSON):!1},l.prototype.updateSurvey=function(a,c){if(a){c=c||{};for(var f in a)if(!(f=="model"||f=="children"||f=="json")){if(f=="css"){this.survey.mergeValues(a.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss();continue}a[f]!==c[f]&&(f.indexOf("on")==0&&this.survey[f]&&this.survey[f].add?(c[f]&&this.survey[f].remove(c[f]),this.survey[f].add(a[f])):this.survey[f]=a[f])}}},l.prototype.setSurveyEvents=function(){var a=this;this.survey.renderCallback=function(){var c=a.state&&a.state.modelChanged?a.state.modelChanged:0;a.setState({modelChanged:c+1})},this.survey.onPartialSend.add(function(c){a.state&&a.setState(a.state)})},l.prototype.createQuestionElement=function(a){return Ce.Instance.createQuestion(a.isDefaultRendering()?a.getTemplate():a.getComponentName(),{question:a,isDisplayMode:a.isInputReadOnly,creator:this})},l.prototype.renderError=function(a,c,f,g){return A.Instance.createElement(this.survey.questionErrorComponent,{key:a,error:c,cssClasses:f,element:g})},l.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},l.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},l}($);A.Instance.registerElement("survey",function(p){return h.createElement(Mt,p)});function xn(p,l,a){return a===void 0&&(a={processEsc:!0,disableTabStop:!1}),l&&l.disableTabStop||a&&a.disableTabStop?h.cloneElement(p,{tabIndex:-1}):(a=Lt({},a),h.cloneElement(p,{tabIndex:0,onKeyUp:function(c){return c.preventDefault(),c.stopPropagation(),Object(C.doKey2ClickUp)(c,a),!1},onKeyDown:function(c){return Object(C.doKey2ClickDown)(c,a)},onBlur:function(c){return Object(C.doKey2ClickBlur)(c)}}))}var Tr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ht=function(p){Tr(l,p);function l(a){var c=p.call(this,a)||this;return c.updateStateFunction=null,c.state={update:0},c}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(this.survey){var a=this;this.updateStateFunction=function(){a.setState({update:a.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},l.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},l}(h.Component),Rr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ir=function(p){Rr(l,p);function l(a){var c=p.call(this,a)||this;return c.circleLength=440,c}return l.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(l.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),l.prototype.render=function(){if(!this.timerModel.isRunning)return null;var a=h.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var c={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},f=this.timerModel.showProgress?h.createElement(ge,{className:this.timerModel.getProgressCss(),style:c,iconName:"icon-timercircle",size:"auto"}):null;a=h.createElement("div",{className:this.timerModel.rootCss},f,h.createElement("div",{className:this.timerModel.textContainerCss},h.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?h.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return a},l}(ie);A.Instance.registerElement("sv-timerpanel",function(p){return h.createElement(Ir,p)});var Ti=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ze=function(p){Ti(l,p);function l(a){var c=p.call(this,a)||this;return c.hasBeenExpanded=!1,c}return Object.defineProperty(l.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.renderHeader(),f=h.createElement(rn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),g={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},L=null;if(this.panel.renderedIsExpanded){var F=this.renderRows(this.panelBase.cssClasses),H=this.panelBase.cssClasses.panel.content;L=this.renderContent(g,F,H)}var ye=function(){a.panelBase&&a.panelBase.focusIn()};return h.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:ye,id:this.panelBase.id},this.panel.showErrorsAbovePanel?f:null,c,this.panel.showErrorsAbovePanel?null:f,L)},l.prototype.renderHeader=function(){return!this.panel.hasTitle&&!this.panel.hasDescription?null:h.createElement(vi,{element:this.panel})},l.prototype.wrapElement=function(a){var c=this.panel.survey,f=null;return c&&(f=k.wrapElement(c,a,this.panel)),f??a},l.prototype.renderContent=function(a,c,f){var g=this.renderBottom();return h.createElement("div",{style:a,className:f,id:this.panel.contentId},c,g)},l.prototype.renderTitle=function(){return this.panelBase.title?h.createElement(tt,{element:this.panelBase}):null},l.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var a=$.renderLocString(this.panelBase.locDescription);return h.createElement("div",{className:this.panel.cssClasses.panel.description},a)},l.prototype.renderBottom=function(){var a=this.panel.getFooterToolbar();return a.hasActions?h.createElement(Re,{model:a}):null},l.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},l}(lt);A.Instance.registerElement("panel",function(p){return h.createElement(ze,p)});var $o=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Kn=function(p){$o(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},l.prototype.getQuestion=function(a){return this.flowPanel.getQuestionByName(a)},l.prototype.renderQuestion=function(a){return"<question>"+a.name+"</question>"},l.prototype.renderRows=function(){var a=this.renderHtml();return a?[a]:[]},l.prototype.getNodeIndex=function(){return this.renderedIndex++},l.prototype.renderHtml=function(){if(!this.flowPanel)return null;var a="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var c={__html:a};return h.createElement("div",{dangerouslySetInnerHTML:c})}var f=new DOMParser().parseFromString(a,"text/xml");return this.renderedIndex=0,this.renderParentNode(f)},l.prototype.renderNodes=function(a){for(var c=[],f=0;f<a.length;f++){var g=this.renderNode(a[f]);g&&c.push(g)}return c},l.prototype.getStyle=function(a){var c={};return a.toLowerCase()==="b"&&(c.fontWeight="bold"),a.toLowerCase()==="i"&&(c.fontStyle="italic"),a.toLowerCase()==="u"&&(c.textDecoration="underline"),c},l.prototype.renderParentNode=function(a){var c=a.nodeName.toLowerCase(),f=this.renderNodes(this.getChildDomNodes(a));return c==="div"?h.createElement("div",{key:this.getNodeIndex()},f):h.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(c)},f)},l.prototype.renderNode=function(a){if(!this.hasTextChildNodesOnly(a))return this.renderParentNode(a);var c=a.nodeName.toLowerCase();if(c==="question"){var f=this.flowPanel.getQuestionByName(a.textContent);if(!f)return null;var g=h.createElement(nn,{key:f.name,element:f,creator:this.creator,css:this.css});return h.createElement("span",{key:this.getNodeIndex()},g)}return c==="div"?h.createElement("div",{key:this.getNodeIndex()},a.textContent):h.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(c)},a.textContent)},l.prototype.getChildDomNodes=function(a){for(var c=[],f=0;f<a.childNodes.length;f++)c.push(a.childNodes[f]);return c},l.prototype.hasTextChildNodesOnly=function(a){for(var c=a.childNodes,f=0;f<c.length;f++)if(c[f].nodeName.toLowerCase()!=="#text")return!1;return!0},l.prototype.renderContent=function(a,c){return h.createElement("f-panel",{style:a},c)},l}(ze);A.Instance.registerElement("flowpanel",function(p){return h.createElement(Kn,p)});var Ri=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ii=function(p){Ri(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses;return h.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(f){return a.setControl(f)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},h.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(c):this.getBody(c),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},l.prototype.getHeader=function(){var a=this;if(this.question.hasHeadItems)return this.question.headItems.map(function(c,f){return a.renderItem(c,!1,a.question.cssClasses)})},l.prototype.getFooter=function(){var a=this;if(this.question.hasFootItems)return this.question.footItems.map(function(c,f){return a.renderItem(c,!1,a.question.cssClasses)})},l.prototype.getColumnedBody=function(a){return h.createElement("div",{className:a.rootMultiColumn},this.getColumns(a))},l.prototype.getColumns=function(a){var c=this;return this.question.columns.map(function(f,g){var L=f.map(function(F,H){return c.renderItem(F,g===0&&H===0,a,""+g+H)});return h.createElement("div",{key:"column"+g+c.question.getItemsColumnKey(f),className:c.question.getColumnClass(),role:"presentation"},L)})},l.prototype.getBody=function(a){return this.question.blockedRow?h.createElement("div",{className:a.rootRow},this.getItems(a,this.question.dataChoices)):h.createElement(h.Fragment,null,this.getItems(a,this.question.bodyItems))},l.prototype.getItems=function(a,c){for(var f=[],g=0;g<c.length;g++){var L=c[g];""+L.value;var F=this.renderItem(L,g==0,a,""+g);F&&f.push(F)}return f},Object.defineProperty(l.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderOther=function(){var a=this.question.cssClasses;return h.createElement("div",{className:this.question.getCommentAreaCss(!0)},h.createElement(ct,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode}))},l.prototype.renderItem=function(a,c,f,g){var L=A.Instance.createElement(this.question.itemComponent,{key:a.value,question:this.question,cssClasses:f,isDisplayMode:this.isDisplayMode,item:a,textStyle:this.textStyle,index:g,isFirst:c}),F=this.question.survey,H=null;return F&&L&&(H=k.wrapItemValue(F,L,this.question,a)),H??L},l}(ce),Dr=function(p){Ri(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnChange=function(f){c.question.clickItemHandler(c.item,f.target.checked)},c.rootRef=h.createRef(),c}return l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),a.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),a.item&&a.item.setRootElement(void 0))},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render:!1},l.prototype.canRender=function(){return!!this.item&&!!this.question},l.prototype.renderElement=function(){var a=this.question.isItemSelected(this.item);return this.renderCheckbox(a,null)},Object.defineProperty(l.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderCheckbox=function(a,c){var f=this.question.getItemId(this.item),g=this.question.getItemClass(this.item),L=this.question.getLabelClass(this.item),F=this.hideCaption?null:h.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return h.createElement("div",{className:g,role:"presentation",ref:this.rootRef},h.createElement("label",{className:L},h.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:f,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:a,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?h.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?h.createElement("svg",{className:this.cssClasses.itemDecorator},h.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,F),c)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},l}(ie);A.Instance.registerElement("survey-checkbox-item",function(p){return h.createElement(Dr,p)}),Ce.Instance.registerQuestion("checkbox",function(p){return h.createElement(Ii,p)});var Yn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ar=function(p){Yn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this;if(this.question.selectToRankEnabled){var c=!0;return h.createElement("div",{className:this.question.rootClass,ref:function(f){return a.setControl(f)}},h.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,c),this.question.renderedUnRankingChoices.length===0?h.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),h.createElement("div",{className:this.question.cssClasses.containersDivider}),h.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),this.question.renderedRankingChoices.length===0?h.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}else return h.createElement("div",{className:this.question.rootClass,ref:function(f){return a.setControl(f)}},this.getItems())},l.prototype.getItems=function(a,c){var f=this;a===void 0&&(a=this.question.renderedRankingChoices);for(var g=[],L=function(ye){var ae=a[ye];g.push(F.renderItem(ae,ye,function(Ve){f.question.handleKeydown.call(f.question,Ve,ae)},function(Ve){Ve.persist(),f.question.handlePointerDown.call(f.question,Ve,ae,Ve.currentTarget)},function(Ve){Ve.persist(),f.question.handlePointerUp.call(f.question,Ve,ae,Ve.currentTarget)},F.question.cssClasses,F.question.getItemClass(ae),F.question,c))},F=this,H=0;H<a.length;H++)L(H);return g},l.prototype.renderItem=function(a,c,f,g,L,F,H,ye,ae){""+a.renderedId;var Ve=this.renderLocString(a.locText),yt=c,Ze=this.question.getNumberByIndex(yt),cn=this.question.getItemTabIndex(a),qt=h.createElement(Di,{key:a.value,text:Ve,index:yt,indexText:Ze,itemTabIndex:cn,handleKeydown:f,handlePointerDown:g,handlePointerUp:L,cssClasses:F,itemClass:H,question:ye,unrankedItem:ae,item:a}),yr=this.question.survey,Zt=null;return yr&&(Zt=k.wrapItemValue(yr,qt,this.question,a)),Zt??qt},l}(ce),Di=function(p){Yn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.renderEmptyIcon=function(){return h.createElement("svg",null,h.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},l.prototype.renderElement=function(){var a=A.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return h.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},h.createElement("div",{tabIndex:-1,style:{outline:"none"}},h.createElement("div",{className:this.cssClasses.itemGhostNode}),h.createElement("div",{className:this.cssClasses.itemContent},h.createElement("div",{className:this.cssClasses.itemIconContainer},h.createElement("svg",{className:this.question.getIconHoverCss()},h.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),h.createElement("svg",{className:this.question.getIconFocusCss()},h.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),h.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),a)))},l}(ie),Lr=function(p){Yn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return h.createElement("div",{className:this.cssClasses.controlLabel},$.renderLocString(this.item.locText))},l}(ie);A.Instance.registerElement("sv-ranking-item",function(p){return h.createElement(Lr,p)}),Ce.Instance.registerQuestion("ranking",function(p){return h.createElement(Ar,p)});var Mr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ue=function(p){Mr(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},l}($),jt=function(p){Mr(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this.renderLocString(this.item.locText);return w.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},w.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),w.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},a))},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this)},l}(Ue);A.Instance.registerElement("sv-rating-item",function(p){return w.a.createElement(jt,p)});var Jo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),jr=function(p){Jo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this;return w.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(c){return a.question.onItemMouseIn(a.item)},onMouseOut:function(c){return a.question.onItemMouseOut(a.item)}},w.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),w.a.createElement(ge,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),w.a.createElement(ge,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},l}(Ue);A.Instance.registerElement("sv-rating-item-star",function(p){return w.a.createElement(jr,p)});var Go=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ai=function(p){Go(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this;return w.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(c){return a.question.onItemMouseIn(a.item)},onMouseOut:function(c){return a.question.onItemMouseOut(a.item)}},w.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),w.a.createElement(ge,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},l}(Ue);A.Instance.registerElement("sv-rating-item-smiley",function(p){return w.a.createElement(Ai,p)});var De=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),fe=function(p){De(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){if(!this.item)return null;var a=this.props.item,c=this.renderDescription(a);return w.a.createElement("div",{className:"sd-rating-dropdown-item"},w.a.createElement("span",{className:"sd-rating-dropdown-item_text"},a.title),c)},l.prototype.renderDescription=function(a){return a.description?w.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(a.description,void 0,"locString")):null},l}($);A.Instance.registerElement("sv-rating-dropdown-item",function(p){return w.a.createElement(fe,p)});var zt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Vn=function(p){zt(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateDomElement()},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateDomElement()},l.prototype.updateDomElement=function(){if(this.inputElement){var a=this.inputElement,c=this.model.inputStringRendered;C.Helpers.isTwoValueEquals(c,a.value,!1,!0,!1)||(a.value=this.model.inputStringRendered)}},l.prototype.onChange=function(a){var c=C.settings.environment.root;a.target===c.activeElement&&(this.model.inputStringRendered=a.target.value)},l.prototype.keyhandler=function(a){this.model.inputKeyHandler(a)},l.prototype.onBlur=function(a){this.question.onBlur(a)},l.prototype.onFocus=function(a){this.question.onFocus(a)},l.prototype.getStateElement=function(){return this.model},l.prototype.render=function(){var a=this;return h.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?h.createElement("div",{className:this.question.cssClasses.hintPrefix},h.createElement("span",null,this.model.hintStringPrefix)):null,h.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?h.createElement("div",{className:this.question.cssClasses.hintSuffix},h.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),h.createElement("span",null,this.model.hintStringSuffix)):null,h.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(c){return a.inputElement=c},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:this.model.filterReadOnly?!0:void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(c){a.keyhandler(c)},onChange:function(c){a.onChange(c)},onBlur:function(c){a.onBlur(c)},onFocus:function(c){a.onFocus(c)}})))},l}($);Ce.Instance.registerQuestion("sv-tagbox-filter",function(p){return h.createElement(Vn,p)});var pt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Li=function(p){pt(l,p);function l(a){var c=p.call(this,a)||this;return c.state={changed:0},c.setupModel(),c}return l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.setupModel()},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.setupModel()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},l.prototype.setupModel=function(){if(this.item.locText){var a=this;this.item.locText.onChanged=function(){a.setState({changed:a.state.changed+1})}}},l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.item},l.prototype.renderElement=function(){return h.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},l}(ie),Nr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Xn=function(p){Nr(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.click=function(c){var f;(f=a.question.dropdownListModel)===null||f===void 0||f.onClick(c)},a.chevronPointerDown=function(c){var f;(f=a.question.dropdownListModel)===null||f===void 0||f.chevronPointerDown(c)},a.clear=function(c){var f;(f=a.question.dropdownListModel)===null||f===void 0||f.onClear(c)},a.keyhandler=function(c){var f;(f=a.question.dropdownListModel)===null||f===void 0||f.keyHandler(c)},a.blur=function(c){a.updateInputDomElement(),a.question.onBlur(c)},a.focus=function(c){a.question.onFocus(c)},a}return l.prototype.getStateElement=function(){return this.question.dropdownListModel},l.prototype.setValueCore=function(a){this.questionBase.renderedValue=a},l.prototype.getValueCore=function(){return this.questionBase.renderedValue},l.prototype.renderReadOnlyElement=function(){return h.createElement("div",null,this.question.readOnlyText)},l.prototype.renderSelect=function(a){var c=this,f,g,L=null;if(this.question.isReadOnly){var F=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";L=h.createElement("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass(),ref:function(H){return c.setControl(H)}},F,this.renderReadOnlyElement())}else L=h.createElement(h.Fragment,null,this.renderInput(this.question.dropdownListModel),h.createElement(Qe,{model:(g=(f=this.question)===null||f===void 0?void 0:f.dropdownListModel)===null||g===void 0?void 0:g.popupModel}));return h.createElement("div",{className:a.selectWrapper,onClick:this.click},L,this.createChevronButton())},l.prototype.renderValueElement=function(a){return this.question.showInputFieldComponent?A.Instance.createElement(this.question.inputFieldComponentName,{item:a.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},l.prototype.renderInput=function(a){var c=this,f=this.renderValueElement(a),g=C.settings.environment.root,L=function(F){F.target===g.activeElement&&(a.inputStringRendered=F.target.value)};return h.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:a.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,onFocus:this.focus,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,ref:function(F){return c.setControl(F)}},a.showHintPrefix?h.createElement("div",{className:this.question.cssClasses.hintPrefix},h.createElement("span",null,a.hintStringPrefix)):null,h.createElement("div",{className:this.question.cssClasses.controlValue},a.showHintString?h.createElement("div",{className:this.question.cssClasses.hintSuffix},h.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},a.inputStringRendered),h.createElement("span",null,a.hintStringSuffix)):null,f,h.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(F){return c.inputElement=F},className:this.question.cssClasses.filterStringInput,role:a.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,placeholder:a.placeholderRendered,readOnly:a.filterReadOnly?!0:void 0,tabIndex:a.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:a.inputMode,onChange:function(F){L(F)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},l.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var a={display:this.question.showClearButton?"":"none"};return h.createElement("div",{className:this.question.cssClasses.cleanButton,style:a,onClick:this.clear,"aria-hidden":"true"},h.createElement(ge,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},l.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?h.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},h.createElement(ge,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},l.prototype.renderOther=function(a){return h.createElement("div",{className:this.question.getCommentAreaCss(!0)},h.createElement(ct,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode,isOther:!0}))},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateInputDomElement()},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateInputDomElement()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},l.prototype.updateInputDomElement=function(){if(this.inputElement){var a=this.inputElement,c=this.question.dropdownListModel.inputStringRendered;C.Helpers.isTwoValueEquals(c,a.value,!1,!0,!1)||(a.value=this.question.dropdownListModel.inputStringRendered)}},l}(We),_=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),qr=function(p){_(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.isOtherSelected?this.renderOther(a):null,f=this.renderSelect(a);return h.createElement("div",{className:this.question.renderCssRoot},f,c)},l}(Xn);Ce.Instance.registerQuestion("dropdown",function(p){return h.createElement(qr,p)});var Sn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),er=function(p){Sn(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.item&&!!this.question},l.prototype.renderElement=function(){var a=this,c=this.renderLocString(this.item.locText),f=function(g){a.question.dropdownListModel.deselectItem(a.item.value),g.stopPropagation()};return h.createElement("div",{className:"sv-tagbox__item"},h.createElement("div",{className:"sv-tagbox__item-text"},c),h.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:f},h.createElement(ge,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},l}(ie),xt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ut=function(p){xt(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderItem=function(a,c){var f=h.createElement(er,{key:a,question:this.question,item:c});return f},l.prototype.renderInput=function(a){var c=this,f=a,g=this.question.selectedChoices.map(function(L,F){return c.renderItem("item"+F,L)});return h.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:a.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,ref:function(L){return c.setControl(L)}},h.createElement("div",{className:this.question.cssClasses.controlValue},g,h.createElement(Vn,{model:f,question:this.question})),this.createClearButton())},l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.isOtherSelected?this.renderOther(a):null,f=this.renderSelect(a);return h.createElement("div",{className:this.question.renderCssRoot},f,c)},l.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},l}(Xn);Ce.Instance.registerQuestion("tagbox",function(p){return h.createElement(Ut,p)});var Zo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ye=function(p){Zo(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderSelect=function(a){var c=this,f=function(F){c.question.onClick(F)},g=function(F){c.question.onKeyUp(F)},L=this.isDisplayMode?h.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):h.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(F){return c.setControl(F)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:f,onKeyUp:g,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?h.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(F,H){return h.createElement(Li,{key:"item"+H,item:F})}));return h.createElement("div",{className:a.selectWrapper},L,this.createChevronButton())},l}(qr);Ce.Instance.registerQuestion("sv-dropdown-select",function(p){return h.createElement(Ye,p)}),C.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var _r=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),on=function(p){_r(l,p);function l(a){var c=p.call(this,a)||this;return c.state={rowsChanged:0},c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(p.prototype.componentDidMount.call(this),this.question){var a=this;this.question.visibleRowsChangedCallback=function(){a.setState({rowsChanged:a.state.rowsChanged+1})}}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},l.prototype.renderElement=function(){for(var a=this,c=this.question.cssClasses,f=this.question.hasRows?h.createElement("td",null):null,g=[],L=0;L<this.question.visibleColumns.length;L++){var F=this.question.visibleColumns[L],H="column"+L,ye=this.renderLocString(F.locText),ae={};this.question.columnMinWidth&&(ae.minWidth=this.question.columnMinWidth,ae.width=this.question.columnMinWidth),g.push(h.createElement("th",{className:this.question.cssClasses.headerCell,style:ae,key:H},this.wrapCell({column:F},ye,"column-header")))}for(var Ve=[],yt=this.question.visibleRows,L=0;L<yt.length;L++){var Ze=yt[L],H="row-"+Ze.name+"-"+L;Ve.push(h.createElement(Mi,{key:H,question:this.question,cssClasses:c,row:Ze,isFirst:L==0}))}var cn=this.question.showHeader?h.createElement("thead",null,h.createElement("tr",null,f,g)):null;return h.createElement("div",{className:c.tableWrapper,ref:function(qt){return a.setControl(qt)}},h.createElement("fieldset",null,h.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),h.createElement("table",{className:this.question.getTableCss()},cn,h.createElement("tbody",null,Ve))))},l}(ce),Mi=function(p){_r(l,p);function l(a){return p.call(this,a)||this}return l.prototype.getStateElement=function(){return this.row?this.row.item:p.prototype.getStateElement.call(this)},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),l.prototype.wrapCell=function(a,c,f){if(!f)return c;var g=this.question.survey,L=null;return g&&(L=k.wrapMatrixCell(g,c,a,f)),L??c},l.prototype.canRender=function(){return!!this.row},l.prototype.renderElement=function(){var a=null;if(this.question.hasRows){var c=this.renderLocString(this.row.locText),f={};this.question.rowTitleWidth&&(f.minWidth=this.question.rowTitleWidth,f.width=this.question.rowTitleWidth),a=h.createElement("td",{style:f,className:this.row.rowTextClasses},this.wrapCell({row:this.row},c,"row-header"))}var g=this.generateTds();return h.createElement("tr",{className:this.row.rowClasses||void 0},a,g)},l.prototype.generateTds=function(){for(var a=this,c=[],f=this.row,g=this.question.cellComponent,L=function(){var ye=null,ae=F.question.visibleColumns[H],Ve="value"+H,yt=F.question.getItemClass(f,ae);if(F.question.hasCellText){var Ze=function(qt){return function(){return a.cellClick(f,qt)}};ye=h.createElement("td",{key:Ve,className:yt,onClick:Ze?Ze(ae):function(){}},F.renderLocString(F.question.getCellDisplayLocText(f.name,ae)))}else{var cn=A.Instance.createElement(g,{question:F.question,row:F.row,column:ae,columnIndex:H,cssClasses:F.cssClasses,cellChanged:function(){a.cellClick(a.row,ae)}});ye=h.createElement("td",{key:Ve,"data-responsive-title":ae.locText.renderedHtml,className:F.question.cssClasses.cell},cn)}c.push(ye)},F=this,H=0;H<this.question.visibleColumns.length;H++)L();return c},l.prototype.cellClick=function(a,c){a.value=c.value,this.setState({value:this.row.value})},l}(ie),Ge=function(p){_r(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c.handleOnChange=c.handleOnChange.bind(c),c}return l.prototype.handleOnChange=function(a){this.props.cellChanged&&this.props.cellChanged()},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.question&&!!this.row},l.prototype.renderElement=function(){var a=this.row.value==this.column.value,c=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,f=this.question.getItemClass(this.row,this.column),g=this.question.isMobile?h.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return h.createElement("label",{onMouseDown:this.handleOnMouseDown,className:f},this.renderInput(c,a),h.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?h.createElement("svg",{className:this.cssClasses.itemDecorator},h.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),g)},l.prototype.renderInput=function(a,c){return h.createElement("input",{id:a,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:c,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},l}(ie);A.Instance.registerElement("survey-matrix-cell",function(p){return h.createElement(Ge,p)}),Ce.Instance.registerQuestion("matrix",function(p){return h.createElement(on,p)});var On=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ji=function(p){On(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},l.prototype.componentDidUpdate=function(a,c){this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){var a=this;this.question.locHtml.onChanged=function(){a.setState({changed:a.state&&a.state.changed?a.state.changed+1:1})}},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.question.html},l.prototype.renderElement=function(){var a={__html:this.question.locHtml.renderedHtml};return h.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:a})},l}(ce);Ce.Instance.registerQuestion("html",function(p){return h.createElement(ji,p)});var Ni=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Pe=function(p){Ni(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){return h.createElement("div",{className:"sd-loading-indicator"},h.createElement(ge,{iconName:"icon-loading",size:"auto"}))},l}(h.Component),Ko=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Br=function(p){Ko(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=this;return xn(w.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(c){return a.question.chooseFile(c.nativeEvent)}},this.question.cssClasses.chooseFileIconId?w.a.createElement(ge,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,w.a.createElement("span",null,this.question.chooseButtonText)))},l}(ie);A.Instance.registerElement("sv-file-choose-btn",function(p){return w.a.createElement(Br,p)});var Fr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),tr=function(p){Fr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.allowShowPreview?this.renderPreview():null,f=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,g=this.question.isPlayingVideo?this.renderVideo():null,L=this.question.showFileDecorator?this.renderFileDecorator():null,F=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,H=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,ye=this.question.fileNavigatorVisible?h.createElement(Re,{model:this.question.fileNavigator}):null,ae;return this.question.isReadOnlyAttr?ae=h.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(Ve){return a.setControl(Ve)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?ae=h.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(Ve){return a.setControl(Ve)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?ae=h.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(Ve){return a.setControl(Ve)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):ae=null,h.createElement("div",{className:this.question.fileRootCss,ref:function(Ve){return a.setContent(Ve)}},ae,h.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},L,f,g,F,c,H,ye))},l.prototype.renderFileDecorator=function(){var a=this.question.showChooseButton?this.renderChooseButton():null,c=this.question.actionsContainerVisible?h.createElement(Re,{model:this.question.actionsContainer}):null,f=this.question.isEmpty()?h.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return h.createElement("div",{className:this.question.getFileDecoratorCss()},h.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),h.createElement("div",{className:this.question.cssClasses.wrapper},a,c,f))},l.prototype.renderChooseButton=function(){return h.createElement(Br,{data:{question:this.question}})},l.prototype.renderClearButton=function(a){return this.question.isUploading?null:h.createElement("button",{type:"button",onClick:this.question.doClean,className:a},h.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?h.createElement(ge,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},l.prototype.renderPreview=function(){return A.Instance.createElement("sv-file-preview",{question:this.question})},l.prototype.renderLoadingIndicator=function(){return h.createElement("div",{className:this.question.cssClasses.loadingIndicator},h.createElement(Pe,null))},l.prototype.renderVideo=function(){return h.createElement("div",{className:this.question.cssClasses.videoContainer},h.createElement($e,{item:this.question.changeCameraAction}),h.createElement($e,{item:this.question.closeCameraAction}),h.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),h.createElement($e,{item:this.question.takePictureAction}))},l}(ce);Ce.Instance.registerQuestion("file",function(p){return h.createElement(tr,p)});var qi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),En=function(p){qi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.renderFileSign=function(a,c){var f=this;return!a||!c.name?null:w.a.createElement("div",{className:a},w.a.createElement("a",{href:c.content,onClick:function(g){f.question.doDownloadFile(g,c)},title:c.name,download:c.name,style:{width:this.question.imageWidth}},c.name))},l.prototype.renderElement=function(){var a=this,c=this.item;return w.a.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(f){return a.question.doDownloadFileFromContainer(f)}},this.renderFileSign(this.question.cssClasses.fileSign,c),w.a.createElement("div",{className:this.question.getImageWrapperCss(c)},this.question.canPreviewImage(c)?w.a.createElement("img",{src:c.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?w.a.createElement(ge,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,c.name&&!this.question.isReadOnly?w.a.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(f){return a.question.doRemoveFile(c,f)}},w.a.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?w.a.createElement(ge,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,c))},l.prototype.canRender=function(){return this.question.showPreviewContainer},l}($),xe=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Yo=function(p){xe(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.page.items.map(function(f,g){return w.a.createElement(En,{item:f,question:a.question,key:g})});return w.a.createElement("div",{className:this.page.css,id:this.page.id},c)},l}($),Xo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Tn=function(p){Xo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.renderFileSign=function(a,c){var f=this;return!a||!c.name?null:w.a.createElement("div",{className:a},w.a.createElement("a",{href:c.content,onClick:function(g){f.question.doDownloadFile(g,c)},title:c.name,download:c.name,style:{width:this.question.imageWidth}},c.name))},l.prototype.renderElement=function(){var a=this,c=this.question.supportFileNavigator?this.question.renderedPages.map(function(f,g){return w.a.createElement(Yo,{page:f,question:a.question,key:f.id})}):this.question.previewValue.map(function(f,g){return w.a.createElement(En,{item:f,question:a.question,key:g})});return w.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},c)},l.prototype.canRender=function(){return this.question.showPreviewContainer},l}($);A.Instance.registerElement("sv-file-preview",function(p){return w.a.createElement(Tn,p)});var kr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),sn=function(p){kr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){for(var a=this.question.cssClasses,c=this.question.getRows(),f=[],g=0;g<c.length;g++)c[g].isVisible&&f.push(this.renderRow(g,c[g].cells,a));return h.createElement("table",{className:this.question.getQuestionRootCss()},h.createElement("tbody",null,f))},l.prototype.renderCell=function(a,c,f){var g,L=function(){a.item.focusIn()};return a.isErrorsCell?g=h.createElement(wi,{question:a.item.editor,creator:this.creator}):g=h.createElement(Qr,{question:this.question,item:a.item,creator:this.creator,cssClasses:c}),h.createElement("td",{key:"item"+f,className:a.className,onFocus:L},g)},l.prototype.renderRow=function(a,c,f){for(var g="item"+a,L=[],F=0;F<c.length;F++){var H=c[F];L.push(this.renderCell(H,f,F))}return h.createElement("tr",{key:g,className:f.row},L)},l}(ce),Qr=function(p){kr(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.item,c=this.cssClasses,f={};return this.question.itemTitleWidth&&(f.minWidth=this.question.itemTitleWidth,f.width=this.question.itemTitleWidth),h.createElement("label",{className:this.question.getItemLabelCss(a)},h.createElement("span",{className:c.itemTitle,style:f},h.createElement(he,{element:a.editor,cssClasses:a.editor.cssClasses})),h.createElement(_i,{cssClasses:c,itemCss:this.question.getItemCss(),question:a.editor,creator:this.creator}))},l}(ie),_i=function(p){kr(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.renderElement=function(){return h.createElement("div",{className:this.itemCss},this.renderContent())},l}(bi);Ce.Instance.registerQuestion("multipletext",function(p){return h.createElement(sn,p)});var nr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Rn=function(p){nr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=null;return this.question.showClearButtonInContent&&(f=h.createElement("div",null,h.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return a.question.clearValue(!0)},value:this.question.clearButtonCaption}))),h.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(g){return a.setControl(g)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(c):this.getBody(c),this.getFooter(),this.question.isOtherSelected?this.renderOther(c):null,f)},l.prototype.getFooter=function(){var a=this;if(this.question.hasFootItems)return this.question.footItems.map(function(c,f){return a.renderItem(c,!1,a.question.cssClasses)})},l.prototype.getColumnedBody=function(a){return h.createElement("div",{className:a.rootMultiColumn},this.getColumns(a))},l.prototype.getColumns=function(a){var c=this,f=this.getStateValue();return this.question.columns.map(function(g,L){var F=g.map(function(H,ye){return c.renderItem(H,f,a,""+L+ye)});return h.createElement("div",{key:"column"+L+c.question.getItemsColumnKey(g),className:c.question.getColumnClass(),role:"presentation"},F)})},l.prototype.getBody=function(a){return this.question.blockedRow?h.createElement("div",{className:a.rootRow},this.getItems(a,this.question.dataChoices)):h.createElement(h.Fragment,null,this.getItems(a,this.question.bodyItems))},l.prototype.getItems=function(a,c){for(var f=[],g=this.getStateValue(),L=0;L<c.length;L++){var F=c[L],H=this.renderItem(F,g,a,""+L);f.push(H)}return f},Object.defineProperty(l.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderOther=function(a){return h.createElement("div",{className:this.question.getCommentAreaCss(!0)},h.createElement(ct,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode}))},l.prototype.renderItem=function(a,c,f,g){var L=A.Instance.createElement(this.question.itemComponent,{key:a.value,question:this.question,cssClasses:f,isDisplayMode:this.isDisplayMode,item:a,textStyle:this.textStyle,index:g,isChecked:c===a.value}),F=this.question.survey,H=null;return F&&(H=k.wrapItemValue(F,L,this.question,a)),H??L},l.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},l}(ce),In=function(p){nr(l,p);function l(a){var c=p.call(this,a)||this;return c.rootRef=h.createRef(),c.handleOnChange=c.handleOnChange.bind(c),c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c}return l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),l.prototype.shouldComponentUpdate=function(a,c){return!p.prototype.shouldComponentUpdate.call(this,a,c)||!this.question?!1:!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render},l.prototype.handleOnChange=function(a){this.question.clickItemHandler(this.item)},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},l.prototype.canRender=function(){return!!this.question&&!!this.item},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),a.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),a.item&&a.item.setRootElement(void 0))},l.prototype.renderElement=function(){var a=this.question.getItemClass(this.item),c=this.question.getLabelClass(this.item),f=this.question.getControlLabelClass(this.item),g=this.hideCaption?null:h.createElement("span",{className:f},this.renderLocString(this.item.locText,this.textStyle));return h.createElement("div",{className:a,role:"presentation",ref:this.rootRef},h.createElement("label",{onMouseDown:this.handleOnMouseDown,className:c},h.createElement("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?h.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?h.createElement("svg",{className:this.cssClasses.itemDecorator},h.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,g))},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},l}(ie);A.Instance.registerElement("survey-radiogroup-item",function(p){return h.createElement(In,p)}),Ce.Instance.registerQuestion("radiogroup",function(p){return h.createElement(Rn,p)});var Nt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),rr=function(p){Nt(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderInput=function(){var a=this,c=this.question.getControlClass(),f=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return h.createElement("div",null,this.question.inputValue);var g=this.question.getMaxLength()?h.createElement(Ot,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return h.createElement(h.Fragment,null,h.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:c,type:this.question.inputType,ref:function(L){return a.setControl(L)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:f,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(L){a.question.onBlur(L)},onFocus:function(L){a.question.onFocus(L)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(L){return a.question.onCompositionUpdate(L.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),g)},l.prototype.renderElement=function(){return this.question.dataListId?h.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},l.prototype.setValueCore=function(a){this.question.inputValue=a},l.prototype.getValueCore=function(){return this.question.inputValue},l.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var a=this.question.dataList;if(a.length==0)return null;for(var c=[],f=0;f<a.length;f++)c.push(h.createElement("option",{key:"item"+f,value:a[f]}));return h.createElement("datalist",{id:this.question.dataListId},c)},l}(We);Ce.Instance.registerQuestion("text",function(p){return h.createElement(rr,p)});var Bi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),rt=function(p){Bi(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnChange=c.handleOnChange.bind(c),c.handleOnClick=c.handleOnClick.bind(c),c.handleOnLabelClick=c.handleOnLabelClick.bind(c),c.handleOnSwitchClick=c.handleOnSwitchClick.bind(c),c.handleOnKeyDown=c.handleOnKeyDown.bind(c),c.checkRef=h.createRef(),c}return l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.doCheck=function(a){this.question.booleanValue=a},l.prototype.handleOnChange=function(a){this.doCheck(a.target.checked)},l.prototype.handleOnClick=function(a){this.question.onLabelClick(a,!0)},l.prototype.handleOnSwitchClick=function(a){this.question.onSwitchClickModel(a.nativeEvent)},l.prototype.handleOnLabelClick=function(a,c){this.question.onLabelClick(a,c)},l.prototype.handleOnKeyDown=function(a){this.question.onKeyDownCore(a)},l.prototype.updateDomElement=function(){if(this.question){var a=this.checkRef.current;a&&(a.indeterminate=this.question.isIndeterminate),this.setControl(a),p.prototype.updateDomElement.call(this)}},l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=this.question.getItemCss();return h.createElement("div",{className:c.root,onKeyDown:this.handleOnKeyDown},h.createElement("label",{className:f,onClick:this.handleOnClick},h.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:c.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),h.createElement("div",{className:c.sliderGhost,onClick:function(g){return a.handleOnLabelClick(g,a.question.swapOrder)}},h.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),h.createElement("div",{className:c.switch,onClick:this.handleOnSwitchClick},h.createElement("span",{className:c.slider},this.question.isDeterminated&&c.sliderText?h.createElement("span",{className:c.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),h.createElement("div",{className:c.sliderGhost,onClick:function(g){return a.handleOnLabelClick(g,!a.question.swapOrder)}},h.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},l}(ce);Ce.Instance.registerQuestion("boolean",function(p){return h.createElement(rt,p)});var ir=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),or=function(p){ir(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.getCheckboxItemCss(),f=this.question.canRenderLabelDescription?$.renderQuestionDescription(this.question):null;return h.createElement("div",{className:a.rootCheckbox},h.createElement("div",{className:c},h.createElement("label",{className:a.checkboxLabel},h.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:a.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),h.createElement("span",{className:a.checkboxMaterialDecorator},this.question.svgIcon?h.createElement("svg",{className:a.checkboxItemDecorator},h.createElement("use",{xlinkHref:this.question.svgIcon})):null,h.createElement("span",{className:"check"})),this.question.isLabelRendered&&h.createElement("span",{className:a.checkboxControlLabel,id:this.question.labelRenderedAriaID},h.createElement(Je,{element:this.question,cssClasses:this.question.cssClasses}))),f))},l}(rt);Ce.Instance.registerQuestion("sv-boolean-checkbox",function(p){return h.createElement(or,p)}),C.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var _e=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Fi=function(p){_e(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnChange=function(f){c.question.booleanValue=f.nativeEvent.target.value=="true"},c}return l.prototype.renderRadioItem=function(a,c){var f=this.question.cssClasses;return h.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(f,a)},h.createElement("label",{className:f.radioLabel},h.createElement("input",{type:"radio",name:this.question.name,value:a,"aria-errormessage":this.question.ariaErrormessage,checked:a===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:f.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?h.createElement("span",{className:f.materialRadioDecorator},this.question.itemSvgIcon?h.createElement("svg",{className:f.itemRadioDecorator},h.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,h.createElement("span",{className:f.radioControlLabel},this.renderLocString(c))))},l.prototype.renderElement=function(){var a=this.question.cssClasses;return h.createElement("div",{className:a.rootRadio},h.createElement("fieldset",{role:"presentation",className:a.radioFieldset},this.question.swapOrder?h.createElement(h.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):h.createElement(h.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},l}(rt);Ce.Instance.registerQuestion("sv-boolean-radio",function(p){return h.createElement(Fi,p)}),C.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var gt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Hr=function(p){gt(l,p);function l(a){var c=p.call(this,a)||this;return c.state={value:c.question.value},c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return h.createElement("div",null)},l}(ce);Ce.Instance.registerQuestion("empty",function(p){return h.createElement(Hr,p)});var ki=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Wt=function(p){ki(l,p);function l(a){var c=p.call(this,a)||this;return c.root=w.a.createRef(),c.onPointerDownHandler=function(f){c.parentMatrix.onPointerDown(f.nativeEvent,c.model.row)},c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?(a.model!==this.model&&(a.element&&a.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0):!1},l.prototype.render=function(){var a=this,c=this.model;return c.visible?w.a.createElement("tr",{ref:this.root,className:c.className,"data-sv-drop-target-matrix-row":c.row&&c.row.id,onPointerDown:function(f){return a.onPointerDownHandler(f)}},this.props.children):null},l}($);A.Instance.registerElement("sv-matrix-row",function(p){return w.a.createElement(Wt,p)});var Dn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),sr=function(p){Dn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return w.a.createElement("div",null,this.renderIcon())},l.prototype.renderIcon=function(){return this.question.iconDragElement?w.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},w.a.createElement("use",{xlinkHref:this.question.iconDragElement})):w.a.createElement("span",{className:this.question.cssClasses.iconDrag})},l}(ie);A.Instance.registerElement("sv-matrix-drag-drop-icon",function(p){return w.a.createElement(sr,p)});var an=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),An=function(p){an(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.table},l.prototype.wrapCell=function(a,c,f){return this.props.wrapCell(a,c,f)},l.prototype.renderHeader=function(){var a=this.question.renderedTable;if(!a.showHeader)return null;for(var c=[],f=a.headerRow.cells,g=0;g<f.length;g++){var L=f[g],F="column"+g,H={};L.width&&(H.width=L.width),L.minWidth&&(H.minWidth=L.minWidth);var ye=this.renderCellContent(L,"column-header",{}),ae=L.hasTitle?h.createElement("th",{className:L.className,key:F,style:H}," ",ye," "):h.createElement("td",{className:L.className,key:F,style:H});c.push(ae)}return h.createElement("thead",null,h.createElement("tr",null,c))},l.prototype.renderFooter=function(){var a=this.question.renderedTable;if(!a.showFooter)return null;var c=this.renderRow("footer",a.footerRow,this.question.cssClasses,"row-footer");return h.createElement("tfoot",null,c)},l.prototype.renderRows=function(){for(var a=this.question.cssClasses,c=[],f=this.question.renderedTable.renderedRows,g=0;g<f.length;g++)c.push(this.renderRow(f[g].id,f[g],a));return h.createElement("tbody",null,c)},l.prototype.renderRow=function(a,c,f,g){for(var L=[],F=c.cells,H=0;H<F.length;H++)L.push(this.renderCell(F[H],f,g));var ye="row"+a;return h.createElement(h.Fragment,{key:ye},g=="row-footer"?h.createElement("tr",null,L):h.createElement(Wt,{model:c,parentMatrix:this.question},L))},l.prototype.renderCell=function(a,c,f){var g="cell"+a.id;if(a.hasQuestion)return h.createElement(Qi,{key:g,cssClasses:c,cell:a,creator:this.creator,reason:f});if(a.isErrorsCell&&a.isErrorsCell)return h.createElement(ar,{cell:a,key:g,keyValue:g,question:a.question,creator:this.creator});var L=f;L||(L=a.hasTitle?"row-header":"");var F=this.renderCellContent(a,L,c),H=null;return(a.width||a.minWidth)&&(H={},a.width&&(H.width=a.width),a.minWidth&&(H.minWidth=a.minWidth)),h.createElement("td",{className:a.className,key:g,style:H,colSpan:a.colSpans,title:a.getTitle()},F)},l.prototype.renderCellContent=function(a,c,f){var g=null,L=null;if((a.width||a.minWidth)&&(L={},a.width&&(L.width=a.width),a.minWidth&&(L.minWidth=a.minWidth)),a.hasTitle){c="row-header";var F=this.renderLocString(a.locTitle),H=a.column?h.createElement(lr,{column:a.column,question:this.question}):null;g=h.createElement(h.Fragment,null,F,H)}if(a.isDragHandlerCell&&(g=h.createElement(h.Fragment,null,h.createElement(sr,{item:{data:{row:a.row,question:this.question}}}))),a.isActionsCell&&(g=A.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:f,cell:a,model:a.item.getData()})),a.hasPanel&&(g=h.createElement(ze,{key:a.panel.id,element:a.panel,survey:this.question.survey,cssClasses:f,isDisplayMode:this.isDisplayMode,creator:this.creator})),!g)return null;var ye=h.createElement(h.Fragment,null,g);return this.wrapCell(a,ye,c)},l.prototype.renderElement=function(){var a=this.renderHeader(),c=this.renderFooter(),f=this.renderRows();return h.createElement("table",{className:this.question.getTableCss()},a,f,c)},l}($),Ln=function(p){an(l,p);function l(a){var c=p.call(this,a)||this;return c.question.renderedTable,c.state=c.getState(),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.getState=function(a){return a===void 0&&(a=null),{rowCounter:a?a.rowCounter+1:0}},l.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},l.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){a.updateStateOnCallback()}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},l.prototype.renderElement=function(){return this.renderTableDiv()},l.prototype.renderTableDiv=function(){var a=this,c=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return h.createElement("div",{style:c,className:this.question.cssClasses.tableWrapper,ref:function(f){return a.setControl(f)}},h.createElement(An,{question:this.question,creator:this.creator,wrapCell:function(f,g,L){return a.wrapCell(f,g,L)}}))},l}(ce),es=function(p){an(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return h.createElement(Re,{model:this.model,handleClick:!1})},l}(ie),ar=function(p){an(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),l.prototype.render=function(){return this.cell.isVisible?h.createElement("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},p.prototype.render.call(this)):null},l.prototype.getQuestionPropertiesToTrack=function(){return p.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},l}(wi);A.Instance.registerElement("sv-matrixdynamic-actions-cell",function(p){return h.createElement(es,p)});var lr=function(p){an(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.column},l.prototype.renderElement=function(){return this.column.isRenderedRequired?h.createElement(h.Fragment,null,h.createElement("span",null," "),h.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},l}(ie),Qi=function(p){an(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),l.prototype.getQuestion=function(){var a=p.prototype.getQuestion.call(this);return a||(this.cell?this.cell.question:null)},l.prototype.doAfterRender=function(){var a=this.cellRef.current;if(a&&this.cell&&this.question&&this.question.survey&&a.getAttribute("data-rendered")!=="r"){a.setAttribute("data-rendered","r");var c={cell:this.cell,cellQuestion:this.question,htmlElement:a,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,c),this.question.afterRenderCore(a)}},l.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},l.prototype.getCellStyle=function(){var a=p.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(a||(a={}),this.cell.width&&(a.width=this.cell.width),this.cell.minWidth&&(a.minWidth=this.cell.minWidth)),a},l.prototype.getHeaderText=function(){return this.cell.headers},l.prototype.renderElement=function(){return this.cell.isVisible?p.prototype.renderElement.call(this):null},l.prototype.renderCellContent=function(){var a=p.prototype.renderCellContent.call(this),c=this.cell.showResponsiveTitle?h.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),h.createElement(lr,{column:this.cell.column,question:this.cell.matrix})):null;return h.createElement(h.Fragment,null,c,a)},l.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():nn.renderQuestionBody(this.creator,this.question):h.createElement(h.Fragment,null)},l.prototype.renderOtherComment=function(){var a=this.cell.question,c=a.cssClasses||{};return h.createElement(ct,{question:a,cssClasses:c,otherCss:c.other,isDisplayMode:a.isInputReadOnly})},l.prototype.renderCellCheckboxButton=function(){var a=this.cell.question.id+"item"+this.cell.choiceIndex;return h.createElement(Dr,{key:a,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},l.prototype.renderCellRadiogroupButton=function(){var a=this.cell.question.id+"item"+this.cell.choiceIndex;return h.createElement(In,{key:a,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},l}(Ci),zr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Hi=function(p){zr(l,p);function l(a){return p.call(this,a)||this}return l}(Ln);Ce.Instance.registerQuestion("matrixdropdown",function(p){return h.createElement(Hi,p)});var ur=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ur=function(p){ur(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnRowAddClick=c.handleOnRowAddClick.bind(c),c}return Object.defineProperty(l.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.handleOnRowAddClick=function(a){this.matrix.addRowUI()},l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.renderedTable.showTable,f=c?this.renderTableDiv():this.renderNoRowsContent(a);return h.createElement("div",null,this.renderAddRowButtonOnTop(a),f,this.renderAddRowButtonOnBottom(a))},l.prototype.renderAddRowButtonOnTop=function(a){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(a):null},l.prototype.renderAddRowButtonOnBottom=function(a){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(a):null},l.prototype.renderNoRowsContent=function(a){var c=this.renderLocString(this.matrix.locEmptyRowsText),f=h.createElement("div",{className:a.emptyRowsText},c),g=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(a,!0):void 0;return h.createElement("div",{className:a.emptyRowsSection},f,g)},l.prototype.renderAddRowButton=function(a,c){return c===void 0&&(c=!1),A.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:a,isEmptySection:c})},l}(Ln);Ce.Instance.registerQuestion("matrixdynamic",function(p){return h.createElement(Ur,p)});var cr=function(p){ur(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnRowAddClick=c.handleOnRowAddClick.bind(c),c}return Object.defineProperty(l.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.handleOnRowAddClick=function(a){this.matrix.addRowUI()},l.prototype.renderElement=function(){var a=this.renderLocString(this.matrix.locAddRowText),c=h.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},a,h.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?c:h.createElement("div",{className:this.props.cssClasses.footer},c)},l}(ie);A.Instance.registerElement("sv-matrixdynamic-add-btn",function(p){return h.createElement(cr,p)});var zi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Mn=function(p){zi(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),l}(ie),Ui=function(p){zi(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.addPanelUI()},a}return l.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var a=this.renderLocString(this.question.locPanelAddText);return w.a.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},w.a.createElement("span",{className:this.question.cssClasses.buttonAddText},a))},l}(Mn);A.Instance.registerElement("sv-paneldynamic-add-btn",function(p){return w.a.createElement(Ui,p)});var ts=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Et=function(p){ts(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.goToNextPanel()},a}return l.prototype.renderElement=function(){return w.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},w.a.createElement(ge,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},l}(Mn);A.Instance.registerElement("sv-paneldynamic-next-btn",function(p){return w.a.createElement(Et,p)});var pr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),jn=function(p){pr(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.goToPrevPanel()},a}return l.prototype.renderElement=function(){return w.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},w.a.createElement(ge,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},l}(Mn);A.Instance.registerElement("sv-paneldynamic-prev-btn",function(p){return w.a.createElement(jn,p)});var Wi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),fr=function(p){Wi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.renderElement=function(){return w.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},l}(Mn);A.Instance.registerElement("sv-paneldynamic-progress-text",function(p){return w.a.createElement(fr,p)});var $i=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),dr=function(p){$i(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var a=this;this.question.panelCountChangedCallback=function(){a.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){a.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){a.updateQuestionRendering()}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},l.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},l.prototype.renderElement=function(){var a=this,c=[];this.question.renderedPanels.forEach(function(ye,ae){c.push(h.createElement(ns,{key:ye.id,element:ye,question:a.question,index:ae,cssClasses:a.question.cssClasses,isDisplayMode:a.isDisplayMode,creator:a.creator}))});var f=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,g=this.question.isProgressTopShowing?this.renderNavigator():null,L=this.question.isProgressBottomShowing?this.renderNavigator():null,F=this.renderNavigatorV2(),H=this.renderPlaceholder();return h.createElement("div",{className:this.question.cssClasses.root},H,g,h.createElement("div",{className:this.question.cssClasses.panelsContainer},c),L,f,F)},l.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var a=this.question.isRangeShowing?this.renderRange():null,c=this.rendrerPrevButton(),f=this.rendrerNextButton(),g=this.renderAddRowButton(),L=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return h.createElement("div",{className:L},h.createElement("div",{style:{clear:"both"}},h.createElement("div",{className:this.question.cssClasses.progressContainer},c,a,f),g,this.renderProgressText()))},l.prototype.renderProgressText=function(){return h.createElement(fr,{data:{question:this.question}})},l.prototype.rendrerPrevButton=function(){return h.createElement(jn,{data:{question:this.question}})},l.prototype.rendrerNextButton=function(){return h.createElement(Et,{data:{question:this.question}})},l.prototype.renderRange=function(){return h.createElement("div",{className:this.question.cssClasses.progress},h.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},l.prototype.renderAddRowButton=function(){return A.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},l.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var a=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return h.createElement("div",{className:this.question.cssClasses.footer},h.createElement("hr",{className:this.question.cssClasses.separator}),a,this.question.footerToolbar.visibleActions.length?h.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},h.createElement(Re,{model:this.question.footerToolbar})):null)},l.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?h.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},h.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},l}(ce),ns=function(p){$i(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),l.prototype.getSurvey=function(){return this.question?this.question.survey:null},l.prototype.getCss=function(){var a=this.getSurvey();return a?a.getCss():{}},l.prototype.render=function(){var a=p.prototype.render.call(this),c=this.renderButton(),f=this.question.showSeparator(this.index)?h.createElement("hr",{className:this.question.cssClasses.separator}):null;return h.createElement(h.Fragment,null,h.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},a,c),f)},l.prototype.renderButton=function(){return this.question.panelRemoveButtonLocation!=="right"||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:A.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},l}(ze);Ce.Instance.registerQuestion("paneldynamic",function(p){return h.createElement(dr,p)});var Ji=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ke=function(p){Ji(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a={width:this.progress+"%"};return h.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},h.createElement("div",{style:a,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},h.createElement("span",{className:C.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),h.createElement("span",{className:C.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},l}(Ht);A.Instance.registerElement("sv-progress-pages",function(p){return h.createElement(ke,p)}),A.Instance.registerElement("sv-progress-questions",function(p){return h.createElement(ke,p)}),A.Instance.registerElement("sv-progress-correctquestions",function(p){return h.createElement(ke,p)}),A.Instance.registerElement("sv-progress-requiredquestions",function(p){return h.createElement(ke,p)});var Wr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),hr=function(p){Wr(l,p);function l(a){var c=p.call(this,a)||this;return c.listContainerRef=h.createRef(),c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),l.prototype.onResize=function(a){this.setState({canShowItemTitles:a}),this.setState({canShowHeader:!a})},l.prototype.onUpdateScroller=function(a){this.setState({hasScroller:a})},l.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},l.prototype.render=function(){var a=this;return h.createElement("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?h.createElement("div",{className:this.css.progressButtonsHeader},h.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,h.createElement("div",{className:this.css.progressButtonsContainer},h.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return a.clickScrollButton(a.listContainerRef.current,!0)}}),h.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},h.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),h.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return a.clickScrollButton(a.listContainerRef.current,!1)}})),this.state.canShowFooter?h.createElement("div",{className:this.css.progressButtonsFooter},h.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},l.prototype.getListElements=function(){var a=this,c=[];return this.survey.visiblePages.forEach(function(f,g){c.push(a.renderListElement(f,g))}),c},l.prototype.renderListElement=function(a,c){var f=this,g=$.renderLocString(a.locNavigationTitle);return h.createElement("li",{key:"listelement"+c,className:this.model.getListElementCss(c),onClick:this.model.isListElementClickable(c)?function(){return f.model.clickListElement(a)}:void 0,"data-page-number":this.model.getItemNumber(a)},h.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?h.createElement(h.Fragment,null,h.createElement("div",{className:this.css.progressButtonsPageTitle,title:a.renderedNavigationTitle},g),h.createElement("div",{className:this.css.progressButtonsPageDescription,title:a.navigationDescription},a.navigationDescription)):null,h.createElement("div",{className:this.css.progressButtonsButton},h.createElement("div",{className:this.css.progressButtonsButtonBackground}),h.createElement("div",{className:this.css.progressButtonsButtonContent}),h.createElement("span",null,this.model.getItemNumber(a))))},l.prototype.clickScrollButton=function(a,c){a&&(a.scrollLeft+=(c?-1:1)*70)},l.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this),setTimeout(function(){a.respManager=new C.ProgressButtonsResponsivityManager(a.model,a.listContainerRef.current,a)},10)},l.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),p.prototype.componentWillUnmount.call(this)},l}(Ht);A.Instance.registerElement("sv-progress-buttons",function(p){return h.createElement(hr,p)});var rs=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Gi=function(p){rs(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleKeydown=function(c){a.model.onKeyDown(c)},a}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){var a=this;if(!this.item)return null;var c=this.model.getItemClass(this.item),f=this.item.component||this.model.itemComponent,g=A.Instance.createElement(f,{item:this.item,key:this.item.id,model:this.model}),L=w.a.createElement("div",{style:this.model.getItemStyle(this.item),className:this.model.cssClasses.itemBody,title:this.item.getTooltip(),onMouseOver:function(ae){a.model.onItemHover(a.item)},onMouseLeave:function(ae){a.model.onItemLeave(a.item)}},g),F=this.item.needSeparator?w.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,H=this.model.isItemVisible(this.item),ye={display:H?null:"none"};return xn(w.a.createElement("li",{className:c,role:"option",style:ye,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(ae){a.model.onItemClick(a.item),ae.stopPropagation()},onPointerDown:function(ae){return a.model.onPointerDown(ae,a.item)}},F,L),this.item)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},l}($);A.Instance.registerElement("sv-list-item",function(p){return w.a.createElement(Gi,p)});var ln=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Nn=function(p){ln(l,p);function l(a){var c=p.call(this,a)||this;return c.handleKeydown=function(f){c.model.onKeyDown(f)},c.handleMouseMove=function(f){c.model.onMouseMove(f)},c.state={filterString:c.model.filterString||""},c.listContainerRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},l.prototype.componentDidUpdate=function(a,c){var f;p.prototype.componentDidUpdate.call(this,a,c),this.model!==a.model&&(this.model&&(!((f=this.listContainerRef)===null||f===void 0)&&f.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),a.model&&a.model.initListContainerHtmlElement(void 0))},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},l.prototype.renderElement=function(){return w.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},l.prototype.renderList=function(){if(!this.model.renderElements)return null;var a=this.renderItems(),c={display:this.model.isEmpty?"none":null};return w.a.createElement("ul",{className:this.model.getListClass(),style:c,role:"listbox",id:this.model.elementId,onMouseDown:function(f){f.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},a)},l.prototype.renderItems=function(){var a=this;if(!this.model)return null;var c=this.model.renderedActions;return c?c.map(function(f,g){return w.a.createElement(Gi,{model:a.model,item:f,key:"item"+g})}):null},l.prototype.searchElementContent=function(){var a=this;if(this.model.showFilter){var c=function(L){var F=C.settings.environment.root;L.target===F.activeElement&&(a.model.filterString=L.target.value)},f=function(L){a.model.goToItems(L)},g=this.model.showSearchClearButton&&this.model.filterString?w.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(L){a.model.onClickSearchClearButton(L)}},w.a.createElement(ge,{iconName:"icon-searchclear",size:"auto"})):null;return w.a.createElement("div",{className:this.model.cssClasses.filter},w.a.createElement("div",{className:this.model.cssClasses.filterIcon},w.a.createElement(ge,{iconName:"icon-search",size:"auto"})),w.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:f,onChange:c}),g)}else return null},l.prototype.emptyContent=function(){var a={display:this.model.isEmpty?null:"none"};return w.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:a},w.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},l}($);A.Instance.registerElement("sv-list",function(p){return w.a.createElement(Nn,p)});var is=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Zi=function(p){is(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this.props.model,c;return a.isMobile?c=h.createElement("div",{onClick:a.togglePopup},h.createElement(ge,{iconName:a.icon,size:24}),h.createElement(Qe,{model:a.popupModel})):c=h.createElement(Nn,{model:a.listModel}),h.createElement("div",{className:a.containerCss},c)},l}(Ht);A.Instance.registerElement("sv-navigation-toc",function(p){return h.createElement(Zi,p)});var Ki=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Yi=function(p){Ki(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnClick=c.handleOnClick.bind(c),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.handleOnClick=function(a){this.question.setValueFromClick(a.target.value),this.setState({value:this.question.value})},l.prototype.renderItem=function(a,c){var f=A.Instance.createElement(this.question.itemComponent,{question:this.question,item:a,index:c,key:"value"+c,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode});return f},l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,g=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return h.createElement("div",{className:this.question.ratingRootCss,ref:function(L){return a.setControl(L)}},h.createElement("fieldset",{role:"radiogroup"},h.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?h.createElement("span",{className:c.minText},f):null,this.question.renderedRateItems.map(function(L,F){return a.renderItem(L,F)}),this.question.hasMaxLabel?h.createElement("span",{className:c.maxText},g):null))},l}(ce);Ce.Instance.registerQuestion("rating",function(p){return h.createElement(Yi,p)});var os=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),un=function(p){os(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.renderSelect(a);return h.createElement("div",{className:this.question.cssClasses.rootDropdown},c)},l}(Xn);Ce.Instance.registerQuestion("sv-rating-dropdown",function(p){return h.createElement(un,p)}),C.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Vt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Xe=function(p){Vt(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses;return h.createElement("div",{id:this.question.inputId,className:c.root,ref:function(f){return a.setControl(f)}},this.question.formatedValue)},l}(ce);Ce.Instance.registerQuestion("expression",function(p){return h.createElement(Xe,p)});var Xi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),qn=function(p){Xi(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnExpanded=c.handleOnExpanded.bind(c),c}return l.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},l.prototype.handleOnExpanded=function(a){this.popup.changeExpandCollapse()},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&this.popup.isShowing},l.prototype.renderElement=function(){var a=this,c=this.renderWindowHeader(),f=this.renderBody(),g={};return this.popup.renderedWidth&&(g.width=this.popup.renderedWidth,g.maxWidth=this.popup.renderedWidth),h.createElement("div",{className:this.popup.cssRoot,style:g,onScroll:function(){return a.popup.onScroll()}},h.createElement("div",{className:this.popup.cssRootContent},c,f))},l.prototype.renderWindowHeader=function(){var a=this.popup,c=a.cssHeaderRoot,f=null,g,L=null,F=null;return a.isCollapsed?(c+=" "+a.cssRootCollapsedMod,f=this.renderTitleCollapsed(a),g=this.renderExpandIcon()):g=this.renderCollapseIcon(),a.allowClose&&(L=this.renderCloseButton(this.popup)),a.allowFullScreen&&(F=this.renderAllowFullScreenButon(this.popup)),h.createElement("div",{className:a.cssHeaderRoot},f,h.createElement("div",{className:a.cssHeaderButtonsContainer},F,h.createElement("div",{className:a.cssHeaderCollapseButton,onClick:this.handleOnExpanded},g),L))},l.prototype.renderTitleCollapsed=function(a){return a.locTitle?h.createElement("div",{className:a.cssHeaderTitleCollapsed},a.locTitle.renderedHtml):null},l.prototype.renderExpandIcon=function(){return h.createElement(ge,{iconName:"icon-restore_16x16",size:16})},l.prototype.renderCollapseIcon=function(){return h.createElement(ge,{iconName:"icon-minimize_16x16",size:16})},l.prototype.renderCloseButton=function(a){var c=this;return h.createElement("div",{className:a.cssHeaderCloseButton,onClick:function(){a.hide(),typeof c.props.onClose=="function"&&c.props.onClose()}},h.createElement(ge,{iconName:"icon-close_16x16",size:16}))},l.prototype.renderAllowFullScreenButon=function(a){var c;return a.isFullScreen?c=h.createElement(ge,{iconName:"icon-back-to-panel_16x16",size:16}):c=h.createElement(ge,{iconName:"icon-full-screen_16x16",size:16}),h.createElement("div",{className:a.cssHeaderFullScreenButton,onClick:function(){a.toggleFullScreen()}},c)},l.prototype.renderBody=function(){return h.createElement("div",{className:this.popup.cssBody},this.doRender())},l.prototype.createSurvey=function(a){a||(a={}),p.prototype.createSurvey.call(this,a),this.popup=new C.PopupSurveyModel(null,this.survey),a.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=a.closeOnCompleteTimeout),this.popup.allowClose=a.allowClose,this.popup.allowFullScreen=a.allowFullScreen,this.popup.isShowing=!0,!this.popup.isExpanded&&(a.expanded||a.isExpanded)&&this.popup.expand()},l}(Mt),ss=function(p){Xi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l}(qn),eo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),I=function(p){eo(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.question.cssClasses;return h.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},h.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(a):this.getItems(a))},l.prototype.getColumns=function(a){var c=this;return this.question.columns.map(function(f,g){var L=f.map(function(F,H){return c.renderItem("item"+H,F,a)});return h.createElement("div",{key:"column"+g+c.question.getItemsColumnKey(f),className:c.question.getColumnClass(),role:"presentation"},L)})},l.prototype.getItems=function(a){for(var c=[],f=0;f<this.question.visibleChoices.length;f++){var g=this.question.visibleChoices[f],L="item"+f;c.push(this.renderItem(L,g,a))}return c},Object.defineProperty(l.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),l.prototype.renderItem=function(a,c,f){var g=h.createElement(et,{key:a,question:this.question,item:c,cssClasses:f}),L=this.question.survey,F=null;return L&&(F=k.wrapItemValue(L,g,this.question,c)),F??g},l}(ce),et=function(p){eo(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnChange=c.handleOnChange.bind(c),c}return l.prototype.getStateElement=function(){return this.item},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){var a=this;this.item.locImageLink.onChanged=function(){a.setState({locImageLinkchanged:a.state&&a.state.locImageLink?a.state.locImageLink+1:1})}},Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.handleOnChange=function(a){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(a.target.checked)this.question.value=this.question.value.concat(a.target.value);else{var c=this.question.value;c.splice(this.question.value.indexOf(a.target.value),1),this.question.value=c}else this.question.value=a.target.value;this.setState({value:this.question.value})}},l.prototype.renderElement=function(){var a=this,c=this.item,f=this.question,g=this.cssClasses,L=f.isItemSelected(c),F=f.getItemClass(c),H=null;f.showLabel&&(H=h.createElement("span",{className:f.cssClasses.itemText},c.text?$.renderLocString(c.locText):c.value));var ye={objectFit:this.question.imageFit},ae=null;if(c.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(ae=h.createElement("img",{className:g.image,src:c.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:c.locText.renderedHtml,style:ye,onLoad:function(Ze){a.question.onContentLoaded(c,Ze.nativeEvent)},onError:function(Ze){c.onErrorHandler(c,Ze.nativeEvent)}})),c.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(ae=h.createElement("video",{controls:!0,className:g.image,src:c.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:ye,onLoadedMetadata:function(Ze){a.question.onContentLoaded(c,Ze.nativeEvent)},onError:function(Ze){c.onErrorHandler(c,Ze.nativeEvent)}})),!c.locImageLink.renderedHtml||c.contentNotLoaded){var Ve={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};ae=h.createElement("div",{className:g.itemNoImage,style:Ve},g.itemNoImageSvgIcon?h.createElement(ge,{className:g.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}var yt=h.createElement("div",{className:F},h.createElement("label",{className:g.label},h.createElement("input",{className:g.itemControl,id:this.question.getItemId(c),type:this.question.inputType,name:this.question.questionName,checked:L,value:c.value,disabled:!this.question.getItemEnabled(c),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),h.createElement("div",{className:this.question.cssClasses.itemDecorator},h.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?h.createElement("span",{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":"true"},this.question.cssClasses.checkedItemSvgIconId?h.createElement(ge,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,ae),H)));return yt},l}(ie);Ce.Instance.registerQuestion("imagepicker",function(p){return h.createElement(I,p)});var it=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$r=function(p){it(l,p);function l(a){return p.call(this,a)||this}return l.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){a.forceUpdate()}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.getImageCss(),f={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};(!this.question.imageLink||this.question.contentNotLoaded)&&(f.display="none");var g=null;this.question.renderedMode==="image"&&(g=h.createElement("img",{className:c,src:this.question.locImageLink.renderedHtml||null,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:f,onLoad:function(F){a.question.onLoadHandler()},onError:function(F){a.question.onErrorHandler()}})),this.question.renderedMode==="video"&&(g=h.createElement("video",{controls:!0,className:c,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:f,onLoadedMetadata:function(F){a.question.onLoadHandler()},onError:function(F){a.question.onErrorHandler()}})),this.question.renderedMode==="youtube"&&(g=h.createElement("iframe",{className:c,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:f}));var L=null;return(!this.question.imageLink||this.question.contentNotLoaded)&&(L=h.createElement("div",{className:this.question.cssClasses.noImage},h.createElement(ge,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),h.createElement("div",{className:this.question.cssClasses.root},g,L)},l}(ce);Ce.Instance.registerQuestion("image",function(p){return h.createElement($r,p)});var to=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Jr=function(p){to(l,p);function l(a){var c=p.call(this,a)||this;return c.state={value:c.question.value},c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,g=this.renderCleanButton();return h.createElement("div",{className:c.root,ref:function(L){return a.setControl(L)},style:{width:this.question.renderedCanvasWidth}},h.createElement("div",{className:c.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),h.createElement("div",null,this.renderBackgroundImage(),h.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(L){a.question.onBlur(L)}})),g,f)},l.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?h.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},l.prototype.renderLoadingIndicator=function(){return h.createElement("div",{className:this.question.cssClasses.loadingIndicator},h.createElement(Pe,null))},l.prototype.renderCleanButton=function(){var a=this;if(!this.question.canShowClearButton)return null;var c=this.question.cssClasses;return h.createElement("div",{className:c.controls},h.createElement("button",{type:"button",className:c.clearButton,title:this.question.clearButtonCaption,onClick:function(){return a.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?h.createElement(ge,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):h.createElement("span",null,"✖")))},l}(ce);Ce.Instance.registerQuestion("signaturepad",function(p){return h.createElement(Jr,p)});var Gr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),as=function(p){Gr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.question},l.prototype.renderElement=function(){var a=this.renderItems();return w.a.createElement("div",{className:this.question.cssClasses.root},a)},l.prototype.renderItems=function(){var a=this;return this.question.visibleChoices.map(function(c,f){return w.a.createElement(ls,{key:a.question.inputId+"_"+f,item:c,question:a.question,index:f})})},l}(ce),ls=function(p){Gr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){this.model=new C.ButtonGroupItemModel(this.question,this.item,this.index);var a=this.renderIcon(),c=this.renderInput(),f=this.renderCaption();return w.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},c,w.a.createElement("div",{className:this.model.css.decorator},a,f))},l.prototype.renderIcon=function(){return this.model.iconName?w.a.createElement(ge,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},l.prototype.renderInput=function(){var a=this;return w.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){a.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},l.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var a=this.renderLocString(this.model.caption);return w.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},a)},l}($),no=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),_n=function(p){no(l,p);function l(a){return p.call(this,a)||this}return l.prototype.getStateElements=function(){var a=p.prototype.getStateElements.call(this);return this.question.contentQuestion&&a.push(this.question.contentQuestion),a},l.prototype.renderElement=function(){return nn.renderQuestionBody(this.creator,this.question.contentQuestion)},l}(We),ro=function(p){no(l,p);function l(a){return p.call(this,a)||this}return l.prototype.canRender=function(){return!!this.question.contentPanel},l.prototype.renderElement=function(){return h.createElement(ze,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},l}(We);Ce.Instance.registerQuestion("custom",function(p){return h.createElement(_n,p)}),Ce.Instance.registerQuestion("composite",function(p){return h.createElement(ro,p)});var us=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),io=function(p){us(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){if(!this.item)return null;var a=this.renderLocString(this.item.locTitle,void 0,"locString"),c=this.item.iconName?w.a.createElement(ge,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,f=this.item.markerIconName?w.a.createElement(ge,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:"auto"}):null;return w.a.createElement(w.a.Fragment,null,c,a,f)},l}($);A.Instance.registerElement("sv-list-item-content",function(p){return w.a.createElement(io,p)});var oo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ot=function(p){oo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){var a;if(!this.item)return null;var c=A.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return w.a.createElement(w.a.Fragment,null,c,w.a.createElement(Qe,{model:(a=this.item)===null||a===void 0?void 0:a.popupModel}))},l}($);A.Instance.registerElement("sv-list-item-group",function(p){return w.a.createElement(ot,p)});var $t=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ft=function(p){$t(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=[];return a.push(w.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},w.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml||null,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),w.a.createElement(w.a.Fragment,null,a)},l}(w.a.Component);A.Instance.registerElement("sv-logo-image",function(p){return w.a.createElement(ft,p)});var Jt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Zr=function(p){Jt(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnRowRemoveClick=c.handleOnRowRemoveClick.bind(c),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),l.prototype.handleOnRowRemoveClick=function(a){this.question.removeRowUI(this.row)},l.prototype.renderElement=function(){var a=this.renderLocString(this.question.locRemoveRowText);return w.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},a,w.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},l}(ie);A.Instance.registerElement("sv-matrix-remove-button",function(p){return w.a.createElement(Zr,p)});var so=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Kr=function(p){so(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnShowHideClick=c.handleOnShowHideClick.bind(c),c}return l.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),l.prototype.handleOnShowHideClick=function(a){this.row.showHideDetailPanelClick()},l.prototype.renderElement=function(){var a=this.row.isDetailPanelShowing,c=a,f=a?this.row.detailPanelId:void 0;return w.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":c,"aria-controls":f},w.a.createElement(ge,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},l}(ie);A.Instance.registerElement("sv-matrix-detail-button",function(p){return w.a.createElement(Kr,p)});var ao=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Yr=function(p){ao(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.removePanelUI(a.data.panel)},a}return l.prototype.renderElement=function(){var a=this.renderLocString(this.question.locPanelRemoveText),c=this.question.getPanelRemoveButtonId(this.data.panel);return w.a.createElement("button",{id:c,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},w.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},a),w.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},l}(Mn);A.Instance.registerElement("sv-paneldynamic-remove-btn",function(p){return w.a.createElement(Yr,p)});var Xr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ei=function(p){Xr(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return this.item.isVisible},l.prototype.renderElement=function(){return w.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},l}(ie);A.Instance.registerElement("sv-nav-btn",function(p){return w.a.createElement(ei,p)});var lo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Bn=function(p){lo(l,p);function l(a){var c=p.call(this,a)||this;return c.onChangedHandler=function(f,g){c.isRendering||c.setState({changed:c.state&&c.state.changed?c.state.changed+1:1})},c.rootRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},l.prototype.componentDidUpdate=function(a,c){a.locStr&&a.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},l.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var a=this.renderString();return this.isRendering=!1,a},l.prototype.renderString=function(){var a=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var c={__html:this.locStr.renderedHtml};return w.a.createElement("span",{ref:this.rootRef,className:a,style:this.style,dangerouslySetInnerHTML:c})}return w.a.createElement("span",{ref:this.rootRef,className:a,style:this.style},this.locStr.renderedHtml)},l}(w.a.Component);A.Instance.registerElement(C.LocalizableString.defaultRenderer,function(p){return w.a.createElement(Bn,p)});var uo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Fn=function(p){uo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){return w.a.createElement("div",null,w.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),w.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},w.a.createElement(Bn,{locStr:this.props.error.locText})))},l}(w.a.Component);A.Instance.registerElement("sv-question-error",function(p){return w.a.createElement(Fn,p)});var cs=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Gt=function(p){cs(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a,c;return w.a.createElement("div",{className:"sv-skeleton-element",id:(a=this.props.element)===null||a===void 0?void 0:a.id,style:{height:(c=this.props.element)===null||c===void 0?void 0:c.skeletonHeight}})},l}(w.a.Component);A.Instance.registerElement("sv-skeleton",function(p){return w.a.createElement(Gt,p)});var ti=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Be=function(p){ti(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderLogoImage=function(){var a=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),c=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return A.Instance.createElement(a,{data:c})},l.prototype.render=function(){return w.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?w.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?w.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},w.a.createElement(tt,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?w.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},w.a.createElement("div",{className:this.model.survey.css.description},$.renderLocString(this.model.survey.locDescription))):null)},l}(w.a.Component),gr=function(p){ti(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderLogoImage=function(){var a=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),c=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return A.Instance.createElement(a,{data:c})},l.prototype.render=function(){return w.a.createElement("div",{className:this.model.css,style:this.model.style},w.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?w.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?w.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},w.a.createElement(tt,{element:this.model.survey})):null,this.model.showDescription?w.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},w.a.createElement("div",{className:this.model.survey.css.description},$.renderLocString(this.model.survey.locDescription))):null))},l}(w.a.Component),co=function(p){ti(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.renderElement=function(){if(this.model.survey=this.props.survey,this.props.survey.headerView!=="advanced")return null;var a=null;return this.props.survey.isMobile?a=w.a.createElement(Be,{model:this.model}):a=w.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map(function(c,f){return w.a.createElement(gr,{key:f,model:c})})),w.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?w.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,a)},l}($);A.Instance.registerElement("sv-header",function(p){return w.a.createElement(co,p)});var ni=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),re=function(p){ni(l,p);function l(a){var c=p.call(this,a)||this;return c.onInput=function(f){c.locStr.text=f.target.innerText},c.onClick=function(f){f.preventDefault(),f.stopPropagation()},c.state={changed:0},c}return Object.defineProperty(l.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(this.locStr){var a=this;this.locStr.onChanged=function(){a.setState({changed:a.state.changed+1})}}},l.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},l.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var a={__html:this.locStr.renderedHtml};return w.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:a,onBlur:this.onInput,onClick:this.onClick})}return w.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},l}(w.a.Component);A.Instance.registerElement(C.LocalizableString.editableRenderer,function(p){return w.a.createElement(re,p)}),Object(C.checkLibraryVersion)("1.12.20","survey-react-ui")},react:function(B,R){B.exports=z},"react-dom":function(B,R){B.exports=O},"survey-core":function(B,R){B.exports=P}})})}(_o)),_o.exports}var Rh=Th();function Wu(ne,S){var z,O;if(S.column.indexValue==0&&"item"in S.row){const P=S.row.item;P.customDescription!==void 0&&((z=S.htmlElement.parentElement)==null||z.children[0].children[0].setAttribute("description",P.customDescription),(O=S.htmlElement.parentElement)==null||O.children[0].children[0].classList.add("survey-tooltip"))}}function $u(ne,S){if(S.question.hideCheckboxLabels){const z=S.cssClasses;z.root+=" hidden-checkbox-labels"}}function Ih(ne,S){var P;const z='[data-name="'+S.question.name+'"]',O=(P=document.querySelector(z))==null?void 0:P.querySelector("h5");O&&!O.classList.contains("sv-header-flex")&&S.question.updateElementCss()}function Ju(ne,S){if(S.name!=="description")return;let z=S.text;if(!z.length)return;const O=["e.g.","i.e.","etc.","vs."];for(const D of O)z.includes(D)&&(z=z.replace(D,D.slice(0,-1)));const P=z.split(". ");for(let D=0;D<P.length;D++)if(P[D].length!=0)for(const C of O)P[D].includes(C.slice(0,-1))&&(P[D]=P[D].replace(C.slice(0,-1),C));const B=D=>D.includes("*")?D.split("*").map((C,h)=>h==0?C:h==1?`<ul><li>${C}</li>`:`<li>${C}</li>`).join("")+"</ul>":D.endsWith(".")?D:D+".",R=P.map(D=>D.length?`<p>${B(D)}</p>`:null).join("");S.html=R}function Dh(ne){var R;const S=!!ne.visibleIf,z='[data-name="'+ne.name+'"]',O=document.querySelector(z),P=O==null?void 0:O.querySelector("h5");if(S){O.style.display="none";return}P&&(P.style.textDecoration="line-through");const B=(R=document.querySelector(z))==null?void 0:R.querySelector(".sv-question__content");B&&(B.style.display="none")}function Pa(ne,S,z){var D;z.verificationStatus.set(ne.name,S);const O=document.createElement("button");O.type="button",O.className="sv-action-bar-item verification",O.innerHTML=S,S==yi.Unverified?(O.innerHTML="No change from previous year",O.className+=" verification-required",O.onclick=function(){z.mode!="display"&&(ne.validate(),Pa(ne,yi.Verified,z))}):(O.innerHTML="Answer updated",O.className+=" verification-ok");const P='[data-name="'+ne.name+'"]',B=(D=document.querySelector(P))==null?void 0:D.querySelector("h5"),R=B==null?void 0:B.querySelector(".verification");R?R.replaceWith(O):B==null||B.appendChild(O)}function Ah(ne){const S=Bo.c(2),{surveyModel:z}=ne,O=(R,D)=>{var w;const C=z.verificationStatus.get(D.question.name),h=(w=D.question)==null?void 0:w.readOnly;C&&!h?Pa(D.question,C,z):h&&Dh(D.question)},P=(R,D)=>{z.verificationStatus.get(D.question.name)==yi.Unverified&&Pa(D.question,yi.Edited,z)};z.onAfterRenderQuestion.hasFunc(O)||(z.onAfterRenderQuestion.add(O),z.onAfterRenderQuestion.add(Ih)),z.onValueChanged.hasFunc(P)||z.onValueChanged.add(P),z.onUpdateQuestionCssClasses.hasFunc($u)||z.onUpdateQuestionCssClasses.add($u),z.onMatrixAfterCellRender.hasFunc(Wu)||z.onMatrixAfterCellRender.add(Wu),z.onTextMarkdown.hasFunc(Ju)||z.onTextMarkdown.add(Ju);let B;return S[0]!==z?(B=de.jsx(Rh.Survey,{model:z}),S[0]=z,S[1]=B):B=S[1],B}function Lh(ne){const S=Bo.c(14),{surveyModel:z,pageNoSetter:O}=ne;let P;S[0]===Symbol.for("react.memo_cache_sentinel")?(P=[],S[0]=P):P=S[0];const[B,R]=at.useState(P),D=jh;let C,h;S[1]!==z?(C=()=>{const $=ie=>{if(ie&&ie.pages){const ce=[];ie.pages.forEach(We=>{const be=We.questions.filter(Mh),pe=be.length,x=be.filter(D).length,we=pe-x,me=x/pe;ce.push({completionPercentage:me*100,unansweredPercentage:we/pe*100,totalPages:ie.pages.length,pageTitle:We.title})}),R(ce)}};z.onValueChanged.add(ie=>{$(ie)}),$(z)},h=[z],S[1]=z,S[2]=C,S[3]=h):(C=S[2],h=S[3]),at.useEffect(C,h);let w;S[4]===Symbol.for("react.memo_cache_sentinel")?(w={height:"0.5rem",transition:"width 0.3s ease"},S[4]=w):w=S[4];const A=w;let k;if(S[5]!==O||S[6]!==B||S[7]!==z.currentPageNo){let $;S[9]!==O||S[10]!==z.currentPageNo?($=(ie,ce)=>de.jsx(Ch,{xs:12,md:!0,onClick:()=>O(ce),style:{cursor:"pointer",margin:"0.5rem"},children:de.jsxs("div",{children:[de.jsx("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"},children:ce+1}),de.jsx("span",{style:{whiteSpace:"nowrap",...z.currentPageNo==ce&&{fontWeight:"bold"}},children:ie.pageTitle}),de.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[de.jsx("div",{style:{...A,width:`${ie.completionPercentage}%`,backgroundColor:"#262261"}}),de.jsx("div",{style:{...A,width:`${ie.unansweredPercentage}%`,backgroundColor:"#cdcdcd"}})]})]})},ce),S[9]=O,S[10]=z.currentPageNo,S[11]=$):$=S[11],k=B.map($),S[5]=O,S[6]=B,S[7]=z.currentPageNo,S[8]=k}else k=S[8];let le;return S[12]!==k?(le=de.jsx(xa,{className:"survey-progress",children:de.jsx(xr,{children:k})}),S[12]=k,S[13]=le):le=S[13],le}function Mh(ne){return ne.startWithNewLine}function jh(ne){return!(ne.value===null||ne.value===void 0||ne.value===""||ne.getType()==="checkbox"&&ne.value.length==0||ne.getType()==="multipletext"&&(Object.keys(ne.value).length===1&&Object.values(ne.value)[0]===void 0||Object.keys(ne.value).length===0))}function Nh(ne){const S=Bo.c(86),{surveyModel:z,surveyActions:O,year:P,nren:B,children:R,onPageChange:D}=ne,[C,h]=at.useState(0),[w,A]=at.useState(!1),[k,le]=at.useState(""),[$,ie]=at.useState(""),{user:ce}=at.useContext(Gu);let We;S[0]!==z.currentPageNo||S[1]!==z.lockedBy||S[2]!==z.mode||S[3]!==z.status?(We=()=>{A(z.mode=="edit"),le(z.lockedBy),h(z.currentPageNo),ie(z.status)},S[0]=z.currentPageNo,S[1]=z.lockedBy,S[2]=z.mode,S[3]=z.status,S[4]=We):We=S[4];const be=We;let pe,x;S[5]!==be?(pe=()=>{be()},x=[be],S[5]=be,S[6]=pe,S[7]=x):(pe=S[6],x=S[7]),at.useEffect(pe,x);let we;S[8]!==D?(we=j=>{h(j),D(j)},S[8]=D,S[9]=we):we=S[9];const me=we;let lt;S[10]!==me||S[11]!==z.currentPageNo?(lt=()=>{me(z.currentPageNo+1)},S[10]=me,S[11]=z.currentPageNo,S[12]=lt):lt=S[12];const Fe=lt;let ge;S[13]!==be||S[14]!==O?(ge=async j=>{await O[j](),be()},S[13]=be,S[14]=O,S[15]=ge):ge=S[15];const en=ge;let Ke,vt,$e,ut,ht,Qe,bt;if(S[16]!==R||S[17]!==en||S[18]!==w||S[19]!==Fe||S[20]!==k||S[21]!==ce||S[22]!==B||S[23]!==C||S[24]!==me||S[25]!==$||S[26]!==z||S[27]!==P){const j=(Vr,Sr)=>wn(Vr,()=>en(Sr)),wn=qh,Re=()=>de.jsxs("div",{className:"survey-edit-buttons-block",children:[!w&&!k&&z.editAllowed&&j("Start editing","startEdit"),!w&&k&&k==ce.name&&j("Discard any unsaved changes and release your lock","releaseLock"),w&&j("Save progress","save"),w&&j("Save and stop editing","saveAndStopEdit"),w&&j("Complete Survey","complete"),C!==z.visiblePages.length-1&&wn("Next Section",Fe)]});vt=xa;let He;S[35]!==P?(He=de.jsxs("span",{className:"survey-title",children:[P," Compendium Survey "]}),S[35]=P,S[36]=He):He=S[36];let he;S[37]!==B?(he=de.jsxs("span",{className:"survey-title-nren",children:[" ",B," "]}),S[37]=B,S[38]=he):he=S[38];let It;S[39]!==$?(It=de.jsxs("span",{children:[" - ",$]}),S[39]=$,S[40]=It):It=S[40];let Je;S[41]!==He||S[42]!==he||S[43]!==It?(Je=de.jsxs("h2",{children:[He,he,It]}),S[41]=He,S[42]=he,S[43]=It,S[44]=Je):Je=S[44];let Qt,tt;S[45]===Symbol.for("react.memo_cache_sentinel")?(Qt={marginTop:"1rem",textAlign:"justify"},tt=de.jsxs("p",{children:["To get started, click “","Start editing","” to end read-only mode. Different people from your NREN (Compendium administrators) can contribute to the survey if needed, but agreement should be reached internally before completing the survey as the administration team will treat responses as a single source of truth from the NREN. You can start editing only when nobody else from your NREN is currently working on the survey."]}),S[45]=Qt,S[46]=tt):(Qt=S[45],tt=S[46]);let Ce;S[47]!==P?(Ce=de.jsxs("p",{children:[de.jsxs("b",{children:["In a small change, the survey now asks about this calendar year, i.e. ",P]})," (or the current financial year if your budget or staffing data does not match the calendar year). For network questions, please provide data from the 12 months preceding you answering the question. Where available, the survey questions are pre-filled with answers from the previous survey. You can edit the pre-filled answer to provide new information, or press the “no change from previous year” button."]}),S[47]=P,S[48]=Ce):Ce=S[48];let tn,Ot;S[49]===Symbol.for("react.memo_cache_sentinel")?(tn=de.jsxs("p",{children:["Press the “","Save progress","“ or “","Save and stop editing","“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “","Complete Survey","“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published. As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “","Complete Survey","“ button."]}),Ot=de.jsx("p",{children:"Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question. If you notice any errors after the survey was closed, please contact us for correcting those."}),S[49]=tn,S[50]=Ot):(tn=S[49],Ot=S[50]);let Dt;S[51]!==Ce?(Dt=de.jsxs("div",{style:Qt,children:[tt,Ce,tn,Ot]}),S[51]=Ce,S[52]=Dt):Dt=S[52];let At;S[53]===Symbol.for("react.memo_cache_sentinel")?(At=de.jsx("a",{href:"mailto:Partner-Relations@geant.org",children:de.jsx("span",{children:"Partner-Relations@geant.org"})}),S[53]=At):At=S[53];let Ct;S[54]!==P?(Ct=de.jsxs("p",{children:["Thank you for taking the time to fill in the ",P," Compendium Survey. Any questions or requests can be sent to ",At]}),S[54]=P,S[55]=Ct):Ct=S[55];let wt;S[56]!==w?(wt=w&&de.jsxs(de.Fragment,{children:[de.jsx("br",{}),de.jsxs("b",{children:["Remember to click “","Save and stop editing","” before leaving the page."]})]}),S[56]=w,S[57]=wt):wt=S[57],S[58]!==Je||S[59]!==Dt||S[60]!==Ct||S[61]!==wt?(Qe=de.jsxs(xr,{className:"survey-content",children:[Je,Dt,Ct,wt]}),S[58]=Je,S[59]=Dt,S[60]=Ct,S[61]=wt,S[62]=Qe):Qe=S[62],bt=de.jsx(xr,{children:Re()});let nt;S[63]!==w||S[64]!==k||S[65]!==ce||S[66]!==z.editAllowed?(nt=!w&&de.jsxs("div",{className:"survey-edit-explainer",children:[!k&&z.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!k&&!z.editAllowed&&"The survey is in read-only mode and can not be edited by you.",k&&k!=ce.name&&"The survey is in read-only mode and currently being edited by: "+k+". To start editing the survey, ask them to complete their edits.",k&&k==ce.name&&'The survey is in read-only mode because you started editing in another tab, browser or device. To start editing the survey, either complete those edits or click the "Discard any unsaved changes" button.']}),S[63]=w,S[64]=k,S[65]=ce,S[66]=z.editAllowed,S[67]=nt):nt=S[67],S[68]!==nt?($e=de.jsx(xr,{className:"survey-content",children:nt}),S[68]=nt,S[69]=$e):$e=S[69];let ct;S[70]!==me||S[71]!==z?(ct=de.jsx(Lh,{surveyModel:z,pageNoSetter:me}),S[70]=me,S[71]=z,S[72]=ct):ct=S[72],S[73]!==R||S[74]!==ct?(ut=de.jsxs(xr,{children:[ct,R]}),S[73]=R,S[74]=ct,S[75]=ut):ut=S[75],Ke=xr,ht=Re(),S[16]=R,S[17]=en,S[18]=w,S[19]=Fe,S[20]=k,S[21]=ce,S[22]=B,S[23]=C,S[24]=me,S[25]=$,S[26]=z,S[27]=P,S[28]=Ke,S[29]=vt,S[30]=$e,S[31]=ut,S[32]=ht,S[33]=Qe,S[34]=bt}else Ke=S[28],vt=S[29],$e=S[30],ut=S[31],ht=S[32],Qe=S[33],bt=S[34];let Rt;S[76]!==Ke||S[77]!==ht?(Rt=de.jsx(Ke,{children:ht}),S[76]=Ke,S[77]=ht,S[78]=Rt):Rt=S[78];let je;return S[79]!==vt||S[80]!==$e||S[81]!==ut||S[82]!==Rt||S[83]!==Qe||S[84]!==bt?(je=de.jsxs(vt,{children:[Qe,bt,$e,ut,Rt]}),S[79]=vt,S[80]=$e,S[81]=ut,S[82]=Rt,S[83]=Qe,S[84]=bt,S[85]=je):je=S[85],je}function qh(ne,S){return de.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:S,children:ne})}function _h(ne){const S=Bo.c(5),z=ne.when,O=ne.onPageExit;let P;S[0]!==z||S[1]!==O||S[2]!==ne.message?(P=()=>{if(z()){const R=window.confirm(ne.message);return R&&O(),!R}return!1},S[0]=z,S[1]=O,S[2]=ne.message,S[3]=P):P=S[3],wh(P);let B;return S[4]===Symbol.for("react.memo_cache_sentinel")?(B=de.jsx("div",{}),S[4]=B):B=S[4],B}function Bh(ne,S=!1){if(!S&&(ne==null||ne==null||ne==""))return!0;try{return ne=ne.trim(),ne.includes(" ")?!1:(ne.includes(":/")||(ne="https://"+ne),!!new URL(ne))}catch{return!1}}const Fh={validateWebsiteUrl:Bh},kh={data_protection_contact:(...ne)=>!0};function Qh(ne){let S=ne[0];if(S==null||S==null||S=="")return!0;try{return S=S.trim(),S.includes(" ")?!1:(S.includes(":/")||(S="https://"+S),!!new URL(S))}catch{return!1}}function Hh(ne){try{const S=this.question,z=ne[0]||void 0,O=S.data&&"name"in S.data;let P;O?P=S.data.name:P=S.name;const B=S.value,R=kh[P];if(R)return R(B,...ne.slice(1));const D=Fh[z];if(!D)throw new Error(`Validation function ${z} not found for question ${P}`);return D(B,...ne.slice(1))}catch(S){return console.error(S),!1}}Jn.Serializer.addProperty("itemvalue","customDescription:text");Jn.Serializer.addProperty("question","hideCheckboxLabels:boolean");function Zh({loadFrom:ne}){const[S,z]=at.useState(),{year:O,nren:P}=Ph(),[B,R]=at.useState("loading survey..."),{user:D}=at.useContext(Gu),h=!!D.id?D.permissions.admin:!1;Jn.FunctionFactory.Instance.hasFunction("validateQuestion")||Jn.FunctionFactory.Instance.register("validateQuestion",Hh),Jn.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||Jn.FunctionFactory.Instance.register("validateWebsiteUrl",Qh);const{trackPageView:w}=xh(),A=at.useCallback(be=>(be.preventDefault(),be.returnValue=""),[]),k=at.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+O+"/"+P)},[]),le=at.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+O+"/"+P),removeEventListener("beforeunload",A,{capture:!0}),removeEventListener("pagehide",k)},[]);if(at.useEffect(()=>{async function be(){const pe=await fetch(ne+O+(P?"/"+P:"")),x=await pe.json();if(!pe.ok)throw"message"in x?new Error(x.message):new Error(`Request failed with status ${pe.status}`);const we=new Jn.Model(x.model);we.setVariable("surveyyear",O),we.setVariable("previousyear",parseInt(O)-1),we.showNavigationButtons=!1,we.requiredText="",we.verificationStatus=new Map;for(const me in x.verification_status)we.verificationStatus.set(me,x.verification_status[me]);we.data=x.data,we.clearIncorrectValues(!0),we.currentPageNo=x.page,we.mode=x.mode,we.lockedBy=x.locked_by,we.status=x.status,we.editAllowed=x.edit_allowed,z(we)}be().catch(pe=>R("Error when loading survey: "+pe.message)).then(()=>{w({documentTitle:`Survey for ${P} (${O})`})})},[]),!S)return B;const $=async(be,pe)=>{if(!P)return"Saving not available in inpect/try mode";const x={lock_uuid:be.lockUUID,new_state:pe,data:be.data,page:be.currentPageNo,verification_status:Object.fromEntries(be.verificationStatus)};try{const we=await fetch("/api/response/save/"+O+"/"+P,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(x)}),me=await we.json();if(!we.ok)return me.message;S.mode=me.mode,S.lockedBy=me.locked_by,S.status=me.status}catch(we){return"Unknown Error: "+we.message}},ie=(be,pe=!0)=>{let x="";const we=(lt,Fe)=>{lt.verificationStatus.get(Fe.name)==yi.Unverified&&(x==""&&(x=Fe.name),Fe.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};pe&&S.onValidateQuestion.add(we);const me=be();return pe&&S.onValidateQuestion.remove(we),me||mt("Validation failed!"),me},ce={save:async()=>{if(!ie(S.validate.bind(S,!0,!0),!1)){mt("Please correct the invalid fields before saving!");return}const pe=await $(S,"editing");pe?mt("Failed saving survey: "+pe):mt("Survey saved!")},complete:async()=>{if(ie(S.validate.bind(S,!0,!0))){const pe=await $(S,"completed");pe?mt("Failed completing survey: "+pe):(mt("Survey completed!"),removeEventListener("beforeunload",A,{capture:!0}),removeEventListener("pagehide",k))}},saveAndStopEdit:async()=>{if(!ie(S.validate.bind(S,!0,!0),!1)){mt("Please correct the invalid fields before saving.");return}const pe=await $(S,"readonly");pe?mt("Failed saving survey: "+pe):(mt("Survey saved!"),removeEventListener("beforeunload",A,{capture:!0}),removeEventListener("pagehide",k))},startEdit:async()=>{const be=await fetch("/api/response/lock/"+O+"/"+P,{method:"POST"}),pe=await be.json();if(!be.ok){mt("Failed starting edit: "+pe.message);return}addEventListener("pagehide",k),addEventListener("beforeunload",A,{capture:!0});for(const we in pe.verification_status)S.verificationStatus.set(we,pe.verification_status[we]);if(S.data=pe.data,S.clearIncorrectValues(!0),S.mode=pe.mode,S.lockedBy=pe.locked_by,S.lockUUID=pe.lock_uuid,S.status=pe.status,!ie(S.validate.bind(S,!0,!0),!1)){mt("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const be=await fetch("/api/response/unlock/"+O+"/"+P,{method:"POST"}),pe=await be.json();if(!be.ok){mt("Failed releasing lock: "+pe.message);return}S.mode=pe.mode,S.lockedBy=pe.locked_by,S.status=pe.status},validatePage:()=>{ie(S.validatePage.bind(S))&&mt("Page validation successful!")}};S.css.question.title.includes("sv-header-flex")||(S.css.question.title="sv-title sv-question__title sv-header-flex",S.css.question.titleOnError="sv-question__title--error sv-error-color-fix");const We=be=>{S.currentPageNo=be};return de.jsxs(de.Fragment,{children:[h?de.jsx(Sh,{}):null,de.jsxs(xa,{className:"survey-container",children:[de.jsx(Vh,{}),de.jsx(_h,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:()=>S.mode=="edit"&&!!P,onPageExit:le}),de.jsx(Nh,{onPageChange:We,surveyModel:S,surveyActions:ce,year:O,nren:P,children:de.jsx(Ah,{surveyModel:S})})]})]})}export{Zh as default};
diff --git a/compendium_v2/static/SurveyContainerComponent-DxT_-mC9.js b/compendium_v2/static/SurveyContainerComponent-DxT_-mC9.js
new file mode 100644
index 0000000000000000000000000000000000000000..9fe4326d5ef804e557a2e433d66050b483d56bd6
--- /dev/null
+++ b/compendium_v2/static/SurveyContainerComponent-DxT_-mC9.js
@@ -0,0 +1,13 @@
+import{a3 as uo,a4 as lo,c as Re,r as F,j as L,C as co,E as ot,R as fe,a1 as Bn,a5 as po,a6 as ho,Q as fo}from"./index.js";import{D as mo,k as A}from"./index-BGZcCZJE.js";import{r as vo,a as ue}from"./survey.core-D1mOb2z9.js";import{V as we,v as yo,o as go}from"./validation-COFmylEH.js";import{S as Co}from"./SurveySidebar-CG0gwQ6b.js";import"./SideBar-CkoMfgfL.js";var be={exports:{}};/*!
+ * surveyjs - Survey JavaScript library v1.12.23
+ * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */var xo=be.exports,Pn;function wo(){return Pn||(Pn=1,function(I,l){(function(x,C){I.exports=C(uo(),lo(),vo())})(xo,function(m,x,C){return function(S){var h={};function d(a){if(h[a])return h[a].exports;var s=h[a]={i:a,l:!1,exports:{}};return S[a].call(s.exports,s,s.exports,d),s.l=!0,s.exports}return d.m=S,d.c=h,d.d=function(a,s,u){d.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:u})},d.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},d.t=function(a,s){if(s&1&&(a=d(a)),s&8||s&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(d.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),s&2&&typeof a!="string")for(var c in a)d.d(u,c,(function(y){return a[y]}).bind(null,c));return u},d.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return d.d(s,"a",s),s},d.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},d.p="",d(d.s="./src/entries/react-ui.ts")}({"./build/survey-core/icons/iconsV1.js":function(S,h,d){/*!
+ * surveyjs - Survey JavaScript library v1.12.23
+ * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */(function(s,u){S.exports=u()})(this,function(){return function(a){var s={};function u(c){if(s[c])return s[c].exports;var y=s[c]={i:c,l:!1,exports:{}};return a[c].call(y.exports,y,y.exports,u),y.l=!0,y.exports}return u.m=a,u.c=s,u.d=function(c,y,E){u.o(c,y)||Object.defineProperty(c,y,{enumerable:!0,get:E})},u.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},u.t=function(c,y){if(y&1&&(c=u(c)),y&8||y&4&&typeof c=="object"&&c&&c.__esModule)return c;var E=Object.create(null);if(u.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:c}),y&2&&typeof c!="string")for(var g in c)u.d(E,g,(function(w){return c[w]}).bind(null,g));return E},u.n=function(c){var y=c&&c.__esModule?function(){return c.default}:function(){return c};return u.d(y,"a",y),y},u.o=function(c,y){return Object.prototype.hasOwnProperty.call(c,y)},u.p="",u(u.s="./packages/survey-core/src/iconsV1.ts")}({"./packages/survey-core/src/iconsV1.ts":function(a,s,u){u.r(s),u.d(s,"icons",function(){return y});var c=u("./packages/survey-core/src/images-v1 sync recursive \\.svg$"),y={};c.keys().forEach(function(E){y[E.substring(2,E.length-4).toLowerCase()]=c(E)})},"./packages/survey-core/src/images-v1 sync recursive \\.svg$":function(a,s,u){var c={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v1/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v1/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v1/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v1/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v1/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v1/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v1/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v1/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v1/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v1/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v1/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v1/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v1/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v1/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v1/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v1/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v1/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v1/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v1/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v1/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v1/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v1/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v1/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v1/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v1/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v1/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v1/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v1/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v1/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v1/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v1/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v1/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v1/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v1/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v1/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v1/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v1/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v1/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v1/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v1/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v1/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v1/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v1/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg"};function y(g){var w=E(g);return u(w)}function E(g){if(!u.o(c,g)){var w=new Error("Cannot find module '"+g+"'");throw w.code="MODULE_NOT_FOUND",w}return c[g]}y.keys=function(){return Object.keys(c)},y.resolve=E,a.exports=y,y.id="./packages/survey-core/src/images-v1 sync recursive \\.svg$"},"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":function(a,s){a.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg":function(a,s){a.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg":function(a,s){a.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v1/ModernCheck.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernRadio.svg":function(a,s){a.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v1/ProgressButton.svg":function(a,s){a.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v1/RemoveFile.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v1/TimerCircle.svg":function(a,s){a.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v1/add-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 11H17V13H13V17H11V13H7V11H11V7H13V11ZM23 12C23 18.1 18.1 23 12 23C5.9 23 1 18.1 1 12C1 5.9 5.9 1 12 1C18.1 1 23 5.9 23 12ZM21 12C21 7 17 3 12 3C7 3 3 7 3 12C3 17 7 21 12 21C17 21 21 17 21 12Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowleft-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.4L8.7 13.3L7.3 14.7L0.599998 7.99999L7.3 1.29999L8.7 2.69999L4.4 6.99999H15V8.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowright-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-32x32.svg":function(a,s){a.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27 6H23.8C23.34 6 22.92 5.77 22.66 5.39L22.25 4.78C21.51 3.66 20.26 3 18.92 3H13.06C11.72 3 10.48 3.67 9.73 4.78L9.32 5.39C9.07 5.77 8.64 6 8.18 6H4.98C2.79 6 1 7.79 1 10V24C1 26.21 2.79 28 5 28H27C29.21 28 31 26.21 31 24V10C31 7.79 29.21 6 27 6ZM29 24C29 25.1 28.1 26 27 26H5C3.9 26 3 25.1 3 24V10C3 8.9 3.9 8 5 8H8.2C9.33 8 10.38 7.44 11 6.5L11.41 5.89C11.78 5.33 12.41 5 13.07 5H18.93C19.6 5 20.22 5.33 20.59 5.89L21 6.5C21.62 7.44 22.68 8 23.8 8H27C28.1 8 29 8.9 29 10V24ZM16 9C12.13 9 9 12.13 9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9ZM16 21C13.24 21 11 18.76 11 16C11 13.24 13.24 11 16 11C18.76 11 21 13.24 21 16C21 18.76 18.76 21 16 21ZM17 13C17 13.55 16.55 14 16 14C14.9 14 14 14.9 14 16C14 16.55 13.55 17 13 17C12.45 17 12 16.55 12 16C12 13.79 13.79 12 16 12C16.55 12 17 12.45 17 13Z"></path></svg>'},"./packages/survey-core/src/images-v1/cancel-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.003 14.413L0.292999 9.70303L1.703 8.29303L5.003 11.583L14.293 2.29303L15.703 3.70303L5.003 14.413Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevrondown-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevronright-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.64648 12.6465L6.34648 13.3465L11.7465 8.04648L6.34648 2.64648L5.64648 3.34648L10.2465 8.04648L5.64648 12.6465Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9.43 8.0025L13.7 3.7225C14.09 3.3325 14.09 2.6925 13.7 2.2925C13.31 1.9025 12.67 1.9025 12.27 2.2925L7.99 6.5725L3.72 2.3025C3.33 1.9025 2.69 1.9025 2.3 2.3025C1.9 2.6925 1.9 3.3325 2.3 3.7225L6.58 8.0025L2.3 12.2825C1.91 12.6725 1.91 13.3125 2.3 13.7125C2.69 14.1025 3.33 14.1025 3.73 13.7125L8.01 9.4325L12.29 13.7125C12.68 14.1025 13.32 14.1025 13.72 13.7125C14.11 13.3225 14.11 12.6825 13.72 12.2825L9.44 8.0025H9.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.4101 12L20.7001 4.71C21.0901 4.32 21.0901 3.69 20.7001 3.3C20.3101 2.91 19.6801 2.91 19.2901 3.3L12.0001 10.59L4.71006 3.29C4.32006 2.9 3.68006 2.9 3.29006 3.29C2.90006 3.68 2.90006 4.32 3.29006 4.71L10.5801 12L3.29006 19.29C2.90006 19.68 2.90006 20.31 3.29006 20.7C3.49006 20.9 3.74006 20.99 4.00006 20.99C4.26006 20.99 4.51006 20.89 4.71006 20.7L12.0001 13.41L19.2901 20.7C19.4901 20.9 19.7401 20.99 20.0001 20.99C20.2601 20.99 20.5101 20.89 20.7101 20.7C21.1001 20.31 21.1001 19.68 20.7101 19.29L13.4201 12H13.4101Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapse-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 6L3 5L8 10L13 5L14 6L8 12L2 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/delete-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./packages/survey-core/src/images-v1/drag-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16ZM9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg":function(a,s){a.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M18 9C19.1 9 20 9.9 20 11C20 12.1 19.1 13 18 13C16.9 13 16 12.1 16 11C16 9.9 16.9 9 18 9ZM20 5C20 3.9 19.1 3 18 3C16.9 3 16 3.9 16 5C16 6.1 16.9 7 18 7C19.1 7 20 6.1 20 5ZM14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11C10 12.1 10.9 13 12 13C13.1 13 14 12.1 14 11ZM14 5C14 3.9 13.1 3 12 3C10.9 3 10 3.9 10 5C10 6.1 10.9 7 12 7C13.1 7 14 6.1 14 5ZM8 11C8 9.9 7.1 9 6 9C4.9 9 4 9.9 4 11C4 12.1 4.9 13 6 13C7.1 13 8 12.1 8 11ZM8 5C8 3.9 7.1 3 6 3C4.9 3 4 3.9 4 5C4 6.1 4.9 7 6 7C7.1 7 8 6.1 8 5Z"></path></svg>'},"./packages/survey-core/src/images-v1/expand-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 14L5 13L10 8L5 3L6 2L12 8L6 14Z"></path></svg>'},"./packages/survey-core/src/images-v1/expanddetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/file-72x72.svg":function(a,s){a.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v1/flip-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M23 12.0037C23 14.2445 21.7794 16.3052 19.5684 17.8257C19.3984 17.9458 19.1983 18.0058 19.0082 18.0058C18.688 18.0058 18.3779 17.8557 18.1778 17.5756C17.8677 17.1155 17.9777 16.4953 18.4379 16.1852C20.0887 15.0448 21.0091 13.5643 21.0091 12.0138C21.0091 8.70262 16.9673 6.01171 12.005 6.01171C11.4948 6.01171 10.9945 6.04172 10.5043 6.09173L11.7149 7.30215C12.105 7.69228 12.105 8.32249 11.7149 8.71263C11.5148 8.9127 11.2647 9.00273 11.0045 9.00273C10.7444 9.00273 10.4943 8.90269 10.2942 8.71263L6.58254 5.00136L10.2842 1.2901C10.6744 0.899964 11.3047 0.899964 11.6949 1.2901C12.085 1.68023 12.085 2.31045 11.6949 2.70058L10.3042 4.09105C10.8545 4.03103 11.4147 4.00102 11.985 4.00102C18.0578 4.00102 22.99 7.59225 22.99 12.0037H23ZM12.2851 15.2949C11.895 15.685 11.895 16.3152 12.2851 16.7054L13.4957 17.9158C13.0055 17.9758 12.4952 17.9958 11.995 17.9958C7.03274 17.9958 2.99091 15.3049 2.99091 11.9937C2.99091 10.4332 3.90132 8.95271 5.56207 7.82232C6.02228 7.51222 6.13233 6.89201 5.82219 6.43185C5.51205 5.97169 4.89177 5.86166 4.43156 6.17176C2.22055 7.69228 1 9.76299 1 11.9937C1 16.4052 5.93224 19.9965 12.005 19.9965C12.5753 19.9965 13.1355 19.9665 13.6858 19.9064L12.2951 21.2969C11.905 21.6871 11.905 22.3173 12.2951 22.7074C12.4952 22.9075 12.7453 22.9975 13.0055 22.9975C13.2656 22.9975 13.5157 22.8975 13.7158 22.7074L17.4275 18.9961L13.7158 15.2849C13.3256 14.8947 12.6953 14.8947 12.3051 15.2849L12.2851 15.2949Z"></path></svg>'},"./packages/survey-core/src/images-v1/folder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.93 9H21V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H10L8 3H4C3.46957 3 2.96086 3.21071 2.58579 3.58579C2.21071 3.96086 2 4.46957 2 5L2 21H21L23.89 11.63C23.9916 11.3244 24.0179 10.9988 23.9667 10.6809C23.9155 10.363 23.7882 10.0621 23.5958 9.80392C23.4034 9.54571 23.1514 9.33779 22.8614 9.19782C22.5714 9.05786 22.2519 8.99 21.93 9ZM4 5H7.17L8.59 6.41L9.17 7H19V9H6L4 15V5ZM22 11L19.54 19H4.77L7.44 11H22Z"></path></svg>'},"./packages/survey-core/src/images-v1/fullsize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 13H4C2.9 13 2 12.1 2 11V5C2 3.9 2.9 3 4 3H12C13.1 3 14 3.9 14 5V11C14 12.1 13.1 13 12 13ZM4 5V11H12V5H4Z"></path></svg>'},"./packages/survey-core/src/images-v1/image-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M36 8H12C9.79 8 8 9.79 8 12V36C8 38.21 9.79 40 12 40H36C38.21 40 40 38.21 40 36V12C40 9.79 38.21 8 36 8ZM38 36C38 37.1 37.1 38 36 38H12C10.9 38 10 37.1 10 36V12C10 10.9 10.9 10 12 10H36C37.1 10 38 10.9 38 12V36ZM14 17C14 15.34 15.34 14 17 14C18.66 14 20 15.34 20 17C20 18.66 18.66 20 17 20C15.34 20 14 18.66 14 17ZM27 24L36 36H12L19 27L23 29L27 24Z"></path></svg>'},"./packages/survey-core/src/images-v1/loading-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/maximize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.71 10.71L4.42 13H6.01C6.56 13 7.01 13.45 7.01 14C7.01 14.55 6.56 15 6.01 15H2C1.45 15 1 14.55 1 14V10C1 9.45 1.45 9 2 9C2.55 9 3 9.45 3 10V11.59L5.29 9.3C5.68 8.91 6.31 8.91 6.7 9.3C7.09 9.69 7.09 10.32 6.7 10.71H6.71ZM14 1H10C9.45 1 9 1.45 9 2C9 2.55 9.45 3 10 3H11.59L9.3 5.29C8.91 5.68 8.91 6.31 9.3 6.7C9.5 6.9 9.75 6.99 10.01 6.99C10.27 6.99 10.52 6.89 10.72 6.7L13.01 4.41V6C13.01 6.55 13.46 7 14.01 7C14.56 7 15.01 6.55 15.01 6V2C15.01 1.45 14.56 1 14.01 1H14Z"></path></svg>'},"./packages/survey-core/src/images-v1/minimize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 9H3C2.45 9 2 8.55 2 8C2 7.45 2.45 7 3 7H13C13.55 7 14 7.45 14 8C14 8.55 13.55 9 13 9Z"></path></svg>'},"./packages/survey-core/src/images-v1/more-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/navmenu-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z"></path></svg>'},"./packages/survey-core/src/images-v1/noimage-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/ranking-arrows.svg":function(a,s){a.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-2.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small-2.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/rating-star.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/reorder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 5L12 0L7 5H11V9H13V5H17Z"></path><path d="M13 19V15H11V19H7L12 24L17 19H13Z"></path></svg>'},"./packages/survey-core/src/images-v1/restoredown-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 6C15 6.55 14.55 7 14 7H10C9.45 7 9 6.55 9 6V2C9 1.45 9.45 1 10 1C10.55 1 11 1.45 11 2V3.59L13.29 1.29C13.49 1.09 13.74 1 14 1C14.26 1 14.51 1.1 14.71 1.29C15.1 1.68 15.1 2.31 14.71 2.7L12.42 4.99H14.01C14.56 4.99 15.01 5.44 15.01 5.99L15 6ZM6 9H2C1.45 9 0.999998 9.45 0.999998 10C0.999998 10.55 1.45 11 2 11H3.59L1.29 13.29C0.899998 13.68 0.899998 14.31 1.29 14.7C1.68 15.09 2.31 15.09 2.7 14.7L4.99 12.41V14C4.99 14.55 5.44 15 5.99 15C6.54 15 6.99 14.55 6.99 14V10C6.99 9.45 6.54 9 5.99 9H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/search-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})})},"./build/survey-core/icons/iconsV2.js":function(S,h,d){/*!
+ * surveyjs - Survey JavaScript library v1.12.23
+ * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */(function(s,u){S.exports=u()})(this,function(){return function(a){var s={};function u(c){if(s[c])return s[c].exports;var y=s[c]={i:c,l:!1,exports:{}};return a[c].call(y.exports,y,y.exports,u),y.l=!0,y.exports}return u.m=a,u.c=s,u.d=function(c,y,E){u.o(c,y)||Object.defineProperty(c,y,{enumerable:!0,get:E})},u.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},u.t=function(c,y){if(y&1&&(c=u(c)),y&8||y&4&&typeof c=="object"&&c&&c.__esModule)return c;var E=Object.create(null);if(u.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:c}),y&2&&typeof c!="string")for(var g in c)u.d(E,g,(function(w){return c[w]}).bind(null,g));return E},u.n=function(c){var y=c&&c.__esModule?function(){return c.default}:function(){return c};return u.d(y,"a",y),y},u.o=function(c,y){return Object.prototype.hasOwnProperty.call(c,y)},u.p="",u(u.s="./packages/survey-core/src/iconsV2.ts")}({"./packages/survey-core/src/iconsV2.ts":function(a,s,u){u.r(s),u.d(s,"icons",function(){return y});var c=u("./packages/survey-core/src/images-v2 sync recursive \\.svg$"),y={};c.keys().forEach(function(E){y[E.substring(2,E.length-4).toLowerCase()]=c(E)})},"./packages/survey-core/src/images-v2 sync recursive \\.svg$":function(a,s,u){var c={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v2/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v2/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v2/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v2/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v2/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v2/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v2/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v2/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v2/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v2/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v2/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v2/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v2/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v2/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v2/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v2/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v2/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v2/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v2/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v2/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v2/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v2/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v2/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v2/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v2/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v2/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v2/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v2/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v2/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v2/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v2/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v2/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v2/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v2/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v2/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v2/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v2/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v2/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v2/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v2/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v2/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v2/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v2/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg"};function y(g){var w=E(g);return u(w)}function E(g){if(!u.o(c,g)){var w=new Error("Cannot find module '"+g+"'");throw w.code="MODULE_NOT_FOUND",w}return c[g]}y.keys=function(){return Object.keys(c)},y.resolve=E,a.exports=y,y.id="./packages/survey-core/src/images-v2 sync recursive \\.svg$"},"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":function(a,s){a.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg":function(a,s){a.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg":function(a,s){a.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v2/ModernCheck.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernRadio.svg":function(a,s){a.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v2/ProgressButton.svg":function(a,s){a.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v2/RemoveFile.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v2/TimerCircle.svg":function(a,s){a.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v2/add-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowleft-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowright-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-32x32.svg":function(a,s){a.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z"></path></svg>'},"./packages/survey-core/src/images-v2/cancel-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.8099 11.75L15.2799 9.28C15.5699 8.99 15.5699 8.51 15.2799 8.22C14.9899 7.93 14.5099 7.93 14.2199 8.22L11.7499 10.69L9.27994 8.22C8.98994 7.93 8.50994 7.93 8.21994 8.22C7.92994 8.51 7.92994 8.99 8.21994 9.28L10.6899 11.75L8.21994 14.22C7.92994 14.51 7.92994 14.99 8.21994 15.28C8.36994 15.43 8.55994 15.5 8.74994 15.5C8.93994 15.5 9.12994 15.43 9.27994 15.28L11.7499 12.81L14.2199 15.28C14.3699 15.43 14.5599 15.5 14.7499 15.5C14.9399 15.5 15.1299 15.43 15.2799 15.28C15.5699 14.99 15.5699 14.51 15.2799 14.22L12.8099 11.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.0275 5.0275L6.5275 12.5275C6.3775 12.6775 6.1875 12.7475 5.9975 12.7475C5.8075 12.7475 5.6175 12.6775 5.4675 12.5275L2.4675 9.5275C2.1775 9.2375 2.1775 8.7575 2.4675 8.4675C2.7575 8.1775 3.2375 8.1775 3.5275 8.4675L5.9975 10.9375L12.9675 3.9675C13.2575 3.6775 13.7375 3.6775 14.0275 3.9675C14.3175 4.2575 14.3175 4.7375 14.0275 5.0275Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevrondown-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevronright-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.35 8.34627L7.35 12.3463C7.25 12.4463 7.12 12.4963 7 12.4963C6.88 12.4963 6.74 12.4463 6.65 12.3463C6.45 12.1463 6.45 11.8363 6.65 11.6363L10.3 7.98627L6.65 4.34627C6.45 4.15627 6.45 3.83627 6.65 3.64627C6.85 3.45627 7.16 3.44627 7.35 3.64627L11.35 7.64627C11.55 7.84627 11.55 8.15627 11.35 8.35627V8.34627Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.35 11.65C12.55 11.85 12.55 12.16 12.35 12.36C12.25 12.46 12.12 12.51 12 12.51C11.88 12.51 11.74 12.46 11.65 12.36L8 8.71L4.35 12.36C4.25 12.46 4.12 12.51 4 12.51C3.88 12.51 3.74 12.46 3.65 12.36C3.45 12.16 3.45 11.85 3.65 11.65L7.3 8L3.65 4.35C3.45 4.16 3.45 3.84 3.65 3.65C3.85 3.46 4.16 3.45 4.35 3.65L8 7.3L11.65 3.65C11.85 3.45 12.16 3.45 12.36 3.65C12.56 3.85 12.56 4.16 12.36 4.36L8.71 8.01L12.36 11.66L12.35 11.65Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.12 10.9325C20.64 10.4125 20.93 9.7225 20.93 8.9925C20.93 8.2625 20.64 7.5725 20.12 7.0525L16.95 3.8825C15.88 2.8125 14.13 2.8125 13.06 3.8825L3.88 13.0525C3.36 13.5725 3.07 14.2625 3.07 14.9925C3.07 15.7225 3.36 16.4125 3.88 16.9325L5.64 18.6925C6.57 19.6225 7.78 20.0825 9 20.0825C10.22 20.0825 11.43 19.6225 12.36 18.6925L20.12 10.9325ZM14.12 4.9325C14.36 4.6925 14.67 4.5625 15 4.5625C15.33 4.5625 15.65 4.6925 15.88 4.9325L19.05 8.1025C19.54 8.5925 19.54 9.3825 19.05 9.8725L12.99 15.9325L8.05 10.9925L14.12 4.9325ZM6.7 17.6325L4.94 15.8725C4.45 15.3825 4.45 14.5925 4.94 14.1025L7 12.0425L11.94 16.9825L11.3 17.6225C10.07 18.8525 7.93 18.8525 6.7 17.6225V17.6325ZM22.75 20.9925C22.75 21.4025 22.41 21.7425 22 21.7425H14C13.59 21.7425 13.25 21.4025 13.25 20.9925C13.25 20.5825 13.59 20.2425 14 20.2425H22C22.41 20.2425 22.75 20.5825 22.75 20.9925ZM4.75 20.9925C4.75 21.4025 4.41 21.7425 4 21.7425H2C1.59 21.7425 1.25 21.4025 1.25 20.9925C1.25 20.5825 1.59 20.2425 2 20.2425H4C4.41 20.2425 4.75 20.5825 4.75 20.9925Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.5275 12.4675C13.8175 12.7575 13.8175 13.2375 13.5275 13.5275C13.3775 13.6775 13.1875 13.7475 12.9975 13.7475C12.8075 13.7475 12.6175 13.6775 12.4675 13.5275L7.9975 9.0575L3.5275 13.5275C3.3775 13.6775 3.1875 13.7475 2.9975 13.7475C2.8075 13.7475 2.6175 13.6775 2.4675 13.5275C2.1775 13.2375 2.1775 12.7575 2.4675 12.4675L6.9375 7.9975L2.4675 3.5275C2.1775 3.2375 2.1775 2.7575 2.4675 2.4675C2.7575 2.1775 3.2375 2.1775 3.5275 2.4675L7.9975 6.9375L12.4675 2.4675C12.7575 2.1775 13.2375 2.1775 13.5275 2.4675C13.8175 2.7575 13.8175 3.2375 13.5275 3.5275L9.0575 7.9975L13.5275 12.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapse-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/delete-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/drag-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.19 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg":function(a,s){a.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/expand-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/expanddetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/file-72x72.svg":function(a,s){a.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v2/flip-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 17.4775C14.82 17.7675 14.82 18.2475 14.53 18.5375L11.53 21.5375C11.38 21.6875 11.19 21.7575 11 21.7575C10.81 21.7575 10.62 21.6875 10.47 21.5375C10.18 21.2475 10.18 20.7675 10.47 20.4775L12.2 18.7475C12.13 18.7475 12.07 18.7475 12 18.7475C6.62 18.7475 2.25 15.7475 2.25 12.0575C2.25 10.2975 3.22 8.6375 4.99 7.3875C5.33 7.1475 5.8 7.2275 6.03 7.5675C6.27 7.9075 6.19 8.3775 5.85 8.6075C4.49 9.5675 3.74 10.7875 3.74 12.0575C3.74 14.9175 7.44 17.2475 11.99 17.2475C12.05 17.2475 12.11 17.2475 12.17 17.2475L10.46 15.5375C10.17 15.2475 10.17 14.7675 10.46 14.4775C10.75 14.1875 11.23 14.1875 11.52 14.4775L14.52 17.4775H14.53ZM12 5.2575C11.93 5.2575 11.87 5.2575 11.8 5.2575L13.53 3.5275C13.82 3.2375 13.82 2.7575 13.53 2.4675C13.24 2.1775 12.76 2.1775 12.47 2.4675L9.47 5.4675C9.18 5.7575 9.18 6.2375 9.47 6.5275L12.47 9.5275C12.62 9.6775 12.81 9.7475 13 9.7475C13.19 9.7475 13.38 9.6775 13.53 9.5275C13.82 9.2375 13.82 8.7575 13.53 8.4675L11.82 6.7575C11.88 6.7575 11.94 6.7575 12 6.7575C16.55 6.7575 20.25 9.0875 20.25 11.9475C20.25 13.2075 19.5 14.4375 18.14 15.3975C17.8 15.6375 17.72 16.1075 17.96 16.4475C18.11 16.6575 18.34 16.7675 18.57 16.7675C18.72 16.7675 18.87 16.7275 19 16.6275C20.77 15.3775 21.75 13.7175 21.75 11.9575C21.75 8.2675 17.38 5.2675 12 5.2675V5.2575Z"></path></svg>'},"./packages/survey-core/src/images-v2/folder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.72 9.24C21.45 8.92 21.12 8.67 20.75 8.5V8C20.75 6.48 19.52 5.25 18 5.25H10.65C10.32 4.1 9.26 3.25 8 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18.33C19.66 20.75 20.8 19.8 21.04 18.49L22.31 11.49C22.46 10.69 22.24 9.86 21.72 9.24ZM4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H8C8.69 4.75 9.25 5.31 9.25 6C9.25 6.41 9.59 6.75 10 6.75H18C18.69 6.75 19.25 7.31 19.25 8V8.25H9.27C7.94 8.25 6.8 9.2 6.56 10.51L5.29 17.51C5.19 18.07 5.27 18.64 5.51 19.15C5.06 18.96 4.75 18.52 4.75 18ZM20.83 11.22L19.56 18.22C19.45 18.81 18.94 19.25 18.33 19.25H8C7.63 19.25 7.28 19.09 7.04 18.8C6.8 18.51 6.7 18.14 6.77 17.78L8.04 10.78C8.15 10.19 8.66 9.75 9.27 9.75H19.6C19.97 9.75 20.32 9.91 20.56 10.2C20.8 10.49 20.9 10.86 20.83 11.22Z"></path></svg>'},"./packages/survey-core/src/images-v2/fullsize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.25H4C3.04 3.25 2.25 4.04 2.25 5V11C2.25 11.96 3.04 12.75 4 12.75H12C12.96 12.75 13.75 11.96 13.75 11V5C13.75 4.04 12.96 3.25 12 3.25ZM12.25 11C12.25 11.14 12.14 11.25 12 11.25H4C3.86 11.25 3.75 11.14 3.75 11V5C3.75 4.86 3.86 4.75 4 4.75H12C12.14 4.75 12.25 4.86 12.25 5V11Z"></path></svg>'},"./packages/survey-core/src/images-v2/image-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z"></path></svg>'},"./packages/survey-core/src/images-v2/loading-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/maximize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z"></path></svg>'},"./packages/survey-core/src/images-v2/minimize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/more-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/navmenu-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/noimage-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/ranking-arrows.svg":function(a,s){a.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-2.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small-2.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/rating-star.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/reorder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.9444 10.75H15.0544C15.7144 10.75 16.3144 10.39 16.6144 9.80002C16.9144 9.22002 16.8644 8.52002 16.4844 7.98002L13.4244 3.71002C12.7644 2.79002 11.2344 2.79002 10.5744 3.71002L7.5244 7.99002C7.1444 8.53002 7.0944 9.22002 7.3944 9.81002C7.6944 10.4 8.2944 10.76 8.9544 10.76L8.9444 10.75ZM8.7444 8.86002L11.7944 4.58002C11.8644 4.49002 11.9544 4.48002 11.9944 4.48002C12.0344 4.48002 12.1344 4.49002 12.1944 4.58002L15.2544 8.86002C15.3344 8.97002 15.3044 9.07002 15.2744 9.12002C15.2444 9.17002 15.1844 9.26002 15.0544 9.26002H8.9444C8.8144 9.26002 8.7444 9.18002 8.7244 9.12002C8.7044 9.06002 8.6644 8.97002 8.7444 8.86002ZM15.0544 13.25H8.9444C8.2844 13.25 7.6844 13.61 7.3844 14.2C7.0844 14.78 7.1344 15.48 7.5144 16.02L10.5744 20.3C10.9044 20.76 11.4344 21.03 11.9944 21.03C12.5544 21.03 13.0944 20.76 13.4144 20.3L16.4744 16.02C16.8544 15.48 16.9044 14.79 16.6044 14.2C16.3044 13.61 15.7044 13.25 15.0444 13.25H15.0544ZM15.2644 15.15L12.2044 19.43C12.0744 19.61 11.9244 19.61 11.7944 19.43L8.7344 15.15C8.6544 15.04 8.6844 14.94 8.7144 14.89C8.7444 14.84 8.8044 14.75 8.9344 14.75H15.0444C15.1744 14.75 15.2444 14.83 15.2644 14.89C15.2844 14.95 15.3244 15.04 15.2444 15.15H15.2644Z"></path></svg>'},"./packages/survey-core/src/images-v2/restoredown-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.69 8.71C7.73 8.8 7.75 8.9 7.75 9V13C7.75 13.41 7.41 13.75 7 13.75C6.59 13.75 6.25 13.41 6.25 13V10.81L3.53 13.53C3.38 13.68 3.19 13.75 3 13.75C2.81 13.75 2.62 13.68 2.47 13.53C2.18 13.24 2.18 12.76 2.47 12.47L5.19 9.75H3C2.59 9.75 2.25 9.41 2.25 9C2.25 8.59 2.59 8.25 3 8.25H7C7.1 8.25 7.19 8.27 7.29 8.31C7.47 8.39 7.62 8.53 7.7 8.72L7.69 8.71ZM13 6.25H10.81L13.53 3.53C13.82 3.24 13.82 2.76 13.53 2.47C13.24 2.18 12.76 2.18 12.47 2.47L9.75 5.19V3C9.75 2.59 9.41 2.25 9 2.25C8.59 2.25 8.25 2.59 8.25 3V7C8.25 7.1 8.27 7.19 8.31 7.29C8.39 7.47 8.53 7.62 8.72 7.7C8.81 7.74 8.91 7.76 9.01 7.76H13.01C13.42 7.76 13.76 7.42 13.76 7.01C13.76 6.6 13.42 6.26 13.01 6.26L13 6.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/search-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.9975 2.25C9.7275 2.25 6.2475 5.73 6.2475 10C6.2475 11.87 6.9075 13.58 8.0175 14.92L2.4675 20.47C2.1775 20.76 2.1775 21.24 2.4675 21.53C2.6175 21.68 2.8075 21.75 2.9975 21.75C3.1875 21.75 3.3775 21.68 3.5275 21.53L9.0775 15.98C10.4175 17.08 12.1275 17.75 13.9975 17.75C18.2675 17.75 21.7475 14.27 21.7475 10C21.7475 5.73 18.2675 2.25 13.9975 2.25ZM13.9975 16.25C10.5475 16.25 7.7475 13.45 7.7475 10C7.7475 6.55 10.5475 3.75 13.9975 3.75C17.4475 3.75 20.2475 6.55 20.2475 10C20.2475 13.45 17.4475 16.25 13.9975 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})})},"./src/entries/react-ui.ts":function(S,h,d){d.r(h),d.d(h,"Survey",function(){return Te}),d.d(h,"attachKey2click",function(){return Se}),d.d(h,"ReactSurveyElementsWrapper",function(){return y}),d.d(h,"SurveyNavigationBase",function(){return Oe}),d.d(h,"SurveyTimerPanel",function(){return ft}),d.d(h,"SurveyPage",function(){return ct}),d.d(h,"SurveyRow",function(){return R}),d.d(h,"SurveyPanel",function(){return pe}),d.d(h,"SurveyFlowPanel",function(){return mt}),d.d(h,"SurveyQuestion",function(){return ce}),d.d(h,"SurveyElementErrors",function(){return ye}),d.d(h,"SurveyQuestionAndErrorsCell",function(){return ut}),d.d(h,"ReactSurveyElement",function(){return w}),d.d(h,"SurveyElementBase",function(){return g}),d.d(h,"SurveyQuestionElementBase",function(){return P}),d.d(h,"SurveyQuestionCommentItem",function(){return ke}),d.d(h,"SurveyQuestionComment",function(){return st}),d.d(h,"SurveyQuestionCheckbox",function(){return yt}),d.d(h,"SurveyQuestionCheckboxItem",function(){return De}),d.d(h,"SurveyQuestionRanking",function(){return gt}),d.d(h,"SurveyQuestionRankingItem",function(){return Ct}),d.d(h,"SurveyQuestionRankingItemContent",function(){return xt}),d.d(h,"RatingItem",function(){return Et}),d.d(h,"RatingItemStar",function(){return qt}),d.d(h,"RatingItemSmiley",function(){return St}),d.d(h,"RatingDropdownItem",function(){return Ot}),d.d(h,"TagboxFilterString",function(){return Ae}),d.d(h,"SurveyQuestionOptionItem",function(){return Lt}),d.d(h,"SurveyQuestionDropdownBase",function(){return Le}),d.d(h,"SurveyQuestionDropdown",function(){return Ze}),d.d(h,"SurveyQuestionTagboxItem",function(){return Mt}),d.d(h,"SurveyQuestionTagbox",function(){return It}),d.d(h,"SurveyQuestionDropdownSelect",function(){return bt}),d.d(h,"SurveyQuestionMatrix",function(){return Rt}),d.d(h,"SurveyQuestionMatrixRow",function(){return Pt}),d.d(h,"SurveyQuestionMatrixCell",function(){return Nt}),d.d(h,"SurveyQuestionHtml",function(){return kt}),d.d(h,"SurveyQuestionFile",function(){return jt}),d.d(h,"SurveyFileChooseButton",function(){return We}),d.d(h,"SurveyFilePreview",function(){return Ht}),d.d(h,"SurveyQuestionMultipleText",function(){return Tt}),d.d(h,"SurveyQuestionRadiogroup",function(){return Vt}),d.d(h,"SurveyQuestionRadioItem",function(){return ze}),d.d(h,"SurveyQuestionText",function(){return _t}),d.d(h,"SurveyQuestionBoolean",function(){return Me}),d.d(h,"SurveyQuestionBooleanCheckbox",function(){return At}),d.d(h,"SurveyQuestionBooleanRadio",function(){return Zt}),d.d(h,"SurveyQuestionEmpty",function(){return Qt}),d.d(h,"SurveyQuestionMatrixDropdownCell",function(){return Wt}),d.d(h,"SurveyQuestionMatrixDropdownBase",function(){return Je}),d.d(h,"SurveyQuestionMatrixDropdown",function(){return Ut}),d.d(h,"SurveyQuestionMatrixDynamic",function(){return Kt}),d.d(h,"SurveyQuestionMatrixDynamicAddButton",function(){return $t}),d.d(h,"SurveyQuestionPanelDynamic",function(){return Xt}),d.d(h,"SurveyProgress",function(){return Ce}),d.d(h,"SurveyProgressButtons",function(){return en}),d.d(h,"SurveyProgressToc",function(){return nn}),d.d(h,"SurveyQuestionRating",function(){return rn}),d.d(h,"SurveyQuestionRatingDropdown",function(){return on}),d.d(h,"SurveyQuestionExpression",function(){return sn}),d.d(h,"PopupSurvey",function(){return un}),d.d(h,"SurveyWindow",function(){return Wr}),d.d(h,"ReactQuestionFactory",function(){return k}),d.d(h,"ReactElementFactory",function(){return c}),d.d(h,"SurveyQuestionImagePicker",function(){return cn}),d.d(h,"SurveyQuestionImage",function(){return pn}),d.d(h,"SurveyQuestionSignaturePad",function(){return dn}),d.d(h,"SurveyQuestionButtonGroup",function(){return $r}),d.d(h,"SurveyQuestionCustom",function(){return mn}),d.d(h,"SurveyQuestionComposite",function(){return vn}),d.d(h,"Popup",function(){return Q}),d.d(h,"ListItemContent",function(){return yn}),d.d(h,"ListItemGroup",function(){return gn}),d.d(h,"List",function(){return et}),d.d(h,"TitleActions",function(){return G}),d.d(h,"TitleElement",function(){return Y}),d.d(h,"SurveyActionBar",function(){return T}),d.d(h,"LogoImage",function(){return Cn}),d.d(h,"SurveyHeader",function(){return je}),d.d(h,"SvgIcon",function(){return M}),d.d(h,"SurveyQuestionMatrixDynamicRemoveButton",function(){return xn}),d.d(h,"SurveyQuestionMatrixDetailButton",function(){return wn}),d.d(h,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return $e}),d.d(h,"SurveyQuestionPanelDynamicAddButton",function(){return Gt}),d.d(h,"SurveyQuestionPanelDynamicRemoveButton",function(){return En}),d.d(h,"SurveyQuestionPanelDynamicPrevButton",function(){return Ye}),d.d(h,"SurveyQuestionPanelDynamicNextButton",function(){return Ge}),d.d(h,"SurveyQuestionPanelDynamicProgressText",function(){return Xe}),d.d(h,"SurveyNavigationButton",function(){return qn}),d.d(h,"QuestionErrorComponent",function(){return Sn}),d.d(h,"MatrixRow",function(){return Ke}),d.d(h,"Skeleton",function(){return On}),d.d(h,"NotifierComponent",function(){return Be}),d.d(h,"ComponentsContainer",function(){return z}),d.d(h,"CharacterCounterComponent",function(){return Ee}),d.d(h,"HeaderMobile",function(){return Ln}),d.d(h,"HeaderCell",function(){return Mn}),d.d(h,"Header",function(){return In}),d.d(h,"SurveyLocStringViewer",function(){return tt}),d.d(h,"SurveyLocStringEditor",function(){return bn}),d.d(h,"LoadingIndicatorComponent",function(){return Fe}),d.d(h,"SvgBundleComponent",function(){return pt}),d.d(h,"PopupModal",function(){return dt}),d.d(h,"SurveyModel",function(){return a.SurveyModel}),d.d(h,"SurveyWindowModel",function(){return a.SurveyWindowModel}),d.d(h,"Model",function(){return a.SurveyModel}),d.d(h,"settings",function(){return a.settings}),d.d(h,"surveyLocalization",function(){return a.surveyLocalization}),d.d(h,"surveyStrings",function(){return a.surveyStrings});var a=d("survey-core"),s=d("react"),u=d.n(s),c=function(){function r(){this.creatorHash={}}return r.prototype.registerElement=function(t,e){this.creatorHash[t]=e},r.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},r.prototype.isElementRegistered=function(t){return!!this.creatorHash[t]},r.prototype.createElement=function(t,e){var n=this.creatorHash[t];return n==null?null:n(e)},r.Instance=new r,r}(),y=function(){function r(){}return r.wrapRow=function(t,e,n){var o=t.getRowWrapperComponentName(n),i=t.getRowWrapperComponentData(n);return c.Instance.createElement(o,{element:e,row:n,componentData:i})},r.wrapElement=function(t,e,n){var o=t.getElementWrapperComponentName(n),i=t.getElementWrapperComponentData(n);return c.Instance.createElement(o,{element:e,question:n,componentData:i})},r.wrapQuestionContent=function(t,e,n){var o=t.getQuestionContentWrapperComponentName(n),i=t.getElementWrapperComponentData(n);return c.Instance.createElement(o,{element:e,question:n,componentData:i})},r.wrapItemValue=function(t,e,n,o){var i=t.getItemValueWrapperComponentName(o,n),p=t.getItemValueWrapperComponentData(o,n);return c.Instance.createElement(i,{key:e==null?void 0:e.key,element:e,question:n,item:o,componentData:p})},r.wrapMatrixCell=function(t,e,n,o){o===void 0&&(o="cell");var i=t.getElementWrapperComponentName(n,o),p=t.getElementWrapperComponentData(n,o);return c.Instance.createElement(i,{element:e,cell:n,componentData:p})},r}();a.SurveyModel.platform="react";var E=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),g=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n._allowComponentUpdate=!0,n.prevStateElements=[],n}return t.renderLocString=function(e,n,o){return n===void 0&&(n=null),c.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:n,key:o})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return s.createElement("div",{style:e.hasDescription?void 0:{display:"none"},id:e.ariaDescriptionId,className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())},t.prototype.componentDidUpdate=function(e,n){var o;this.makeBaseElementsReact();var i=this.getStateElements();this.disableStateElementsRerenderEvent(((o=this.prevStateElements)!==null&&o!==void 0?o:[]).filter(function(p){return!i.includes(p)})),this.prevStateElements=[],this.getStateElements().forEach(function(p){p.afterRerender()})},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,n){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=this.getRenderedElements(),n=0,o=e;n<o.length;n++){var i=o[n];if(i.reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var n=this.getRenderedElements(),o=0,i=n;o<i.length;o++){var p=i[o];p.reactRendering||(p.reactRendering=0),p.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),n=0;n<e.length;n++)e[n].enableOnElementRerenderedEvent(),this.makeBaseElementReact(e[n])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),n=0;n<e.length;n++)this.unMakeBaseElementReact(e[n])},t.prototype.disableStateElementsRerenderEvent=function(e){e.forEach(function(n){n.disableOnElementRerenderedEvent()})},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){var e=this.props;return e.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,o){return n===void 0&&(n=null),t.renderLocString(e,n,o)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var n=this;this.canMakeReact(e)&&(e.iteratePropertiesHash(function(o,i){if(n.canUsePropInState(i)){var p=o[i];if(Array.isArray(p)){var p=p;p.onArrayChanged=function(v){n.isRendering||(n.changedStatePropNameValue=i,n.setState(function(b){var q={};return q[i]=p,q}))}}}}),e.setPropertyValueCoreHandler=function(o,i,p){if(o[i]!==p){if(o[i]=p,!n.canUsePropInState(i)||n.isRendering)return;n.changedStatePropNameValue=i,n.setState(function(f){var v={};return v[i]=p,v})}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash(function(n,o){var i=n[o];if(Array.isArray(i)){var i=i;i.onArrayChanged=function(){}}}))},t}(s.Component),w=function(r){E(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(g),P=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.questionBase){var e=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(e),e&&e.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.content||this.control;e&&e.getAttribute("data-rendered")!=="r"&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.isDefaultRender||!!this.questionBase.customWidget.widgetJson.render:!1},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){var e=this.props;return e.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,n,o){if(!o)return n;var i=this.questionBase.survey,p=null;return i&&(p=y.wrapMatrixCell(i,n,e,o)),p??n},t.prototype.setControl=function(e){e&&(this.control=e)},t.prototype.setContent=function(e){e&&(this.content=e)},t}(g),D=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.updateValueOnEvent=function(o){a.Helpers.isTwoValueEquals(n.questionBase.value,o.target.value,!1,!0,!1)||n.setValueCore(o.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var e=this.control,n=this.getValueCore();a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.getValue(n))}r.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return a.Helpers.isValueEmpty(e)?"":e},t}(P),N=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),O=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.element.cssClasses,n.rootRef=s.createRef(),n}return t.prototype.getStateElement=function(){return this.element},Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.element!==this.element&&(e.element&&e.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0):!1},t.prototype.renderElement=function(){var e=this.element,n=this.createElement(e,this.index),o=e.cssClassesValue,i=function(){var p=e;p&&p.isQuestion&&p.focusIn()};return s.createElement("div",{className:o.questionWrapper,style:e.rootStyle,"data-key":n.key,key:n.key,onFocus:i,ref:this.rootRef},n)},t.prototype.createElement=function(e,n){var o=n?"-"+n:0;if(!this.row.isNeedRender)return c.Instance.createElement(e.skeletonComponentName,{key:e.name+o,element:e,css:this.css});var i=e.getTemplate();return c.Instance.isElementRegistered(i)||(i="question"),c.Instance.createElement(i,{key:e.name+o,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(g),B=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),R=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n.recalculateCss(),n}return t.prototype.recalculateCss=function(){this.row.visibleElements.map(function(e){return e.cssClasses})},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},t.prototype.renderElementContent=function(){var e=this,n=this.row.visibleElements.map(function(o,i){var p=i?"-"+i:0,f=o.name+p;return s.createElement(O,{element:o,index:i,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:f})});return s.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},n)},t.prototype.renderElement=function(){var e=this.survey,n=this.renderElementContent(),o=y.wrapRow(e,n,this.row);return o||n},t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var o=n;setTimeout(function(){e.row.startLazyRendering(o)},10)}},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.row!==this.row&&(e.row.isNeedRender=this.row.isNeedRender,e.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0):!1},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},t.prototype.createElement=function(e,n){var o=n?"-"+n:0,i=e.getType();return c.Instance.isElementRegistered(i)||(i="question"),c.Instance.createElement(i,{key:e.name+o,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(g),H=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n}return t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(e){return e!=="elements"&&r.prototype.canUsePropInState.call(this,e)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),!(e.page&&this.survey&&this.survey.activePage&&e.page.id===this.survey.activePage.id)&&this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(e):this.survey.afterRenderPage(e))},t.prototype.getIsVisible=function(){return this.panelBase.isVisible},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},t.prototype.renderRows=function(e){var n=this;return this.panelBase.visibleRows.map(function(o){return n.createRow(o,e)})},t.prototype.createRow=function(e,n){return s.createElement(R,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:n})},t}(g),Z=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),M=function(r){Z(t,r);function t(e){var n=r.call(this,e)||this;return n.svgIconRef=u.a.createRef(),n}return t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?u.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},u.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(u.a.Component);c.Instance.registerElement("sv-svg-icon",function(r){return u.a.createElement(M,r)});var le=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ie=function(r){le(t,r);function t(e){return r.call(this,e)||this}return t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return u.a.createElement("div",{className:e})},t}(u.a.Component);c.Instance.registerElement("sv-action-bar-separator",function(r){return u.a.createElement(ie,r)});var K=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$=function(r){K(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),n=this.item.needSeparator?u.a.createElement(ie,null):null,o=c.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return u.a.createElement("div",{className:e,id:this.item.id},u.a.createElement("div",{className:"sv-action__content"},n,o))},t}(g),ae=function(r){K(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return u.a.createElement(u.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return u.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),n=this.item.iconName?u.a.createElement(M,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return u.a.createElement(u.a.Fragment,null,n,e)},t.prototype.renderInnerButton=function(){var e=this,n=this.item.getActionBarItemCss(),o=this.item.tooltip||this.item.title,i=this.renderButtonContent(),p=this.item.disableTabStop?-1:void 0,f=Se(u.a.createElement("button",{className:n,type:"button",disabled:this.item.disabled,onMouseDown:function(v){return e.item.doMouseDown(v)},onFocus:function(v){return e.item.doFocus(v)},onClick:function(v){return e.item.doAction(v)},title:o,tabIndex:p,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},i),this.item,{processEsc:!1});return f},t}(g);c.Instance.registerElement("sv-action-bar-item",function(r){return u.a.createElement(ae,r)});var W=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Q=function(r){W(t,r);function t(e){var n=r.call(this,e)||this;return n.containerRef=u.a.createRef(),n.createModel(),n}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(a.createPopupViewModel)(this.props.model)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},t.prototype.shouldComponentUpdate=function(e,n){var o;if(!r.prototype.shouldComponentUpdate.call(this,e,n))return!1;var i=e.model!==this.popup.model;return i&&((o=this.popup)===null||o===void 0||o.dispose(),this.createModel()),i},t.prototype.render=function(){this.popup.model=this.model;var e;return this.model.isModal?e=u.a.createElement(U,{model:this.popup}):e=u.a.createElement(ee,{model:this.popup}),u.a.createElement("div",{ref:this.containerRef},e)},t}(g);c.Instance.registerElement("sv-popup",function(r){return u.a.createElement(Q,r)});var U=function(r){W(t,r);function t(e){var n=r.call(this,e)||this;return n.handleKeydown=function(o){n.model.onKeyDown(o)},n.clickInside=function(o){o.stopPropagation()},n}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},t.prototype.renderContainer=function(e){var n=this,o=e.showHeader?this.renderHeaderPopup(e):null,i=e.title?this.renderHeaderContent():null,p=this.renderContent(),f=e.showFooter?this.renderFooter(this.model):null;return u.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(v){n.clickInside(v)}},o,u.a.createElement("div",{className:"sv-popup__body-content"},i,u.a.createElement("div",{className:"sv-popup__scrolling-content"},p),f))},t.prototype.renderHeaderContent=function(){return u.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=c.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return u.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return u.a.createElement("div",{className:"sv-popup__body-footer"},u.a.createElement(T,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,n=this.renderContainer(this.model),o=new a.CssClassBuilder().append("sv-popup").append(this.model.styleClass).toString(),i={display:this.model.isVisible?"":"none"};return u.a.createElement("div",{tabIndex:-1,className:o,style:i,onClick:function(p){e.model.clickOutside(p)},onKeyDown:this.handleKeydown},n)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},t}(g),ee=function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderHeaderPopup=function(e){var n=e;return n?u.a.createElement("span",{style:{left:n.pointerTarget.left,top:n.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(U),te=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ne=function(r){te(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderInnerButton=function(){var e=r.prototype.renderInnerButton.call(this);return u.a.createElement(u.a.Fragment,null,e,u.a.createElement(Q,{model:this.item.popupModel}))},t.prototype.componentDidMount=function(){this.viewModel=new a.ActionDropdownViewModel(this.item)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(ae);c.Instance.registerElement("sv-action-bar-item-dropdown",function(r){return u.a.createElement(ne,r)});var re=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),T=function(r){re(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"handleClick",{get:function(){return this.props.handleClick!==void 0?this.props.handleClick:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(r.prototype.componentDidMount.call(this),!!this.model.hasActions){var e=this.rootRef.current;e&&this.model.initResponsivityManager(e,function(n){setTimeout(n,100)})}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},t.prototype.componentDidUpdate=function(e,n){if(r.prototype.componentDidUpdate.call(this,e,n),e.model!=this.props.model&&e.model.resetResponsivityManager(),this.model.hasActions){var o=this.rootRef.current;o&&this.model.initResponsivityManager(o,function(i){setTimeout(i,100)})}},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return u.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(n){n.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map(function(e,n){return u.a.createElement($,{item:e,key:"item"+n})})},t}(g);c.Instance.registerElement("sv-action-bar",function(r){return u.a.createElement(T,r)});var oe=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),J=function(r){oe(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return g.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return u.a.createElement(u.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,n){var o=function(f){return u.a.createElement("span",{"data-key":f,key:f}," ")},i=[];e.isRequireTextOnStart&&(i.push(this.renderRequireText(e)),i.push(o("req-sp")));var p=e.no;return p&&(i.push(u.a.createElement("span",{"data-key":"q_num",key:"q_num",className:e.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},p)),i.push(o("num-sp"))),e.isRequireTextBeforeTitle&&(i.push(this.renderRequireText(e)),i.push(o("req-sp"))),i.push(g.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(i.push(o("req-sp")),i.push(this.renderRequireText(e))),i},t.prototype.renderRequireText=function(e){return u.a.createElement("span",{"data-key":"req-text",key:"req-text",className:e.cssRequiredText,"aria-hidden":!0},e.requiredText)},t}(u.a.Component),se=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),G=function(r){se(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=u.a.createElement(J,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?u.a.createElement("div",{className:"sv-title-actions"},u.a.createElement("span",{className:"sv-title-actions__title"},e),u.a.createElement(T,{model:this.element.getTitleToolbar()})):e},t}(u.a.Component);a.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),c.Instance.registerElement("sv-title-actions",function(r){return u.a.createElement(G,r)});var me=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Y=function(r){me(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var e=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return u.a.createElement(M,{className:this.element.getCssTitleExpandableSvg(),iconName:e,size:"auto"})},t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var n=e.titleAriaLabel||void 0,o=this.renderTitleExpandableSvg(),i=u.a.createElement(G,{element:e,cssClasses:e.cssClasses}),p=void 0,f=void 0;e.hasTitleEvents&&(f=function(b){Object(a.doKey2ClickUp)(b.nativeEvent)});var v=e.titleTagName;return u.a.createElement(v,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":n,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:p,onKeyUp:f},o,i)},t}(u.a.Component),k=function(){function r(){this.creatorHash={}}return r.prototype.registerQuestion=function(t,e){this.creatorHash[t]=e},r.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},r.prototype.createQuestion=function(t,e){var n=this.creatorHash[t];return n==null?null:n(e)},r.Instance=new r,r}(),Hn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ee=function(r){Hn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return u.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(g);c.Instance.registerElement("sv-character-counter",function(r){return u.a.createElement(Ee,r)});var Tn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pe=function(r){Tn(t,r);function t(e){var n=r.call(this,e)||this;return n.initialValue=n.viewModel.getTextValue()||"",n.textareaRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.viewModel.question},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this);var e=this.textareaRef.current;e&&this.viewModel.setElement(e)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},t.prototype.renderElement=function(){var e=this;return u.a.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(n){e.viewModel.onTextAreaInput(n)},onFocus:function(n){e.viewModel.onTextAreaFocus(n)},onBlur:function(n){e.viewModel.onTextAreaBlur(n)},onKeyDown:function(n){e.viewModel.onTextAreaKeyDown(n)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},t}(g);c.Instance.registerElement("sv-text-area",function(r){return u.a.createElement(Pe,r)});var Ne=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),st=function(r){Ne(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderCharacterCounter=function(){var e=null;return this.question.getMaxLength()&&(e=s.createElement(Ee,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),e},t.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return s.createElement("div",null,this.question.value);var e=this.renderCharacterCounter(),n=this.props.question.textAreaModel;return s.createElement(s.Fragment,null,s.createElement(Pe,{viewModel:n}),e)},t}(D),ke=function(r){Ne(t,r);function t(e){var n=r.call(this,e)||this;return n.textAreaModel=n.getTextAreaModel(),n}return t.prototype.canRender=function(){return!!this.props.question},t.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},t.prototype.renderElement=function(){var e=this.props.question;if(e.isReadOnlyRenderDiv()){var n=this.textAreaModel.getTextValue()||"";return s.createElement("div",null,n)}return s.createElement(Pe,{viewModel:this.textAreaModel})},t}(w),qe=function(r){Ne(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},t}(ke);k.Instance.registerQuestion("comment",function(r){return s.createElement(st,r)});var Dn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vn=function(r){Dn(t,r);function t(e){var n=r.call(this,e)||this;return n.widgetRef=s.createRef(),n}return t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n);var o=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!o&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var e=this.widgetRef.current;e&&this.questionBase.customWidget.willUnmount(this.questionBase,e)}},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return s.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var n=null;if(e.widgetJson.render)n=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var o={__html:e.htmlTemplate};return s.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:o})}return s.createElement("div",{ref:this.widgetRef},n)},t}(P),_n=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),it=function(r){_n(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,n=e.hasTitle?u.a.createElement(Y,{element:e}):null,o=e.hasDescriptionUnderTitle?g.renderQuestionDescription(this.element):null,i=e.hasAdditionalTitleToolbar?u.a.createElement(T,{model:e.additionalTitleToolbar}):null,p={width:void 0};return e instanceof a.Question&&(p.width=e.titleWidth),u.a.createElement("div",{className:e.cssHeader,onClick:function(f){return e.clickTitleFunction&&e.clickTitleFunction(f.nativeEvent)},style:p},n,o,i)},t}(u.a.Component),ve=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ce=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.isNeedFocus=!1,n.rootRef=s.createRef(),n}return t.renderQuestionBody=function(e,n){var o=n.customWidget;return o?s.createElement(Vn,{creator:e,question:n}):e.createQuestionElement(n)},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&e.getAttribute("data-rendered")!=="r"&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&!!this.question&&!!this.creator},t.prototype.renderQuestionContent=function(){var e=this.question,n={display:this.question.renderedIsExpanded?"":"none"},o=e.cssClasses,i=this.renderQuestion(),p=this.question.showErrorOnTop?this.renderErrors(o,"top"):null,f=this.question.showErrorOnBottom?this.renderErrors(o,"bottom"):null,v=e&&e.hasComment?this.renderComment(o):null,b=e.hasDescriptionUnderInput?this.renderDescription():null;return s.createElement("div",{className:e.cssContent||void 0,style:n,role:"presentation"},p,i,v,f,b)},t.prototype.renderElement=function(){var e=this.question,n=e.cssClasses,o=this.renderHeader(e),i=e.hasTitleOnLeftTop?o:null,p=e.hasTitleOnBottom?o:null,f=this.question.showErrorsAboveQuestion?this.renderErrors(n,""):null,v=this.question.showErrorsBelowQuestion?this.renderErrors(n,""):null,b=e.getRootStyle(),q=this.wrapQuestionContent(this.renderQuestionContent());return s.createElement(s.Fragment,null,s.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:b,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":e.ariaExpanded},f,i,q,p,v))},t.prototype.wrapElement=function(e){var n=this.question.survey,o=null;return n&&(o=y.wrapElement(n,e,this.question)),o??e},t.prototype.wrapQuestionContent=function(e){var n=this.question.survey,o=null;return n&&(o=y.wrapQuestionContent(n,e,this.question)),o??e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return g.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var n=g.renderLocString(this.question.locCommentText);return s.createElement("div",{className:this.question.getCommentAreaCss()},s.createElement("div",null,n),s.createElement(ke,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return s.createElement(it,{element:e})},t.prototype.renderErrors=function(e,n){return s.createElement(ye,{element:this.question,cssClasses:e,creator:this.creator,location:n,id:this.question.id+"_errors"})},t}(g);c.Instance.registerElement("question",function(r){return s.createElement(ce,r)});var ye=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.state=n.getState(),n}return Object.defineProperty(t.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return e===void 0&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentWillUnmount=function(){},t.prototype.renderElement=function(){for(var e=[],n=0;n<this.element.errors.length;n++){var o="error"+n;e.push(this.creator.renderError(o,this.element.errors[n],this.cssClasses,this.element))}return s.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},e)},t}(w),at=function(r){ve(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderContent=function(){var e=this.renderQuestion();return s.createElement(s.Fragment,null,e)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return ce.renderQuestionBody(this.creator,this.question)},t}(w),ut=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.cellRef=s.createRef(),n}return t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.question){var e=this.cellRef.current;e&&e.removeAttribute("data-rendered")}},t.prototype.renderCellContent=function(){return s.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},t.prototype.renderElement=function(){var e=this.getCellStyle(),n=this.props.cell,o=function(){n.focusIn()};return s.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:n.colSpans,title:n.getTitle(),style:e,onFocus:o},this.wrapCell(this.props.cell,this.renderCellContent()))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,n){if(!e)return n;var o=this.question.survey,i=null;return o&&(i=y.wrapMatrixCell(o,n,e,this.props.reason)),i??n},t}(at),lt=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.setState({changed:this.state.changed+1})},t.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},t.prototype.registerCallback=function(e){var n=this;e.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),function(){n.update()},"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},t.prototype.componentDidUpdate=function(e){e.question&&e.question!==this.question&&this.unRegisterCallback(e.cell),this.question&&this.registerCallback(this.question)},t.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},t.prototype.render=function(){return s.createElement(ye,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},t}(s.Component),An=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ct=function(r){An(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),n=this.renderDescription(),o=this.renderRows(this.panelBase.cssClasses),i=s.createElement(ye,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return s.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,n,i,o)},t.prototype.renderTitle=function(){return s.createElement(Y,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=g.renderLocString(this.page.locDescription);return s.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(_),Zn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),je=function(r){Zn(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.rootRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=g.renderLocString(this.survey.locDescription);return u.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},u.a.createElement(Y,{element:this.survey}),this.survey.renderedHasDescription?u.a.createElement("div",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var n=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),o=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return c.Instance.createElement(n,{data:o})},t.prototype.render=function(){return this.survey.renderedHasHeader?u.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),u.a.createElement("div",{className:this.css.headerClose})):null},t}(u.a.Component);c.Instance.registerElement("survey-header",function(r){return u.a.createElement(je,r)});var Qn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Fn=function(r){Qn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return u.a.createElement("div",{className:"sv-brand-info"},u.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},u.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),u.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",u.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),u.a.createElement("div",{className:"sv-brand-info__terms"},u.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(u.a.Component),Wn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Be=function(r){Wn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return u.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},u.a.createElement("span",null,this.notifier.message),u.a.createElement(T,{model:this.notifier.actionBar}))},t}(g);c.Instance.registerElement("sv-notifier",function(r){return u.a.createElement(Be,r)});var Un=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),z=function(r){Un(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,n=this.props.survey.getContainerContent(this.props.container),o=this.props.needRenderWrapper!==!1;return n.length==0?null:o?u.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},n.map(function(i){return c.Instance.createElement(i.component,{survey:e.props.survey,model:i.data,container:e.props.container,key:i.id})})):u.a.createElement(u.a.Fragment,null,n.map(function(i){return c.Instance.createElement(i.component,{survey:e.props.survey,model:i.data,container:e.props.container,key:i.id})}))},t}(u.a.Component);c.Instance.registerElement("sv-components-container",function(r){return u.a.createElement(z,r)});var zn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pt=function(r){zn(t,r);function t(e){var n=r.call(this,e)||this;return n.onIconsChanged=function(){n.containerRef.current&&(n.containerRef.current.innerHTML=a.SvgRegistry.iconsRenderedHtml())},n.containerRef=u.a.createRef(),n}return t.prototype.componentDidMount=function(){this.onIconsChanged(),a.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},t.prototype.componentWillUnmount=function(){a.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},t.prototype.render=function(){var e={display:"none"};return u.a.createElement("svg",{style:e,id:"sv-icon-holder-global-container",ref:this.containerRef})},t}(u.a.Component),Kn=d("react-dom"),$n=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dt=function(r){$n(t,r);function t(e){var n=r.call(this,e)||this;return n.isInitialized=!1,n.init=function(){n.isInitialized||(a.settings.showModal=function(o,i,p,f,v,b,q){q===void 0&&(q="popup");var j=Object(a.createDialogOptions)(o,i,p,f,void 0,void 0,v,b,q);return n.showDialog(j)},a.settings.showDialog=function(o,i){return n.showDialog(o,i)},n.isInitialized=!0)},n.clean=function(){n.isInitialized&&(a.settings.showModal=void 0,a.settings.showDialog=void 0,n.isInitialized=!1)},n.state={changed:0},n.descriptor={init:n.init,clean:n.clean},n}return t.addModalDescriptor=function(e){a.settings.showModal||e.init(),this.modalDescriptors.push(e)},t.removeModalDescriptor=function(e){e.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(e),1),!a.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},t.prototype.renderElement=function(){return this.model?Object(Kn.createPortal)(u.a.createElement(U,{model:this.model}),this.model.container):null},t.prototype.showDialog=function(e,n){var o=this;this.model=Object(a.createPopupModalViewModel)(e,n);var i=function(p,f){f.isVisible||(o.model.dispose(),o.model=void 0,o.setState({changed:o.state.changed+1}))};return this.model.onVisibilityChanged.add(i),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},t.prototype.componentDidMount=function(){t.addModalDescriptor(this.descriptor)},t.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),t.removeModalDescriptor(this.descriptor)},t.modalDescriptors=[],t}(g),ht=d("./build/survey-core/icons/iconsV1.js"),Jn=d("./build/survey-core/icons/iconsV2.js"),Gn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),He=function(){return He=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},He.apply(this,arguments)};Object(a.addIconsToThemeSet)("v1",ht.icons),Object(a.addIconsToThemeSet)("v2",Jn.icons),a.SvgRegistry.registerIcons(ht.icons);var Te=function(r){Gn(t,r);function t(e){var n=r.call(this,e)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(e),n.updateSurvey(e,{}),n.rootRef=s.createRef(),n.rootNodeId=e.id||null,n.rootNodeClassName=e.className||"",n}return Object.defineProperty(t,"cssType",{get:function(){return a.surveyCss.currentType},set:function(e){a.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI(),this.setSurveyEvents()}},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(this.isModelJSONChanged(e)&&(this.destroySurvey(),this.createSurvey(e),this.updateSurvey(e,{}),this.isSurveyUpdated=!0),!0):!1},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateSurvey(this.props,e),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;this.survey.state=="completed"?e=this.renderCompleted():this.survey.state=="completedbefore"?e=this.renderCompletedBefore():this.survey.state=="loading"?e=this.renderLoading():this.survey.state=="empty"?e=this.renderEmptySurvey():e=this.renderSurvey();var n=this.survey.backgroundImage?s.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,o=this.survey.headerView==="basic"?s.createElement(je,{survey:this.survey}):null,i=function(b){b.preventDefault()},p=s.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(p=null);var f=this.survey.getRootCss(),v=this.rootNodeClassName?this.rootNodeClassName+" "+f:f;return s.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:v,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?s.createElement(pt,null):null,s.createElement(dt,null),s.createElement("div",{className:this.survey.wrapperFormCss},n,s.createElement("form",{onSubmit:i},p,s.createElement("div",{className:this.css.container},o,s.createElement(z,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,s.createElement(z,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),s.createElement(Be,{notifier:this.survey.notifier})))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return s.createElement(s.Fragment,null,s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}),s.createElement(z,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedBeforeCss})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.loadingBodyCss})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null;this.survey.isShowStartingPage;var n=this.survey.activePage?this.survey.activePage.id:"",o=this.survey.bodyCss,i={};return this.survey.renderedWidth&&(i.maxWidth=this.survey.renderedWidth),s.createElement("div",{className:this.survey.bodyContainerCss},s.createElement(z,{survey:this.survey,container:"left"}),s.createElement("div",{className:"sv-components-column sv-components-column--expandable"},s.createElement(z,{survey:this.survey,container:"center"}),s.createElement("div",{id:n,className:o,style:i},s.createElement(z,{survey:this.survey,container:"contentTop"}),e,s.createElement(z,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?s.createElement(Fn,null):null)),s.createElement(z,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return s.createElement(ct,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return s.createElement("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new a.SurveyModel(e.json)):this.survey=new a.SurveyModel,e.css&&(this.survey.css=this.css)},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:e.json?!a.Helpers.isTwoValueEquals(e.json,this.previousJSON):!1},t.prototype.updateSurvey=function(e,n){if(e){n=n||{};for(var o in e)if(!(o=="model"||o=="children"||o=="json")){if(o=="css"){this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss();continue}e[o]!==n[o]&&(o.indexOf("on")==0&&this.survey[o]&&this.survey[o].add?(n[o]&&this.survey[o].remove(n[o]),this.survey[o].add(e[o])):this.survey[o]=e[o])}}},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var n=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:n+1})},this.survey.onPartialSend.add(function(n){e.state&&e.setState(e.state)})},t.prototype.createQuestionElement=function(e){return k.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,n,o,i){return c.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:n,cssClasses:o,element:i})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(g);c.Instance.registerElement("survey",function(r){return s.createElement(Te,r)});function Se(r,t,e){return e===void 0&&(e={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||e&&e.disableTabStop?s.cloneElement(r,{tabIndex:-1}):(e=He({},e),s.cloneElement(r,{tabIndex:0,onKeyUp:function(n){return n.preventDefault(),n.stopPropagation(),Object(a.doKey2ClickUp)(n,e),!1},onKeyDown:function(n){return Object(a.doKey2ClickDown)(n,e)},onBlur:function(n){return Object(a.doKey2ClickBlur)(n)}}))}var Yn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Oe=function(r){Yn(t,r);function t(e){var n=r.call(this,e)||this;return n.updateStateFunction=null,n.state={update:0},n}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(s.Component),Xn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ft=function(r){Xn(t,r);function t(e){var n=r.call(this,e)||this;return n.circleLength=440,n}return t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=s.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var n={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},o=this.timerModel.showProgress?s.createElement(M,{className:this.timerModel.getProgressCss(),style:n,iconName:"icon-timercircle",size:"auto"}):null;e=s.createElement("div",{className:this.timerModel.rootCss},o,s.createElement("div",{className:this.timerModel.textContainerCss},s.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?s.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(w);c.Instance.registerElement("sv-timerpanel",function(r){return s.createElement(ft,r)});var er=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pe=function(r){er(t,r);function t(e){var n=r.call(this,e)||this;return n.hasBeenExpanded=!1,n}return Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.renderHeader(),o=s.createElement(ye,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),i={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},p=null;if(this.panel.renderedIsExpanded){var f=this.renderRows(this.panelBase.cssClasses),v=this.panelBase.cssClasses.panel.content;p=this.renderContent(i,f,v)}var b=function(){e.panelBase&&e.panelBase.focusIn()};return s.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:b,id:this.panelBase.id},this.panel.showErrorsAbovePanel?o:null,n,this.panel.showErrorsAbovePanel?null:o,p)},t.prototype.renderHeader=function(){return!this.panel.hasTitle&&!this.panel.hasDescription?null:s.createElement(it,{element:this.panel})},t.prototype.wrapElement=function(e){var n=this.panel.survey,o=null;return n&&(o=y.wrapElement(n,e,this.panel)),o??e},t.prototype.renderContent=function(e,n,o){var i=this.renderBottom();return s.createElement("div",{style:e,className:o,id:this.panel.contentId},n,i)},t.prototype.renderTitle=function(){return this.panelBase.title?s.createElement(Y,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=g.renderLocString(this.panelBase.locDescription);return s.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?s.createElement(T,{model:e}):null},t.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},t}(_);c.Instance.registerElement("panel",function(r){return s.createElement(pe,r)});var tr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mt=function(r){tr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var n={__html:e};return s.createElement("div",{dangerouslySetInnerHTML:n})}var o=new DOMParser().parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(o)},t.prototype.renderNodes=function(e){for(var n=[],o=0;o<e.length;o++){var i=this.renderNode(e[o]);i&&n.push(i)}return n},t.prototype.getStyle=function(e){var n={};return e.toLowerCase()==="b"&&(n.fontWeight="bold"),e.toLowerCase()==="i"&&(n.fontStyle="italic"),e.toLowerCase()==="u"&&(n.textDecoration="underline"),n},t.prototype.renderParentNode=function(e){var n=e.nodeName.toLowerCase(),o=this.renderNodes(this.getChildDomNodes(e));return n==="div"?s.createElement("div",{key:this.getNodeIndex()},o):s.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(n)},o)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var n=e.nodeName.toLowerCase();if(n==="question"){var o=this.flowPanel.getQuestionByName(e.textContent);if(!o)return null;var i=s.createElement(ce,{key:o.name,element:o,creator:this.creator,css:this.css});return s.createElement("span",{key:this.getNodeIndex()},i)}return n==="div"?s.createElement("div",{key:this.getNodeIndex()},e.textContent):s.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(n)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var n=[],o=0;o<e.childNodes.length;o++)n.push(e.childNodes[o]);return n},t.prototype.hasTextChildNodesOnly=function(e){for(var n=e.childNodes,o=0;o<n.length;o++)if(n[o].nodeName.toLowerCase()!=="#text")return!1;return!0},t.prototype.renderContent=function(e,n){return s.createElement("f-panel",{style:e},n)},t}(pe);c.Instance.registerElement("flowpanel",function(r){return s.createElement(mt,r)});var vt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yt=function(r){vt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses;return s.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(o){return e.setControl(o)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(n):this.getBody(n),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map(function(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return s.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var n=this;return this.question.columns.map(function(o,i){var p=o.map(function(f,v){return n.renderItem(f,i===0&&v===0,e,""+i+v)});return s.createElement("div",{key:"column"+i+n.question.getItemsColumnKey(o),className:n.question.getColumnClass(),role:"presentation"},p)})},t.prototype.getBody=function(e){return this.question.blockedRow?s.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):s.createElement(s.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,n){for(var o=[],i=0;i<n.length;i++){var p=n[i];""+p.value;var f=this.renderItem(p,i==0,e,""+i);f&&o.push(f)}return o},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,n,o,i){var p=c.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:i,isFirst:n}),f=this.question.survey,v=null;return f&&p&&(v=y.wrapItemValue(f,p,this.question,e)),v??p},t}(P),De=function(r){vt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=function(o){n.question.clickItemHandler(n.item,o.target.checked)},n.rootRef=s.createRef(),n}return t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),e.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),e.item&&e.item.setRootElement(void 0))},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render:!1},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,n){var o=this.question.getItemId(this.item),i=this.question.getItemClass(this.item),p=this.question.getLabelClass(this.item),f=this.hideCaption?null:s.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return s.createElement("div",{className:i,role:"presentation",ref:this.rootRef},s.createElement("label",{className:p},s.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:o,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:e,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?s.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,f),n)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(w);c.Instance.registerElement("survey-checkbox-item",function(r){return s.createElement(De,r)}),k.Instance.registerQuestion("checkbox",function(r){return s.createElement(yt,r)});var Ve=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gt=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;if(this.question.selectToRankEnabled){var n=!0;return s.createElement("div",{className:this.question.rootClass,ref:function(o){return e.setControl(o)}},s.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,n),this.question.renderedUnRankingChoices.length===0?s.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),s.createElement("div",{className:this.question.cssClasses.containersDivider}),s.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),this.question.renderedRankingChoices.length===0?s.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}else return s.createElement("div",{className:this.question.rootClass,ref:function(o){return e.setControl(o)}},this.getItems())},t.prototype.getItems=function(e,n){var o=this;e===void 0&&(e=this.question.renderedRankingChoices);for(var i=[],p=function(b){var q=e[b];i.push(f.renderItem(q,b,function(j){o.question.handleKeydown.call(o.question,j,q)},function(j){j.persist(),o.question.handlePointerDown.call(o.question,j,q,j.currentTarget)},function(j){j.persist(),o.question.handlePointerUp.call(o.question,j,q,j.currentTarget)},f.question.cssClasses,f.question.getItemClass(q),f.question,n))},f=this,v=0;v<e.length;v++)p(v);return i},t.prototype.renderItem=function(e,n,o,i,p,f,v,b,q){""+e.renderedId;var j=this.renderLocString(e.locText),X=n,V=this.question.getNumberByIndex(X),xe=this.question.getItemTabIndex(e),he=s.createElement(Ct,{key:e.value,text:j,index:X,indexText:V,itemTabIndex:xe,handleKeydown:o,handlePointerDown:i,handlePointerUp:p,cssClasses:f,itemClass:v,question:b,unrankedItem:q,item:e}),Rn=this.question.survey,Ie=null;return Rn&&(Ie=y.wrapItemValue(Rn,he,this.question,e)),Ie??he},t}(P),Ct=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderEmptyIcon=function(){return s.createElement("svg",null,s.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},t.prototype.renderElement=function(){var e=c.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return s.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},s.createElement("div",{tabIndex:-1,style:{outline:"none"}},s.createElement("div",{className:this.cssClasses.itemGhostNode}),s.createElement("div",{className:this.cssClasses.itemContent},s.createElement("div",{className:this.cssClasses.itemIconContainer},s.createElement("svg",{className:this.question.getIconHoverCss()},s.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),s.createElement("svg",{className:this.question.getIconFocusCss()},s.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),s.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))},t}(w),xt=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return s.createElement("div",{className:this.cssClasses.controlLabel},g.renderLocString(this.item.locText))},t}(w);c.Instance.registerElement("sv-ranking-item",function(r){return s.createElement(xt,r)}),k.Instance.registerQuestion("ranking",function(r){return s.createElement(gt,r)});var wt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_e=function(r){wt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t}(g),Et=function(r){wt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return u.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},u.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),u.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this)},t}(_e);c.Instance.registerElement("sv-rating-item",function(r){return u.a.createElement(Et,r)});var nr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qt=function(r){nr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this;return u.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(n){return e.question.onItemMouseIn(e.item)},onMouseOut:function(n){return e.question.onItemMouseOut(e.item)}},u.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),u.a.createElement(M,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),u.a.createElement(M,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(_e);c.Instance.registerElement("sv-rating-item-star",function(r){return u.a.createElement(qt,r)});var rr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),St=function(r){rr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this;return u.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(n){return e.question.onItemMouseIn(e.item)},onMouseOut:function(n){return e.question.onItemMouseOut(e.item)}},u.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),u.a.createElement(M,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(_e);c.Instance.registerElement("sv-rating-item-smiley",function(r){return u.a.createElement(St,r)});var or=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ot=function(r){or(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=this.props.item,n=this.renderDescription(e);return u.a.createElement("div",{className:"sd-rating-dropdown-item"},u.a.createElement("span",{className:"sd-rating-dropdown-item_text"},e.title),n)},t.prototype.renderDescription=function(e){return e.description?u.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(e.description,void 0,"locString")):null},t}(g);c.Instance.registerElement("sv-rating-dropdown-item",function(r){return u.a.createElement(Ot,r)});var sr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ae=function(r){sr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,n=this.model.inputStringRendered;a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var n=a.settings.environment.root;e.target===n.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.question.onBlur(e)},t.prototype.onFocus=function(e){this.question.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return s.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?s.createElement("div",{className:this.question.cssClasses.hintPrefix},s.createElement("span",null,this.model.hintStringPrefix)):null,s.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?s.createElement("div",{className:this.question.cssClasses.hintSuffix},s.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),s.createElement("span",null,this.model.hintStringSuffix)):null,s.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(n){return e.inputElement=n},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:this.model.filterReadOnly?!0:void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(n){e.keyhandler(n)},onChange:function(n){e.onChange(n)},onBlur:function(n){e.onBlur(n)},onFocus:function(n){e.onFocus(n)}})))},t}(g);k.Instance.registerQuestion("sv-tagbox-filter",function(r){return s.createElement(Ae,r)});var ir=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Lt=function(r){ir(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.setupModel(),n}return t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.setupModel()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setupModel()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return s.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(w),ar=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Le=function(r){ar(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.click=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.onClick(n)},e.chevronPointerDown=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.chevronPointerDown(n)},e.clear=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.onClear(n)},e.keyhandler=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.keyHandler(n)},e.blur=function(n){e.updateInputDomElement(),e.question.onBlur(n)},e.focus=function(n){e.question.onFocus(n)},e}return t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderReadOnlyElement=function(){return s.createElement("div",null,this.question.readOnlyText)},t.prototype.renderSelect=function(e){var n=this,o,i,p=null;if(this.question.isReadOnly){var f=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";p=s.createElement("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass(),ref:function(v){return n.setControl(v)}},f,this.renderReadOnlyElement())}else p=s.createElement(s.Fragment,null,this.renderInput(this.question.dropdownListModel),s.createElement(Q,{model:(i=(o=this.question)===null||o===void 0?void 0:o.dropdownListModel)===null||i===void 0?void 0:i.popupModel}));return s.createElement("div",{className:e.selectWrapper,onClick:this.click},p,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?c.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var n=this,o=this.renderValueElement(e),i=a.settings.environment.root,p=function(f){f.target===i.activeElement&&(e.inputStringRendered=f.target.value)};return s.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,onFocus:this.focus,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,ref:function(f){return n.setControl(f)}},e.showHintPrefix?s.createElement("div",{className:this.question.cssClasses.hintPrefix},s.createElement("span",null,e.hintStringPrefix)):null,s.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?s.createElement("div",{className:this.question.cssClasses.hintSuffix},s.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),s.createElement("span",null,e.hintStringSuffix)):null,o,s.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(f){return n.inputElement=f},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:e.filterReadOnly?!0:void 0,tabIndex:e.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:e.inputMode,onChange:function(f){p(f)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.showClearButton?"":"none"};return s.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear,"aria-hidden":"true"},s.createElement(M,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?s.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},s.createElement(M,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},t.prototype.renderOther=function(e){return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,n=this.question.dropdownListModel.inputStringRendered;a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(D),ur=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ze=function(r){ur(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.isOtherSelected?this.renderOther(e):null,o=this.renderSelect(e);return s.createElement("div",{className:this.question.renderCssRoot},o,n)},t}(Le);k.Instance.registerQuestion("dropdown",function(r){return s.createElement(Ze,r)});var lr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mt=function(r){lr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,n=this.renderLocString(this.item.locText),o=function(i){e.question.dropdownListModel.deselectItem(e.item.value),i.stopPropagation()};return s.createElement("div",{className:"sv-tagbox__item"},s.createElement("div",{className:"sv-tagbox__item-text"},n),s.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:o},s.createElement(M,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(w),cr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),It=function(r){cr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderItem=function(e,n){var o=s.createElement(Mt,{key:e,question:this.question,item:n});return o},t.prototype.renderInput=function(e){var n=this,o=e,i=this.question.selectedChoices.map(function(p,f){return n.renderItem("item"+f,p)});return s.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,ref:function(p){return n.setControl(p)}},s.createElement("div",{className:this.question.cssClasses.controlValue},i,s.createElement(Ae,{model:o,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.isOtherSelected?this.renderOther(e):null,o=this.renderSelect(e);return s.createElement("div",{className:this.question.renderCssRoot},o,n)},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t}(Le);k.Instance.registerQuestion("tagbox",function(r){return s.createElement(It,r)});var pr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bt=function(r){pr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderSelect=function(e){var n=this,o=function(f){n.question.onClick(f)},i=function(f){n.question.onKeyUp(f)},p=this.isDisplayMode?s.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):s.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(f){return n.setControl(f)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:o,onKeyUp:i,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?s.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(f,v){return s.createElement(Lt,{key:"item"+v,item:f})}));return s.createElement("div",{className:e.selectWrapper},p,this.createChevronButton())},t}(Ze);k.Instance.registerQuestion("sv-dropdown-select",function(r){return s.createElement(bt,r)}),a.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Qe=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rt=function(r){Qe(t,r);function t(e){var n=r.call(this,e)||this;return n.state={rowsChanged:0},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(r.prototype.componentDidMount.call(this),this.question){var e=this;this.question.visibleRowsChangedCallback=function(){e.setState({rowsChanged:e.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,n=this.question.cssClasses,o=this.question.hasRows?s.createElement("td",null):null,i=[],p=0;p<this.question.visibleColumns.length;p++){var f=this.question.visibleColumns[p],v="column"+p,b=this.renderLocString(f.locText),q={};this.question.columnMinWidth&&(q.minWidth=this.question.columnMinWidth,q.width=this.question.columnMinWidth),i.push(s.createElement("th",{className:this.question.cssClasses.headerCell,style:q,key:v},this.wrapCell({column:f},b,"column-header")))}for(var j=[],X=this.question.visibleRows,p=0;p<X.length;p++){var V=X[p],v="row-"+V.name+"-"+p;j.push(s.createElement(Pt,{key:v,question:this.question,cssClasses:n,row:V,isFirst:p==0}))}var xe=this.question.showHeader?s.createElement("thead",null,s.createElement("tr",null,o,i)):null;return s.createElement("div",{className:n.tableWrapper,ref:function(he){return e.setControl(he)}},s.createElement("fieldset",null,s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),s.createElement("table",{className:this.question.getTableCss()},xe,s.createElement("tbody",null,j))))},t}(P),Pt=function(r){Qe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getStateElement=function(){return this.row?this.row.item:r.prototype.getStateElement.call(this)},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,n,o){if(!o)return n;var i=this.question.survey,p=null;return i&&(p=y.wrapMatrixCell(i,n,e,o)),p??n},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var n=this.renderLocString(this.row.locText),o={};this.question.rowTitleWidth&&(o.minWidth=this.question.rowTitleWidth,o.width=this.question.rowTitleWidth),e=s.createElement("td",{style:o,className:this.row.rowTextClasses},this.wrapCell({row:this.row},n,"row-header"))}var i=this.generateTds();return s.createElement("tr",{className:this.row.rowClasses||void 0},e,i)},t.prototype.generateTds=function(){for(var e=this,n=[],o=this.row,i=this.question.cellComponent,p=function(){var b=null,q=f.question.visibleColumns[v],j="value"+v,X=f.question.getItemClass(o,q);if(f.question.hasCellText){var V=function(he){return function(){return e.cellClick(o,he)}};b=s.createElement("td",{key:j,className:X,onClick:V?V(q):function(){}},f.renderLocString(f.question.getCellDisplayLocText(o.name,q)))}else{var xe=c.Instance.createElement(i,{question:f.question,row:f.row,column:q,columnIndex:v,cssClasses:f.cssClasses,cellChanged:function(){e.cellClick(e.row,q)}});b=s.createElement("td",{key:j,"data-responsive-title":q.locText.renderedHtml,className:f.question.cssClasses.cell},xe)}n.push(b)},f=this,v=0;v<this.question.visibleColumns.length;v++)p();return n},t.prototype.cellClick=function(e,n){e.value=n.value,this.setState({value:this.row.value})},t}(w),Nt=function(r){Qe(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return t.prototype.handleOnChange=function(e){this.props.cellChanged&&this.props.cellChanged()},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.question&&!!this.row},t.prototype.renderElement=function(){var e=this.row.value==this.column.value,n=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,o=this.question.getItemClass(this.row,this.column),i=this.question.isMobile?s.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return s.createElement("label",{onMouseDown:this.handleOnMouseDown,className:o},this.renderInput(n,e),s.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),i)},t.prototype.renderInput=function(e,n){return s.createElement("input",{id:e,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:n,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},t}(w);c.Instance.registerElement("survey-matrix-cell",function(r){return s.createElement(Nt,r)}),k.Instance.registerQuestion("matrix",function(r){return s.createElement(Rt,r)});var dr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),kt=function(r){dr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,n){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return s.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(P);k.Instance.registerQuestion("html",function(r){return s.createElement(kt,r)});var hr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Fe=function(r){hr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return s.createElement("div",{className:"sd-loading-indicator"},s.createElement(M,{iconName:"icon-loading",size:"auto"}))},t}(s.Component),fr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),We=function(r){fr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return Se(u.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(n){return e.question.chooseFile(n.nativeEvent)}},this.question.cssClasses.chooseFileIconId?u.a.createElement(M,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,u.a.createElement("span",null,this.question.chooseButtonText)))},t}(w);c.Instance.registerElement("sv-file-choose-btn",function(r){return u.a.createElement(We,r)});var mr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jt=function(r){mr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.allowShowPreview?this.renderPreview():null,o=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,i=this.question.isPlayingVideo?this.renderVideo():null,p=this.question.showFileDecorator?this.renderFileDecorator():null,f=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,v=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,b=this.question.fileNavigatorVisible?s.createElement(T,{model:this.question.fileNavigator}):null,q;return this.question.isReadOnlyAttr?q=s.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(j){return e.setControl(j)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?q=s.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(j){return e.setControl(j)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?q=s.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(j){return e.setControl(j)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):q=null,s.createElement("div",{className:this.question.fileRootCss,ref:function(j){return e.setContent(j)}},q,s.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},p,o,i,f,n,v,b))},t.prototype.renderFileDecorator=function(){var e=this.question.showChooseButton?this.renderChooseButton():null,n=this.question.actionsContainerVisible?s.createElement(T,{model:this.question.actionsContainer}):null,o=this.question.isEmpty()?s.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return s.createElement("div",{className:this.question.getFileDecoratorCss()},s.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),s.createElement("div",{className:this.question.cssClasses.wrapper},e,n,o))},t.prototype.renderChooseButton=function(){return s.createElement(We,{data:{question:this.question}})},t.prototype.renderClearButton=function(e){return this.question.isUploading?null:s.createElement("button",{type:"button",onClick:this.question.doClean,className:e},s.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?s.createElement(M,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},t.prototype.renderPreview=function(){return c.Instance.createElement("sv-file-preview",{question:this.question})},t.prototype.renderLoadingIndicator=function(){return s.createElement("div",{className:this.question.cssClasses.loadingIndicator},s.createElement(Fe,null))},t.prototype.renderVideo=function(){return s.createElement("div",{className:this.question.cssClasses.videoContainer},s.createElement($,{item:this.question.changeCameraAction}),s.createElement($,{item:this.question.closeCameraAction}),s.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),s.createElement($,{item:this.question.takePictureAction}))},t}(P);k.Instance.registerQuestion("file",function(r){return s.createElement(jt,r)});var vr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bt=function(r){vr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,n){var o=this;return!e||!n.name?null:u.a.createElement("div",{className:e},u.a.createElement("a",{href:n.content,onClick:function(i){o.question.doDownloadFile(i,n)},title:n.name,download:n.name,style:{width:this.question.imageWidth}},n.name))},t.prototype.renderElement=function(){var e=this,n=this.item;return u.a.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(o){return e.question.doDownloadFileFromContainer(o)}},this.renderFileSign(this.question.cssClasses.fileSign,n),u.a.createElement("div",{className:this.question.getImageWrapperCss(n)},this.question.canPreviewImage(n)?u.a.createElement("img",{src:n.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?u.a.createElement(M,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,n.name&&!this.question.isReadOnly?u.a.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(o){return e.question.doRemoveFile(n,o)}},u.a.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?u.a.createElement(M,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,n))},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(g),yr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gr=function(r){yr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.page.items.map(function(o,i){return u.a.createElement(Bt,{item:o,question:e.question,key:i})});return u.a.createElement("div",{className:this.page.css,id:this.page.id},n)},t}(g),Cr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ht=function(r){Cr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,n){var o=this;return!e||!n.name?null:u.a.createElement("div",{className:e},u.a.createElement("a",{href:n.content,onClick:function(i){o.question.doDownloadFile(i,n)},title:n.name,download:n.name,style:{width:this.question.imageWidth}},n.name))},t.prototype.renderElement=function(){var e=this,n=this.question.supportFileNavigator?this.question.renderedPages.map(function(o,i){return u.a.createElement(gr,{page:o,question:e.question,key:o.id})}):this.question.previewValue.map(function(o,i){return u.a.createElement(Bt,{item:o,question:e.question,key:i})});return u.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},n)},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(g);c.Instance.registerElement("sv-file-preview",function(r){return u.a.createElement(Ht,r)});var Ue=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tt=function(r){Ue(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,n=this.question.getRows(),o=[],i=0;i<n.length;i++)n[i].isVisible&&o.push(this.renderRow(i,n[i].cells,e));return s.createElement("table",{className:this.question.getQuestionRootCss()},s.createElement("tbody",null,o))},t.prototype.renderCell=function(e,n,o){var i,p=function(){e.item.focusIn()};return e.isErrorsCell?i=s.createElement(lt,{question:e.item.editor,creator:this.creator}):i=s.createElement(xr,{question:this.question,item:e.item,creator:this.creator,cssClasses:n}),s.createElement("td",{key:"item"+o,className:e.className,onFocus:p},i)},t.prototype.renderRow=function(e,n,o){for(var i="item"+e,p=[],f=0;f<n.length;f++){var v=n[f];p.push(this.renderCell(v,o,f))}return s.createElement("tr",{key:i,className:o.row},p)},t}(P),xr=function(r){Ue(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,n=this.cssClasses,o={};return this.question.itemTitleWidth&&(o.minWidth=this.question.itemTitleWidth,o.width=this.question.itemTitleWidth),s.createElement("label",{className:this.question.getItemLabelCss(e)},s.createElement("span",{className:n.itemTitle,style:o},s.createElement(J,{element:e.editor,cssClasses:e.editor.cssClasses})),s.createElement(wr,{cssClasses:n,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(w),wr=function(r){Ue(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderElement=function(){return s.createElement("div",{className:this.itemCss},this.renderContent())},t}(at);k.Instance.registerQuestion("multipletext",function(r){return s.createElement(Tt,r)});var Dt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vt=function(r){Dt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=null;return this.question.showClearButtonInContent&&(o=s.createElement("div",null,s.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue(!0)},value:this.question.clearButtonCaption}))),s.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(i){return e.setControl(i)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(n):this.getBody(n),this.getFooter(),this.question.isOtherSelected?this.renderOther(n):null,o)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return s.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var n=this,o=this.getStateValue();return this.question.columns.map(function(i,p){var f=i.map(function(v,b){return n.renderItem(v,o,e,""+p+b)});return s.createElement("div",{key:"column"+p+n.question.getItemsColumnKey(i),className:n.question.getColumnClass(),role:"presentation"},f)})},t.prototype.getBody=function(e){return this.question.blockedRow?s.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):s.createElement(s.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,n){for(var o=[],i=this.getStateValue(),p=0;p<n.length;p++){var f=n[p],v=this.renderItem(f,i,e,""+p);o.push(v)}return o},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,n,o,i){var p=c.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:i,isChecked:n===e.value}),f=this.question.survey,v=null;return f&&(v=y.wrapItemValue(f,p,this.question,e)),v??p},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(P),ze=function(r){Dt(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(e,n){return!r.prototype.shouldComponentUpdate.call(this,e,n)||!this.question?!1:!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),e.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),e.item&&e.item.setRootElement(void 0))},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),n=this.question.getLabelClass(this.item),o=this.question.getControlLabelClass(this.item),i=this.hideCaption?null:s.createElement("span",{className:o},this.renderLocString(this.item.locText,this.textStyle));return s.createElement("div",{className:e,role:"presentation",ref:this.rootRef},s.createElement("label",{onMouseDown:this.handleOnMouseDown,className:n},s.createElement("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?s.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,i))},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(w);c.Instance.registerElement("survey-radiogroup-item",function(r){return s.createElement(ze,r)}),k.Instance.registerQuestion("radiogroup",function(r){return s.createElement(Vt,r)});var Er=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_t=function(r){Er(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderInput=function(){var e=this,n=this.question.getControlClass(),o=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return s.createElement("div",null,this.question.inputValue);var i=this.question.getMaxLength()?s.createElement(Ee,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return s.createElement(s.Fragment,null,s.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n,type:this.question.inputType,ref:function(p){return e.setControl(p)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:o,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(p){e.question.onBlur(p)},onFocus:function(p){e.question.onFocus(p)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(p){return e.question.onCompositionUpdate(p.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),i)},t.prototype.renderElement=function(){return this.question.dataListId?s.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.setValueCore=function(e){this.question.inputValue=e},t.prototype.getValueCore=function(){return this.question.inputValue},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(e.length==0)return null;for(var n=[],o=0;o<e.length;o++)n.push(s.createElement("option",{key:"item"+o,value:e[o]}));return s.createElement("datalist",{id:this.question.dataListId},n)},t}(D);k.Instance.registerQuestion("text",function(r){return s.createElement(_t,r)});var qr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Me=function(r){qr(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef=s.createRef(),n}return t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,n){this.question.onLabelClick(e,n)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var e=this.checkRef.current;e&&(e.indeterminate=this.question.isIndeterminate),this.setControl(e),r.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.getItemCss();return s.createElement("div",{className:n.root,onKeyDown:this.handleOnKeyDown},s.createElement("label",{className:o,onClick:this.handleOnClick},s.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:n.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),s.createElement("div",{className:n.sliderGhost,onClick:function(i){return e.handleOnLabelClick(i,e.question.swapOrder)}},s.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),s.createElement("div",{className:n.switch,onClick:this.handleOnSwitchClick},s.createElement("span",{className:n.slider},this.question.isDeterminated&&n.sliderText?s.createElement("span",{className:n.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),s.createElement("div",{className:n.sliderGhost,onClick:function(i){return e.handleOnLabelClick(i,!e.question.swapOrder)}},s.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},t}(P);k.Instance.registerQuestion("boolean",function(r){return s.createElement(Me,r)});var Sr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),At=function(r){Sr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.getCheckboxItemCss(),o=this.question.canRenderLabelDescription?g.renderQuestionDescription(this.question):null;return s.createElement("div",{className:e.rootCheckbox},s.createElement("div",{className:n},s.createElement("label",{className:e.checkboxLabel},s.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),s.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?s.createElement("svg",{className:e.checkboxItemDecorator},s.createElement("use",{xlinkHref:this.question.svgIcon})):null,s.createElement("span",{className:"check"})),this.question.isLabelRendered&&s.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},s.createElement(G,{element:this.question,cssClasses:this.question.cssClasses}))),o))},t}(Me);k.Instance.registerQuestion("sv-boolean-checkbox",function(r){return s.createElement(At,r)}),a.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var Or=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Zt=function(r){Or(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=function(o){n.question.booleanValue=o.nativeEvent.target.value=="true"},n}return t.prototype.renderRadioItem=function(e,n){var o=this.question.cssClasses;return s.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(o,e)},s.createElement("label",{className:o.radioLabel},s.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-errormessage":this.question.ariaErrormessage,checked:e===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:o.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?s.createElement("span",{className:o.materialRadioDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:o.itemRadioDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,s.createElement("span",{className:o.radioControlLabel},this.renderLocString(n))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return s.createElement("div",{className:e.rootRadio},s.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.question.swapOrder?s.createElement(s.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):s.createElement(s.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},t}(Me);k.Instance.registerQuestion("sv-boolean-radio",function(r){return s.createElement(Zt,r)}),a.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var Lr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qt=function(r){Lr(t,r);function t(e){var n=r.call(this,e)||this;return n.state={value:n.question.value},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return s.createElement("div",null)},t}(P);k.Instance.registerQuestion("empty",function(r){return s.createElement(Qt,r)});var Mr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ke=function(r){Mr(t,r);function t(e){var n=r.call(this,e)||this;return n.root=u.a.createRef(),n.onPointerDownHandler=function(o){n.parentMatrix.onPointerDown(o.nativeEvent,n.model.row)},n}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.model!==this.model&&(e.element&&e.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0):!1},t.prototype.render=function(){var e=this,n=this.model;return n.visible?u.a.createElement("tr",{ref:this.root,className:n.className,"data-sv-drop-target-matrix-row":n.row&&n.row.id,onPointerDown:function(o){return e.onPointerDownHandler(o)}},this.props.children):null},t}(g);c.Instance.registerElement("sv-matrix-row",function(r){return u.a.createElement(Ke,r)});var Ir=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(r){Ir(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return u.a.createElement("div",null,this.renderIcon())},t.prototype.renderIcon=function(){return this.question.iconDragElement?u.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},u.a.createElement("use",{xlinkHref:this.question.iconDragElement})):u.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(w);c.Instance.registerElement("sv-matrix-drag-drop-icon",function(r){return u.a.createElement($e,r)});var de=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),br=function(r){de(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.table},t.prototype.wrapCell=function(e,n,o){return this.props.wrapCell(e,n,o)},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var n=[],o=e.headerRow.cells,i=0;i<o.length;i++){var p=o[i],f="column"+i,v={};p.width&&(v.width=p.width),p.minWidth&&(v.minWidth=p.minWidth);var b=this.renderCellContent(p,"column-header",{}),q=p.hasTitle?s.createElement("th",{className:p.className,key:f,style:v}," ",b," "):s.createElement("td",{className:p.className,key:f,style:v});n.push(q)}return s.createElement("thead",null,s.createElement("tr",null,n))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var n=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return s.createElement("tfoot",null,n)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,n=[],o=this.question.renderedTable.renderedRows,i=0;i<o.length;i++)n.push(this.renderRow(o[i].id,o[i],e));return s.createElement("tbody",null,n)},t.prototype.renderRow=function(e,n,o,i){for(var p=[],f=n.cells,v=0;v<f.length;v++)p.push(this.renderCell(f[v],o,i));var b="row"+e;return s.createElement(s.Fragment,{key:b},i=="row-footer"?s.createElement("tr",null,p):s.createElement(Ke,{model:n,parentMatrix:this.question},p))},t.prototype.renderCell=function(e,n,o){var i="cell"+e.id;if(e.hasQuestion)return s.createElement(Wt,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:o});if(e.isErrorsCell&&e.isErrorsCell)return s.createElement(Pr,{cell:e,key:i,keyValue:i,question:e.question,creator:this.creator});var p=o;p||(p=e.hasTitle?"row-header":"");var f=this.renderCellContent(e,p,n),v=null;return(e.width||e.minWidth)&&(v={},e.width&&(v.width=e.width),e.minWidth&&(v.minWidth=e.minWidth)),s.createElement("td",{className:e.className,key:i,style:v,colSpan:e.colSpans,title:e.getTitle()},f)},t.prototype.renderCellContent=function(e,n,o){var i=null,p=null;if((e.width||e.minWidth)&&(p={},e.width&&(p.width=e.width),e.minWidth&&(p.minWidth=e.minWidth)),e.hasTitle){n="row-header";var f=this.renderLocString(e.locTitle),v=e.column?s.createElement(Ft,{column:e.column,question:this.question}):null;i=s.createElement(s.Fragment,null,f,v)}if(e.isDragHandlerCell&&(i=s.createElement(s.Fragment,null,s.createElement($e,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(i=c.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:o,cell:e,model:e.item.getData()})),e.hasPanel&&(i=s.createElement(pe,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:o,isDisplayMode:this.isDisplayMode,creator:this.creator})),!i)return null;var b=s.createElement(s.Fragment,null,i);return this.wrapCell(e,b,n)},t.prototype.renderElement=function(){var e=this.renderHeader(),n=this.renderFooter(),o=this.renderRows();return s.createElement("table",{className:this.question.getTableCss()},e,o,n)},t}(g),Je=function(r){de(t,r);function t(e){var n=r.call(this,e)||this;return n.question.renderedTable,n.state=n.getState(),n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return e===void 0&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){e.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,n=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return s.createElement("div",{style:n,className:this.question.cssClasses.tableWrapper,ref:function(o){return e.setControl(o)}},s.createElement(br,{question:this.question,creator:this.creator,wrapCell:function(o,i,p){return e.wrapCell(o,i,p)}}))},t}(P),Rr=function(r){de(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return s.createElement(T,{model:this.model,handleClick:!1})},t}(w),Pr=function(r){de(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.cell.isVisible?s.createElement("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},r.prototype.render.call(this)):null},t.prototype.getQuestionPropertiesToTrack=function(){return r.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},t}(lt);c.Instance.registerElement("sv-matrixdynamic-actions-cell",function(r){return s.createElement(Rr,r)});var Ft=function(r){de(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?s.createElement(s.Fragment,null,s.createElement("span",null," "),s.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(w),Wt=function(r){de(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){var e=r.prototype.getQuestion.call(this);return e||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&e.getAttribute("data-rendered")!=="r"){e.setAttribute("data-rendered","r");var n={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,n),this.question.afterRenderCore(e)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var e=r.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(e||(e={}),this.cell.width&&(e.width=this.cell.width),this.cell.minWidth&&(e.minWidth=this.cell.minWidth)),e},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderElement=function(){return this.cell.isVisible?r.prototype.renderElement.call(this):null},t.prototype.renderCellContent=function(){var e=r.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?s.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),s.createElement(Ft,{column:this.cell.column,question:this.cell.matrix})):null;return s.createElement(s.Fragment,null,n,e)},t.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():ce.renderQuestionBody(this.creator,this.question):s.createElement(s.Fragment,null)},t.prototype.renderOtherComment=function(){var e=this.cell.question,n=e.cssClasses||{};return s.createElement(qe,{question:e,cssClasses:n,otherCss:n.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return s.createElement(De,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return s.createElement(ze,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(ut),Nr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ut=function(r){Nr(t,r);function t(e){return r.call(this,e)||this}return t}(Je);k.Instance.registerQuestion("matrixdropdown",function(r){return s.createElement(Ut,r)});var zt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kt=function(r){zt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.renderedTable.showTable,o=n?this.renderTableDiv():this.renderNoRowsContent(e);return s.createElement("div",null,this.renderAddRowButtonOnTop(e),o,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var n=this.renderLocString(this.matrix.locEmptyRowsText),o=s.createElement("div",{className:e.emptyRowsText},n),i=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(e,!0):void 0;return s.createElement("div",{className:e.emptyRowsSection},o,i)},t.prototype.renderAddRowButton=function(e,n){return n===void 0&&(n=!1),c.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:n})},t}(Je);k.Instance.registerQuestion("matrixdynamic",function(r){return s.createElement(Kt,r)});var $t=function(r){zt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),n=s.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,s.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?n:s.createElement("div",{className:this.props.cssClasses.footer},n)},t}(w);c.Instance.registerElement("sv-matrixdynamic-add-btn",function(r){return s.createElement($t,r)});var Jt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ge=function(r){Jt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(w),Gt=function(r){Jt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.addPanelUI()},e}return t.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var e=this.renderLocString(this.question.locPanelAddText);return u.a.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},u.a.createElement("span",{className:this.question.cssClasses.buttonAddText},e))},t}(ge);c.Instance.registerElement("sv-paneldynamic-add-btn",function(r){return u.a.createElement(Gt,r)});var kr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(r){kr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.goToNextPanel()},e}return t.prototype.renderElement=function(){return u.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},u.a.createElement(M,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-next-btn",function(r){return u.a.createElement(Ge,r)});var jr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ye=function(r){jr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.goToPrevPanel()},e}return t.prototype.renderElement=function(){return u.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},u.a.createElement(M,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-prev-btn",function(r){return u.a.createElement(Ye,r)});var Br=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xe=function(r){Br(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderElement=function(){return u.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(ge);c.Instance.registerElement("sv-paneldynamic-progress-text",function(r){return u.a.createElement(Xe,r)});var Yt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xt=function(r){Yt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var e=this;this.question.panelCountChangedCallback=function(){e.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){e.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){e.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=this,n=[];this.question.renderedPanels.forEach(function(b,q){n.push(s.createElement(Hr,{key:b.id,element:b,question:e.question,index:q,cssClasses:e.question.cssClasses,isDisplayMode:e.isDisplayMode,creator:e.creator}))});var o=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,p=this.question.isProgressBottomShowing?this.renderNavigator():null,f=this.renderNavigatorV2(),v=this.renderPlaceholder();return s.createElement("div",{className:this.question.cssClasses.root},this.question.hasTabbedMenu?s.createElement("div",{className:this.question.getTabsContainerCss()},s.createElement(T,{model:this.question.tabbedMenu})):null,v,i,s.createElement("div",{className:this.question.cssClasses.panelsContainer},n),p,o,f)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,n=this.rendrerPrevButton(),o=this.rendrerNextButton(),i=this.renderAddRowButton(),p=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return s.createElement("div",{className:p},s.createElement("div",{style:{clear:"both"}},s.createElement("div",{className:this.question.cssClasses.progressContainer},n,e,o),i,this.renderProgressText()))},t.prototype.renderProgressText=function(){return s.createElement(Xe,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return s.createElement(Ye,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return s.createElement(Ge,{data:{question:this.question}})},t.prototype.renderRange=function(){return s.createElement("div",{className:this.question.cssClasses.progress},s.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return c.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return s.createElement("div",{className:this.question.cssClasses.footer},s.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?s.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},s.createElement(T,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?s.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},s.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(P),Hr=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var e=r.prototype.render.call(this),n=this.renderButton(),o=this.question.showSeparator(this.index)?s.createElement("hr",{className:this.question.cssClasses.separator}):null;return s.createElement(s.Fragment,null,s.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},e,n),o)},t.prototype.renderButton=function(){return this.question.panelRemoveButtonLocation!=="right"||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:c.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(pe);k.Instance.registerQuestion("paneldynamic",function(r){return s.createElement(Xt,r)});var Tr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ce=function(r){Tr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return s.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},s.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},s.createElement("span",{className:a.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),s.createElement("span",{className:a.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(Oe);c.Instance.registerElement("sv-progress-pages",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-questions",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-correctquestions",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-requiredquestions",function(r){return s.createElement(Ce,r)});var Dr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),en=function(r){Dr(t,r);function t(e){var n=r.call(this,e)||this;return n.listContainerRef=s.createRef(),n}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),t.prototype.onResize=function(e){this.setState({canShowItemTitles:e}),this.setState({canShowHeader:!e})},t.prototype.onUpdateScroller=function(e){this.setState({hasScroller:e})},t.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},t.prototype.render=function(){var e=this;return s.createElement("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?s.createElement("div",{className:this.css.progressButtonsHeader},s.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,s.createElement("div",{className:this.css.progressButtonsContainer},s.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),s.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},s.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),s.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})),this.state.canShowFooter?s.createElement("div",{className:this.css.progressButtonsFooter},s.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},t.prototype.getListElements=function(){var e=this,n=[];return this.survey.visiblePages.forEach(function(o,i){n.push(e.renderListElement(o,i))}),n},t.prototype.renderListElement=function(e,n){var o=this,i=g.renderLocString(e.locNavigationTitle);return s.createElement("li",{key:"listelement"+n,className:this.model.getListElementCss(n),onClick:this.model.isListElementClickable(n)?function(){return o.model.clickListElement(e)}:void 0,"data-page-number":this.model.getItemNumber(e)},s.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?s.createElement(s.Fragment,null,s.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},i),s.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,s.createElement("div",{className:this.css.progressButtonsButton},s.createElement("div",{className:this.css.progressButtonsButtonBackground}),s.createElement("div",{className:this.css.progressButtonsButtonContent}),s.createElement("span",null,this.model.getItemNumber(e))))},t.prototype.clickScrollButton=function(e,n){e&&(e.scrollLeft+=(n?-1:1)*70)},t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this),setTimeout(function(){e.respManager=new a.ProgressButtonsResponsivityManager(e.model,e.listContainerRef.current,e)},10)},t.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),r.prototype.componentWillUnmount.call(this)},t}(Oe);c.Instance.registerElement("sv-progress-buttons",function(r){return s.createElement(en,r)});var Vr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tn=function(r){Vr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleKeydown=function(n){e.model.onKeyDown(n)},e}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var n=this.model.getItemClass(this.item),o=this.item.component||this.model.itemComponent,i=c.Instance.createElement(o,{item:this.item,key:this.item.id,model:this.model}),p=u.a.createElement("div",{style:this.model.getItemStyle(this.item),className:this.model.cssClasses.itemBody,title:this.item.getTooltip(),onMouseOver:function(q){e.model.onItemHover(e.item)},onMouseLeave:function(q){e.model.onItemLeave(e.item)}},i),f=this.item.needSeparator?u.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,v=this.model.isItemVisible(this.item),b={display:v?null:"none"};return Se(u.a.createElement("li",{className:n,role:"option",style:b,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(q){e.model.onItemClick(e.item),q.stopPropagation()},onPointerDown:function(q){return e.model.onPointerDown(q,e.item)}},f,p),this.item)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(g);c.Instance.registerElement("sv-list-item",function(r){return u.a.createElement(tn,r)});var _r=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),et=function(r){_r(t,r);function t(e){var n=r.call(this,e)||this;return n.handleKeydown=function(o){n.model.onKeyDown(o)},n.handleMouseMove=function(o){n.model.onMouseMove(o)},n.state={filterString:n.model.filterString||""},n.listContainerRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.componentDidUpdate=function(e,n){var o;r.prototype.componentDidUpdate.call(this,e,n),this.model!==e.model&&(this.model&&(!((o=this.listContainerRef)===null||o===void 0)&&o.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),e.model&&e.model.initListContainerHtmlElement(void 0))},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},t.prototype.renderElement=function(){return u.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),n={display:this.model.isEmpty?"none":null};return u.a.createElement("ul",{className:this.model.getListClass(),style:n,role:"listbox",id:this.model.elementId,onMouseDown:function(o){o.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var n=this.model.renderedActions;return n?n.map(function(o,i){return u.a.createElement(tn,{model:e.model,item:o,key:"item"+i})}):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var n=function(p){var f=a.settings.environment.root;p.target===f.activeElement&&(e.model.filterString=p.target.value)},o=function(p){e.model.goToItems(p)},i=this.model.showSearchClearButton&&this.model.filterString?u.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(p){e.model.onClickSearchClearButton(p)}},u.a.createElement(M,{iconName:"icon-searchclear",size:"auto"})):null;return u.a.createElement("div",{className:this.model.cssClasses.filter},u.a.createElement("div",{className:this.model.cssClasses.filterIcon},u.a.createElement(M,{iconName:"icon-search",size:"auto"})),u.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:o,onChange:n}),i)}else return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return u.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},u.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(g);c.Instance.registerElement("sv-list",function(r){return u.a.createElement(et,r)});var Ar=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nn=function(r){Ar(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props.model,n;return e.isMobile?n=s.createElement("div",{onClick:e.togglePopup},s.createElement(M,{iconName:e.icon,size:24}),s.createElement(Q,{model:e.popupModel})):n=s.createElement(et,{model:e.listModel}),s.createElement("div",{className:e.containerCss},n)},t}(Oe);c.Instance.registerElement("sv-navigation-toc",function(r){return s.createElement(nn,r)});var Zr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),rn=function(r){Zr(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,n){var o=c.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:n,key:"value"+n,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode});return o},t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,i=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return s.createElement("div",{className:this.question.ratingRootCss,ref:function(p){return e.setControl(p)}},s.createElement("fieldset",{role:"radiogroup"},s.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?s.createElement("span",{className:n.minText},o):null,this.question.renderedRateItems.map(function(p,f){return e.renderItem(p,f)}),this.question.hasMaxLabel?s.createElement("span",{className:n.maxText},i):null))},t}(P);k.Instance.registerQuestion("rating",function(r){return s.createElement(rn,r)});var Qr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),on=function(r){Qr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.renderSelect(e);return s.createElement("div",{className:this.question.cssClasses.rootDropdown},n)},t}(Le);k.Instance.registerQuestion("sv-rating-dropdown",function(r){return s.createElement(on,r)}),a.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Fr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),sn=function(r){Fr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses;return s.createElement("div",{id:this.question.inputId,className:n.root,ref:function(o){return e.setControl(o)}},this.question.formatedValue)},t}(P);k.Instance.registerQuestion("expression",function(r){return s.createElement(sn,r)});var an=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),un=function(r){an(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this,n=this.renderWindowHeader(),o=this.renderBody(),i={};return this.popup.renderedWidth&&(i.width=this.popup.renderedWidth,i.maxWidth=this.popup.renderedWidth),s.createElement("div",{className:this.popup.cssRoot,style:i,onScroll:function(){return e.popup.onScroll()}},s.createElement("div",{className:this.popup.cssRootContent},n,o))},t.prototype.renderWindowHeader=function(){var e=this.popup,n=e.cssHeaderRoot,o=null,i,p=null,f=null;return e.isCollapsed?(n+=" "+e.cssRootCollapsedMod,o=this.renderTitleCollapsed(e),i=this.renderExpandIcon()):i=this.renderCollapseIcon(),e.allowClose&&(p=this.renderCloseButton(this.popup)),e.allowFullScreen&&(f=this.renderAllowFullScreenButon(this.popup)),s.createElement("div",{className:e.cssHeaderRoot},o,s.createElement("div",{className:e.cssHeaderButtonsContainer},f,s.createElement("div",{className:e.cssHeaderCollapseButton,onClick:this.handleOnExpanded},i),p))},t.prototype.renderTitleCollapsed=function(e){return e.locTitle?s.createElement("div",{className:e.cssHeaderTitleCollapsed},e.locTitle.renderedHtml):null},t.prototype.renderExpandIcon=function(){return s.createElement(M,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return s.createElement(M,{iconName:"icon-minimize_16x16",size:16})},t.prototype.renderCloseButton=function(e){var n=this;return s.createElement("div",{className:e.cssHeaderCloseButton,onClick:function(){e.hide(),typeof n.props.onClose=="function"&&n.props.onClose()}},s.createElement(M,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var n;return e.isFullScreen?n=s.createElement(M,{iconName:"icon-back-to-panel_16x16",size:16}):n=s.createElement(M,{iconName:"icon-full-screen_16x16",size:16}),s.createElement("div",{className:e.cssHeaderFullScreenButton,onClick:function(){e.toggleFullScreen()}},n)},t.prototype.renderBody=function(){return s.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(e){e||(e={}),r.prototype.createSurvey.call(this,e),this.popup=new a.PopupSurveyModel(null,this.survey),e.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=e.closeOnCompleteTimeout),this.popup.allowClose=e.allowClose,this.popup.allowFullScreen=e.allowFullScreen,this.popup.isShowing=!0,!this.popup.isExpanded&&(e.expanded||e.isExpanded)&&this.popup.expand()},t}(Te),Wr=function(r){an(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(un),ln=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cn=function(r){ln(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return s.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var n=this;return this.question.columns.map(function(o,i){var p=o.map(function(f,v){return n.renderItem("item"+v,f,e)});return s.createElement("div",{key:"column"+i+n.question.getItemsColumnKey(o),className:n.question.getColumnClass(),role:"presentation"},p)})},t.prototype.getItems=function(e){for(var n=[],o=0;o<this.question.visibleChoices.length;o++){var i=this.question.visibleChoices[o],p="item"+o;n.push(this.renderItem(p,i,e))}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,n,o){var i=s.createElement(Ur,{key:e,question:this.question,item:n,cssClasses:o}),p=this.question.survey,f=null;return p&&(f=y.wrapItemValue(p,i,this.question,n)),f??i},t}(P),Ur=function(r){ln(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var n=this.question.value;n.splice(this.question.value.indexOf(e.target.value),1),this.question.value=n}else this.question.value=e.target.value;this.setState({value:this.question.value})}},t.prototype.renderElement=function(){var e=this,n=this.item,o=this.question,i=this.cssClasses,p=o.isItemSelected(n),f=o.getItemClass(n),v=null;o.showLabel&&(v=s.createElement("span",{className:o.cssClasses.itemText},n.text?g.renderLocString(n.locText):n.value));var b={objectFit:this.question.imageFit},q=null;if(n.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(q=s.createElement("img",{className:i.image,src:n.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:n.locText.renderedHtml,style:b,onLoad:function(V){e.question.onContentLoaded(n,V.nativeEvent)},onError:function(V){n.onErrorHandler(n,V.nativeEvent)}})),n.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(q=s.createElement("video",{controls:!0,className:i.image,src:n.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:b,onLoadedMetadata:function(V){e.question.onContentLoaded(n,V.nativeEvent)},onError:function(V){n.onErrorHandler(n,V.nativeEvent)}})),!n.locImageLink.renderedHtml||n.contentNotLoaded){var j={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};q=s.createElement("div",{className:i.itemNoImage,style:j},i.itemNoImageSvgIcon?s.createElement(M,{className:i.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}var X=s.createElement("div",{className:f},s.createElement("label",{className:i.label},s.createElement("input",{className:i.itemControl,id:this.question.getItemId(n),type:this.question.inputType,name:this.question.questionName,checked:p,value:n.value,disabled:!this.question.getItemEnabled(n),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),s.createElement("div",{className:this.question.cssClasses.itemDecorator},s.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?s.createElement("span",{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":"true"},this.question.cssClasses.checkedItemSvgIconId?s.createElement(M,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,q),v)));return X},t}(w);k.Instance.registerQuestion("imagepicker",function(r){return s.createElement(cn,r)});var zr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pn=function(r){zr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){e.forceUpdate()}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.getImageCss(),o={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};(!this.question.imageLink||this.question.contentNotLoaded)&&(o.display="none");var i=null;this.question.renderedMode==="image"&&(i=s.createElement("img",{className:n,src:this.question.locImageLink.renderedHtml||null,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o,onLoad:function(f){e.question.onLoadHandler()},onError:function(f){e.question.onErrorHandler()}})),this.question.renderedMode==="video"&&(i=s.createElement("video",{controls:!0,className:n,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o,onLoadedMetadata:function(f){e.question.onLoadHandler()},onError:function(f){e.question.onErrorHandler()}})),this.question.renderedMode==="youtube"&&(i=s.createElement("iframe",{className:n,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o}));var p=null;return(!this.question.imageLink||this.question.contentNotLoaded)&&(p=s.createElement("div",{className:this.question.cssClasses.noImage},s.createElement(M,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),s.createElement("div",{className:this.question.cssClasses.root},i,p)},t}(P);k.Instance.registerQuestion("image",function(r){return s.createElement(pn,r)});var Kr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dn=function(r){Kr(t,r);function t(e){var n=r.call(this,e)||this;return n.state={value:n.question.value},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,i=this.renderCleanButton();return s.createElement("div",{className:n.root,ref:function(p){return e.setControl(p)},style:{width:this.question.renderedCanvasWidth}},s.createElement("div",{className:n.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),s.createElement("div",null,this.renderBackgroundImage(),s.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(p){e.question.onBlur(p)}})),i,o)},t.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?s.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},t.prototype.renderLoadingIndicator=function(){return s.createElement("div",{className:this.question.cssClasses.loadingIndicator},s.createElement(Fe,null))},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var n=this.question.cssClasses;return s.createElement("div",{className:n.controls},s.createElement("button",{type:"button",className:n.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?s.createElement(M,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):s.createElement("span",null,"✖")))},t}(P);k.Instance.registerQuestion("signaturepad",function(r){return s.createElement(dn,r)});var hn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$r=function(r){hn(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return u.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map(function(n,o){return u.a.createElement(Jr,{key:e.question.inputId+"_"+o,item:n,question:e.question,index:o})})},t}(P),Jr=function(r){hn(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new a.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),n=this.renderInput(),o=this.renderCaption();return u.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},n,u.a.createElement("div",{className:this.model.css.decorator},e,o))},t.prototype.renderIcon=function(){return this.model.iconName?u.a.createElement(M,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return u.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return u.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(g),fn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(r){fn(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getStateElements=function(){var e=r.prototype.getStateElements.call(this);return this.question.contentQuestion&&e.push(this.question.contentQuestion),e},t.prototype.renderElement=function(){return ce.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(D),vn=function(r){fn(t,r);function t(e){return r.call(this,e)||this}return t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return s.createElement(pe,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(D);k.Instance.registerQuestion("custom",function(r){return s.createElement(mn,r)}),k.Instance.registerQuestion("composite",function(r){return s.createElement(vn,r)});var Gr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yn=function(r){Gr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=this.renderLocString(this.item.locTitle,void 0,"locString"),n=this.item.iconName?u.a.createElement(M,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,o=this.item.markerIconName?u.a.createElement(M,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:"auto"}):null;return u.a.createElement(u.a.Fragment,null,n,e,o)},t}(g);c.Instance.registerElement("sv-list-item-content",function(r){return u.a.createElement(yn,r)});var Yr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gn=function(r){Yr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e;if(!this.item)return null;var n=c.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return u.a.createElement(u.a.Fragment,null,n,u.a.createElement(Q,{model:(e=this.item)===null||e===void 0?void 0:e.popupModel}))},t}(g);c.Instance.registerElement("sv-list-item-group",function(r){return u.a.createElement(gn,r)});var Xr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cn=function(r){Xr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(u.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},u.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml||null,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),u.a.createElement(u.a.Fragment,null,e)},t}(u.a.Component);c.Instance.registerElement("sv-logo-image",function(r){return u.a.createElement(Cn,r)});var eo=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xn=function(r){eo(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return u.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,u.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(w);c.Instance.registerElement("sv-matrix-remove-button",function(r){return u.a.createElement(xn,r)});var to=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wn=function(r){to(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,n=e,o=e?this.row.detailPanelId:void 0;return u.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":n,"aria-controls":o},u.a.createElement(M,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(w);c.Instance.registerElement("sv-matrix-detail-button",function(r){return u.a.createElement(wn,r)});var no=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),En=function(r){no(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.removePanelUI(e.data.panel)},e}return t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locPanelRemoveText),n=this.question.getPanelRemoveButtonId(this.data.panel);return u.a.createElement("button",{id:n,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},u.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},e),u.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-remove-btn",function(r){return u.a.createElement(En,r)});var ro=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qn=function(r){ro(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return u.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(w);c.Instance.registerElement("sv-nav-btn",function(r){return u.a.createElement(qn,r)});var oo=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tt=function(r){oo(t,r);function t(e){var n=r.call(this,e)||this;return n.onChangedHandler=function(o,i){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,n){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){var e=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var n={__html:this.locStr.renderedHtml};return u.a.createElement("span",{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:n})}return u.a.createElement("span",{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)},t}(u.a.Component);c.Instance.registerElement(a.LocalizableString.defaultRenderer,function(r){return u.a.createElement(tt,r)});var so=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sn=function(r){so(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return u.a.createElement("div",null,u.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),u.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},u.a.createElement(tt,{locStr:this.props.error.locText})))},t}(u.a.Component);c.Instance.registerElement("sv-question-error",function(r){return u.a.createElement(Sn,r)});var io=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),On=function(r){io(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e,n;return u.a.createElement("div",{className:"sv-skeleton-element",id:(e=this.props.element)===null||e===void 0?void 0:e.id,style:{height:(n=this.props.element)===null||n===void 0?void 0:n.skeletonHeight}})},t}(u.a.Component);c.Instance.registerElement("sv-skeleton",function(r){return u.a.createElement(On,r)});var nt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ln=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),n=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return c.Instance.createElement(e,{data:n})},t.prototype.render=function(){return u.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?u.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?u.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement(Y,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?u.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement("div",{className:this.model.survey.css.description},g.renderLocString(this.model.survey.locDescription))):null)},t}(u.a.Component),Mn=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),n=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return c.Instance.createElement(e,{data:n})},t.prototype.render=function(){return u.a.createElement("div",{className:this.model.css,style:this.model.style},u.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?u.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?u.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement(Y,{element:this.model.survey})):null,this.model.showDescription?u.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement("div",{className:this.model.survey.css.description},g.renderLocString(this.model.survey.locDescription))):null))},t}(u.a.Component),In=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(this.model.survey=this.props.survey,this.props.survey.headerView!=="advanced")return null;var e=null;return this.props.survey.isMobile?e=u.a.createElement(Ln,{model:this.model}):e=u.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map(function(n,o){return u.a.createElement(Mn,{key:o,model:n})})),u.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?u.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)},t}(g);c.Instance.registerElement("sv-header",function(r){return u.a.createElement(In,r)});var ao=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bn=function(r){ao(t,r);function t(e){var n=r.call(this,e)||this;return n.onInput=function(o){n.locStr.text=o.target.innerText},n.onClick=function(o){o.preventDefault(),o.stopPropagation()},n.state={changed:0},n}return Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return u.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return u.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(u.a.Component);c.Instance.registerElement(a.LocalizableString.editableRenderer,function(r){return u.a.createElement(bn,r)}),Object(a.checkLibraryVersion)("1.12.23","survey-react-ui")},react:function(S,h){S.exports=m},"react-dom":function(S,h){S.exports=x},"survey-core":function(S,h){S.exports=C}})})}(be)),be.exports}var Eo=wo();function Nn(I,l){var m,x;if(l.column.indexValue==0&&"item"in l.row){const C=l.row.item;C.customDescription!==void 0&&((m=l.htmlElement.parentElement)==null||m.children[0].children[0].setAttribute("description",C.customDescription),(x=l.htmlElement.parentElement)==null||x.children[0].children[0].classList.add("survey-tooltip"))}}function kn(I,l){if(l.question.hideCheckboxLabels){const m=l.cssClasses;m.root+=" hidden-checkbox-labels"}}function qo(I,l){var C;const m='[data-name="'+l.question.name+'"]',x=(C=document.querySelector(m))==null?void 0:C.querySelector("h5");x&&!x.classList.contains("sv-header-flex")&&l.question.updateElementCss()}function jn(I,l){if(l.name!=="description")return;let m=l.text;if(!m.length)return;const x=["e.g.","i.e.","etc.","vs."];for(const d of x)m.includes(d)&&(m=m.replace(d,d.slice(0,-1)));const C=m.split(". ");for(let d=0;d<C.length;d++)if(C[d].length!=0)for(const a of x)C[d].includes(a.slice(0,-1))&&(C[d]=C[d].replace(a.slice(0,-1),a));const S=d=>d.includes("*")?d.split("*").map((a,s)=>s==0?a:s==1?`<ul><li>${a}</li>`:`<li>${a}</li>`).join("")+"</ul>":d.endsWith(".")?d:d+".",h=C.map(d=>d.length?`<p>${S(d)}</p>`:null).join("");l.html=h}function So(I){var h;const l=!!I.visibleIf,m='[data-name="'+I.name+'"]',x=document.querySelector(m),C=x==null?void 0:x.querySelector("h5");if(l){x.style.display="none";return}C&&(C.style.textDecoration="line-through");const S=(h=document.querySelector(m))==null?void 0:h.querySelector(".sv-question__content");S&&(S.style.display="none")}function rt(I,l,m){var d;m.verificationStatus.set(I.name,l);const x=document.createElement("button");x.type="button",x.className="sv-action-bar-item verification",x.innerHTML=l,l==we.Unverified?(x.innerHTML="No change from previous year",x.className+=" verification-required",x.onclick=function(){m.mode!="display"&&(I.validate(),rt(I,we.Verified,m))}):(x.innerHTML="Answer updated",x.className+=" verification-ok");const C='[data-name="'+I.name+'"]',S=(d=document.querySelector(C))==null?void 0:d.querySelector("h5"),h=S==null?void 0:S.querySelector(".verification");h?h.replaceWith(x):S==null||S.appendChild(x)}function Oo(I){const l=Re.c(5),{surveyModel:m}=I;let x,C;l[0]!==m?(x=()=>{const h=(a,s)=>{m.verificationStatus.get(s.question.name)==we.Unverified&&rt(s.question,we.Edited,m)},d=(a,s)=>{var y;const u=m.verificationStatus.get(s.question.name),c=(y=s.question)==null?void 0:y.readOnly;u&&!c?rt(s.question,u,m):c&&So(s.question)};m.onAfterRenderQuestion.hasFunc(d)||(m.onAfterRenderQuestion.add(d),m.onAfterRenderQuestion.add(qo)),m.onValueChanged.hasFunc(h)||m.onValueChanged.add(h),m.onUpdateQuestionCssClasses.hasFunc(kn)||m.onUpdateQuestionCssClasses.add(kn),m.onMatrixAfterCellRender.hasFunc(Nn)||m.onMatrixAfterCellRender.add(Nn),m.onTextMarkdown.hasFunc(jn)||m.onTextMarkdown.add(jn)},C=[m],l[0]=m,l[1]=x,l[2]=C):(x=l[1],C=l[2]),F.useEffect(x,C);let S;return l[3]!==m?(S=L.jsx(Eo.Survey,{model:m}),l[3]=m,l[4]=S):S=l[4],S}function Lo(I){const l=Re.c(14),{surveyModel:m,pageNoSetter:x,pageNo:C}=I;let S;l[0]===Symbol.for("react.memo_cache_sentinel")?(S=[],l[0]=S):S=l[0];const[h,d]=F.useState(S),a=Io;let s,u;l[1]!==m?(s=()=>{const w=P=>{if(P&&P.pages){const D=[];P.pages.forEach(N=>{const O=N.questions.filter(Mo),B=O.length,R=O.filter(a).length,H=B-R,_=R/B;D.push({completionPercentage:_*100,unansweredPercentage:H/B*100,totalPages:P.pages.length,pageTitle:N.title})}),d(D)}};m.onValueChanged.add(P=>{w(P)}),w(m)},u=[m],l[1]=m,l[2]=s,l[3]=u):(s=l[2],u=l[3]),F.useEffect(s,u);let c;l[4]===Symbol.for("react.memo_cache_sentinel")?(c={height:"0.5rem",transition:"width 0.3s ease"},l[4]=c):c=l[4];const y=c;let E;if(l[5]!==C||l[6]!==x||l[7]!==h){let w;l[9]!==C||l[10]!==x?(w=(P,D)=>L.jsx(co,{xs:12,md:!0,onClick:()=>x(D),style:{cursor:"pointer",margin:"0.5rem"},children:L.jsxs("div",{children:[L.jsx("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"},children:D+1}),L.jsx("span",{style:{whiteSpace:"nowrap",...C==D&&{fontWeight:"bold"}},children:P.pageTitle}),L.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[L.jsx("div",{style:{...y,width:`${P.completionPercentage}%`,backgroundColor:"#262261"}}),L.jsx("div",{style:{...y,width:`${P.unansweredPercentage}%`,backgroundColor:"#cdcdcd"}})]})]})},D),l[9]=C,l[10]=x,l[11]=w):w=l[11],E=h.map(w),l[5]=C,l[6]=x,l[7]=h,l[8]=E}else E=l[8];let g;return l[12]!==E?(g=L.jsx(ot,{className:"survey-progress",children:L.jsx(fe,{children:E})}),l[12]=E,l[13]=g):g=l[13],g}function Mo(I){return I.startWithNewLine}function Io(I){return!(I.value===null||I.value===void 0||I.value===""||I.getType()==="checkbox"&&I.value.length==0||I.getType()==="multipletext"&&(Object.keys(I.value).length===1&&Object.values(I.value)[0]===void 0||Object.keys(I.value).length===0))}function bo(I){const l=Re.c(70),{surveyModel:m,surveyActions:x,year:C,nren:S,children:h,onPageChange:d}=I,{user:a}=F.useContext(Bn),s=(m==null?void 0:m.currentPageNo)??0,u=(m==null?void 0:m.mode)==="edit",c=(m==null?void 0:m.lockedBy)??"",y=(m==null?void 0:m.status)??"";let E;l[0]!==d||l[1]!==m.currentPageNo?(E=()=>{d(m.currentPageNo+1)},l[0]=d,l[1]=m.currentPageNo,l[2]=E):E=l[2];const g=E;let w;l[3]!==d||l[4]!==x||l[5]!==m.currentPageNo?(w=async me=>{await x[me](),d(m.currentPageNo)},l[3]=d,l[4]=x,l[5]=m.currentPageNo,l[6]=w):w=l[6];const P=w,D=Ro;let N;l[7]!==P?(N=(me,Y)=>D(me,()=>P(Y)),l[7]=P,l[8]=N):N=l[8];const O=N;let B;l[9]!==u||l[10]!==g||l[11]!==c||l[12]!==a||l[13]!==s||l[14]!==O||l[15]!==m.editAllowed||l[16]!==m.visiblePages.length?(B=()=>L.jsxs("div",{className:"survey-edit-buttons-block",children:[!u&&!c&&m.editAllowed&&O("Start editing","startEdit"),!u&&c&&c==a.name&&O("Discard any unsaved changes and release your lock","releaseLock"),u&&O("Save progress","save"),u&&O("Save and stop editing","saveAndStopEdit"),u&&O("Complete Survey","complete"),s!==m.visiblePages.length-1&&D("Next Section",g)]}),l[9]=u,l[10]=g,l[11]=c,l[12]=a,l[13]=s,l[14]=O,l[15]=m.editAllowed,l[16]=m.visiblePages.length,l[17]=B):B=l[17];const R=B;let H;l[18]!==C?(H=L.jsxs("span",{className:"survey-title",children:[C," Compendium Survey "]}),l[18]=C,l[19]=H):H=l[19];let _;l[20]!==S?(_=L.jsxs("span",{className:"survey-title-nren",children:[" ",S," "]}),l[20]=S,l[21]=_):_=l[21];let Z;l[22]!==y?(Z=L.jsxs("span",{children:[" - ",y]}),l[22]=y,l[23]=Z):Z=l[23];let M;l[24]!==H||l[25]!==_||l[26]!==Z?(M=L.jsxs("h2",{children:[H,_,Z]}),l[24]=H,l[25]=_,l[26]=Z,l[27]=M):M=l[27];let le,ie;l[28]===Symbol.for("react.memo_cache_sentinel")?(ie={marginTop:"1rem",textAlign:"justify"},le=L.jsxs("p",{children:["To get started, click “","Start editing","” to end read-only mode. Different people from your NREN (Compendium administrators) can contribute to the survey if needed, but agreement should be reached internally before completing the survey as the administration team will treat responses as a single source of truth from the NREN. You can start editing only when nobody else from your NREN is currently working on the survey."]}),l[28]=le,l[29]=ie):(le=l[28],ie=l[29]);let K;l[30]!==C?(K=L.jsxs("p",{children:[L.jsxs("b",{children:["In a small change, the survey now asks about this calendar year, i.e. ",C]})," (or the current financial year if your budget or staffing data does not match the calendar year). For network questions, please provide data from the 12 months preceding you answering the question. Where available, the survey questions are pre-filled with answers from the previous survey. You can edit the pre-filled answer to provide new information, or press the “no change from previous year” button."]}),l[30]=C,l[31]=K):K=l[31];let $,ae;l[32]===Symbol.for("react.memo_cache_sentinel")?($=L.jsxs("p",{children:["Press the “","Save progress","“ or “","Save and stop editing","“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “","Complete Survey","“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published. As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “","Complete Survey","“ button."]}),ae=L.jsx("p",{children:"Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question. If you notice any errors after the survey was closed, please contact us for correcting those."}),l[32]=$,l[33]=ae):($=l[32],ae=l[33]);let W;l[34]!==K?(W=L.jsxs("div",{style:ie,children:[le,K,$,ae]}),l[34]=K,l[35]=W):W=l[35];let Q;l[36]===Symbol.for("react.memo_cache_sentinel")?(Q=L.jsx("a",{href:"mailto:Partner-Relations@geant.org",children:L.jsx("span",{children:"Partner-Relations@geant.org"})}),l[36]=Q):Q=l[36];let U;l[37]!==C?(U=L.jsxs("p",{children:["Thank you for taking the time to fill in the ",C," Compendium Survey. Any questions or requests can be sent to ",Q]}),l[37]=C,l[38]=U):U=l[38];let ee;l[39]!==u?(ee=u&&L.jsxs(L.Fragment,{children:[L.jsx("br",{}),L.jsxs("b",{children:["Remember to click “","Save and stop editing","” before leaving the page."]})]}),l[39]=u,l[40]=ee):ee=l[40];let te;l[41]!==W||l[42]!==U||l[43]!==ee||l[44]!==M?(te=L.jsxs(fe,{className:"survey-content",children:[M,W,U,ee]}),l[41]=W,l[42]=U,l[43]=ee,l[44]=M,l[45]=te):te=l[45];let ne;l[46]!==R?(ne=L.jsx(fe,{children:R()}),l[46]=R,l[47]=ne):ne=l[47];let re;l[48]!==u||l[49]!==c||l[50]!==a||l[51]!==m.editAllowed?(re=!u&&L.jsxs("div",{className:"survey-edit-explainer",children:[!c&&m.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!c&&!m.editAllowed&&"The survey is in read-only mode and can not be edited by you.",c&&c!=a.name&&"The survey is in read-only mode and currently being edited by: "+c+". To start editing the survey, ask them to complete their edits.",c&&c==a.name&&'The survey is in read-only mode because you started editing in another tab, browser or device. To start editing the survey, either complete those edits or click the "Discard any unsaved changes" button.']}),l[48]=u,l[49]=c,l[50]=a,l[51]=m.editAllowed,l[52]=re):re=l[52];let T;l[53]!==re?(T=L.jsx(fe,{className:"survey-content",children:re}),l[53]=re,l[54]=T):T=l[54];let oe;l[55]!==d||l[56]!==s||l[57]!==m?(oe=L.jsx(Lo,{surveyModel:m,pageNoSetter:d,pageNo:s}),l[55]=d,l[56]=s,l[57]=m,l[58]=oe):oe=l[58];let J;l[59]!==h||l[60]!==oe?(J=L.jsxs(fe,{children:[oe,h]}),l[59]=h,l[60]=oe,l[61]=J):J=l[61];let se;l[62]!==R?(se=L.jsx(fe,{children:R()}),l[62]=R,l[63]=se):se=l[63];let G;return l[64]!==te||l[65]!==ne||l[66]!==T||l[67]!==J||l[68]!==se?(G=L.jsxs(ot,{children:[te,ne,T,J,se]}),l[64]=te,l[65]=ne,l[66]=T,l[67]=J,l[68]=se,l[69]=G):G=l[69],G}function Ro(I,l){return L.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:l,children:I})}function Po(I){const l=Re.c(5),m=I.when,x=I.onPageExit;let C;l[0]!==m||l[1]!==x||l[2]!==I.message?(C=()=>{if(m()){const h=window.confirm(I.message);return h&&x(),!h}return!1},l[0]=m,l[1]=x,l[2]=I.message,l[3]=C):C=l[3],po(C);let S;return l[4]===Symbol.for("react.memo_cache_sentinel")?(S=L.jsx("div",{}),l[4]=S):S=l[4],S}ue.Serializer.addProperty("itemvalue","customDescription:text");ue.Serializer.addProperty("question","hideCheckboxLabels:boolean");function Do({loadFrom:I}){const[l,m]=F.useState(),{year:x,nren:C}=ho(),[S,h]=F.useState("loading survey..."),{user:d}=F.useContext(Bn),s=!!d.id?d.permissions.admin:!1;ue.FunctionFactory.Instance.hasFunction("validateQuestion")||ue.FunctionFactory.Instance.register("validateQuestion",yo),ue.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||ue.FunctionFactory.Instance.register("validateWebsiteUrl",go);const{trackPageView:u}=fo(),c=F.useCallback(N=>(N.preventDefault(),N.returnValue=""),[]),y=F.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+x+"/"+C)},[]),E=F.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+x+"/"+C),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y)},[]);if(F.useEffect(()=>{async function N(){const O=await fetch(I+x+(C?"/"+C:"")),B=await O.json();if(!O.ok)throw"message"in B?new Error(B.message):new Error(`Request failed with status ${O.status}`);const R=new ue.Model(B.model);R.setVariable("surveyyear",x),R.setVariable("previousyear",parseInt(x)-1),R.showNavigationButtons=!1,R.requiredText="",R.verificationStatus=new Map;for(const H in B.verification_status)R.verificationStatus.set(H,B.verification_status[H]);R.data=B.data,R.clearIncorrectValues(!0),R.currentPageNo=B.page,R.mode=B.mode,R.lockedBy=B.locked_by,R.status=B.status,R.editAllowed=B.edit_allowed,m(R)}N().catch(O=>h("Error when loading survey: "+O.message)).then(()=>{u({documentTitle:`Survey for ${C} (${x})`})})},[]),!l)return S;const g=async(N,O)=>{if(!C)return"Saving not available in inpect/try mode";const B={lock_uuid:N.lockUUID,new_state:O,data:N.data,page:N.currentPageNo,verification_status:Object.fromEntries(N.verificationStatus)};try{const R=await fetch("/api/response/save/"+x+"/"+C,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(B)}),H=await R.json();if(!R.ok)return H.message;l.mode=H.mode,l.lockedBy=H.locked_by,l.status=H.status}catch(R){return"Unknown Error: "+R.message}},w=(N,O=!0)=>{let B="";const R=(_,Z)=>{_.verificationStatus.get(Z.name)==we.Unverified&&(B==""&&(B=Z.name),Z.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};O&&l.onValidateQuestion.add(R);const H=N();return O&&l.onValidateQuestion.remove(R),H||A("Validation failed!"),H},P={save:async()=>{if(!w(l.validate.bind(l,!0,!0),!1)){A("Please correct the invalid fields before saving!");return}const O=await g(l,"editing");O?A("Failed saving survey: "+O):A("Survey saved!")},complete:async()=>{if(w(l.validate.bind(l,!0,!0))){const O=await g(l,"completed");O?A("Failed completing survey: "+O):(A("Survey completed!"),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y))}},saveAndStopEdit:async()=>{if(!w(l.validate.bind(l,!0,!0),!1)){A("Please correct the invalid fields before saving.");return}const O=await g(l,"readonly");O?A("Failed saving survey: "+O):(A("Survey saved!"),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y))},startEdit:async()=>{const N=await fetch("/api/response/lock/"+x+"/"+C,{method:"POST"}),O=await N.json();if(!N.ok){A("Failed starting edit: "+O.message);return}addEventListener("pagehide",y),addEventListener("beforeunload",c,{capture:!0});for(const R in O.verification_status)l.verificationStatus.set(R,O.verification_status[R]);if(l.data=O.data,l.clearIncorrectValues(!0),l.mode=O.mode,l.lockedBy=O.locked_by,l.lockUUID=O.lock_uuid,l.status=O.status,!w(l.validate.bind(l,!0,!0),!1)){A("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const N=await fetch("/api/response/unlock/"+x+"/"+C,{method:"POST"}),O=await N.json();if(!N.ok){A("Failed releasing lock: "+O.message);return}l.mode=O.mode,l.lockedBy=O.locked_by,l.status=O.status},validatePage:()=>{w(l.validatePage.bind(l))&&A("Page validation successful!")}};l.css.question.title.includes("sv-header-flex")||(l.css.question.title="sv-title sv-question__title sv-header-flex",l.css.question.titleOnError="sv-question__title--error sv-error-color-fix");const D=N=>{l&&(l.currentPageNo=N,m(Object.create(l)))};return L.jsxs(L.Fragment,{children:[s?L.jsx(Co,{}):null,L.jsxs(ot,{className:"survey-container",children:[L.jsx(mo,{}),L.jsx(Po,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:()=>l.mode=="edit"&&!!C,onPageExit:E}),L.jsx(bo,{surveyModel:l,surveyActions:P,year:x,nren:C,onPageChange:D,children:L.jsx(Oo,{surveyModel:l})})]})]})}export{Do as default};
diff --git a/compendium_v2/static/SurveyManagementComponent-DMYN1lq-.js b/compendium_v2/static/SurveyManagementComponent-DMYN1lq-.js
deleted file mode 100644
index 891e0dac72f03f46a00798e768e25c057d7193c3..0000000000000000000000000000000000000000
--- a/compendium_v2/static/SurveyManagementComponent-DMYN1lq-.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as S,u as U,j as t,c as V,X as O,a as D,N as v,L as M,e as W,R as X}from"./main-BIBsTO5W.js";import{A as B,l as Q}from"./lodash-BjwYmmCl.js";import{T as Y}from"./Table-HH9WOnMU.js";import{k as m,D as Z}from"./index-CuSQpLoM.js";import{S as d}from"./Schema-BuKG9dA7.js";import{f as F,S as ee}from"./survey.js";import"./hook-DmuGcAOd.js";import"./xlsx-CxqzP9DR.js";const G=S.forwardRef(({bsPrefix:e,variant:i,animation:n="border",size:r,as:a="div",className:h,...u},p)=>{e=U(e,"spinner");const y=`${e}-${n}`;return t.jsx(a,{ref:p,...u,className:V(h,y,r&&`${y}-${r}`,i&&`text-${i}`)})});G.displayName="Spinner";function te(e){return O({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M362.6 192.9L345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function se(e){return O({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"},child:[]}]})(e)}function ne(e){return O({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M331.3 308.7L278.6 256l52.7-52.7c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-52.7-52.7c-6.2-6.2-15.6-7.1-22.6 0-7.1 7.1-6 16.6 0 22.6l52.7 52.7-52.7 52.7c-6.7 6.7-6.4 16.3 0 22.6 6.4 6.4 16.4 6.2 22.6 0l52.7-52.7 52.7 52.7c6.2 6.2 16.4 6.2 22.6 0 6.3-6.2 6.3-16.4 0-22.6z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function re(e){return O({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(e)}function ie(e){const i=D.c(2),{status:n}=e;let r;return i[0]!==n?(r={completed:t.jsx(se,{title:n,size:24,color:"green"}),started:t.jsx(te,{title:n,size:24,color:"rgb(217, 117, 10)"}),"did not respond":t.jsx(re,{title:n,size:24,color:"red"}),"not started":t.jsx(ne,{title:n,size:24})},i[0]=n,i[1]=r):r=i[1],r[n]||n}function le(e,i,n){fetch("/api/survey/"+e+"/"+i+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:n||""})}).then(async r=>{const a=await r.json();r.ok?m.success("Notes saved"):m.error("Failed saving notes: "+a.message||r.statusText)}).catch(r=>{m.error("Failed saving notes: "+r)})}function w({text:e,helpText:i,onClick:n,enabled:r}){const[a,h]=S.useState(!1),u=async()=>{if(!a){h(!0);try{await n()}finally{h(!1)}}};return t.jsxs(v,{onClick:u,disabled:!r,style:{pointerEvents:"auto",marginLeft:".5rem"},title:i,children:[a&&t.jsx(G,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),e]})}function fe(){const e=D.c(21);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[n,r]=S.useState(i),a=S.useRef(!1);let h,u;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{F().then(c=>{r(c)})},u=[],e[1]=h,e[2]=u):(h=e[1],u=e[2]),S.useEffect(h,u);let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=async function(s,o,l,j){const A=j===void 0?!1:j;try{A&&(s=s+"?dry_run=1");const T=await fetch(s,{method:"POST"}),z=await T.json();T.ok?(z.message&&console.log(z.message),A||m(l),F().then(J=>{r(J)})):m(o+z.message)}catch(T){m(o+T.message)}},e[3]=p):p=e[3];const y=p;let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=async function(){await y("/api/survey/new","Failed creating new survey: ","Created new survey")},e[4]=k):k=e[4];const H=k;let C;e[5]===Symbol.for("react.memo_cache_sentinel")?(C=async function(s,o,l){const j=l===void 0?!1:l;if(a.current){m("Wait for status update to be finished...");return}a.current=!0,await y("/api/survey/"+o+"/"+s,"Error while updating "+s+" survey status to "+o+": ",s+" survey status updated to "+o,j),a.current=!1},e[5]=C):C=e[5];const g=C;let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=async function(s,o){await y("/api/response/unlock/"+s+"/"+o,"Error while unlocking "+o+" "+s+" survey response: ",o+" "+s+" survey response unlocked")},e[6]=_):_=e[6];const K=_,q=n.length>0&&n.every(oe),P=window.location.origin+"/data?preview";let L;e[7]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(ee,{}),e[7]=L):L=e[7];let N;e[8]===Symbol.for("react.memo_cache_sentinel")?(N={maxWidth:"100rem"},e[8]=N):N=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(Z,{}),e[9]=I):I=e[9];const $=!q;let E;e[10]===Symbol.for("react.memo_cache_sentinel")?(E={pointerEvents:"auto",width:"10rem",margin:"1rem"},e[10]=E):E=e[10];let f;e[11]!==$?(f=t.jsx(v,{onClick:H,disabled:$,style:E,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),e[11]=$,e[12]=f):f=e[12];let x;if(e[13]!==n){let c;e[15]===Symbol.for("react.memo_cache_sentinel")?(c=(s,o)=>t.jsxs(B.Item,{eventKey:o.toString(),children:[t.jsxs(B.Header,{children:[s.year," - ",s.status]}),t.jsxs(B.Body,{children:[t.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[t.jsx(M,{to:`/survey/admin/edit/${s.year}`,target:"_blank",children:t.jsx(v,{style:{marginLeft:".5rem"},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title.",children:"Inspect Survey"})}),t.jsx(M,{to:`/survey/admin/try/${s.year}`,target:"_blank",children:t.jsx(v,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),t.jsx(w,{text:"Mark as open",helpText:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore.",enabled:s.status==d.closed,onClick:()=>g(s.year,"open")}),t.jsx(w,{text:"Mark as closed",helpText:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed.",enabled:s.status==d.open,onClick:()=>g(s.year,"close")}),t.jsx(w,{text:"Preview results",helpText:"Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already.",enabled:s.status==d.closed||s.status==d.preview,onClick:()=>g(s.year,"preview")}),t.jsx(w,{text:"Publish results (dry run)",helpText:"Performs a dry-run of the publish operation, without actually publishing the results. Changes are logged in the browser console (F12).",enabled:s.status==d.preview||s.status==d.published,onClick:()=>g(s.year,"publish",!0)}),t.jsx(w,{text:"Publish results",helpText:"Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already.",enabled:s.status==d.preview||s.status==d.published,onClick:()=>g(s.year,"publish")}),s.status==d.preview&&t.jsxs("span",{children:["  Preview link: ",t.jsx("a",{href:P,children:P})]})]}),t.jsxs(Y,{children:[t.jsxs("colgroup",{children:[t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"30%"}}),t.jsx("col",{style:{width:"20%"}})]}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"NREN"}),t.jsx("th",{children:"Status"}),t.jsx("th",{children:"Lock"}),t.jsx("th",{children:"Management Notes"}),t.jsx("th",{children:"Actions"})]})}),t.jsx("tbody",{children:s.responses.map(l=>t.jsxs("tr",{children:[t.jsx("td",{children:l.nren.name}),t.jsx("td",{children:t.jsx(ie,{status:l.status})}),t.jsx("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"},children:l.lock_description}),t.jsx("td",{children:"notes"in l&&t.jsx("textarea",{onInput:Q.debounce(j=>le(s.year,l.nren.id,j.target.value),1e3),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:l.notes||""})}),t.jsxs("td",{children:[t.jsx(M,{to:`/survey/response/${s.year}/${l.nren.name}`,target:"_blank",children:t.jsx(v,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN.",children:"open"})}),t.jsx(v,{onClick:()=>K(s.year,l.nren.name),disabled:l.lock_description=="",style:{pointerEvents:"auto"},title:"Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be able to save their changes anymore once someone else starts editing!",children:"remove lock"})]})]},l.nren.id))})]})]})]},s.year),e[15]=c):c=e[15],x=n.map(c),e[13]=n,e[14]=x}else x=e[14];let b;e[16]!==x?(b=t.jsx(B,{defaultActiveKey:"0",children:x}),e[16]=x,e[17]=b):b=e[17];let R;return e[18]!==f||e[19]!==b?(R=t.jsxs(t.Fragment,{children:[L,t.jsx(W,{className:"py-5 grey-container",children:t.jsx(W,{style:N,children:t.jsxs(X,{children:[I,f,b]})})})]}),e[18]=f,e[19]=b,e[20]=R):R=e[20],R}function oe(e){return e.status==d.published}export{fe as default};
diff --git a/compendium_v2/static/SurveyManagementComponent-DygIuffI.js b/compendium_v2/static/SurveyManagementComponent-DygIuffI.js
new file mode 100644
index 0000000000000000000000000000000000000000..2b87753c0ecb17d1c4fd43ed089b275b44b98706
--- /dev/null
+++ b/compendium_v2/static/SurveyManagementComponent-DygIuffI.js
@@ -0,0 +1,3 @@
+import{r as P,h as K,j as t,i as X,_ as Q,c as G,y,a7 as Y,L as W,E as D,R as Z}from"./index.js";import{A as z,l as ee}from"./lodash-0qAddrJ1.js";import{T as te}from"./Table-ClWM2_rS.js";import{k as m,D as se}from"./index-BGZcCZJE.js";import{v as ne,o as ae,S as o}from"./validation-COFmylEH.js";import{a as A}from"./survey-3meXCY6T.js";import{S as re}from"./SurveySidebar-CG0gwQ6b.js";import"./hook-BbhLqP_c.js";import"./SideBar-CkoMfgfL.js";const H=P.forwardRef(({bsPrefix:e,variant:n,animation:l="border",size:a,as:i="div",className:c,...d},p)=>{e=K(e,"spinner");const f=`${e}-${l}`;return t.jsx(i,{ref:p,...d,className:X(c,f,a&&`${f}-${a}`,n&&`text-${n}`)})});H.displayName="Spinner";function ie(e){return Q({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"},child:[]}]})(e)}function oe(e){return Q({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(e)}function q(e){const n=G.c(4),{status:l}=e;let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(y,{variant:"success",size:"sm",children:t.jsx("strong",{children:"Completed"})}),n[0]=a):a=n[0];let i;n[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(y,{variant:"warning",size:"sm",children:t.jsx("strong",{children:"Started"})}),n[1]=i):i=n[1];let c;n[2]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(y,{variant:"danger",size:"sm",children:t.jsx("strong",{children:"Did not respond"})}),n[2]=c):c=n[2];let d;return n[3]===Symbol.for("react.memo_cache_sentinel")?(d={completed:a,started:i,"did not respond":c,"not started":t.jsx(y,{variant:"info",size:"sm",children:t.jsx("strong",{children:"Not started"})}),true:t.jsx(ie,{size:24,color:"green"}),false:t.jsx(oe,{size:24,color:"red"})},n[3]=d):d=n[3],d[l]||l}async function U(e,n){const{Model:l,FunctionFactory:a,Serializer:i}=await Y(async()=>{const{Model:v,FunctionFactory:j,Serializer:B}=await import("./survey.core-D1mOb2z9.js").then(O=>O.s);return{Model:v,FunctionFactory:j,Serializer:B}},[]);function c(){const v=i.getAllPropertiesByName("customDescription"),j=i.getAllPropertiesByName("hideCheckboxLabels");v.length||i.addProperty("itemvalue","customDescription:text"),j.length||i.addProperty("question","hideCheckboxLabels:boolean")}if(a.Instance.hasFunction("validateQuestion")||a.Instance.register("validateQuestion",ne),a.Instance.hasFunction("validateWebsiteUrl")||a.Instance.register("validateWebsiteUrl",ae),!e||!n)return!0;const d=`/api/response/load/${e}/${n}`,p=await fetch(d),f=await p.json();if(!p.ok)throw"message"in f?new Error(f.message):new Error(`Request failed with status ${p.status}`);c();const h=new l(f.model);h.setVariable("surveyyear",e),h.setVariable("previousyear",parseInt(e)-1),h.showNavigationButtons=!1,h.requiredText="",h.data=f.data,h.clearIncorrectValues(!0);const E=h.validate.bind(h,!0,!0)();return(await fetch(`/api/response/validate/${e}/${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({valid:E})})).ok?E:!0}function le(e,n,l){fetch("/api/survey/"+e+"/"+n+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:l||""})}).then(async a=>{const i=await a.json();a.ok?m.success("Notes saved"):m.error("Failed saving notes: "+i.message||a.statusText)}).catch(a=>{m.error("Failed saving notes: "+a)})}function _({text:e,helpText:n,onClick:l,enabled:a}){const[i,c]=P.useState(!1),d=async()=>{if(!i){c(!0);try{await l()}finally{c(!1)}}};return t.jsxs(y,{onClick:d,disabled:!a,style:{pointerEvents:"auto",marginLeft:".5rem"},title:n,children:[i&&t.jsx(H,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),e]})}function ge(){const e=G.c(21);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],e[0]=n):n=e[0];const[l,a]=P.useState(n),i=P.useRef(!1);let c,d;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{A().then(x=>{a(x)})},d=[],e[1]=c,e[2]=d):(c=e[1],d=e[2]),P.useEffect(c,d);let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=async function(s,u,r,b){const N=b===void 0?!1:b;try{N&&(s=s+"?dry_run=1");const w=await fetch(s,{method:"POST"}),F=await w.json();w.ok?(F.message&&console.log(F.message),N||m(r),A().then(J=>{a(J)})):m(u+F.message)}catch(w){m(u+w.message)}},e[3]=p):p=e[3];const f=p;let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=async function(){await f("/api/survey/new","Failed creating new survey: ","Created new survey")},e[4]=h):h=e[4];const E=h;let C;e[5]===Symbol.for("react.memo_cache_sentinel")?(C=async function(s,u,r){const b=r===void 0?!1:r;if(i.current){m("Wait for status update to be finished...");return}i.current=!0,await f("/api/survey/"+u+"/"+s,"Error while updating "+s+" survey status to "+u+": ",s+" survey status updated to "+u,b),i.current=!1},e[5]=C):C=e[5];const v=C;let j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=async function(s,u){await f("/api/response/unlock/"+s+"/"+u,"Error while unlocking "+u+" "+s+" survey response: ",u+" "+s+" survey response unlocked")},e[6]=j):j=e[6];const B=j,O=l.length>0&&l.every(ue),M=window.location.origin+"/data?preview";let R;e[7]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(re,{}),e[7]=R):R=e[7];let T;e[8]===Symbol.for("react.memo_cache_sentinel")?(T={maxWidth:"100rem"},e[8]=T):T=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(se,{}),e[9]=I):I=e[9];const V=!O;let L;e[10]===Symbol.for("react.memo_cache_sentinel")?(L={pointerEvents:"auto",width:"10rem",margin:"1rem"},e[10]=L):L=e[10];let g;e[11]!==V?(g=t.jsx(y,{onClick:E,disabled:V,style:L,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),e[11]=V,e[12]=g):g=e[12];let S;if(e[13]!==l){let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=(s,u)=>t.jsxs(z.Item,{eventKey:u.toString(),children:[t.jsxs(z.Header,{children:[s.year," - ",s.status]}),t.jsxs(z.Body,{children:[t.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[t.jsx(W,{to:`/survey/admin/edit/${s.year}`,target:"_blank",children:t.jsx(y,{style:{marginLeft:".5rem"},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title.",children:"Inspect Survey"})}),t.jsx(W,{to:`/survey/admin/try/${s.year}`,target:"_blank",children:t.jsx(y,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),s.status==o.closed&&t.jsx(_,{text:"Mark as open",helpText:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore.",enabled:s.status==o.closed,onClick:()=>v(s.year,"open")}),s.status==o.open&&t.jsx(_,{text:"Mark as closed",helpText:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed.",enabled:s.status==o.open,onClick:()=>v(s.year,"close")}),(s.status==o.preview||s.status==o.published)&&t.jsx(_,{text:"Validate surveys",helpText:"Validate all survey responses. This will check if all required questions are answered and if the answers are in the correct format.",enabled:s.status==o.preview||s.status==o.published,onClick:async()=>{const r=[...s.responses].sort(he);(await Promise.all(r.map(w=>U(s.year,w.nren.name)))).every(de)?m.success("All surveys are valid"):m.error(`Some surveys are not valid.
+Please check the responses`),A().then(w=>{a(w)})}}),(s.status==o.closed||s.status==o.preview)&&t.jsx(_,{text:"Preview results",helpText:"Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already.",enabled:s.status==o.closed||s.status==o.preview,onClick:()=>v(s.year,"preview")}),(s.status==o.preview||s.status==o.published)&&t.jsxs(t.Fragment,{children:[t.jsx(_,{text:"Publish results (dry run)",helpText:"Performs a dry-run of the publish operation, without actually publishing the results. Changes are logged in the browser console (F12).",enabled:s.status==o.preview||s.status==o.published,onClick:()=>v(s.year,"publish",!0)}),t.jsx(_,{text:"Publish results",helpText:"Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already.",enabled:s.status==o.preview||s.status==o.published,onClick:()=>v(s.year,"publish")}),s.status==o.preview&&t.jsxs("span",{children:["  Preview link: ",t.jsx("a",{href:M,children:M})]})]})]}),t.jsxs(te,{children:[t.jsxs("colgroup",{children:[t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"30%"}}),t.jsx("col",{style:{width:"20%"}})]}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"NREN"}),t.jsx("th",{children:"Response Status"}),t.jsx("th",{children:"Response Valid"}),t.jsx("th",{children:"Lock"}),t.jsx("th",{children:"Management Notes"}),t.jsx("th",{children:"Actions"})]})}),t.jsx("tbody",{children:s.responses.map(r=>t.jsxs("tr",{children:[t.jsx("td",{children:r.nren.name}),t.jsx("td",{children:t.jsx(q,{status:r.status})}),t.jsx("td",{children:t.jsx(q,{status:r.valid?"true":"false"})}),t.jsx("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"},children:r.lock_description}),t.jsx("td",{children:"notes"in r&&t.jsx("textarea",{onInput:ee.debounce(b=>le(s.year,r.nren.id,b.target.value),1e3),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:r.notes||""})}),t.jsxs("td",{children:[t.jsx(W,{to:`/survey/response/${s.year}/${r.nren.name}`,target:"_blank",children:t.jsx(y,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN.",children:"open"})}),t.jsx(y,{onClick:()=>B(s.year,r.nren.name),disabled:r.lock_description=="",style:{pointerEvents:"auto"},title:"Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be able to save their changes anymore once someone else starts editing!",children:"remove lock"}),r.status=="completed"&&t.jsx(y,{onClick:()=>{U(s.year,r.nren.name).then(b=>{b?m.success("Survey is valid"):m.error(`${r.nren.name} ${s.year} survey is not valid.
+Please check the response`),A().then(N=>{a(N)})}).catch(ce)},style:{pointerEvents:"auto"},children:"Validate Survey"})]})]},r.nren.id))})]})]})]},s.year),e[15]=x):x=e[15],S=l.map(x),e[13]=l,e[14]=S}else S=e[14];let k;e[16]!==S?(k=t.jsx(z,{defaultActiveKey:"0",children:S}),e[16]=S,e[17]=k):k=e[17];let $;return e[18]!==g||e[19]!==k?($=t.jsxs(t.Fragment,{children:[R,t.jsx(D,{className:"py-5 grey-container",children:t.jsx(D,{style:T,children:t.jsxs(Z,{children:[I,g,k]})})})]}),e[18]=g,e[19]=k,e[20]=$):$=e[20],$}function ce(e){m.error("Failed validating survey: "+e)}function de(e){return e}function he(e,n){return e.nren.name.localeCompare(n.nren.name)}function ue(e){return e.status==o.published}export{ge as default};
diff --git a/compendium_v2/static/SurveySidebar-CG0gwQ6b.js b/compendium_v2/static/SurveySidebar-CG0gwQ6b.js
new file mode 100644
index 0000000000000000000000000000000000000000..093c785883be443ebc7a007cc50290f72f91d2ed
--- /dev/null
+++ b/compendium_v2/static/SurveySidebar-CG0gwQ6b.js
@@ -0,0 +1 @@
+import{c as a,j as s,a2 as m}from"./index.js";import{S as o}from"./SideBar-CkoMfgfL.js";const h=()=>{const e=a.c(4);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("h5",{className:"section-title",children:"Management Links"}),e[0]=r):r=e[0];let t;e[1]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(m,{to:"/survey",children:s.jsx("span",{children:"Survey Home"})}),e[1]=t):t=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(m,{to:"/survey/admin/users",children:s.jsx("span",{children:"Compendium User Management"})}),e[2]=n):n=e[2];let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(o,{survey:!0,children:[r,t,n,s.jsx(m,{to:"/survey/admin/surveys",children:s.jsx("span",{children:"Compendium Survey Management"})})]}),e[3]=i):i=e[3],i};export{h as S};
diff --git a/compendium_v2/static/Table-ClWM2_rS.js b/compendium_v2/static/Table-ClWM2_rS.js
new file mode 100644
index 0000000000000000000000000000000000000000..12baa2f1603cba2c9d67f3b2688bf86c46897b97
--- /dev/null
+++ b/compendium_v2/static/Table-ClWM2_rS.js
@@ -0,0 +1 @@
+import{r as m,h as j,i as u,j as l}from"./index.js";const N=m.forwardRef(({bsPrefix:c,className:f,striped:e,bordered:i,borderless:n,hover:d,size:a,variant:o,responsive:r,...x},p)=>{const s=j(c,"table"),b=u(f,s,o&&`${s}-${o}`,a&&`${s}-${a}`,e&&`${s}-${typeof e=="string"?`striped-${e}`:"striped"}`,i&&`${s}-bordered`,n&&`${s}-borderless`,d&&`${s}-hover`),$=l.jsx("table",{...x,className:b,ref:p});if(r){let t=`${s}-responsive`;return typeof r=="string"&&(t=`${t}-${r}`),l.jsx("div",{className:t,children:$})}return $});export{N as T};
diff --git a/compendium_v2/static/Table-HH9WOnMU.js b/compendium_v2/static/Table-HH9WOnMU.js
deleted file mode 100644
index ffa2a2f803480e23a90aa698526a5501d2e25ea4..0000000000000000000000000000000000000000
--- a/compendium_v2/static/Table-HH9WOnMU.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as m,u,c as j,j as c}from"./main-BIBsTO5W.js";const g=m.forwardRef(({bsPrefix:l,className:f,striped:e,bordered:n,borderless:d,hover:i,size:a,variant:o,responsive:r,...x},p)=>{const s=u(l,"table"),b=j(f,s,o&&`${s}-${o}`,a&&`${s}-${a}`,e&&`${s}-${typeof e=="string"?`striped-${e}`:"striped"}`,n&&`${s}-bordered`,d&&`${s}-borderless`,i&&`${s}-hover`),$=c.jsx("table",{...x,className:b,ref:p});if(r){let t=`${s}-responsive`;return typeof r=="string"&&(t=`${t}-${r}`),c.jsx("div",{className:t,children:$})}return $});export{g as T};
diff --git a/compendium_v2/static/TrafficRatio-BELkAOlA.js b/compendium_v2/static/TrafficRatio-BELkAOlA.js
new file mode 100644
index 0000000000000000000000000000000000000000..8aa08cf4123fb60bc0ba273c4421018295abc5e0
--- /dev/null
+++ b/compendium_v2/static/TrafficRatio-BELkAOlA.js
@@ -0,0 +1 @@
+import{c as C,r as L,F as E,j as x,S as F,t as Y}from"./index.js";import{B as $}from"./index-CjWPDfDC.js";import{C as g,a as v,L as A,B,p as O,c as M,d as P,u as T,N as W,D as q,F as z}from"./useData-CxftshCa.js";import{h as G,W as H}from"./HTMLLegendPlugin-C-L3dIU1.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";g.register(v,A,B,O,M,P);const J={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.x!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(e,t)=>`${t*10}%`}},x2:{ticks:{callback:e=>typeof e=="number"?`${e}%`:e},grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(g.instances);let a=-999999,i=999999;for(const s of t)g.instances[s]&&e.chart.scales.x2&&(i=Math.min(g.instances[s].scales.x.min,i),a=Math.max(g.instances[s].scales.x.max,a));e.chart.scales.x2.options.min=i,e.chart.scales.x2.options.max=a,e.chart.scales.x2.min=i,e.chart.scales.x2.max=a}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function ie(){const e=C.c(37),{filterSelection:t,setFilterSelection:a}=L.useContext(E),{data:i,years:s,nrens:n}=T("/api/traffic-ratio",a);let l,r,y,c;if(e[0]!==t||e[1]!==n||e[2]!==a||e[3]!==i||e[4]!==s){let b;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(b=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=b):b=e[11],r=i.filter(b),c=W(r,t.selectedYears[0]);let d;e[12]!==s?(d=[...s],e[12]=s,e[13]=d):d=e[13];let p;e[14]!==n?(p=n.values(),e[14]=n,e[15]=p):p=e[15];let u;e[16]!==p?(u=[...p],e[16]=p,e[17]=u):u=e[17];let h;e[18]!==d||e[19]!==u?(h={availableYears:d,availableNrens:u},e[18]=d,e[19]=u,e[20]=h):h=e[20];let _;e[21]!==t||e[22]!==a||e[23]!==h?(_=x.jsx(z,{max1year:!0,filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=_):_=e[24],l=_,y=Array.from(new Set(r.map(Q))).map(S=>n.get(S)).filter(K),e[0]=t,e[1]=n,e[2]=a,e[3]=i,e[4]=s,e[5]=l,e[6]=r,e[7]=y,e[8]=c}else l=e[5],r=e[6],y=e[7],c=e[8];const j=y.length,R=Math.max(j*1.5,20),w=Y["traffic-ratio"],D=`${R}rem`;let o;e[25]!==D?(o={height:D},e[25]=D,e[26]=o):o=e[26];let k;e[27]===Symbol.for("react.memo_cache_sentinel")?(k=[G],e[27]=k):k=e[27];let f;e[28]!==c?(f=x.jsx($,{data:c,options:J,plugins:k}),e[28]=c,e[29]=f):f=e[29];let m;e[30]!==o||e[31]!==f?(m=x.jsx(H,{children:x.jsx("div",{className:"chart-container",style:o,children:f})}),e[30]=o,e[31]=f,e[32]=m):m=e[32];let N;return e[33]!==l||e[34]!==r||e[35]!==m?(N=x.jsx(q,{title:w,description:"The graph shows the ratio of commodity versus research and education traffic in NREN networks",category:F.Network,filter:l,data:r,filename:"types_of_traffic_in_nren_networks",children:m}),e[33]=l,e[34]=r,e[35]=m,e[36]=N):N=e[36],N}function K(e){return!!e}function Q(e){return e.nren}export{ie as default};
diff --git a/compendium_v2/static/TrafficRatio-CEE7weoG.js b/compendium_v2/static/TrafficRatio-CEE7weoG.js
deleted file mode 100644
index a58bccc8d70ee301fcc08206b6d834a03c2d1d25..0000000000000000000000000000000000000000
--- a/compendium_v2/static/TrafficRatio-CEE7weoG.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as j,r as w,F as C,j as x}from"./main-BIBsTO5W.js";import{B as E}from"./index-BBrAyDR9.js";import{C as g,a as L,L as v,B as F,p as Y,c as $,d as A,u as B,N as O,D as T,F as M}from"./useData-BDYwoQEh.js";import{S as P}from"./report.js";import{h as W,W as q}from"./HTMLLegendPlugin-BO0IHS_R.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";g.register(L,v,F,Y,$,A);const z={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.x!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(e,t)=>`${t*10}%`}},x2:{ticks:{callback:e=>typeof e=="number"?`${e}%`:e},grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(g.instances);let a=-999999,i=999999;for(const s of t)g.instances[s]&&e.chart.scales.x2&&(i=Math.min(g.instances[s].scales.x.min,i),a=Math.max(g.instances[s].scales.x.max,a));e.chart.scales.x2.options.min=i,e.chart.scales.x2.options.max=a,e.chart.scales.x2.min=i,e.chart.scales.x2.max=a}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function ae(){const e=j.c(37),{filterSelection:t,setFilterSelection:a}=w.useContext(C),{data:i,years:s,nrens:n}=B("/api/traffic-ratio",a);let l,r,y,c;if(e[0]!==t||e[1]!==n||e[2]!==a||e[3]!==i||e[4]!==s){let b;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(b=R=>t.selectedYears.includes(R.year)&&t.selectedNrens.includes(R.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=b):b=e[11],r=i.filter(b),c=O(r,t.selectedYears[0]);let d;e[12]!==s?(d=[...s],e[12]=s,e[13]=d):d=e[13];let p;e[14]!==n?(p=n.values(),e[14]=n,e[15]=p):p=e[15];let u;e[16]!==p?(u=[...p],e[16]=p,e[17]=u):u=e[17];let h;e[18]!==d||e[19]!==u?(h={availableYears:d,availableNrens:u},e[18]=d,e[19]=u,e[20]=h):h=e[20];let _;e[21]!==t||e[22]!==a||e[23]!==h?(_=x.jsx(M,{max1year:!0,filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=_):_=e[24],l=_,y=Array.from(new Set(r.map(H))).map(R=>n.get(R)).filter(G),e[0]=t,e[1]=n,e[2]=a,e[3]=i,e[4]=s,e[5]=l,e[6]=r,e[7]=y,e[8]=c}else l=e[5],r=e[6],y=e[7],c=e[8];const D=y.length,S=`${Math.max(D*1.5,20)}rem`;let o;e[25]!==S?(o={height:S},e[25]=S,e[26]=o):o=e[26];let N;e[27]===Symbol.for("react.memo_cache_sentinel")?(N=[W],e[27]=N):N=e[27];let f;e[28]!==c?(f=x.jsx(E,{data:c,options:z,plugins:N}),e[28]=c,e[29]=f):f=e[29];let m;e[30]!==o||e[31]!==f?(m=x.jsx(q,{children:x.jsx("div",{className:"chart-container",style:o,children:f})}),e[30]=o,e[31]=f,e[32]=m):m=e[32];let k;return e[33]!==l||e[34]!==r||e[35]!==m?(k=x.jsx(T,{title:"Types of traffic in NREN networks  (Commodity v. Research & Education)",description:"The graph shows the ratio of commodity versus research and education traffic in NREN networks",category:P.Network,filter:l,data:r,filename:"types_of_traffic_in_nren_networks",children:m}),e[33]=l,e[34]=r,e[35]=m,e[36]=k):k=e[36],k}function G(e){return!!e}function H(e){return e.nren}export{ae as default};
diff --git a/compendium_v2/static/TrafficUrl-BLm4mZku.js b/compendium_v2/static/TrafficUrl-BLm4mZku.js
new file mode 100644
index 0000000000000000000000000000000000000000..7739b5ac2ffea1b8c952bde60b352abc351b13a2
--- /dev/null
+++ b/compendium_v2/static/TrafficUrl-BLm4mZku.js
@@ -0,0 +1 @@
+import{c as j,r as k,F as S,j as p,t as _,S as g}from"./index.js";import{u as v,q as y,k as L,i as R,D as T,F,f as U,s as w}from"./useData-CxftshCa.js";import{N as C}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function G(){const e=j.c(21),{filterSelection:t,setFilterSelection:s}=k.useContext(S),{data:r,nrens:n}=v("/api/traffic-stats",s);let a,c;if(e[0]!==r||e[1]!==t.selectedNrens){const D=r?y(r):[];let m;e[4]!==t.selectedNrens?(m=h=>t.selectedNrens.includes(h.nren),e[4]=t.selectedNrens,e[5]=m):m=e[5],a=D.filter(m);const b=L(a);c=R(b,E),e[0]=r,e[1]=t.selectedNrens,e[2]=a,e[3]=c}else a=e[2],c=e[3];const x=c;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[6]=f):f=e[6];let i;e[7]!==n?(i=n.values(),e[7]=n,e[8]=i):i=e[8];let l;e[9]!==i?(l={availableYears:f,availableNrens:[...i]},e[9]=i,e[10]=l):l=e[10];let u;e[11]!==t||e[12]!==s||e[13]!==l?(u=p.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:s,coloredYears:!0}),e[11]=t,e[12]=s,e[13]=l,e[14]=u):u=e[14];const N=u;let o;e[15]!==x?(o=p.jsx(U,{children:p.jsx(C,{data:x,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=x,e[16]=o):o=e[16];let d;return e[17]!==N||e[18]!==a||e[19]!==o?(d=p.jsx(T,{title:_["traffic-stats"],description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:g.Network,filter:N,data:a,filename:"traffic_stats_nrens_per_year",children:o}),e[17]=N,e[18]=a,e[19]=o,e[20]=d):d=e[20],d}function E(e,t){const s=w(t);if(s!=null)for(const[r,n]of Object.entries(s))e[r]=n}export{G as default};
diff --git a/compendium_v2/static/TrafficUrl-DFoUKOws.js b/compendium_v2/static/TrafficUrl-DFoUKOws.js
deleted file mode 100644
index 2e342d985d0f5a4f9c813cd4c131d0f6b3ff7905..0000000000000000000000000000000000000000
--- a/compendium_v2/static/TrafficUrl-DFoUKOws.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as S,r as j,F as k,j as p}from"./main-BIBsTO5W.js";import{u as T,q as _,k as g,i as v,D as y,F as L,f as R,s as F}from"./useData-BDYwoQEh.js";import{S as U}from"./report.js";import{N as w}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function z(){const e=S.c(21),{filterSelection:t,setFilterSelection:s}=j.useContext(k),{data:r,nrens:n}=T("/api/traffic-stats",s);let a,c;if(e[0]!==r||e[1]!==t.selectedNrens){const D=r?_(r):[];let d;e[4]!==t.selectedNrens?(d=h=>t.selectedNrens.includes(h.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],a=D.filter(d);const b=g(a);c=v(b,C),e[0]=r,e[1]=t.selectedNrens,e[2]=a,e[3]=c}else a=e[2],c=e[3];const x=c;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[6]=f):f=e[6];let i;e[7]!==n?(i=n.values(),e[7]=n,e[8]=i):i=e[8];let l;e[9]!==i?(l={availableYears:f,availableNrens:[...i]},e[9]=i,e[10]=l):l=e[10];let m;e[11]!==t||e[12]!==s||e[13]!==l?(m=p.jsx(L,{filterOptions:l,filterSelection:t,setFilterSelection:s,coloredYears:!0}),e[11]=t,e[12]=s,e[13]=l,e[14]=m):m=e[14];const N=m;let o;e[15]!==x?(o=p.jsx(R,{children:p.jsx(w,{data:x,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=x,e[16]=o):o=e[16];let u;return e[17]!==N||e[18]!==a||e[19]!==o?(u=p.jsx(y,{title:"Traffic Statistics",description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:U.Network,filter:N,data:a,filename:"traffic_stats_nrens_per_year",children:o}),e[17]=N,e[18]=a,e[19]=o,e[20]=u):u=e[20],u}function C(e,t){const s=F(t);if(s!=null)for(const[r,n]of Object.entries(s))e[r]=n}export{z as default};
diff --git a/compendium_v2/static/TrafficVolume-1MvPPErr.js b/compendium_v2/static/TrafficVolume-1MvPPErr.js
new file mode 100644
index 0000000000000000000000000000000000000000..26d42450ffc9791f1beb5ffa535889579c8c67d9
--- /dev/null
+++ b/compendium_v2/static/TrafficVolume-1MvPPErr.js
@@ -0,0 +1 @@
+import{c as A,r as G,F as U,j as t,t as Y,S as $,C as P,R as W}from"./index.js";import{L as k}from"./index-CjWPDfDC.js";import{C as q,a as H,L as I,P as J,b as K,p as M,c as Q,d as X,u as Z,e as v,D as ee,F as te,f as se}from"./useData-CxftshCa.js";import{g as le}from"./charthelpers-B0zLHD4s.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";q.register(H,I,J,K,M,Q,X);function de(){const e=A.c(47),{filterSelection:l,setFilterSelection:_}=G.useContext(U),{data:V,nrens:B}=Z("/api/traffic-volume",_);let o,a,s,g,i;if(e[0]!==V||e[1]!==l.selectedNrens){let r;e[7]!==l.selectedNrens?(r=O=>l.selectedNrens.includes(O.nren),e[7]=l.selectedNrens,e[8]=r):r=e[8],s=V.filter(r),o=v(s,"from_customers"),i=v(s,"to_customers"),a=v(s,"from_external"),g=v(s,"to_external"),e[0]=V,e[1]=l.selectedNrens,e[2]=o,e[3]=a,e[4]=s,e[5]=g,e[6]=i}else o=e[2],a=e[3],s=e[4],g=e[5],i=e[6];const F=g;let N;e[9]===Symbol.for("react.memo_cache_sentinel")?(N=le({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform(r){return r?r/1e3:0}}),e[9]=N):N=e[9];const b=N;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=[],e[10]=j):j=e[10];let n;e[11]!==B?(n=B.values(),e[11]=B,e[12]=n):n=e[12];let c;e[13]!==n?(c={availableYears:j,availableNrens:[...n]},e[13]=n,e[14]=c):c=e[14];let S;e[15]!==l||e[16]!==_||e[17]!==c?(S=t.jsx(te,{filterOptions:c,filterSelection:l,setFilterSelection:_}),e[15]=l,e[16]=_,e[17]=c,e[18]=S):S=e[18];const z=S;let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("span",{children:"The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers, and to & from external networks. NREN customers are taken to mean sources that are part of the NREN's connectivity remit, while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet exchanges, peerings, other NRENs, etc."}),e[19]=y):y=e[19];let T;e[20]===Symbol.for("react.memo_cache_sentinel")?(T={marginBottom:"30px"},e[20]=T):T=e[20];let E;e[21]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"},children:"Traffic from NREN customer"}),e[21]=E):E=e[21];let f;e[22]!==o?(f=t.jsxs(P,{children:[E,t.jsx(k,{data:o,options:b})]}),e[22]=o,e[23]=f):f=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"},children:"Traffic to NREN customer"}),e[24]=C):C=e[24];let m;e[25]!==i?(m=t.jsxs(P,{children:[C,t.jsx(k,{data:i,options:b})]}),e[25]=i,e[26]=m):m=e[26];let d;e[27]!==m||e[28]!==f?(d=t.jsxs(W,{style:T,children:[f,m]}),e[27]=m,e[28]=f,e[29]=d):d=e[29];let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R={marginTop:"30px"},e[30]=R):R=e[30];let w;e[31]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{style:{fontSize:"20px",color:"rgb(63, 143, 77)",fontWeight:"bold"},children:"Traffic from external network"}),e[31]=w):w=e[31];let h;e[32]!==a?(h=t.jsxs(P,{children:[w,t.jsx(k,{data:a,options:b})]}),e[32]=a,e[33]=h):h=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"},children:"Traffic to external network"}),e[34]=D):D=e[34];let x;e[35]!==F?(x=t.jsxs(P,{children:[D,t.jsx(k,{data:F,options:b})]}),e[35]=F,e[36]=x):x=e[36];let p;e[37]!==h||e[38]!==x?(p=t.jsxs(W,{style:R,children:[h,x]}),e[37]=h,e[38]=x,e[39]=p):p=e[39];let u;e[40]!==d||e[41]!==p?(u=t.jsxs(se,{children:[d,p]}),e[40]=d,e[41]=p,e[42]=u):u=e[42];let L;return e[43]!==z||e[44]!==s||e[45]!==u?(L=t.jsx(ee,{title:Y["traffic-volume"],description:y,category:$.Network,filter:z,data:s,filename:"NREN_traffic_estimates_data",children:u}),e[43]=z,e[44]=s,e[45]=u,e[46]=L):L=e[46],L}export{de as default};
diff --git a/compendium_v2/static/TrafficVolume-5iEpLgxK.js b/compendium_v2/static/TrafficVolume-5iEpLgxK.js
deleted file mode 100644
index 1f59c61e3b7711a8d97e5e0321fc9546aeee070b..0000000000000000000000000000000000000000
--- a/compendium_v2/static/TrafficVolume-5iEpLgxK.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as A,r as G,F as U,j as t,C as L,R as W}from"./main-BIBsTO5W.js";import{L as P}from"./index-BBrAyDR9.js";import{C as Y,a as $,L as q,P as H,b as I,p as J,c as K,d as M,u as Q,e as V,D as X,F as Z,f as ee}from"./useData-BDYwoQEh.js";import{S as te}from"./report.js";import{g as se}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";Y.register($,q,H,I,J,K,M);function me(){const e=A.c(47),{filterSelection:r,setFilterSelection:N}=G.useContext(U),{data:v,nrens:B}=Q("/api/traffic-volume",N);let o,a,s,_,i;if(e[0]!==v||e[1]!==r.selectedNrens){let l;e[7]!==r.selectedNrens?(l=O=>r.selectedNrens.includes(O.nren),e[7]=r.selectedNrens,e[8]=l):l=e[8],s=v.filter(l),o=V(s,"from_customers"),i=V(s,"to_customers"),a=V(s,"from_external"),_=V(s,"to_external"),e[0]=v,e[1]=r.selectedNrens,e[2]=o,e[3]=a,e[4]=s,e[5]=_,e[6]=i}else o=e[2],a=e[3],s=e[4],_=e[5],i=e[6];const F=_;let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=se({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform(l){return l?l/1e3:0}}),e[9]=g):g=e[9];const b=g;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=[],e[10]=j):j=e[10];let n;e[11]!==B?(n=B.values(),e[11]=B,e[12]=n):n=e[12];let c;e[13]!==n?(c={availableYears:j,availableNrens:[...n]},e[13]=n,e[14]=c):c=e[14];let S;e[15]!==r||e[16]!==N||e[17]!==c?(S=t.jsx(Z,{filterOptions:c,filterSelection:r,setFilterSelection:N}),e[15]=r,e[16]=N,e[17]=c,e[18]=S):S=e[18];const z=S;let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("span",{children:"The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers, and to & from external networks. NREN customers are taken to mean sources that are part of the NREN's connectivity remit, while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet exchanges, peerings, other NRENs, etc."}),e[19]=y):y=e[19];let E;e[20]===Symbol.for("react.memo_cache_sentinel")?(E={marginBottom:"30px"},e[20]=E):E=e[20];let T;e[21]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"},children:"Traffic from NREN customer"}),e[21]=T):T=e[21];let f;e[22]!==o?(f=t.jsxs(L,{children:[T,t.jsx(P,{data:o,options:b})]}),e[22]=o,e[23]=f):f=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"},children:"Traffic to NREN customer"}),e[24]=C):C=e[24];let m;e[25]!==i?(m=t.jsxs(L,{children:[C,t.jsx(P,{data:i,options:b})]}),e[25]=i,e[26]=m):m=e[26];let d;e[27]!==m||e[28]!==f?(d=t.jsxs(W,{style:E,children:[f,m]}),e[27]=m,e[28]=f,e[29]=d):d=e[29];let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R={marginTop:"30px"},e[30]=R):R=e[30];let w;e[31]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{style:{fontSize:"20px",color:"rgb(63, 143, 77)",fontWeight:"bold"},children:"Traffic from external network"}),e[31]=w):w=e[31];let x;e[32]!==a?(x=t.jsxs(L,{children:[w,t.jsx(P,{data:a,options:b})]}),e[32]=a,e[33]=x):x=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"},children:"Traffic to external network"}),e[34]=D):D=e[34];let h;e[35]!==F?(h=t.jsxs(L,{children:[D,t.jsx(P,{data:F,options:b})]}),e[35]=F,e[36]=h):h=e[36];let p;e[37]!==x||e[38]!==h?(p=t.jsxs(W,{style:R,children:[x,h]}),e[37]=x,e[38]=h,e[39]=p):p=e[39];let u;e[40]!==d||e[41]!==p?(u=t.jsxs(ee,{children:[d,p]}),e[40]=d,e[41]=p,e[42]=u):u=e[42];let k;return e[43]!==z||e[44]!==s||e[45]!==u?(k=t.jsx(X,{title:"NREN Traffic - NREN Customers & External Networks",description:y,category:te.Network,filter:z,data:s,filename:"NREN_traffic_estimates_data",children:u}),e[43]=z,e[44]=s,e[45]=u,e[46]=k):k=e[46],k}export{me as default};
diff --git a/compendium_v2/static/UserManagementComponent-CiWfGwDf.js b/compendium_v2/static/UserManagementComponent-CiWfGwDf.js
deleted file mode 100644
index a289f4e79b52a8e13d4840a62a10cdca101c292e..0000000000000000000000000000000000000000
--- a/compendium_v2/static/UserManagementComponent-CiWfGwDf.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as x,u as Ee,j as t,c as Te,ab as Re,a as Ae,ac as Ve,g as Ge,V as Se,N as Ue,e as Oe,R as Be}from"./main-BIBsTO5W.js";import{k as de,D as Me}from"./index-CuSQpLoM.js";import{S as qe}from"./survey.js";import{c as Le,a as We}from"./index-D6hre9Be.js";import{A as ae,l as He}from"./lodash-BjwYmmCl.js";import{T as Je}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./hook-DmuGcAOd.js";const me=x.forwardRef(({className:e,bsPrefix:s,as:r="span",...c},l)=>(s=Ee(s,"input-group-text"),t.jsx(r,{ref:l,className:Te(e,s),...c})));me.displayName="InputGroupText";const Ke=e=>t.jsx(me,{children:t.jsx(Re,{type:"checkbox",...e})}),Ye=e=>t.jsx(me,{children:t.jsx(Re,{type:"radio",...e})}),$e=x.forwardRef(({bsPrefix:e,size:s,hasValidation:r,className:c,as:l="div",...a},h)=>{e=Ee(e,"input-group");const d=x.useMemo(()=>({}),[]);return t.jsx(Le.Provider,{value:d,children:t.jsx(l,{ref:h,...a,className:Te(c,e,s&&`${e}-${s}`,r&&"has-validation")})})});$e.displayName="InputGroup";const ke=Object.assign($e,{Text:me,Radio:Ye,Checkbox:Ke});function Qe(e){const s=Ae.c(10),{getConfig:r,setConfig:c}=x.useContext(Ve);let l;s[0]!==r||s[1]!==e?(l=r(e),s[0]=r,s[1]=e,s[2]=l):l=s[2];const a=l;let h;s[3]!==e||s[4]!==c?(h=(M,N)=>c(e,M,N),s[3]=e,s[4]=c,s[5]=h):h=s[5];let d;return s[6]!==a||s[7]!==e||s[8]!==h?(d={[e]:a,setConfig:h},s[6]=a,s[7]=e,s[8]=h,s[9]=d):d=s[9],d}async function Xe(){try{return await(await fetch("/api/user/list")).json()}catch{return[]}}async function Ze(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}async function ze(e,s){const r={id:e,...s},c={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},l=await fetch(`/api/user/${e}`,c),a=await l.json();if(!l.ok)throw new Error(a.message);return de.success(a.message),a.user}async function Pe(e){if(!window.confirm(`Are you sure you want to delete ${e.name} (${e.email})?`))return!1;const r={method:"DELETE",headers:{"Content-Type":"application/json"}},c=await fetch(`/api/user/${e.id}`,r),l=await c.json();if(!c.ok)throw new Error(l.message);return de.success(l.message),!0}const W=(e,s)=>e.role!=="admin"&&s.role==="admin"?1:e.role==="admin"&&s.role!=="admin"?-1:e.role==="user"&&s.role!=="user"?1:s.role==="user"&&e.role!=="user"?-1:!e.permissions.active&&s.permissions.active?1:e.permissions.active&&!s.permissions.active?-1:e.name.localeCompare(s.name);function ut(){const e=Ae.c(88);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],e[0]=s):s=e[0];const[r,c]=x.useState(s);let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[1]=l):l=e[1];const[a,h]=x.useState(l),{user:d,setUser:M}=x.useContext(Ge);let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N={column:"ID",asc:!0},e[2]=N):N=e[2];const[f,Ne]=x.useState(N),[I,Ie]=x.useState(""),{setConfig:H,user_management:U}=Qe("user_management");let J;e[3]!==H||e[4]!==U?(J=(o,u)=>{const m=U??{},p=m==null?void 0:m.shownColumns;if(!p){H({...m,shownColumns:{[o]:u}});return}H({...m,shownColumns:{...p,[o]:u}})},e[3]=H,e[4]=U,e[5]=J):J=e[5];const ue=J;let K;e[6]!==U?(K=o=>{const u=U;if(!u)return!0;const m=u.shownColumns;return m?m[o]??!0:!0},e[6]=U,e[7]=K):K=e[7];const i=K;let Y,Q;e[8]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>{Xe().then(o=>{c(o)}),Ze().then(o=>{h(o.sort(nt))})},Q=[],e[8]=Y,e[9]=Q):(Y=e[8],Q=e[9]),x.useEffect(Y,Q);let X;e[10]!==d.id||e[11]!==M||e[12]!==r?(X=(o,u)=>{const m=r.findIndex(v=>v.id===u.id),p=[...r],{name:L}=o.target,_={};L==="active"?_[L]=o.target.checked:_[L]=o.target.value,ze(u.id,_).then(v=>{v.id===d.id?M(v):(p[m]=v,c(p))}).catch(st)},e[10]=d.id,e[11]=M,e[12]=r,e[13]=X):X=e[13];const q=X;let Z;e[14]!==a?(Z=o=>{var u;return(u=a.find(m=>m.id==o||m.name==o))==null?void 0:u.id},e[14]=a,e[15]=Z):Z=e[15];const fe=Z,De=tt,z=et;let k,E,T,j,y,g,R,A,C,b,w,$,D;if(e[16]!==I||e[17]!==fe||e[18]!==i||e[19]!==q||e[20]!==d||e[21]!==a||e[22]!==ue||e[23]!==f.asc||e[24]!==f.column||e[25]!==r){const o=["ID","Active","Role","Email","Full Name","OIDC Sub","NREN","Actions"],u={[o[1]]:De,[o[2]]:z("role"),[o[3]]:z("email"),[o[4]]:z("name"),[o[6]]:z("nrens")},m=n=>{n===f.column?Ne({column:n,asc:!f.asc}):Ne({column:n,asc:!0})},p={};Array.from(Object.keys(u)).includes(f.column)?p[f.column]={"aria-sort":f.asc?"ascending":"descending"}:p[o[0]]={"aria-sort":f.asc?"ascending":"descending"};const L=u[f.column]??W,v=(I?r.filter(n=>n.email.includes(I)||n.name.includes(I)):r).filter(n=>n.id!==d.id).sort(L);f.asc||v.reverse(),e[39]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(qe,{}),w=t.jsx(Me,{}),e[39]=b,e[40]=w):(b=e[39],w=e[40]),E=Oe,A="py-5 grey-container";let ee;e[41]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsx("div",{className:"text-center w-100 mb-3",children:t.jsx("h3",{children:"User Management Page"})}),e[41]=ee):ee=e[41];let te;e[42]===Symbol.for("react.memo_cache_sentinel")?(te={width:"30rem"},e[42]=te):te=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsxs(ae.Header,{children:[t.jsx("span",{className:"me-2",children:"Column Visibility"}),t.jsx("small",{className:"text-muted",children:"Choose which columns to display"})]}),e[43]=se):se=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx("small",{className:"text-muted mb-2 d-block",children:"Select which columns you want to display in the table below. Unchecked columns will be hidden."}),e[44]=ne):ne=e[44];let oe;e[45]===Symbol.for("react.memo_cache_sentinel")?(oe={gridTemplateColumns:"repeat(auto-fill, minmax(150px, 1fr))",gap:"10px"},e[45]=oe):oe=e[45];const he=t.jsx("div",{className:"d-grid",style:oe,children:o.map(n=>t.jsx(Se.Check,{type:"checkbox",id:`column-${n}`,label:n,checked:i(n),onChange:S=>ue(n,S.target.checked)},n))});let B;e[46]!==he?(B=t.jsx(ae,{className:"mb-3",style:te,children:t.jsxs(ae.Item,{eventKey:"0",children:[se,t.jsx(ae.Body,{children:t.jsxs(Se.Control,{as:"div",className:"p-3",children:[ne,he]})})]})}),e[46]=he,e[47]=B):B=e[47];let re,le;e[48]===Symbol.for("react.memo_cache_sentinel")?(re={width:"30rem"},le=t.jsx(ke.Text,{id:"search-text",children:"Search"}),e[48]=re,e[49]=le):(re=e[48],le=e[49]);let ie;e[50]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Se.Control,{placeholder:"Search by email/name","aria-label":"Search",onInput:He.debounce(n=>Ie(n.target.value),200)}),e[50]=ie):ie=e[50];let ce;e[51]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsxs(ke,{className:"mb-3",style:re,children:[le,ie,t.jsx(Ue,{variant:"outline-secondary",onClick:()=>{Ie("")},children:"Clear"})]}),e[51]=ce):ce=e[51],e[52]!==B?(C=t.jsxs(Be,{className:"d-flex justify-content-center align-items-center flex-column",children:[ee,B,ce]}),e[52]=B,e[53]=C):C=e[53],R="d-flex justify-content-center",e[54]===Symbol.for("react.memo_cache_sentinel")?(g={maxWidth:"100rem"},e[54]=g):g=e[54],k=Je,D="user-management-table",T=!0;const pe=i(o[0])&&t.jsx("col",{span:1,style:{width:"8rem"}}),xe=i(o[1])&&t.jsx("col",{span:1,style:{width:"3rem"}}),je=i(o[2])&&t.jsx("col",{span:1,style:{width:"4.5rem"}}),ye=i(o[3])&&t.jsx("col",{span:1,style:{width:"7rem"}}),ge=i(o[4])&&t.jsx("col",{span:1,style:{width:"5rem"}}),Ce=i(o[5])&&t.jsx("col",{span:1,style:{width:"5rem"}}),be=i(o[6])&&t.jsx("col",{span:1,style:{width:"6rem"}}),we=i(o[7])&&t.jsx("col",{span:1,style:{width:"3rem"}});e[55]!==pe||e[56]!==xe||e[57]!==je||e[58]!==ye||e[59]!==ge||e[60]!==Ce||e[61]!==be||e[62]!==we?(j=t.jsxs("colgroup",{children:[pe,xe,je,ye,ge,Ce,be,we]}),e[55]=pe,e[56]=xe,e[57]=je,e[58]=ye,e[59]=ge,e[60]=Ce,e[61]=be,e[62]=we,e[63]=j):j=e[63];const ve=t.jsx("tr",{children:o.map(n=>i(n)&&t.jsx("th",{...p[n],onClick:()=>m(n),className:"sortable fixed-column",style:{border:"1px solid #ddd"},children:n},n))});e[64]!==ve?(y=t.jsx("thead",{children:ve}),e[64]=ve,e[65]=y):y=e[65],$=t.jsx("tbody",{children:(I?[]:[d]).concat(v).map(n=>t.jsxs("tr",{style:{fontWeight:n.id==d.id?"bold":"normal"},children:[i(o[0])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id}),i(o[1])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?t.jsx(We,{}):t.jsx("input",{type:"checkbox",name:"active",checked:n.permissions.active,onChange:S=>q(S,n)})}),i(o[2])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?n.role.charAt(0).toUpperCase()+n.role.slice(1):t.jsxs("select",{name:"role",defaultValue:n.role,onChange:S=>q(S,n),style:{width:"100%"},children:[t.jsx("option",{value:"admin",children:"Admin"}),t.jsx("option",{value:"user",children:"User"}),t.jsx("option",{value:"observer",children:"Observer"})]})}),i(o[3])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.email}),i(o[4])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.name}),i(o[5])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.oidc_sub}),i(o[6])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:t.jsxs("select",{name:"nren",multiple:!1,value:n.nrens.length>0?fe(n.nrens[0]):"",onChange:S=>q(S,n),children:[t.jsx("option",{value:"",children:"Select NREN"}),a.map(_e)]})}),i(o[7])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id!==d.id&&t.jsx(Ue,{variant:"danger",onClick:async()=>{if(n.id===d.id){de.error("You cannot delete yourself");return}await Pe(n)&&c(r.filter(Fe=>Fe.id!==n.id))},children:"Delete"})})]},n.id))}),e[16]=I,e[17]=fe,e[18]=i,e[19]=q,e[20]=d,e[21]=a,e[22]=ue,e[23]=f.asc,e[24]=f.column,e[25]=r,e[26]=k,e[27]=E,e[28]=T,e[29]=j,e[30]=y,e[31]=g,e[32]=R,e[33]=A,e[34]=C,e[35]=b,e[36]=w,e[37]=$,e[38]=D}else k=e[26],E=e[27],T=e[28],j=e[29],y=e[30],g=e[31],R=e[32],A=e[33],C=e[34],b=e[35],w=e[36],$=e[37],D=e[38];let F;e[66]!==k||e[67]!==T||e[68]!==j||e[69]!==y||e[70]!==$||e[71]!==D?(F=t.jsxs(k,{className:D,bordered:T,children:[j,y,$]}),e[66]=k,e[67]=T,e[68]=j,e[69]=y,e[70]=$,e[71]=D,e[72]=F):F=e[72];let V;e[73]!==g||e[74]!==F?(V=t.jsx("div",{style:g,children:F}),e[73]=g,e[74]=F,e[75]=V):V=e[75];let G;e[76]!==R||e[77]!==V?(G=t.jsx("div",{className:R,children:V}),e[76]=R,e[77]=V,e[78]=G):G=e[78];let O;e[79]!==E||e[80]!==A||e[81]!==C||e[82]!==G?(O=t.jsxs(E,{className:A,children:[C,G]}),e[79]=E,e[80]=A,e[81]=C,e[82]=G,e[83]=O):O=e[83];let P;return e[84]!==b||e[85]!==w||e[86]!==O?(P=t.jsxs(t.Fragment,{children:[b,w,O]}),e[84]=b,e[85]=w,e[86]=O,e[87]=P):P=e[87],P}function _e(e){return t.jsx("option",{value:e.id,children:e.name},e.id)}function et(e){return(s,r)=>{const c=s[e],l=r[e];if(e==="nrens")return s.nrens.length===0&&r.nrens.length===0?W(s,r):s.nrens.length===0?-1:r.nrens.length===0?1:s.nrens[0].localeCompare(r.nrens[0]);if(typeof c!="string"||typeof l!="string")return W(s,r);const a=c.localeCompare(l);return a===0?W(s,r):a}}function tt(e,s){return e.permissions.active&&!s.permissions.active?1:!e.permissions.active&&s.permissions.active?-1:W(e,s)}function st(e){de.error(e.message)}function nt(e,s){return e.name.localeCompare(s.name)}export{ut as default};
diff --git a/compendium_v2/static/UserManagementComponent-DK-BhUBG.js b/compendium_v2/static/UserManagementComponent-DK-BhUBG.js
new file mode 100644
index 0000000000000000000000000000000000000000..7dfbdb071cbd20d5f9bdea0435c8b1ae27b0daa8
--- /dev/null
+++ b/compendium_v2/static/UserManagementComponent-DK-BhUBG.js
@@ -0,0 +1 @@
+import{r as x,h as Ee,j as t,i as Te,ai as Re,c as Ae,aj as Ge,a1 as Oe,W as Se,y as Ue,E as Ve,R as Be}from"./index.js";import{k as de,D as Me}from"./index-BGZcCZJE.js";import{S as We}from"./SurveySidebar-CG0gwQ6b.js";import{c as qe,a as Le}from"./index-ZGgT6a2u.js";import{A as ae,l as He}from"./lodash-0qAddrJ1.js";import{T as Je}from"./Table-ClWM2_rS.js";import"./SideBar-CkoMfgfL.js";import"./hook-BbhLqP_c.js";const me=x.forwardRef(({className:e,bsPrefix:s,as:r="span",...c},l)=>(s=Ee(s,"input-group-text"),t.jsx(r,{ref:l,className:Te(e,s),...c})));me.displayName="InputGroupText";const Ke=e=>t.jsx(me,{children:t.jsx(Re,{type:"checkbox",...e})}),Ye=e=>t.jsx(me,{children:t.jsx(Re,{type:"radio",...e})}),$e=x.forwardRef(({bsPrefix:e,size:s,hasValidation:r,className:c,as:l="div",...a},h)=>{e=Ee(e,"input-group");const d=x.useMemo(()=>({}),[]);return t.jsx(qe.Provider,{value:d,children:t.jsx(l,{ref:h,...a,className:Te(c,e,s&&`${e}-${s}`,r&&"has-validation")})})});$e.displayName="InputGroup";const ke=Object.assign($e,{Text:me,Radio:Ye,Checkbox:Ke});function Qe(e){const s=Ae.c(10),{getConfig:r,setConfig:c}=x.useContext(Ge);let l;s[0]!==r||s[1]!==e?(l=r(e),s[0]=r,s[1]=e,s[2]=l):l=s[2];const a=l;let h;s[3]!==e||s[4]!==c?(h=(M,N)=>c(e,M,N),s[3]=e,s[4]=c,s[5]=h):h=s[5];let d;return s[6]!==a||s[7]!==e||s[8]!==h?(d={[e]:a,setConfig:h},s[6]=a,s[7]=e,s[8]=h,s[9]=d):d=s[9],d}async function Xe(){try{return await(await fetch("/api/user/list")).json()}catch{return[]}}async function Ze(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}async function ze(e,s){const r={id:e,...s},c={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},l=await fetch(`/api/user/${e}`,c),a=await l.json();if(!l.ok)throw new Error(a.message);return de.success(a.message),a.user}async function Pe(e){if(!window.confirm(`Are you sure you want to delete ${e.name} (${e.email})?`))return!1;const r={method:"DELETE",headers:{"Content-Type":"application/json"}},c=await fetch(`/api/user/${e.id}`,r),l=await c.json();if(!c.ok)throw new Error(l.message);return de.success(l.message),!0}const L=(e,s)=>e.role!=="admin"&&s.role==="admin"?1:e.role==="admin"&&s.role!=="admin"?-1:e.role==="user"&&s.role!=="user"?1:s.role==="user"&&e.role!=="user"?-1:!e.permissions.active&&s.permissions.active?1:e.permissions.active&&!s.permissions.active?-1:e.name.localeCompare(s.name);function ut(){const e=Ae.c(88);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],e[0]=s):s=e[0];const[r,c]=x.useState(s);let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[1]=l):l=e[1];const[a,h]=x.useState(l),{user:d,setUser:M}=x.useContext(Oe);let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N={column:"ID",asc:!0},e[2]=N):N=e[2];const[f,Ne]=x.useState(N),[I,Ie]=x.useState(""),{setConfig:H,user_management:U}=Qe("user_management");let J;e[3]!==H||e[4]!==U?(J=(o,u)=>{const m=U??{},p=m==null?void 0:m.shownColumns;if(!p){H({...m,shownColumns:{[o]:u}});return}H({...m,shownColumns:{...p,[o]:u}})},e[3]=H,e[4]=U,e[5]=J):J=e[5];const ue=J;let K;e[6]!==U?(K=o=>{const u=U;if(!u)return!0;const m=u.shownColumns;return m?m[o]??!0:!0},e[6]=U,e[7]=K):K=e[7];const i=K;let Y,Q;e[8]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>{Xe().then(o=>{c(o)}),Ze().then(o=>{h(o.sort(nt))})},Q=[],e[8]=Y,e[9]=Q):(Y=e[8],Q=e[9]),x.useEffect(Y,Q);let X;e[10]!==d.id||e[11]!==M||e[12]!==r?(X=(o,u)=>{const m=r.findIndex(v=>v.id===u.id),p=[...r],{name:q}=o.target,_={};q==="active"?_[q]=o.target.checked:_[q]=o.target.value,ze(u.id,_).then(v=>{v.id===d.id?M(v):(p[m]=v,c(p))}).catch(st)},e[10]=d.id,e[11]=M,e[12]=r,e[13]=X):X=e[13];const W=X;let Z;e[14]!==a?(Z=o=>{var u;return(u=a.find(m=>m.id==o||m.name==o))==null?void 0:u.id},e[14]=a,e[15]=Z):Z=e[15];const fe=Z,De=tt,z=et;let k,E,T,j,y,g,R,A,C,w,b,$,D;if(e[16]!==I||e[17]!==fe||e[18]!==i||e[19]!==W||e[20]!==d||e[21]!==a||e[22]!==ue||e[23]!==f.asc||e[24]!==f.column||e[25]!==r){const o=["ID","Active","Role","Email","Full Name","OIDC Sub","NREN","Actions"],u={[o[1]]:De,[o[2]]:z("role"),[o[3]]:z("email"),[o[4]]:z("name"),[o[6]]:z("nrens")},m=n=>{n===f.column?Ne({column:n,asc:!f.asc}):Ne({column:n,asc:!0})},p={};Array.from(Object.keys(u)).includes(f.column)?p[f.column]={"aria-sort":f.asc?"ascending":"descending"}:p[o[0]]={"aria-sort":f.asc?"ascending":"descending"};const q=u[f.column]??L,v=(I?r.filter(n=>n.email.includes(I)||n.name.includes(I)):r).filter(n=>n.id!==d.id).sort(q);f.asc||v.reverse(),e[39]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(We,{}),b=t.jsx(Me,{}),e[39]=w,e[40]=b):(w=e[39],b=e[40]),E=Ve,A="py-5 grey-container";let ee;e[41]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsx("div",{className:"text-center w-100 mb-3",children:t.jsx("h3",{children:"User Management Page"})}),e[41]=ee):ee=e[41];let te;e[42]===Symbol.for("react.memo_cache_sentinel")?(te={width:"30rem"},e[42]=te):te=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsxs(ae.Header,{children:[t.jsx("span",{className:"me-2",children:"Column Visibility"}),t.jsx("small",{className:"text-muted",children:"Choose which columns to display"})]}),e[43]=se):se=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx("small",{className:"text-muted mb-2 d-block",children:"Select which columns you want to display in the table below. Unchecked columns will be hidden."}),e[44]=ne):ne=e[44];let oe;e[45]===Symbol.for("react.memo_cache_sentinel")?(oe={gridTemplateColumns:"repeat(auto-fill, minmax(150px, 1fr))",gap:"10px"},e[45]=oe):oe=e[45];const he=t.jsx("div",{className:"d-grid",style:oe,children:o.map(n=>t.jsx(Se.Check,{type:"checkbox",id:`column-${n}`,label:n,checked:i(n),onChange:S=>ue(n,S.target.checked)},n))});let B;e[46]!==he?(B=t.jsx(ae,{className:"mb-3",style:te,children:t.jsxs(ae.Item,{eventKey:"0",children:[se,t.jsx(ae.Body,{children:t.jsxs(Se.Control,{as:"div",className:"p-3",children:[ne,he]})})]})}),e[46]=he,e[47]=B):B=e[47];let re,le;e[48]===Symbol.for("react.memo_cache_sentinel")?(re={width:"30rem"},le=t.jsx(ke.Text,{id:"search-text",children:"Search"}),e[48]=re,e[49]=le):(re=e[48],le=e[49]);let ie;e[50]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Se.Control,{placeholder:"Search by email/name","aria-label":"Search",onInput:He.debounce(n=>Ie(n.target.value),200)}),e[50]=ie):ie=e[50];let ce;e[51]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsxs(ke,{className:"mb-3",style:re,children:[le,ie,t.jsx(Ue,{variant:"outline-secondary",onClick:()=>{Ie("")},children:"Clear"})]}),e[51]=ce):ce=e[51],e[52]!==B?(C=t.jsxs(Be,{className:"d-flex justify-content-center align-items-center flex-column",children:[ee,B,ce]}),e[52]=B,e[53]=C):C=e[53],R="d-flex justify-content-center",e[54]===Symbol.for("react.memo_cache_sentinel")?(g={maxWidth:"100rem"},e[54]=g):g=e[54],k=Je,D="user-management-table",T=!0;const pe=i(o[0])&&t.jsx("col",{span:1,style:{width:"8rem"}}),xe=i(o[1])&&t.jsx("col",{span:1,style:{width:"3rem"}}),je=i(o[2])&&t.jsx("col",{span:1,style:{width:"4.5rem"}}),ye=i(o[3])&&t.jsx("col",{span:1,style:{width:"7rem"}}),ge=i(o[4])&&t.jsx("col",{span:1,style:{width:"5rem"}}),Ce=i(o[5])&&t.jsx("col",{span:1,style:{width:"5rem"}}),we=i(o[6])&&t.jsx("col",{span:1,style:{width:"6rem"}}),be=i(o[7])&&t.jsx("col",{span:1,style:{width:"3rem"}});e[55]!==pe||e[56]!==xe||e[57]!==je||e[58]!==ye||e[59]!==ge||e[60]!==Ce||e[61]!==we||e[62]!==be?(j=t.jsxs("colgroup",{children:[pe,xe,je,ye,ge,Ce,we,be]}),e[55]=pe,e[56]=xe,e[57]=je,e[58]=ye,e[59]=ge,e[60]=Ce,e[61]=we,e[62]=be,e[63]=j):j=e[63];const ve=t.jsx("tr",{children:o.map(n=>i(n)&&t.jsx("th",{...p[n],onClick:()=>m(n),className:"sortable fixed-column",style:{border:"1px solid #ddd"},children:n},n))});e[64]!==ve?(y=t.jsx("thead",{children:ve}),e[64]=ve,e[65]=y):y=e[65],$=t.jsx("tbody",{children:(I?[]:[d]).concat(v).map(n=>t.jsxs("tr",{style:{fontWeight:n.id==d.id?"bold":"normal"},children:[i(o[0])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id}),i(o[1])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?t.jsx(Le,{}):t.jsx("input",{type:"checkbox",name:"active",checked:n.permissions.active,onChange:S=>W(S,n)})}),i(o[2])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?n.role.charAt(0).toUpperCase()+n.role.slice(1):t.jsxs("select",{name:"role",defaultValue:n.role,onChange:S=>W(S,n),style:{width:"100%"},children:[t.jsx("option",{value:"admin",children:"Admin"}),t.jsx("option",{value:"user",children:"User"}),t.jsx("option",{value:"observer",children:"Observer"})]})}),i(o[3])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.email}),i(o[4])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.name}),i(o[5])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.oidc_sub}),i(o[6])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:t.jsxs("select",{name:"nren",multiple:!1,value:n.nrens.length>0?fe(n.nrens[0]):"",onChange:S=>W(S,n),children:[t.jsx("option",{value:"",children:"Select NREN"}),a.map(_e)]})}),i(o[7])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id!==d.id&&t.jsx(Ue,{variant:"danger",onClick:async()=>{if(n.id===d.id){de.error("You cannot delete yourself");return}await Pe(n)&&c(r.filter(Fe=>Fe.id!==n.id))},children:"Delete"})})]},n.id))}),e[16]=I,e[17]=fe,e[18]=i,e[19]=W,e[20]=d,e[21]=a,e[22]=ue,e[23]=f.asc,e[24]=f.column,e[25]=r,e[26]=k,e[27]=E,e[28]=T,e[29]=j,e[30]=y,e[31]=g,e[32]=R,e[33]=A,e[34]=C,e[35]=w,e[36]=b,e[37]=$,e[38]=D}else k=e[26],E=e[27],T=e[28],j=e[29],y=e[30],g=e[31],R=e[32],A=e[33],C=e[34],w=e[35],b=e[36],$=e[37],D=e[38];let F;e[66]!==k||e[67]!==T||e[68]!==j||e[69]!==y||e[70]!==$||e[71]!==D?(F=t.jsxs(k,{className:D,bordered:T,children:[j,y,$]}),e[66]=k,e[67]=T,e[68]=j,e[69]=y,e[70]=$,e[71]=D,e[72]=F):F=e[72];let G;e[73]!==g||e[74]!==F?(G=t.jsx("div",{style:g,children:F}),e[73]=g,e[74]=F,e[75]=G):G=e[75];let O;e[76]!==R||e[77]!==G?(O=t.jsx("div",{className:R,children:G}),e[76]=R,e[77]=G,e[78]=O):O=e[78];let V;e[79]!==E||e[80]!==A||e[81]!==C||e[82]!==O?(V=t.jsxs(E,{className:A,children:[C,O]}),e[79]=E,e[80]=A,e[81]=C,e[82]=O,e[83]=V):V=e[83];let P;return e[84]!==w||e[85]!==b||e[86]!==V?(P=t.jsxs(t.Fragment,{children:[w,b,V]}),e[84]=w,e[85]=b,e[86]=V,e[87]=P):P=e[87],P}function _e(e){return t.jsx("option",{value:e.id,children:e.name},e.id)}function et(e){return(s,r)=>{const c=s[e],l=r[e];if(e==="nrens")return s.nrens.length===0&&r.nrens.length===0?L(s,r):s.nrens.length===0?-1:r.nrens.length===0?1:s.nrens[0].localeCompare(r.nrens[0]);if(typeof c!="string"||typeof l!="string")return L(s,r);const a=c.localeCompare(l);return a===0?L(s,r):a}}function tt(e,s){return e.permissions.active&&!s.permissions.active?1:!e.permissions.active&&s.permissions.active?-1:L(e,s)}function st(e){de.error(e.message)}function nt(e,s){return e.name.localeCompare(s.name)}export{ut as default};
diff --git a/compendium_v2/static/WeatherMap-CR-KiYaJ.js b/compendium_v2/static/WeatherMap-CR-KiYaJ.js
deleted file mode 100644
index fa9e60783fcf0967afc35e78dece4edee55641cb..0000000000000000000000000000000000000000
--- a/compendium_v2/static/WeatherMap-CR-KiYaJ.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as _,r as b,F as w,j as m}from"./main-BIBsTO5W.js";import{u as g,q as j,k as R,i as S,D as v,F as y,f as E}from"./useData-BDYwoQEh.js";import{S as F}from"./report.js";import{N as L}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function q(){const e=_.c(21),{filterSelection:t,setFilterSelection:o}=b.useContext(w),{data:i,nrens:d}=g("/api/weather-map",o);let a,n;if(e[0]!==i||e[1]!==t.selectedNrens){const x=i?j(i):[];let u;e[4]!==t.selectedNrens?(u=k=>t.selectedNrens.includes(k.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],a=x.filter(u);const D=R(a);n=S(D,C),e[0]=i,e[1]=t.selectedNrens,e[2]=a,e[3]=n}else a=e[2],n=e[3];const N=n;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let r;e[7]!==d?(r=d.values(),e[7]=d,e[8]=r):r=e[8];let s;e[9]!==r?(s={availableYears:c,availableNrens:[...r]},e[9]=r,e[10]=s):s=e[10];let f;e[11]!==t||e[12]!==o||e[13]!==s?(f=m.jsx(y,{filterOptions:s,filterSelection:t,setFilterSelection:o,coloredYears:!0}),e[11]=t,e[12]=o,e[13]=s,e[14]=f):f=e[14];const h=f;let l;e[15]!==N?(l=m.jsx(E,{children:m.jsx(L,{data:N,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=N,e[16]=l):l=e[16];let p;return e[17]!==h||e[18]!==a||e[19]!==l?(p=m.jsx(v,{title:"NREN Online Network Weather Maps ",description:"This table shows the URL links to NREN websites showing weather map, if available.",category:F.Network,filter:h,data:a,filename:"weather_map_nrens_per_year",children:l}),e[17]=h,e[18]=a,e[19]=l,e[20]=p):p=e[20],p}function C(e,t){!!t.url&&(e[t.url]=t.url)}export{q as default};
diff --git a/compendium_v2/static/WeatherMap-CZPcsrK6.js b/compendium_v2/static/WeatherMap-CZPcsrK6.js
new file mode 100644
index 0000000000000000000000000000000000000000..c097d83903dc74b5e09735653e749f456dbf391f
--- /dev/null
+++ b/compendium_v2/static/WeatherMap-CZPcsrK6.js
@@ -0,0 +1 @@
+import{c as b,r as k,F as w,j as m,t as g,S as j}from"./index.js";import{u as S,q as v,k as y,i as F,D as L,F as R,f as C}from"./useData-CxftshCa.js";import{N as E}from"./NrenYearTable-tQrmAmRo.js";import"./SideBar-CkoMfgfL.js";import"./xlsx-BHRztzV8.js";import"./index-ZGgT6a2u.js";import"./hook-BbhLqP_c.js";import"./Table-ClWM2_rS.js";function O(){const e=b.c(21),{filterSelection:t,setFilterSelection:o}=k.useContext(w),{data:i,nrens:d}=S("/api/weather-map",o);let a,n;if(e[0]!==i||e[1]!==t.selectedNrens){const x=i?v(i):[];let u;e[4]!==t.selectedNrens?(u=_=>t.selectedNrens.includes(_.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],a=x.filter(u);const D=y(a);n=F(D,T),e[0]=i,e[1]=t.selectedNrens,e[2]=a,e[3]=n}else a=e[2],n=e[3];const h=n;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let s;e[7]!==d?(s=d.values(),e[7]=d,e[8]=s):s=e[8];let r;e[9]!==s?(r={availableYears:c,availableNrens:[...s]},e[9]=s,e[10]=r):r=e[10];let f;e[11]!==t||e[12]!==o||e[13]!==r?(f=m.jsx(R,{filterOptions:r,filterSelection:t,setFilterSelection:o,coloredYears:!0}),e[11]=t,e[12]=o,e[13]=r,e[14]=f):f=e[14];const N=f;let l;e[15]!==h?(l=m.jsx(C,{children:m.jsx(E,{data:h,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=h,e[16]=l):l=e[16];let p;return e[17]!==N||e[18]!==a||e[19]!==l?(p=m.jsx(L,{title:g["weather-map"],description:"This table shows the URL links to NREN websites showing weather map, if available.",category:j.Network,filter:N,data:a,filename:"weather_map_nrens_per_year",children:l}),e[17]=N,e[18]=a,e[19]=l,e[20]=p):p=e[20],p}function T(e,t){!!t.url&&(e[t.url]=t.url)}export{O as default};
diff --git a/compendium_v2/static/charthelpers-CCaYPWnR.js b/compendium_v2/static/charthelpers-B0zLHD4s.js
similarity index 96%
rename from compendium_v2/static/charthelpers-CCaYPWnR.js
rename to compendium_v2/static/charthelpers-B0zLHD4s.js
index 6499ca0b0a91098fdb20318ba4972518d9738f11..1a2d1102b837e6252f3bc5f7387471af561e9039 100644
--- a/compendium_v2/static/charthelpers-CCaYPWnR.js
+++ b/compendium_v2/static/charthelpers-B0zLHD4s.js
@@ -1 +1 @@
-import{C as l}from"./useData-BDYwoQEh.js";const x=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,tickLimit:n,valueTransform:t})=>({responsive:!0,elements:{point:{pointStyle:"circle",pointRadius:4,pointBorderWidth:2,pointBackgroundColor:"white"}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(a){let s=r??(a.dataset.label||"");const e=t?t(a.parsed.y):a.parsed.y;return a.parsed.y!==null&&(s+=`: ${e} ${o||""}`),s}}}},scales:{y:{title:{display:!!i,text:i||""},ticks:{autoSkip:!0,maxTicksLimit:n,callback:a=>`${typeof a=="string"?a:t?t(a):a} ${c||""}`}}}}),y=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,valueTransform:n})=>({maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},chartDataLabels:{font:{family:'"Open Sans", sans-serif'}},tooltip:{callbacks:{label:function(t){let a=r??(t.dataset.label||"");const s=n?n(t.parsed.x):t.parsed.x;return t.parsed.y!==null&&(a+=`: ${s} ${o||""}`),a}}}},scales:{x:{title:{display:!!i,text:i||""},position:"top",ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`}},x2:{title:{display:!!i,text:i||""},ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const a=Object.keys(l.instances);let s=-999999,e=999999;for(const d of a)l.instances[d]&&t.chart.scales.x2&&(e=Math.min(l.instances[d].scales.x.min,e),s=Math.max(l.instances[d].scales.x.max,s));t.chart.scales.x2.options.min=e,t.chart.scales.x2.options.max=s,t.chart.scales.x2.min=e,t.chart.scales.x2.max=s}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"});export{y as a,x as g};
+import{C as l}from"./useData-CxftshCa.js";const x=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,tickLimit:n,valueTransform:t})=>({responsive:!0,elements:{point:{pointStyle:"circle",pointRadius:4,pointBorderWidth:2,pointBackgroundColor:"white"}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(a){let s=r??(a.dataset.label||"");const e=t?t(a.parsed.y):a.parsed.y;return a.parsed.y!==null&&(s+=`: ${e} ${o||""}`),s}}}},scales:{y:{title:{display:!!i,text:i||""},ticks:{autoSkip:!0,maxTicksLimit:n,callback:a=>`${typeof a=="string"?a:t?t(a):a} ${c||""}`}}}}),y=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,valueTransform:n})=>({maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},chartDataLabels:{font:{family:'"Open Sans", sans-serif'}},tooltip:{callbacks:{label:function(t){let a=r??(t.dataset.label||"");const s=n?n(t.parsed.x):t.parsed.x;return t.parsed.y!==null&&(a+=`: ${s} ${o||""}`),a}}}},scales:{x:{title:{display:!!i,text:i||""},position:"top",ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`}},x2:{title:{display:!!i,text:i||""},ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const a=Object.keys(l.instances);let s=-999999,e=999999;for(const d of a)l.instances[d]&&t.chart.scales.x2&&(e=Math.min(l.instances[d].scales.x.min,e),s=Math.max(l.instances[d].scales.x.max,s));t.chart.scales.x2.options.min=e,t.chart.scales.x2.options.max=s,t.chart.scales.x2.min=e,t.chart.scales.x2.max=s}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"});export{y as a,x as g};
diff --git a/compendium_v2/static/chartjs-plugin-datalabels.esm-D8EJYoxA.js b/compendium_v2/static/chartjs-plugin-datalabels.esm-CjG-nxnq.js
similarity index 99%
rename from compendium_v2/static/chartjs-plugin-datalabels.esm-D8EJYoxA.js
rename to compendium_v2/static/chartjs-plugin-datalabels.esm-CjG-nxnq.js
index 00088f2f43a151fecc6164a2155c2a460eb6e5cc..0a3166f40f22475d3295a0eb01a69b485f594de0 100644
--- a/compendium_v2/static/chartjs-plugin-datalabels.esm-D8EJYoxA.js
+++ b/compendium_v2/static/chartjs-plugin-datalabels.esm-CjG-nxnq.js
@@ -1,4 +1,4 @@
-import{x as g,y as J,z as f,A as K,E as q,G as V,H as W,I as p,J as Y,P as Q,B as Z,K as ee,M as re}from"./useData-BDYwoQEh.js";/*!
+import{x as g,y as J,z as f,A as K,E as q,G as V,H as W,I as p,J as Y,P as Q,B as Z,K as ee,M as re}from"./useData-CxftshCa.js";/*!
  * chartjs-plugin-datalabels v2.2.0
  * https://chartjs-plugin-datalabels.netlify.app
  * (c) 2017-2022 chartjs-plugin-datalabels contributors
diff --git a/compendium_v2/static/hook-BbhLqP_c.js b/compendium_v2/static/hook-BbhLqP_c.js
new file mode 100644
index 0000000000000000000000000000000000000000..987ff6e11c94af7a9ed571bc245ea53300e51db4
--- /dev/null
+++ b/compendium_v2/static/hook-BbhLqP_c.js
@@ -0,0 +1 @@
+import{$ as d,r as p}from"./index.js";function m(){return m=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var e in n)({}).hasOwnProperty.call(n,e)&&(r[e]=n[e])}return r},m.apply(null,arguments)}function b(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function y(r){var t=P(r,"string");return typeof t=="symbol"?t:String(t)}function P(r,t){if(typeof r!="object"||r===null)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var e=n.call(r,t);if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function g(r,t,n){var e=p.useRef(r!==void 0),o=p.useState(t),a=o[0],f=o[1],i=r!==void 0,l=e.current;return e.current=i,!i&&l&&a!==t&&f(t),[i?r:a,p.useCallback(function(c){for(var u=arguments.length,v=new Array(u>1?u-1:0),s=1;s<u;s++)v[s-1]=arguments[s];n&&n.apply(void 0,[c].concat(v)),f(c)},[n])]}function j(r,t){return Object.keys(t).reduce(function(n,e){var o,a=n,f=a[b(e)],i=a[e],l=d(a,[b(e),e].map(y)),c=t[e],u=g(i,f,r[c]),v=u[0],s=u[1];return m({},l,(o={},o[e]=v,o[c]=s,o))},r)}export{j as u};
diff --git a/compendium_v2/static/hook-DmuGcAOd.js b/compendium_v2/static/hook-DmuGcAOd.js
deleted file mode 100644
index aadb417437599470fa5a4e68493b46ce6bb58b0d..0000000000000000000000000000000000000000
--- a/compendium_v2/static/hook-DmuGcAOd.js
+++ /dev/null
@@ -1 +0,0 @@
-import{W as d,r as p}from"./main-BIBsTO5W.js";function m(){return m=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var e in n)({}).hasOwnProperty.call(n,e)&&(r[e]=n[e])}return r},m.apply(null,arguments)}function b(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function y(r){var t=P(r,"string");return typeof t=="symbol"?t:String(t)}function P(r,t){if(typeof r!="object"||r===null)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var e=n.call(r,t);if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function g(r,t,n){var e=p.useRef(r!==void 0),o=p.useState(t),a=o[0],f=o[1],i=r!==void 0,l=e.current;return e.current=i,!i&&l&&a!==t&&f(t),[i?r:a,p.useCallback(function(c){for(var u=arguments.length,v=new Array(u>1?u-1:0),s=1;s<u;s++)v[s-1]=arguments[s];n&&n.apply(void 0,[c].concat(v)),f(c)},[n])]}function j(r,t){return Object.keys(t).reduce(function(n,e){var o,a=n,f=a[b(e)],i=a[e],l=d(a,[b(e),e].map(y)),c=t[e],u=g(i,f,r[c]),v=u[0],s=u[1];return m({},l,(o={},o[e]=v,o[c]=s,o))},r)}export{j as u};
diff --git a/compendium_v2/static/index-BBrAyDR9.js b/compendium_v2/static/index-BBrAyDR9.js
deleted file mode 100644
index faebc1f4f0e8e46e556080faaaa7e389e941934a..0000000000000000000000000000000000000000
--- a/compendium_v2/static/index-BBrAyDR9.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as a,i as h}from"./main-BIBsTO5W.js";import{C as b,t as L,v}from"./useData-BDYwoQEh.js";const C="label";function m(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function B(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function y(t,e){t.labels=e}function E(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;const o=[];t.datasets=e.map(s=>{const u=t.datasets.find(i=>i[n]===s[n]);return!u||!s.data||o.includes(u)?{...s}:(o.push(u),Object.assign(u,s),u)})}function T(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C;const n={labels:[],datasets:[]};return y(n,t.labels),E(n,t.datasets,e),n}function j(t,e){const{height:n=150,width:o=300,redraw:s=!1,datasetIdKey:u,type:i,data:c,options:f,plugins:w=[],fallbackContent:I,updateMode:g,...K}=t,l=a.useRef(null),r=a.useRef(null),d=()=>{l.current&&(r.current=new b(l.current,{type:i,data:T(c,u),options:f&&{...f},plugins:w}),m(e,r.current))},p=()=>{m(e,null),r.current&&(r.current.destroy(),r.current=null)};return a.useEffect(()=>{!s&&r.current&&f&&B(r.current,f)},[s,f]),a.useEffect(()=>{!s&&r.current&&y(r.current.config.data,c.labels)},[s,c.labels]),a.useEffect(()=>{!s&&r.current&&c.datasets&&E(r.current.config.data,c.datasets,u)},[s,c.datasets]),a.useEffect(()=>{r.current&&(s?(p(),setTimeout(d)):r.current.update(g))},[s,f,c.labels,c.datasets,g]),a.useEffect(()=>{r.current&&(p(),setTimeout(d))},[i]),a.useEffect(()=>(d(),()=>p()),[]),h.createElement("canvas",{ref:l,role:"img",height:n,width:o,...K},I)}const D=a.forwardRef(j);function R(t,e){return b.register(e),a.forwardRef((n,o)=>h.createElement(D,{...n,ref:o,type:t}))}const M=R("line",L),P=R("bar",v);export{P as B,M as L};
diff --git a/compendium_v2/static/index-CuSQpLoM.js b/compendium_v2/static/index-BGZcCZJE.js
similarity index 51%
rename from compendium_v2/static/index-CuSQpLoM.js
rename to compendium_v2/static/index-BGZcCZJE.js
index a862d0408f713969c96406d31e630a90a38fdd58..4bf28a531c584c876d849e36e2c122bcacdd4bf6 100644
--- a/compendium_v2/static/index-CuSQpLoM.js
+++ b/compendium_v2/static/index-BGZcCZJE.js
@@ -1,4 +1,4 @@
-import{r as c}from"./main-BIBsTO5W.js";let T={data:""},F=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||T,_=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,H=/\/\*[^]*?\*\/|  +/g,A=/\n+/g,b=(e,t)=>{let a="",o="",i="";for(let r in e){let n=e[r];r[0]=="@"?r[1]=="i"?a=r+" "+n+";":o+=r[1]=="f"?b(n,r):r+"{"+b(n,r[1]=="k"?"":t)+"}":typeof n=="object"?o+=b(n,t?t.replace(/([^,])+/g,s=>r.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):r):n!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=b.p?b.p(r,n):r+":"+n+";")}return a+(t&&i?t+"{"+i+"}":i)+o},y={},P=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+P(e[a]);return t}return e},L=(e,t,a,o,i)=>{let r=P(e),n=y[r]||(y[r]=(l=>{let d=0,u=11;for(;d<l.length;)u=101*u+l.charCodeAt(d++)>>>0;return"go"+u})(r));if(!y[n]){let l=r!==e?e:(d=>{let u,m,f=[{}];for(;u=_.exec(d.replace(H,""));)u[4]?f.shift():u[3]?(m=u[3].replace(A," ").trim(),f.unshift(f[0][m]=f[0][m]||{})):f[0][u[1]]=u[2].replace(A," ").trim();return f[0]})(e);y[n]=b(i?{["@keyframes "+n]:l}:l,a?"":"."+n)}let s=a&&y.g?y.g:null;return a&&(y.g=y[n]),((l,d,u,m)=>{m?d.data=d.data.replace(m,l):d.data.indexOf(l)===-1&&(d.data=u?l+d.data:d.data+l)})(y[n],t,o,s),n},U=(e,t,a)=>e.reduce((o,i,r)=>{let n=t[r];if(n&&n.call){let s=n(a),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;n=l?"."+l:s&&typeof s=="object"?s.props?"":b(s,""):s===!1?"":s}return o+i+(n??"")},"");function j(e){let t=this||{},a=e.call?e(t.p):e;return L(a.unshift?a.raw?U(a,[].slice.call(arguments,1),t.p):a.reduce((o,i)=>Object.assign(o,i&&i.call?i(t.p):i),{}):a,F(t.target),t.g,t.o,t.k)}let I,N,z;j.bind({g:1});let h=j.bind({k:1});function q(e,t,a,o){b.p=t,I=e,N=a,z=o}function x(e,t){let a=this||{};return function(){let o=arguments;function i(r,n){let s=Object.assign({},r),l=s.className||i.className;a.p=Object.assign({theme:N&&N()},s),a.o=/ *go\d+/.test(l),s.className=j.apply(a,o)+(l?" "+l:"");let d=e;return e[0]&&(d=s.as||e,delete s.as),z&&d[0]&&z(s),I(d,s)}return i}}var R=e=>typeof e=="function",O=(e,t)=>R(e)?e(t):e,Y=(()=>{let e=0;return()=>(++e).toString()})(),M=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Z=20,S=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Z)};case 1:return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case 2:let{toast:a}=t;return S(e,{type:e.toasts.find(r=>r.id===a.id)?1:0,toast:a});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(r=>r.id===o||o===void 0?{...r,dismissed:!0,visible:!1}:r)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(r=>({...r,pauseDuration:r.pauseDuration+i}))}}},k=[],D={toasts:[],pausedAt:void 0},v=e=>{D=S(D,e),k.forEach(t=>{t(D)})},B={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},G=(e={})=>{let[t,a]=c.useState(D);c.useEffect(()=>(k.push(a),()=>{let i=k.indexOf(a);i>-1&&k.splice(i,1)}),[t]);let o=t.toasts.map(i=>{var r,n,s;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((r=e[i.type])==null?void 0:r.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((n=e[i.type])==null?void 0:n.duration)||(e==null?void 0:e.duration)||B[i.type],style:{...e.style,...(s=e[i.type])==null?void 0:s.style,...i.style}}});return{...t,toasts:o}},J=(e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(a==null?void 0:a.id)||Y()}),E=e=>(t,a)=>{let o=J(t,e,a);return v({type:2,toast:o}),o.id},p=(e,t)=>E("blank")(e,t);p.error=E("error");p.success=E("success");p.loading=E("loading");p.custom=E("custom");p.dismiss=e=>{v({type:3,toastId:e})};p.remove=e=>v({type:4,toastId:e});p.promise=(e,t,a)=>{let o=p.loading(t.loading,{...a,...a==null?void 0:a.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let r=t.success?O(t.success,i):void 0;return r?p.success(r,{id:o,...a,...a==null?void 0:a.success}):p.dismiss(o),i}).catch(i=>{let r=t.error?O(t.error,i):void 0;r?p.error(r,{id:o,...a,...a==null?void 0:a.error}):p.dismiss(o)}),e};var K=(e,t)=>{v({type:1,toast:{id:e,height:t}})},Q=()=>{v({type:5,time:Date.now()})},w=new Map,V=1e3,W=(e,t=V)=>{if(w.has(e))return;let a=setTimeout(()=>{w.delete(e),v({type:4,toastId:e})},t);w.set(e,a)},X=e=>{let{toasts:t,pausedAt:a}=G(e);c.useEffect(()=>{if(a)return;let r=Date.now(),n=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(r-s.createdAt);if(l<0){s.visible&&p.dismiss(s.id);return}return setTimeout(()=>p.dismiss(s.id),l)});return()=>{n.forEach(s=>s&&clearTimeout(s))}},[t,a]);let o=c.useCallback(()=>{a&&v({type:6,time:Date.now()})},[a]),i=c.useCallback((r,n)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:d}=n||{},u=t.filter(g=>(g.position||d)===(r.position||d)&&g.height),m=u.findIndex(g=>g.id===r.id),f=u.filter((g,C)=>C<m&&g.visible).length;return u.filter(g=>g.visible).slice(...s?[f+1]:[0,f]).reduce((g,C)=>g+(C.height||0)+l,0)},[t]);return c.useEffect(()=>{t.forEach(r=>{if(r.dismissed)W(r.id,r.removeDelay);else{let n=w.get(r.id);n&&(clearTimeout(n),w.delete(r.id))}})},[t]),{toasts:t,handlers:{updateHeight:K,startPause:Q,endPause:o,calculateOffset:i}}},ee=h`
+import{r as c}from"./index.js";let T={data:""},F=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||T,_=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,H=/\/\*[^]*?\*\/|  +/g,A=/\n+/g,b=(e,t)=>{let a="",o="",i="";for(let r in e){let n=e[r];r[0]=="@"?r[1]=="i"?a=r+" "+n+";":o+=r[1]=="f"?b(n,r):r+"{"+b(n,r[1]=="k"?"":t)+"}":typeof n=="object"?o+=b(n,t?t.replace(/([^,])+/g,s=>r.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):r):n!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=b.p?b.p(r,n):r+":"+n+";")}return a+(t&&i?t+"{"+i+"}":i)+o},y={},P=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+P(e[a]);return t}return e},L=(e,t,a,o,i)=>{let r=P(e),n=y[r]||(y[r]=(l=>{let d=0,u=11;for(;d<l.length;)u=101*u+l.charCodeAt(d++)>>>0;return"go"+u})(r));if(!y[n]){let l=r!==e?e:(d=>{let u,m,f=[{}];for(;u=_.exec(d.replace(H,""));)u[4]?f.shift():u[3]?(m=u[3].replace(A," ").trim(),f.unshift(f[0][m]=f[0][m]||{})):f[0][u[1]]=u[2].replace(A," ").trim();return f[0]})(e);y[n]=b(i?{["@keyframes "+n]:l}:l,a?"":"."+n)}let s=a&&y.g?y.g:null;return a&&(y.g=y[n]),((l,d,u,m)=>{m?d.data=d.data.replace(m,l):d.data.indexOf(l)===-1&&(d.data=u?l+d.data:d.data+l)})(y[n],t,o,s),n},U=(e,t,a)=>e.reduce((o,i,r)=>{let n=t[r];if(n&&n.call){let s=n(a),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;n=l?"."+l:s&&typeof s=="object"?s.props?"":b(s,""):s===!1?"":s}return o+i+(n??"")},"");function j(e){let t=this||{},a=e.call?e(t.p):e;return L(a.unshift?a.raw?U(a,[].slice.call(arguments,1),t.p):a.reduce((o,i)=>Object.assign(o,i&&i.call?i(t.p):i),{}):a,F(t.target),t.g,t.o,t.k)}let I,N,z;j.bind({g:1});let h=j.bind({k:1});function q(e,t,a,o){b.p=t,I=e,N=a,z=o}function x(e,t){let a=this||{};return function(){let o=arguments;function i(r,n){let s=Object.assign({},r),l=s.className||i.className;a.p=Object.assign({theme:N&&N()},s),a.o=/ *go\d+/.test(l),s.className=j.apply(a,o)+(l?" "+l:"");let d=e;return e[0]&&(d=s.as||e,delete s.as),z&&d[0]&&z(s),I(d,s)}return i}}var R=e=>typeof e=="function",O=(e,t)=>R(e)?e(t):e,Y=(()=>{let e=0;return()=>(++e).toString()})(),M=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Z=20,S=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Z)};case 1:return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case 2:let{toast:a}=t;return S(e,{type:e.toasts.find(r=>r.id===a.id)?1:0,toast:a});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(r=>r.id===o||o===void 0?{...r,dismissed:!0,visible:!1}:r)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(r=>({...r,pauseDuration:r.pauseDuration+i}))}}},k=[],D={toasts:[],pausedAt:void 0},v=e=>{D=S(D,e),k.forEach(t=>{t(D)})},B={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},G=(e={})=>{let[t,a]=c.useState(D);c.useEffect(()=>(k.push(a),()=>{let i=k.indexOf(a);i>-1&&k.splice(i,1)}),[t]);let o=t.toasts.map(i=>{var r,n,s;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((r=e[i.type])==null?void 0:r.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((n=e[i.type])==null?void 0:n.duration)||(e==null?void 0:e.duration)||B[i.type],style:{...e.style,...(s=e[i.type])==null?void 0:s.style,...i.style}}});return{...t,toasts:o}},J=(e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(a==null?void 0:a.id)||Y()}),E=e=>(t,a)=>{let o=J(t,e,a);return v({type:2,toast:o}),o.id},p=(e,t)=>E("blank")(e,t);p.error=E("error");p.success=E("success");p.loading=E("loading");p.custom=E("custom");p.dismiss=e=>{v({type:3,toastId:e})};p.remove=e=>v({type:4,toastId:e});p.promise=(e,t,a)=>{let o=p.loading(t.loading,{...a,...a==null?void 0:a.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let r=t.success?O(t.success,i):void 0;return r?p.success(r,{id:o,...a,...a==null?void 0:a.success}):p.dismiss(o),i}).catch(i=>{let r=t.error?O(t.error,i):void 0;r?p.error(r,{id:o,...a,...a==null?void 0:a.error}):p.dismiss(o)}),e};var K=(e,t)=>{v({type:1,toast:{id:e,height:t}})},Q=()=>{v({type:5,time:Date.now()})},w=new Map,V=1e3,W=(e,t=V)=>{if(w.has(e))return;let a=setTimeout(()=>{w.delete(e),v({type:4,toastId:e})},t);w.set(e,a)},X=e=>{let{toasts:t,pausedAt:a}=G(e);c.useEffect(()=>{if(a)return;let r=Date.now(),n=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(r-s.createdAt);if(l<0){s.visible&&p.dismiss(s.id);return}return setTimeout(()=>p.dismiss(s.id),l)});return()=>{n.forEach(s=>s&&clearTimeout(s))}},[t,a]);let o=c.useCallback(()=>{a&&v({type:6,time:Date.now()})},[a]),i=c.useCallback((r,n)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:d}=n||{},u=t.filter(g=>(g.position||d)===(r.position||d)&&g.height),m=u.findIndex(g=>g.id===r.id),f=u.filter((g,C)=>C<m&&g.visible).length;return u.filter(g=>g.visible).slice(...s?[f+1]:[0,f]).reduce((g,C)=>g+(C.height||0)+l,0)},[t]);return c.useEffect(()=>{t.forEach(r=>{if(r.dismissed)W(r.id,r.removeDelay);else{let n=w.get(r.id);n&&(clearTimeout(n),w.delete(r.id))}})},[t]),{toasts:t,handlers:{updateHeight:K,startPause:Q,endPause:o,calculateOffset:i}}},ee=h`
 from {
   transform: scale(0) rotate(45deg);
 	opacity: 0;
diff --git a/compendium_v2/static/index-CjWPDfDC.js b/compendium_v2/static/index-CjWPDfDC.js
new file mode 100644
index 0000000000000000000000000000000000000000..57bc4695ad91126accc6569b62b0076b782d5057
--- /dev/null
+++ b/compendium_v2/static/index-CjWPDfDC.js
@@ -0,0 +1 @@
+import{r as a,f as h}from"./index.js";import{C as b,t as L,v}from"./useData-CxftshCa.js";const C="label";function m(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function B(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function y(t,e){t.labels=e}function E(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;const o=[];t.datasets=e.map(s=>{const u=t.datasets.find(i=>i[n]===s[n]);return!u||!s.data||o.includes(u)?{...s}:(o.push(u),Object.assign(u,s),u)})}function T(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C;const n={labels:[],datasets:[]};return y(n,t.labels),E(n,t.datasets,e),n}function j(t,e){const{height:n=150,width:o=300,redraw:s=!1,datasetIdKey:u,type:i,data:c,options:f,plugins:w=[],fallbackContent:I,updateMode:g,...K}=t,l=a.useRef(null),r=a.useRef(null),d=()=>{l.current&&(r.current=new b(l.current,{type:i,data:T(c,u),options:f&&{...f},plugins:w}),m(e,r.current))},p=()=>{m(e,null),r.current&&(r.current.destroy(),r.current=null)};return a.useEffect(()=>{!s&&r.current&&f&&B(r.current,f)},[s,f]),a.useEffect(()=>{!s&&r.current&&y(r.current.config.data,c.labels)},[s,c.labels]),a.useEffect(()=>{!s&&r.current&&c.datasets&&E(r.current.config.data,c.datasets,u)},[s,c.datasets]),a.useEffect(()=>{r.current&&(s?(p(),setTimeout(d)):r.current.update(g))},[s,f,c.labels,c.datasets,g]),a.useEffect(()=>{r.current&&(p(),setTimeout(d))},[i]),a.useEffect(()=>(d(),()=>p()),[]),h.createElement("canvas",{ref:l,role:"img",height:n,width:o,...K},I)}const D=a.forwardRef(j);function R(t,e){return b.register(e),a.forwardRef((n,o)=>h.createElement(D,{...n,ref:o,type:t}))}const M=R("line",L),P=R("bar",v);export{P as B,M as L};
diff --git a/compendium_v2/static/index-D6hre9Be.js b/compendium_v2/static/index-D6hre9Be.js
deleted file mode 100644
index 1582af3830427c6fa66aaab07158faf4afb005fa..0000000000000000000000000000000000000000
--- a/compendium_v2/static/index-D6hre9Be.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as a,X as c}from"./main-BIBsTO5W.js";const o=a.createContext(null);o.displayName="InputGroupContext";function n(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function e(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(t)}export{e as F,n as a,o as c};
diff --git a/compendium_v2/static/index-ZGgT6a2u.js b/compendium_v2/static/index-ZGgT6a2u.js
new file mode 100644
index 0000000000000000000000000000000000000000..73a7067f1e0c307d0855ce0018b11072220f2910
--- /dev/null
+++ b/compendium_v2/static/index-ZGgT6a2u.js
@@ -0,0 +1 @@
+import{r as a,_ as c}from"./index.js";const o=a.createContext(null);o.displayName="InputGroupContext";function n(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function e(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(t)}export{e as F,n as a,o as c};
diff --git a/compendium_v2/static/main.css b/compendium_v2/static/index.css
similarity index 99%
rename from compendium_v2/static/main.css
rename to compendium_v2/static/index.css
index 5a7e564ce541af2c4735f7887cda58bbc4891f45..537452936babe0370d428af10b4fcca2c8488107 100644
--- a/compendium_v2/static/main.css
+++ b/compendium_v2/static/index.css
@@ -2,4 +2,4 @@
 * Bootstrap  v5.3.3 (https://getbootstrap.com/)
 * Copyright 2011-2024 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
-*/:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, .75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, .5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, .175);--bs-border-radius:.375rem;--bs-border-radius-sm:.25rem;--bs-border-radius-lg:.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm:0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width:.25rem;--bs-focus-ring-opacity:.25;--bs-focus-ring-color:rgba(13, 110, 253, .25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, .75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, .5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, .15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:.25rem}.g-1,.gy-1{--bs-gutter-y:.25rem}.g-2,.gx-2{--bs-gutter-x:.5rem}.g-2,.gy-2{--bs-gutter-y:.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-emphasis-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-emphasis-color);--bs-table-striped-bg:rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color:var(--bs-emphasis-color);--bs-table-active-bg:rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color:var(--bs-emphasis-color);--bs-table-hover-bg:rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#a6b5cc;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#b5b6b7;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#a7b9b1;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#a6c3ca;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#ccc2a4;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#c6acae;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#c6c7c8;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#4d5154;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg:var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.25em;vertical-align:top;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;-moz-appearance:none;-webkit-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:not(:-moz-placeholder-shown)~label:after{position:absolute;top:1rem;right:.375rem;bottom:1rem;left:.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control-plaintext~label:after,.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-select~label:after{position:absolute;top:1rem;right:.375rem;bottom:1rem;left:.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>.form-control:disabled~label,.form-floating>:disabled~label{color:#6c757d}.form-floating>.form-control:disabled~label:after,.form-floating>:disabled~label:after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:var(--bs-form-valid-border-color)}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3.75rem + 1.5em)}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:var(--bs-form-valid-border-color)}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:var(--bs-form-valid-color)}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:var(--bs-form-invalid-border-color)}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3.75rem + 1.5em)}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:var(--bs-form-invalid-border-color)}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:.75rem;--bs-btn-padding-y:.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, .15),0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity:.65;--bs-btn-focus-box-shadow:0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:.25rem;--bs-btn-padding-x:.5rem;--bs-btn-font-size:.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:.5rem;--bs-dropdown-spacer:.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:var(--bs-body-color);--bs-dropdown-bg:var(--bs-body-bg);--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:var(--bs-border-radius);--bs-dropdown-border-width:var(--bs-border-width);--bs-dropdown-inner-border-radius:calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:.5rem;--bs-dropdown-box-shadow:var(--bs-box-shadow);--bs-dropdown-link-color:var(--bs-body-color);--bs-dropdown-link-hover-color:var(--bs-body-color);--bs-dropdown-link-hover-bg:var(--bs-tertiary-bg);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:var(--bs-tertiary-color);--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius,0)}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, .15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:calc(var(--bs-border-width) * -1)}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:calc(var(--bs-border-width) * -1)}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:0 0;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.nav-link.disabled,.nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:var(--bs-border-width);--bs-nav-tabs-border-color:var(--bs-border-color);--bs-nav-tabs-border-radius:var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color:var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color:var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg:var(--bs-body-bg);--bs-nav-tabs-link-active-border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:var(--bs-border-radius);--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap:1rem;--bs-nav-underline-border-width:.125rem;--bs-nav-underline-link-active-color:var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:focus,.nav-underline .nav-link:hover{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:.5rem;--bs-navbar-color:rgba(var(--bs-emphasis-color-rgb), .65);--bs-navbar-hover-color:rgba(var(--bs-emphasis-color-rgb), .8);--bs-navbar-disabled-color:rgba(var(--bs-emphasis-color-rgb), .3);--bs-navbar-active-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y:.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x:.5rem;--bs-navbar-toggler-padding-y:.25rem;--bs-navbar-toggler-padding-x:.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), .15);--bs-navbar-toggler-border-radius:var(--bs-border-radius);--bs-navbar-toggler-focus-width:.25rem;--bs-navbar-toggler-transition:box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color:rgba(255, 255, 255, .55);--bs-navbar-hover-color:rgba(255, 255, 255, .75);--bs-navbar-disabled-color:rgba(255, 255, 255, .25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:.5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width:var(--bs-border-width);--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y:.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(var(--bs-body-color-rgb), .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:var(--bs-body-bg);--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:var(--bs-body-color);--bs-accordion-bg:var(--bs-body-bg);--bs-accordion-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,border-radius .15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:var(--bs-border-width);--bs-accordion-border-radius:var(--bs-border-radius);--bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:var(--bs-body-color);--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform .2s ease-in-out;--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052c65' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--bs-accordion-btn-focus-box-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:var(--bs-primary-text-emphasis);--bs-accordion-active-bg:var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type>.accordion-header .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type>.accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush>.accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush>.accordion-item:first-child{border-top:0}.accordion-flush>.accordion-item:last-child{border-bottom:0}.accordion-flush>.accordion-item>.accordion-header .accordion-button,.accordion-flush>.accordion-item>.accordion-header .accordion-button.collapsed{border-radius:0}.accordion-flush>.accordion-item>.accordion-collapse{border-radius:0}[data-bs-theme=dark] .accordion-button:after{--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:.75rem;--bs-pagination-padding-y:.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:var(--bs-body-bg);--bs-pagination-border-width:var(--bs-border-width);--bs-pagination-border-color:var(--bs-border-color);--bs-pagination-border-radius:var(--bs-border-radius);--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:var(--bs-tertiary-bg);--bs-pagination-hover-border-color:var(--bs-border-color);--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:var(--bs-secondary-bg);--bs-pagination-focus-box-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:var(--bs-secondary-color);--bs-pagination-disabled-bg:var(--bs-secondary-bg);--bs-pagination-disabled-border-color:var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(var(--bs-border-width) * -1)}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x:.5rem;--bs-pagination-padding-y:.25rem;--bs-pagination-font-size:.875rem;--bs-pagination-border-radius:var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x:.65em;--bs-badge-padding-y:.35em;--bs-badge-font-size:.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:var(--bs-primary-text-emphasis);--bs-alert-bg:var(--bs-primary-bg-subtle);--bs-alert-border-color:var(--bs-primary-border-subtle);--bs-alert-link-color:var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color:var(--bs-secondary-text-emphasis);--bs-alert-bg:var(--bs-secondary-bg-subtle);--bs-alert-border-color:var(--bs-secondary-border-subtle);--bs-alert-link-color:var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color:var(--bs-success-text-emphasis);--bs-alert-bg:var(--bs-success-bg-subtle);--bs-alert-border-color:var(--bs-success-border-subtle);--bs-alert-link-color:var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color:var(--bs-info-text-emphasis);--bs-alert-bg:var(--bs-info-bg-subtle);--bs-alert-border-color:var(--bs-info-border-subtle);--bs-alert-link-color:var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color:var(--bs-warning-text-emphasis);--bs-alert-bg:var(--bs-warning-bg-subtle);--bs-alert-border-color:var(--bs-warning-border-subtle);--bs-alert-link-color:var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color:var(--bs-light-text-emphasis);--bs-alert-bg:var(--bs-light-bg-subtle);--bs-alert-border-color:var(--bs-light-border-subtle);--bs-alert-link-color:var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color:var(--bs-dark-text-emphasis);--bs-alert-bg:var(--bs-dark-bg-subtle);--bs-alert-border-color:var(--bs-dark-border-subtle);--bs-alert-link-color:var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress,.progress-stacked{--bs-progress-height:1rem;--bs-progress-font-size:.75rem;--bs-progress-bg:var(--bs-secondary-bg);--bs-progress-border-radius:var(--bs-border-radius);--bs-progress-box-shadow:var(--bs-box-shadow-inset);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity:.5;--bs-btn-close-hover-opacity:.75;--bs-btn-close-focus-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:.75rem;--bs-toast-padding-y:.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width:var(--bs-border-width);--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:var(--bs-border-radius);--bs-toast-box-shadow:var(--bs-box-shadow);--bs-toast-header-color:var(--bs-secondary-color);--bs-toast-header-bg:rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color:var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:.5rem;--bs-tooltip-padding-y:.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:.875rem;--bs-tooltip-color:var(--bs-body-bg);--bs-tooltip-bg:var(--bs-emphasis-color);--bs-tooltip-border-radius:var(--bs-border-radius);--bs-tooltip-opacity:.9;--bs-tooltip-arrow-width:.8rem;--bs-tooltip-arrow-height:.4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before,.bs-tooltip-top .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before,.bs-tooltip-end .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before,.bs-tooltip-bottom .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before,.bs-tooltip-start .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:.875rem;--bs-popover-bg:var(--bs-body-bg);--bs-popover-border-width:var(--bs-border-width);--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:var(--bs-border-radius-lg);--bs-popover-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow:var(--bs-box-shadow);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color:inherit;--bs-popover-header-bg:var(--bs-secondary-bg);--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:var(--bs-body-color);--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:after,.popover .popover-arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-top>.popover-arrow:before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after,.bs-popover-top>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-end>.popover-arrow:before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after,.bs-popover-end>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-bottom>.popover-arrow:before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after,.bs-popover-bottom>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-start>.popover-arrow:before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after,.bs-popover-start>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translate(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-.125em;--bs-spinner-border-width:.25em;--bs-spinner-animation-speed:.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-.125em;--bs-spinner-animation-speed:.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color:var(--bs-body-color);--bs-offcanvas-bg:var(--bs-body-bg);--bs-offcanvas-border-width:var(--bs-border-width);--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:var(--bs-box-shadow-sm);--bs-offcanvas-transition:transform .3s ease-in-out;--bs-offcanvas-title-line-height:1.5}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin:calc(-.5 * var(--bs-offcanvas-padding-y)) calc(-.5 * var(--bs-offcanvas-padding-x)) calc(-.5 * var(--bs-offcanvas-padding-y)) auto}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity,1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important}.link-primary:focus,.link-primary:hover{color:RGBA(10,88,202,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important}.link-secondary:focus,.link-secondary:hover{color:RGBA(86,94,100,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important}.link-success:focus,.link-success:hover{color:RGBA(20,108,67,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important}.link-info:focus,.link-info:hover{color:RGBA(61,213,243,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important}.link-warning:focus,.link-warning:hover{color:RGBA(255,205,57,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important}.link-danger:focus,.link-danger:hover{color:RGBA(176,42,55,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important}.link-light:focus,.link-light:hover{color:RGBA(249,250,251,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important}.link-dark:focus,.link-dark:hover{color:RGBA(26,30,33,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-body-emphasis:focus,.link-body-emphasis:hover{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,.75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,.75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,.75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x,0) var(--bs-focus-ring-y,0) var(--bs-focus-ring-blur,0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,.5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,.5));text-underline-offset:.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion:reduce){.icon-link>.bi{transition:none}}.icon-link-hover:focus-visible>.bi,.icon-link-hover:hover>.bi{transform:var(--bs-icon-link-transform,translate3d(.25em,0,0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption){position:absolute!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity:.1}.border-opacity-25{--bs-border-opacity:.25}.border-opacity-50{--bs-border-opacity:.5}.border-opacity-75{--bs-border-opacity:.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity:1;color:#00000080!important}.text-white-50{--bs-text-opacity:1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:.25}.text-opacity-50{--bs-text-opacity:.5}.text-opacity-75{--bs-text-opacity:.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity:.1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity:.25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity:.5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity:.75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:.1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:.25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:.5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:.75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity:.1}.bg-opacity-25{--bs-bg-opacity:.25}.bg-opacity-50{--bs-bg-opacity:.5}.bg-opacity-75{--bs-bg-opacity:.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:400}.bold-20pt{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700}.bold-caps-16pt,.toggle-btn,.toggle-btn-survey,.toggle-btn-matrix,.toggle-btn-table{font-family:Open Sans,sans-serif;font-size:16pt;font-weight:700;text-transform:uppercase}.bold-caps-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:700;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700;text-transform:uppercase}.bold-caps-30pt{font-family:Open Sans,sans-serif;font-size:30pt;font-weight:700;text-transform:uppercase}.dark-teal,.geant-header{color:#003f5f}.bold-grey-12pt{font-family:Open Sans,sans-serif;font-size:12pt;font-weight:700;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px #00000040;border:rgb(247,158,59) 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}.sidebar-wrapper>nav.survey{border:rgb(0,63,95) 2px solid}.sidebar-wrapper>nav.survey a:hover{color:#53bbb4}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn,.toggle-btn-survey{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-survey{background-color:#003f5f}.toggle-btn-wrapper{padding:.7rem .5rem .5rem}.toggle-btn-matrix,.toggle-btn-table{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.7rem .5rem .5rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}:root{--muted-alpha: .2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid rgb(185,190,197)}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:25px 5px 5px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid rgb(247,158,59);padding:10px;width:80rem;max-width:97%}.collapsible-box-matrix{border:2px solid lightblue}.collapsible-box-table{border:unset;border-bottom:2px solid lightblue}.collapsible-content{display:flex;flex-direction:column;opacity:1;padding:1rem}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.collapsible-column{display:flex;flex-direction:row;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:#00000040}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem #000c}.bg-color-of-the-year-blank{background-color:#0000}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{display:flex;flex-direction:row;overflow-x:auto}.scrollable-horizontal>*{position:relative}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse;z-index:1;width:auto}.colored-table table{width:65rem;table-layout:fixed}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:700;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid white;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem!important;background-color:#fff!important}.matrix-table tbody tr:nth-of-type(2n) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(2n){background-color:#66798b2d}.table-bg-highlighted tr:hover{background-color:#66798b85}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border:after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:#9d2872}.color-of-badge-1{background-color:#f1e04f}.color-of-badge-2{background-color:#db2a4c}.color-of-badge-3{background-color:#ed8d18}.color-of-badge-4{background-color:#89a679}.color-of-badge-blank{background-color:#0000}.bottom-tooltip,.bottom-tooltip-small:after,.bottom-tooltip-small{position:relative}.bottom-tooltip:after,.bottom-tooltip-small:after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%,calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small:after{width:5em}.bottom-tooltip-small:hover:after,.bottom-tooltip:hover:after{display:block}.bottom-tooltip:before,.bottom-tooltip-small:before{display:none;position:absolute;transform:translate(-50%,calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover:before,.bottom-tooltip-small:hover:before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00A0C6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg,#d6e8f3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg,#fcdbd5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg,#d4f0d9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg,#fee8d0,#fff);padding:1.5rem;margin:10px}.color-of-the-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg,#d0e5f2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg,#d2f0e2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg,#f3cfd3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg,#c7ece9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg,#fdcfd1,#fff);padding:1.5rem;margin:10px}.color-of-the-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg,#e9e4e3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg,#fdc9e7,#fff);padding:1.5rem;margin:10px}.color-of-the-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg,#e5e5e5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg,#cddcec,#fff);padding:1.5rem;margin:10px}.color-of-the-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:700}.user-management-table{width:100%;table-layout:fixed;max-height:max(50vh,30rem)}@media (max-width: 1920px){.user-management-table{max-width:100vw}}.user-management-table>* th,.user-management-table>* td{word-wrap:break-word}.user-management-table thead th{position:sticky;top:-.1rem;background-color:#fff;z-index:1}.nav-link-entry{border-radius:2px;font-family:Open Sans,sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:Open Sans,sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:700;border:none}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:deepskyblue 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:700}.imageoption>span{margin-left:.25rem}.imageoption:after{content:"";display:block;border-bottom:grey 1px solid}.downloadcontainer{margin-bottom:2rem}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none}
+*/:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, .75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, .5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, .175);--bs-border-radius:.375rem;--bs-border-radius-sm:.25rem;--bs-border-radius-lg:.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm:0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width:.25rem;--bs-focus-ring-opacity:.25;--bs-focus-ring-color:rgba(13, 110, 253, .25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, .75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, .5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, .15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:.25rem}.g-1,.gy-1{--bs-gutter-y:.25rem}.g-2,.gx-2{--bs-gutter-x:.5rem}.g-2,.gy-2{--bs-gutter-y:.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-emphasis-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-emphasis-color);--bs-table-striped-bg:rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color:var(--bs-emphasis-color);--bs-table-active-bg:rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color:var(--bs-emphasis-color);--bs-table-hover-bg:rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#a6b5cc;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#b5b6b7;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#a7b9b1;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#a6c3ca;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#ccc2a4;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#c6acae;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#c6c7c8;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#4d5154;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg:var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.25em;vertical-align:top;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;-moz-appearance:none;-webkit-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:not(:-moz-placeholder-shown)~label:after{position:absolute;top:1rem;right:.375rem;bottom:1rem;left:.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control-plaintext~label:after,.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-select~label:after{position:absolute;top:1rem;right:.375rem;bottom:1rem;left:.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>.form-control:disabled~label,.form-floating>:disabled~label{color:#6c757d}.form-floating>.form-control:disabled~label:after,.form-floating>:disabled~label:after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:var(--bs-form-valid-border-color)}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3.75rem + 1.5em)}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:var(--bs-form-valid-border-color)}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:var(--bs-form-valid-color)}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:var(--bs-form-invalid-border-color)}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3.75rem + 1.5em)}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:var(--bs-form-invalid-border-color)}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:.75rem;--bs-btn-padding-y:.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, .15),0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity:.65;--bs-btn-focus-box-shadow:0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:.25rem;--bs-btn-padding-x:.5rem;--bs-btn-font-size:.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:.5rem;--bs-dropdown-spacer:.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:var(--bs-body-color);--bs-dropdown-bg:var(--bs-body-bg);--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:var(--bs-border-radius);--bs-dropdown-border-width:var(--bs-border-width);--bs-dropdown-inner-border-radius:calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:.5rem;--bs-dropdown-box-shadow:var(--bs-box-shadow);--bs-dropdown-link-color:var(--bs-body-color);--bs-dropdown-link-hover-color:var(--bs-body-color);--bs-dropdown-link-hover-bg:var(--bs-tertiary-bg);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:var(--bs-tertiary-color);--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius,0)}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, .15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:calc(var(--bs-border-width) * -1)}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:calc(var(--bs-border-width) * -1)}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:0 0;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.nav-link.disabled,.nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:var(--bs-border-width);--bs-nav-tabs-border-color:var(--bs-border-color);--bs-nav-tabs-border-radius:var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color:var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color:var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg:var(--bs-body-bg);--bs-nav-tabs-link-active-border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:var(--bs-border-radius);--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap:1rem;--bs-nav-underline-border-width:.125rem;--bs-nav-underline-link-active-color:var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:focus,.nav-underline .nav-link:hover{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:.5rem;--bs-navbar-color:rgba(var(--bs-emphasis-color-rgb), .65);--bs-navbar-hover-color:rgba(var(--bs-emphasis-color-rgb), .8);--bs-navbar-disabled-color:rgba(var(--bs-emphasis-color-rgb), .3);--bs-navbar-active-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y:.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x:.5rem;--bs-navbar-toggler-padding-y:.25rem;--bs-navbar-toggler-padding-x:.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), .15);--bs-navbar-toggler-border-radius:var(--bs-border-radius);--bs-navbar-toggler-focus-width:.25rem;--bs-navbar-toggler-transition:box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color:rgba(255, 255, 255, .55);--bs-navbar-hover-color:rgba(255, 255, 255, .75);--bs-navbar-disabled-color:rgba(255, 255, 255, .25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:.5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width:var(--bs-border-width);--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y:.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(var(--bs-body-color-rgb), .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:var(--bs-body-bg);--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:var(--bs-body-color);--bs-accordion-bg:var(--bs-body-bg);--bs-accordion-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,border-radius .15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:var(--bs-border-width);--bs-accordion-border-radius:var(--bs-border-radius);--bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:var(--bs-body-color);--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform .2s ease-in-out;--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052c65' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--bs-accordion-btn-focus-box-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:var(--bs-primary-text-emphasis);--bs-accordion-active-bg:var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type>.accordion-header .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type>.accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush>.accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush>.accordion-item:first-child{border-top:0}.accordion-flush>.accordion-item:last-child{border-bottom:0}.accordion-flush>.accordion-item>.accordion-header .accordion-button,.accordion-flush>.accordion-item>.accordion-header .accordion-button.collapsed{border-radius:0}.accordion-flush>.accordion-item>.accordion-collapse{border-radius:0}[data-bs-theme=dark] .accordion-button:after{--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:.75rem;--bs-pagination-padding-y:.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:var(--bs-body-bg);--bs-pagination-border-width:var(--bs-border-width);--bs-pagination-border-color:var(--bs-border-color);--bs-pagination-border-radius:var(--bs-border-radius);--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:var(--bs-tertiary-bg);--bs-pagination-hover-border-color:var(--bs-border-color);--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:var(--bs-secondary-bg);--bs-pagination-focus-box-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:var(--bs-secondary-color);--bs-pagination-disabled-bg:var(--bs-secondary-bg);--bs-pagination-disabled-border-color:var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(var(--bs-border-width) * -1)}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x:.5rem;--bs-pagination-padding-y:.25rem;--bs-pagination-font-size:.875rem;--bs-pagination-border-radius:var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x:.65em;--bs-badge-padding-y:.35em;--bs-badge-font-size:.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:var(--bs-primary-text-emphasis);--bs-alert-bg:var(--bs-primary-bg-subtle);--bs-alert-border-color:var(--bs-primary-border-subtle);--bs-alert-link-color:var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color:var(--bs-secondary-text-emphasis);--bs-alert-bg:var(--bs-secondary-bg-subtle);--bs-alert-border-color:var(--bs-secondary-border-subtle);--bs-alert-link-color:var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color:var(--bs-success-text-emphasis);--bs-alert-bg:var(--bs-success-bg-subtle);--bs-alert-border-color:var(--bs-success-border-subtle);--bs-alert-link-color:var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color:var(--bs-info-text-emphasis);--bs-alert-bg:var(--bs-info-bg-subtle);--bs-alert-border-color:var(--bs-info-border-subtle);--bs-alert-link-color:var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color:var(--bs-warning-text-emphasis);--bs-alert-bg:var(--bs-warning-bg-subtle);--bs-alert-border-color:var(--bs-warning-border-subtle);--bs-alert-link-color:var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color:var(--bs-light-text-emphasis);--bs-alert-bg:var(--bs-light-bg-subtle);--bs-alert-border-color:var(--bs-light-border-subtle);--bs-alert-link-color:var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color:var(--bs-dark-text-emphasis);--bs-alert-bg:var(--bs-dark-bg-subtle);--bs-alert-border-color:var(--bs-dark-border-subtle);--bs-alert-link-color:var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress,.progress-stacked{--bs-progress-height:1rem;--bs-progress-font-size:.75rem;--bs-progress-bg:var(--bs-secondary-bg);--bs-progress-border-radius:var(--bs-border-radius);--bs-progress-box-shadow:var(--bs-box-shadow-inset);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity:.5;--bs-btn-close-hover-opacity:.75;--bs-btn-close-focus-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:.75rem;--bs-toast-padding-y:.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width:var(--bs-border-width);--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:var(--bs-border-radius);--bs-toast-box-shadow:var(--bs-box-shadow);--bs-toast-header-color:var(--bs-secondary-color);--bs-toast-header-bg:rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color:var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:.5rem;--bs-tooltip-padding-y:.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:.875rem;--bs-tooltip-color:var(--bs-body-bg);--bs-tooltip-bg:var(--bs-emphasis-color);--bs-tooltip-border-radius:var(--bs-border-radius);--bs-tooltip-opacity:.9;--bs-tooltip-arrow-width:.8rem;--bs-tooltip-arrow-height:.4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before,.bs-tooltip-top .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before,.bs-tooltip-end .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before,.bs-tooltip-bottom .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before,.bs-tooltip-start .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:.875rem;--bs-popover-bg:var(--bs-body-bg);--bs-popover-border-width:var(--bs-border-width);--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:var(--bs-border-radius-lg);--bs-popover-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow:var(--bs-box-shadow);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color:inherit;--bs-popover-header-bg:var(--bs-secondary-bg);--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:var(--bs-body-color);--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:after,.popover .popover-arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-top>.popover-arrow:before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after,.bs-popover-top>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-end>.popover-arrow:before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after,.bs-popover-end>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-bottom>.popover-arrow:before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after,.bs-popover-bottom>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-start>.popover-arrow:before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after,.bs-popover-start>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translate(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-.125em;--bs-spinner-border-width:.25em;--bs-spinner-animation-speed:.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-.125em;--bs-spinner-animation-speed:.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color:var(--bs-body-color);--bs-offcanvas-bg:var(--bs-body-bg);--bs-offcanvas-border-width:var(--bs-border-width);--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:var(--bs-box-shadow-sm);--bs-offcanvas-transition:transform .3s ease-in-out;--bs-offcanvas-title-line-height:1.5}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin:calc(-.5 * var(--bs-offcanvas-padding-y)) calc(-.5 * var(--bs-offcanvas-padding-x)) calc(-.5 * var(--bs-offcanvas-padding-y)) auto}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity,1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important}.link-primary:focus,.link-primary:hover{color:RGBA(10,88,202,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important}.link-secondary:focus,.link-secondary:hover{color:RGBA(86,94,100,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important}.link-success:focus,.link-success:hover{color:RGBA(20,108,67,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important}.link-info:focus,.link-info:hover{color:RGBA(61,213,243,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important}.link-warning:focus,.link-warning:hover{color:RGBA(255,205,57,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important}.link-danger:focus,.link-danger:hover{color:RGBA(176,42,55,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important}.link-light:focus,.link-light:hover{color:RGBA(249,250,251,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important}.link-dark:focus,.link-dark:hover{color:RGBA(26,30,33,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-body-emphasis:focus,.link-body-emphasis:hover{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,.75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,.75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,.75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x,0) var(--bs-focus-ring-y,0) var(--bs-focus-ring-blur,0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,.5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,.5));text-underline-offset:.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion:reduce){.icon-link>.bi{transition:none}}.icon-link-hover:focus-visible>.bi,.icon-link-hover:hover>.bi{transform:var(--bs-icon-link-transform,translate3d(.25em,0,0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption){position:absolute!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity:.1}.border-opacity-25{--bs-border-opacity:.25}.border-opacity-50{--bs-border-opacity:.5}.border-opacity-75{--bs-border-opacity:.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity:1;color:#00000080!important}.text-white-50{--bs-text-opacity:1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:.25}.text-opacity-50{--bs-text-opacity:.5}.text-opacity-75{--bs-text-opacity:.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity:.1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity:.25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity:.5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity:.75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:.1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:.25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:.5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:.75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity:.1}.bg-opacity-25{--bs-bg-opacity:.25}.bg-opacity-50{--bs-bg-opacity:.5}.bg-opacity-75{--bs-bg-opacity:.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.regular-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:400}.bold-20pt{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700}.bold-caps-16pt,.toggle-btn,.toggle-btn-survey,.toggle-btn-matrix,.toggle-btn-table{font-family:Open Sans,sans-serif;font-size:16pt;font-weight:700;text-transform:uppercase}.bold-caps-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:700;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700;text-transform:uppercase}.bold-caps-30pt{font-family:Open Sans,sans-serif;font-size:30pt;font-weight:700;text-transform:uppercase}.dark-teal,.geant-header{color:#003f5f}.bold-grey-12pt{font-family:Open Sans,sans-serif;font-size:12pt;font-weight:700;color:#666}#sidebar{overflow-y:scroll;overflow-x:hidden;max-height:40vh;overscroll-behavior:contain}.sidebar-wrapper{display:flex;position:fixed;z-index:2;top:calc(40vh - 10%);pointer-events:none}.sidebar-wrapper .menu-items{padding:10px}.sidebar-wrapper>nav{visibility:visible;opacity:1;transition-property:margin-left,opacity;transition:.25s;margin-left:0;background-color:#fff;box-shadow:0 2px 10px #00000040;border:rgb(247,158,59) 2px solid;pointer-events:auto;width:28rem}.sidebar-wrapper>nav a{padding-top:.3rem;padding-left:1.5rem;text-decoration:none}.sidebar-wrapper>nav a:hover{color:#f79e3b;text-decoration:none}.sidebar-wrapper>nav.survey{border:rgb(0,63,95) 2px solid}.sidebar-wrapper>nav.survey a:hover{color:#53bbb4}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn,.toggle-btn-survey{background-color:#f79e3b;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-survey{background-color:#003f5f}.toggle-btn-wrapper{padding:.7rem .5rem .5rem}.toggle-btn-matrix,.toggle-btn-table{background-color:#fff;color:#fff;height:3.5rem;cursor:pointer;padding-left:1rem;pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.toggle-btn-wrapper-matrix{padding:.7rem .5rem .5rem}.btn-nav-box{--bs-btn-color: rgb(0, 63, 95);--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}.btn-login{--bs-btn-color: #fff;--bs-btn-border-color: #6c757d;--bs-btn-border-radius: none;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(247, 158, 59);--bs-btn-active-border-color: rgb(247, 158, 59);--bs-btn-hover-color: rgb(0, 63, 95);--bs-btn-hover-bg: rgb(247, 158, 59);--bs-btn-hover-border-color: rgb(247, 158, 59);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;border:2px solid rgb(247,158,59)}:root{--muted-alpha: .2;--color-of-the-year-0: #CE3D5B;--color-of-the-year-muted-0: rgba(206, 61, 91, var(--muted-alpha));--color-of-the-year-1: #1B90AC;--color-of-the-year-muted-1: rgba(27, 144, 172, var(--muted-alpha));--color-of-the-year-2: #FF8D5A;--color-of-the-year-muted-2: rgba(255, 141, 90, var(--muted-alpha));--color-of-the-year-3: #8C6896;--color-of-the-year-muted-3: rgba(140, 104, 150, var(--muted-alpha));--color-of-the-year-4: #1E82B6;--color-of-the-year-muted-4: rgba(30, 130, 182, var(--muted-alpha));--color-of-the-year-5: #13AC9C;--color-of-the-year-muted-5: rgba(19, 172, 156, var(--muted-alpha));--color-of-the-year-6: #5454A8;--color-of-the-year-muted-6: rgba(84, 84, 168, var(--muted-alpha));--color-of-the-year-7: #FF1790;--color-of-the-year-muted-7: rgba(255, 23, 144, var(--muted-alpha));--color-of-the-year-8: #0069b0;--color-of-the-year-muted-8: rgba(0, 105, 176, var(--muted-alpha))}.rounded-border{border-radius:25px;border:1px solid rgb(185,190,197)}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1}.grey-container{max-width:100vw;background-color:#eaedf3}.wordwrap{max-width:75rem;word-wrap:break-word}.center{display:flex;align-items:center;justify-content:center;flex-direction:column}.center-text{display:flex;align-items:center;justify-content:center;padding-bottom:2%;flex-direction:column}.compendium-data-header{background-color:#fabe66;color:#fff;padding:10px}.compendium-data-banner{background-color:#fce7c9;color:#003f5f;padding:25px 5px 5px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid rgb(247,158,59);padding:10px;width:80rem;max-width:97%}.collapsible-box-matrix{border:2px solid lightblue}.collapsible-box-table{border:unset;border-bottom:2px solid lightblue}.collapsible-content{display:flex;flex-direction:column;opacity:1;padding:1rem}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.collapsible-column{display:flex;flex-direction:row;padding:1rem}.link-text,.link-text-underline{display:inline-block;text-decoration:none;color:#003753;width:fit-content}.link-text:hover,.link-text-underline:hover{color:#003753}.fake-divider{border:none;border-top:1px solid #939393;margin-top:.5rem}.section-title{color:#939393;margin-top:10px}.link-text-underline:hover{text-decoration:underline}.page-footer{min-height:100px;background-color:#3b536b;color:#fff}.footer-link{color:#fff;text-decoration:none}.footer-link:hover{color:#fff;text-decoration:underline}.filter-dropdown-item{padding-left:1rem;cursor:pointer}.filter-dropdown-item:hover{background-color:var(--bs-dropdown-link-hover-bg)}.nren-checkbox[type=checkbox]{border-radius:0;cursor:pointer}.nren-checkbox:checked{background-color:#3b536b;border-color:#3b536b}.nren-checkbox:focus:not(:focus-visible){box-shadow:none;border-color:#00000040}.nren-checkbox-label{cursor:pointer}.btn-compendium{--bs-btn-color: #fff;--bs-btn-bg: #003753;--bs-btn-border-color: #003753;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #3b536b;--bs-btn-hover-border-color: #3b536b;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #f5f5f5;--bs-btn-active-bg: #3b536b;--bs-btn-active-border-color: #003753;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;--bs-btn-border-radius: none}.btn-compendium-year,.btn-compendium-year-8,.btn-compendium-year-7,.btn-compendium-year-6,.btn-compendium-year-5,.btn-compendium-year-4,.btn-compendium-year-3,.btn-compendium-year-2,.btn-compendium-year-1,.btn-compendium-year-0{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;--bs-btn-border-radius: none}.bg-color-of-the-year-0{background-color:var(--color-of-the-year-0)}.bg-muted-color-of-the-year-0{background-color:var(--color-of-the-year-muted-0)}.color-of-the-year-0{color:var(--color-of-the-year-0)}.color-of-the-year-muted-0{color:var(--color-of-the-year-muted-0)}.btn-compendium-year-0{--bs-btn-active-bg: var(--color-of-the-year-0)}.bg-color-of-the-year-1{background-color:var(--color-of-the-year-1)}.bg-muted-color-of-the-year-1{background-color:var(--color-of-the-year-muted-1)}.color-of-the-year-1{color:var(--color-of-the-year-1)}.color-of-the-year-muted-1{color:var(--color-of-the-year-muted-1)}.btn-compendium-year-1{--bs-btn-active-bg: var(--color-of-the-year-1)}.bg-color-of-the-year-2{background-color:var(--color-of-the-year-2)}.bg-muted-color-of-the-year-2{background-color:var(--color-of-the-year-muted-2)}.color-of-the-year-2{color:var(--color-of-the-year-2)}.color-of-the-year-muted-2{color:var(--color-of-the-year-muted-2)}.btn-compendium-year-2{--bs-btn-active-bg: var(--color-of-the-year-2)}.bg-color-of-the-year-3{background-color:var(--color-of-the-year-3)}.bg-muted-color-of-the-year-3{background-color:var(--color-of-the-year-muted-3)}.color-of-the-year-3{color:var(--color-of-the-year-3)}.color-of-the-year-muted-3{color:var(--color-of-the-year-muted-3)}.btn-compendium-year-3{--bs-btn-active-bg: var(--color-of-the-year-3)}.bg-color-of-the-year-4{background-color:var(--color-of-the-year-4)}.bg-muted-color-of-the-year-4{background-color:var(--color-of-the-year-muted-4)}.color-of-the-year-4{color:var(--color-of-the-year-4)}.color-of-the-year-muted-4{color:var(--color-of-the-year-muted-4)}.btn-compendium-year-4{--bs-btn-active-bg: var(--color-of-the-year-4)}.bg-color-of-the-year-5{background-color:var(--color-of-the-year-5)}.bg-muted-color-of-the-year-5{background-color:var(--color-of-the-year-muted-5)}.color-of-the-year-5{color:var(--color-of-the-year-5)}.color-of-the-year-muted-5{color:var(--color-of-the-year-muted-5)}.btn-compendium-year-5{--bs-btn-active-bg: var(--color-of-the-year-5)}.bg-color-of-the-year-6{background-color:var(--color-of-the-year-6)}.bg-muted-color-of-the-year-6{background-color:var(--color-of-the-year-muted-6)}.color-of-the-year-6{color:var(--color-of-the-year-6)}.color-of-the-year-muted-6{color:var(--color-of-the-year-muted-6)}.btn-compendium-year-6{--bs-btn-active-bg: var(--color-of-the-year-6)}.bg-color-of-the-year-7{background-color:var(--color-of-the-year-7)}.bg-muted-color-of-the-year-7{background-color:var(--color-of-the-year-muted-7)}.color-of-the-year-7{color:var(--color-of-the-year-7)}.color-of-the-year-muted-7{color:var(--color-of-the-year-muted-7)}.btn-compendium-year-7{--bs-btn-active-bg: var(--color-of-the-year-7)}.bg-color-of-the-year-8{background-color:var(--color-of-the-year-8)}.bg-muted-color-of-the-year-8{background-color:var(--color-of-the-year-muted-8)}.color-of-the-year-8{color:var(--color-of-the-year-8)}.color-of-the-year-muted-8{color:var(--color-of-the-year-muted-8)}.btn-compendium-year-8{--bs-btn-active-bg: var(--color-of-the-year-8)}.pill-shadow{box-shadow:0 0 0 .15rem #000c}.bg-color-of-the-year-blank{background-color:#0000}.charging-struct-table{table-layout:fixed}.charging-struct-table>* th,.charging-struct-table>* td{width:auto;word-wrap:break-word}.charging-struct-table thead th{position:sticky;top:-1px;background-color:#fff;z-index:1}.scrollable-table-year:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:1px}.colored-table>* th:not(:first-child)>span:before{content:"";position:absolute;top:0;width:2px;height:4.5rem;background-color:var(--before-color);left:-1px;height:2.5rem}.scrollable-horizontal{display:flex;flex-direction:row;overflow-x:auto}.scrollable-horizontal>*{position:relative}.colored-table{height:calc(100% - 3rem);margin-left:4px;border-collapse:collapse;z-index:1;width:auto}.colored-table table{width:65rem;table-layout:fixed}.colored-table thead th{color:#003f5f;background-color:#fff;padding:12px;font-weight:700;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid white;text-align:center}.colored-table tbody td:first-child{border-left:unset}.matrix-table{table-layout:fixed}.matrix-table th,.matrix-table td{width:8rem}.fixed-column{position:sticky;left:-1px;width:12rem!important;background-color:#fff!important}.matrix-table tbody tr:nth-of-type(2n) td{background-color:#d2ebf3}td,th{text-align:center;vertical-align:middle}.fit-max-content{min-width:max-content}.table-bg-highlighted tr:nth-child(2n){background-color:#66798b2d}.table-bg-highlighted tr:hover{background-color:#66798b85}.table-bg-highlighted li{list-style-type:square;list-style-position:inside}.compendium-table{border-collapse:separate;border-spacing:1.2em 0px}.table .blue-column,.table .nren-column{background-color:#e5f4f9}.table .orange-column,.table .year-column{background-color:#fdf2df}.nren-column{min-width:15%}.year-column{min-width:10%}.dotted-border{position:relative}.dotted-border:after{pointer-events:none;display:block;position:absolute;content:"";left:-20px;right:-10px;top:0;bottom:0;border-top:4px dotted #a7a7a7}.section-container{display:flex;margin-right:2.8em;float:right}.color-of-badge-0{background-color:#9d2872}.color-of-badge-1{background-color:#f1e04f}.color-of-badge-2{background-color:#db2a4c}.color-of-badge-3{background-color:#ed8d18}.color-of-badge-4{background-color:#89a679}.color-of-badge-blank{background-color:#0000}.bottom-tooltip,.bottom-tooltip-small:after,.bottom-tooltip-small{position:relative}.bottom-tooltip:after,.bottom-tooltip-small:after{display:none;position:absolute;padding:10px 15px;transform:translate(-50%,calc(100% + 10px));left:50%;bottom:0;width:20em;z-index:999;content:attr(data-description);white-space:pre-wrap;text-align:center;border-radius:10px;background-color:#d1f0ea}.bottom-tooltip-small:after{width:5em}.bottom-tooltip-small:hover:after,.bottom-tooltip:hover:after{display:block}.bottom-tooltip:before,.bottom-tooltip-small:before{display:none;position:absolute;transform:translate(-50%,calc(100% + 5px)) rotate(45deg);left:50%;bottom:0;z-index:99;width:15px;height:15px;content:" ";background-color:#d1f0ea}.bottom-tooltip:hover:before,.bottom-tooltip-small:hover:before{display:block}.matrix-border,.matrix-border-round{border:15px solid #00A0C6}.matrix-border-round{border-radius:.5rem}.service-table{table-layout:fixed;border-bottom:5px solid #ffb55a}.service-table>:not(caption)>*>*{border-bottom-width:5px}.service-table>* th,.service-table>* td{width:auto;word-wrap:break-word}.color-of-the-service-header-0{background:#d6e8f3;background:linear-gradient(180deg,#d6e8f3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-0{color:#0069b0;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-0{color:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg,#fcdbd5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-1{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-1{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg,#d4f0d9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-2{color:#00883d;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-2{color:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg,#fee8d0,#fff);padding:1.5rem;margin:10px}.color-of-the-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-3{color:#f8831f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-3{color:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg,#d0e5f2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-4{color:#0097be;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-4{color:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg,#d2f0e2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-5{color:#1faa42;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-5{color:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg,#f3cfd3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-6{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-6{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg,#c7ece9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-7{color:#009c8f;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-7{color:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg,#fdcfd1,#fff);padding:1.5rem;margin:10px}.color-of-the-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-8{color:#d80052;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-8{color:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg,#e9e4e3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-9{color:#8f766e;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-9{color:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg,#fdc9e7,#fff);padding:1.5rem;margin:10px}.color-of-the-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-10{color:#ee0c70;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-10{color:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg,#e5e5e5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-11{color:#85878a;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-11{color:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg,#cddcec,#fff);padding:1.5rem;margin:10px}.color-of-the-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-current-service-12{color:#262983;height:2em;width:2em;position:relative;stroke-width:2px}.color-of-the-previous-service-12{color:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:700}.user-management-table{width:100%;table-layout:fixed;max-height:max(50vh,30rem)}@media (max-width: 1920px){.user-management-table{max-width:100vw}}.user-management-table>* th,.user-management-table>* td{word-wrap:break-word}.user-management-table thead th{position:sticky;top:-.1rem;background-color:#fff;z-index:1}.nav-link-entry{border-radius:2px;font-family:Open Sans,sans-serif;font-size:.9rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.nav-link{display:flex;-webkit-box-align:center;align-items:center;height:60px}.nav-link .nav-link-entry:hover{color:#003753;background-color:#b0cde1}.nav-link ul{line-height:1.3;text-transform:uppercase;list-style:none}.nav-link ul li{float:left}.nav-wrapper{display:flex;-webkit-box-align:center;align-items:center;height:60px}.header-nav{width:100%}.header-nav img{float:left;margin-right:15px}.header-nav ul{line-height:1.3;text-transform:uppercase;list-style:none}.header-nav ul li{float:left}.header-nav ul li a{border-radius:2px;float:left;font-family:Open Sans,sans-serif;font-size:.8rem;font-weight:600;text-decoration:none;color:#b0cde1;padding:10px}.header-nav ul li a:hover{color:#003753;background-color:#b0cde1}.external-page-nav-bar{background-color:#003753;color:#b0cde1;height:60px}.app{display:flex;flex-direction:column;min-height:100vh}.preview-banner{background-color:pink;text-align:center;padding:2em}.downloadbutton{width:6rem;height:2.8rem;color:#fff;font-weight:700;border:none}@media screen and (max-width: 1080px){.downloadbutton{width:6.5rem}}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{margin:0;padding:0;width:10rem;display:inline-block}.image-options{background-color:#fff;position:absolute;width:10rem;display:flex;flex-direction:column;border:deepskyblue 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:700}.imageoption>span{margin-left:.25rem}.imageoption:after{content:"";display:block;border-bottom:grey 1px solid}.downloadcontainer{justify-content:end}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none}
diff --git a/compendium_v2/static/index.html b/compendium_v2/static/index.html
index dbe4602f2241caacfe736943ecc618eeaa9c0d39..bdaafa0579be4a59dcdd8da1268d3d8f8a6eb685 100644
--- a/compendium_v2/static/index.html
+++ b/compendium_v2/static/index.html
@@ -1,10 +1,12 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8"/>
-  <script type="module" crossorigin src="/static/report.js"></script>
-  <link rel="modulepreload" crossorigin href="/static/main-BIBsTO5W.js">
-  <link rel="stylesheet" crossorigin href="/static/main.css">
+  <meta name="viewport" content="width=device-width, initial-scale=.5"/>
+  <meta name="description" content="The GÉANT Compendium of National Research and Education Networks in Europe is the result of a broad, collective effort to portray the networks of the research and education community in Europe and beyond. The annual NREN Compendium survey invites the world's NRENs to provide detailed information about their network, equipment and users. The results from this survey are highlighted in these studies."/>
+  <title>The GÉANT Compendium</title>
+  <script type="module" crossorigin src="/static/index.js"></script>
+  <link rel="stylesheet" crossorigin href="/static/index.css">
 </head>
 <body>
   <div id="root"></div>
diff --git a/compendium_v2/static/index.js b/compendium_v2/static/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..41a0de96d29636d6c2ff161efefeaab68041c421
--- /dev/null
+++ b/compendium_v2/static/index.js
@@ -0,0 +1,83 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["Budget-DX8h4kEm.js","index-CjWPDfDC.js","useData-CxftshCa.js","SideBar-CkoMfgfL.js","xlsx-BHRztzV8.js","index-ZGgT6a2u.js","hook-BbhLqP_c.js","charthelpers-B0zLHD4s.js","ChargingStructure-BiXVfonj.js","PillTable-Cnj0nnFy.js","ColorPill-CXvWIfWz.js","Table-ClWM2_rS.js","ECProjects-Ixano_sS.js","NrenYearTable-tQrmAmRo.js","FundingSource-DoZCzgMa.js","chartjs-plugin-datalabels.esm-CjG-nxnq.js","ParentOrganisation-OrE_JaGF.js","StaffGraph-D3mBN476.js","HTMLLegendPlugin-C-L3dIU1.js","StaffGraphAbsolute-I7Y3C-nj.js","SubOrganisation-C7B4_RD0.js","Audits-DfjcC9VL.js","BusinessContinuity-CswNIFcO.js","CentralProcurement-_z44vsb4.js","CorporateStrategy-BrErbevP.js","CrisisExercises-mu7CJTN3.js","CrisisManagement-BxTFYm8e.js","EOSCListings-DWYL3kBM.js","Policy-C19_KfRY.js","SecurityControls-CkjbRt2j.js","ServiceLevelTargets-BQyQ1ynP.js","ServiceManagementFramework-DDW7v-XJ.js","ServicesOffered-BnmNlrgs.js","ScrollableMatrix-Dxr22l4i.js","ConnectedInstitutionsURLs-BSBw8xZy.js","ConnectedUser-DXYx3bSL.js","RemoteCampuses-Bu_1Ucwy.js","AlienWave-DO1S2459.js","AlienWaveInternal-BhuqQCyf.js","Automation-DzfRRQiO.js","CapacityCoreIP-P2rbPvQY.js","CapacityLargestLink-CGhxu47M.js","CertificateProvider-CpWnMPbq.js","DarkFibreLease-Nz1_rVx9.js","DarkFibreInstalled-Uox2eGX8.js","ExternalConnections-BVnV4NEl.js","FibreLight-UtHnGi0p.js","IRUDuration-CI7E3kyS.js","MonitoringTools-C61NJKaR.js","NetworkFunctionVirtualisation-DLW-vjXN.js","NetworkMapUrls-B3Qc49It.js","NonRAndEPeer-Cg_pAdU8.js","OPsAutomation-BoFZP12U.js","PassiveMonitoring-Cv8zkVr2.js","PertTeam-Cf_GEMUq.js","SiemVendors-pjqFJlX2.js","TrafficRatio-BELkAOlA.js","TrafficUrl-BLm4mZku.js","TrafficVolume-1MvPPErr.js","WeatherMap-CZPcsrK6.js","Services-kzZ5IOvA.js","Landing-B1Sq71Lu.js","survey-3meXCY6T.js","SurveySidebar-CG0gwQ6b.js","SurveyContainerComponent-DxT_-mC9.js","index-BGZcCZJE.js","survey.core-D1mOb2z9.js","validation-COFmylEH.js","DZ9kPoxi.css","SurveyManagementComponent-DygIuffI.js","lodash-0qAddrJ1.js","UserManagementComponent-DK-BhUBG.js"])))=>i.map(i=>d[i]);
+var Kg=Object.defineProperty;var $g=(l,n,c)=>n in l?Kg(l,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):l[n]=c;var wm=(l,n,c)=>$g(l,typeof n!="symbol"?n+"":n,c);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function c(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=c(u);fetch(u.href,f)}})();var U2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var to={exports:{}},er={};/**
+ * @license React
+ * react-jsx-runtime.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Am;function Fg(){if(Am)return er;Am=1;var l=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function c(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:l,type:s,key:d,ref:u!==void 0?u:null,props:f}}return er.Fragment=n,er.jsx=c,er.jsxs=c,er}var Mm;function Jg(){return Mm||(Mm=1,to.exports=Fg()),to.exports}var h=Jg(),no={exports:{}},je={};/**
+ * @license React
+ * react.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var zm;function Pg(){if(zm)return je;zm=1;var l=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),R=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=R&&T[R]||T["@@iterator"],typeof T=="function"?T:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,H={};function U(T,Q,le){this.props=T,this.context=Q,this.refs=H,this.updater=le||_}U.prototype.isReactComponent={},U.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,Q,"setState")},U.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=U.prototype;function q(T,Q,le){this.props=T,this.context=Q,this.refs=H,this.updater=le||_}var Y=q.prototype=new M;Y.constructor=q,O(Y,U.prototype),Y.isPureReactComponent=!0;var J=Array.isArray,k={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function W(T,Q,le,te,P,ge){return le=ge.ref,{$$typeof:l,type:T,key:Q,ref:le!==void 0?le:null,props:ge}}function ie(T,Q){return W(T.type,Q,void 0,void 0,void 0,T.props)}function X(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function I(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(le){return Q[le]})}var de=/\/+/g;function Ne(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?I(""+T.key):Q.toString(36)}function Ye(){}function Be(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Ye,Ye):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function ze(T,Q,le,te,P){var ge=typeof T;(ge==="undefined"||ge==="boolean")&&(T=null);var ye=!1;if(T===null)ye=!0;else switch(ge){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(T.$$typeof){case l:case n:ye=!0;break;case b:return ye=T._init,ze(ye(T._payload),Q,le,te,P)}}if(ye)return P=P(T),ye=te===""?"."+Ne(T,0):te,J(P)?(le="",ye!=null&&(le=ye.replace(de,"$&/")+"/"),ze(P,Q,le,"",function(Le){return Le})):P!=null&&(X(P)&&(P=ie(P,le+(P.key==null||T&&T.key===P.key?"":(""+P.key).replace(de,"$&/")+"/")+ye)),Q.push(P)),1;ye=0;var Je=te===""?".":te+":";if(J(T))for(var Ce=0;Ce<T.length;Ce++)te=T[Ce],ge=Je+Ne(te,Ce),ye+=ze(te,Q,le,ge,P);else if(Ce=S(T),typeof Ce=="function")for(T=Ce.call(T),Ce=0;!(te=T.next()).done;)te=te.value,ge=Je+Ne(te,Ce++),ye+=ze(te,Q,le,ge,P);else if(ge==="object"){if(typeof T.then=="function")return ze(Be(T),Q,le,te,P);throw Q=String(T),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ye}function K(T,Q,le){if(T==null)return T;var te=[],P=0;return ze(T,te,"","",function(ge){return Q.call(le,ge,P++)}),te}function ce(T){if(T._status===-1){var Q=T._result;Q=Q(),Q.then(function(le){(T._status===0||T._status===-1)&&(T._status=1,T._result=le)},function(le){(T._status===0||T._status===-1)&&(T._status=2,T._result=le)}),T._status===-1&&(T._status=0,T._result=Q)}if(T._status===1)return T._result.default;throw T._result}var ne=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function Re(){}return je.Children={map:K,forEach:function(T,Q,le){K(T,function(){Q.apply(this,arguments)},le)},count:function(T){var Q=0;return K(T,function(){Q++}),Q},toArray:function(T){return K(T,function(Q){return Q})||[]},only:function(T){if(!X(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},je.Component=U,je.Fragment=c,je.Profiler=u,je.PureComponent=q,je.StrictMode=s,je.Suspense=v,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,je.act=function(){throw Error("act(...) is not supported in production builds of React.")},je.cache=function(T){return function(){return T.apply(null,arguments)}},je.cloneElement=function(T,Q,le){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var te=O({},T.props),P=T.key,ge=void 0;if(Q!=null)for(ye in Q.ref!==void 0&&(ge=void 0),Q.key!==void 0&&(P=""+Q.key),Q)!N.call(Q,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&Q.ref===void 0||(te[ye]=Q[ye]);var ye=arguments.length-2;if(ye===1)te.children=le;else if(1<ye){for(var Je=Array(ye),Ce=0;Ce<ye;Ce++)Je[Ce]=arguments[Ce+2];te.children=Je}return W(T.type,P,void 0,void 0,ge,te)},je.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},je.createElement=function(T,Q,le){var te,P={},ge=null;if(Q!=null)for(te in Q.key!==void 0&&(ge=""+Q.key),Q)N.call(Q,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(P[te]=Q[te]);var ye=arguments.length-2;if(ye===1)P.children=le;else if(1<ye){for(var Je=Array(ye),Ce=0;Ce<ye;Ce++)Je[Ce]=arguments[Ce+2];P.children=Je}if(T&&T.defaultProps)for(te in ye=T.defaultProps,ye)P[te]===void 0&&(P[te]=ye[te]);return W(T,ge,void 0,void 0,null,P)},je.createRef=function(){return{current:null}},je.forwardRef=function(T){return{$$typeof:y,render:T}},je.isValidElement=X,je.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:ce}},je.memo=function(T,Q){return{$$typeof:p,type:T,compare:Q===void 0?null:Q}},je.startTransition=function(T){var Q=k.T,le={};k.T=le;try{var te=T(),P=k.S;P!==null&&P(le,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(Re,ne)}catch(ge){ne(ge)}finally{k.T=Q}},je.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},je.use=function(T){return k.H.use(T)},je.useActionState=function(T,Q,le){return k.H.useActionState(T,Q,le)},je.useCallback=function(T,Q){return k.H.useCallback(T,Q)},je.useContext=function(T){return k.H.useContext(T)},je.useDebugValue=function(){},je.useDeferredValue=function(T,Q){return k.H.useDeferredValue(T,Q)},je.useEffect=function(T,Q){return k.H.useEffect(T,Q)},je.useId=function(){return k.H.useId()},je.useImperativeHandle=function(T,Q,le){return k.H.useImperativeHandle(T,Q,le)},je.useInsertionEffect=function(T,Q){return k.H.useInsertionEffect(T,Q)},je.useLayoutEffect=function(T,Q){return k.H.useLayoutEffect(T,Q)},je.useMemo=function(T,Q){return k.H.useMemo(T,Q)},je.useOptimistic=function(T,Q){return k.H.useOptimistic(T,Q)},je.useReducer=function(T,Q,le){return k.H.useReducer(T,Q,le)},je.useRef=function(T){return k.H.useRef(T)},je.useState=function(T){return k.H.useState(T)},je.useSyncExternalStore=function(T,Q,le){return k.H.useSyncExternalStore(T,Q,le)},je.useTransition=function(){return k.H.useTransition()},je.version="19.0.0",je}var Lm;function ku(){return Lm||(Lm=1,no.exports=Pg()),no.exports}var g=ku();const Yt=fr(g);var ao={exports:{}},tr={},lo={exports:{}},io={};/**
+ * @license React
+ * scheduler.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Um;function Wg(){return Um||(Um=1,function(l){function n(K,ce){var ne=K.length;K.push(ce);e:for(;0<ne;){var Re=ne-1>>>1,T=K[Re];if(0<u(T,ce))K[Re]=ce,K[ne]=T,ne=Re;else break e}}function c(K){return K.length===0?null:K[0]}function s(K){if(K.length===0)return null;var ce=K[0],ne=K.pop();if(ne!==ce){K[0]=ne;e:for(var Re=0,T=K.length,Q=T>>>1;Re<Q;){var le=2*(Re+1)-1,te=K[le],P=le+1,ge=K[P];if(0>u(te,ne))P<T&&0>u(ge,te)?(K[Re]=ge,K[P]=ne,Re=P):(K[Re]=te,K[le]=ne,Re=le);else if(P<T&&0>u(ge,ne))K[Re]=ge,K[P]=ne,Re=P;else break e}}return ce}function u(K,ce){var ne=K.sortIndex-ce.sortIndex;return ne!==0?ne:K.id-ce.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,y=d.now();l.unstable_now=function(){return d.now()-y}}var v=[],p=[],b=1,R=null,S=3,_=!1,O=!1,H=!1,U=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Y(K){for(var ce=c(p);ce!==null;){if(ce.callback===null)s(p);else if(ce.startTime<=K)s(p),ce.sortIndex=ce.expirationTime,n(v,ce);else break;ce=c(p)}}function J(K){if(H=!1,Y(K),!O)if(c(v)!==null)O=!0,Be();else{var ce=c(p);ce!==null&&ze(J,ce.startTime-K)}}var k=!1,N=-1,W=5,ie=-1;function X(){return!(l.unstable_now()-ie<W)}function I(){if(k){var K=l.unstable_now();ie=K;var ce=!0;try{e:{O=!1,H&&(H=!1,M(N),N=-1),_=!0;var ne=S;try{t:{for(Y(K),R=c(v);R!==null&&!(R.expirationTime>K&&X());){var Re=R.callback;if(typeof Re=="function"){R.callback=null,S=R.priorityLevel;var T=Re(R.expirationTime<=K);if(K=l.unstable_now(),typeof T=="function"){R.callback=T,Y(K),ce=!0;break t}R===c(v)&&s(v),Y(K)}else s(v);R=c(v)}if(R!==null)ce=!0;else{var Q=c(p);Q!==null&&ze(J,Q.startTime-K),ce=!1}}break e}finally{R=null,S=ne,_=!1}ce=void 0}}finally{ce?de():k=!1}}}var de;if(typeof q=="function")de=function(){q(I)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Ye=Ne.port2;Ne.port1.onmessage=I,de=function(){Ye.postMessage(null)}}else de=function(){U(I,0)};function Be(){k||(k=!0,de())}function ze(K,ce){N=U(function(){K(l.unstable_now())},ce)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(K){K.callback=null},l.unstable_continueExecution=function(){O||_||(O=!0,Be())},l.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<K?Math.floor(1e3/K):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_getFirstCallbackNode=function(){return c(v)},l.unstable_next=function(K){switch(S){case 1:case 2:case 3:var ce=3;break;default:ce=S}var ne=S;S=ce;try{return K()}finally{S=ne}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(K,ce){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ne=S;S=K;try{return ce()}finally{S=ne}},l.unstable_scheduleCallback=function(K,ce,ne){var Re=l.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Re+ne:Re):ne=Re,K){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=ne+T,K={id:b++,callback:ce,priorityLevel:K,startTime:ne,expirationTime:T,sortIndex:-1},ne>Re?(K.sortIndex=ne,n(p,K),c(v)===null&&K===c(p)&&(H?(M(N),N=-1):H=!0,ze(J,ne-Re))):(K.sortIndex=T,n(v,K),O||_||(O=!0,Be())),K},l.unstable_shouldYield=X,l.unstable_wrapCallback=function(K){var ce=S;return function(){var ne=S;S=ce;try{return K.apply(this,arguments)}finally{S=ne}}}}(io)),io}var Hm;function Ig(){return Hm||(Hm=1,lo.exports=Wg()),lo.exports}var ro={exports:{}},Vt={};/**
+ * @license React
+ * react-dom.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Bm;function e1(){if(Bm)return Vt;Bm=1;var l=ku();function n(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(n(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,p,b){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:R==null?null:""+R,children:v,containerInfo:p,implementation:b}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vt.createPortal=function(v,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return f(v,p,null,b)},Vt.flushSync=function(v){var p=d.T,b=s.p;try{if(d.T=null,s.p=2,v)return v()}finally{d.T=p,s.p=b,s.d.f()}},Vt.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(v,p))},Vt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},Vt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,R=y(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:R,integrity:S,fetchPriority:_}):b==="script"&&s.d.X(v,{crossOrigin:R,integrity:S,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Vt.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=y(p.as,p.crossOrigin);s.d.M(v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(v)},Vt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,R=y(b,p.crossOrigin);s.d.L(v,b,{crossOrigin:R,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Vt.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=y(p.as,p.crossOrigin);s.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(v)},Vt.requestFormReset=function(v){s.d.r(v)},Vt.unstable_batchedUpdates=function(v,p){return v(p)},Vt.useFormState=function(v,p,b){return d.H.useFormState(v,p,b)},Vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Vt.version="19.0.0",Vt}var qm;function wy(){if(qm)return ro.exports;qm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),ro.exports=e1(),ro.exports}/**
+ * @license React
+ * react-dom-client.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Vm;function t1(){if(Vm)return tr;Vm=1;var l=Ig(),n=ku(),c=wy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var f=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),J=Symbol.for("react.memo_cache_sentinel"),k=Symbol.iterator;function N(e){return e===null||typeof e!="object"?null:(e=k&&e[k]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case y:return"Portal";case b:return"Profiler";case p:return"StrictMode";case H:return"Suspense";case U:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:return(e.displayName||"Context")+".Provider";case S:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var X=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.assign,de,Ne;function Ye(e){if(de===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||"",Ne=-1<a.stack.indexOf(`
+    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
+`+de+e+Ne}var Be=!1;function ze(e,t){if(!e||Be)return"";Be=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(V){var L=V}Reflect.construct(e,[],$)}else{try{$.call()}catch(V){L=V}e.call($.prototype)}}else{try{throw Error()}catch(V){L=V}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(V){if(V&&L&&typeof V.stack=="string")return[V.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),m=o[0],E=o[1];if(m&&E){var x=m.split(`
+`),D=E.split(`
+`);for(r=i=0;i<x.length&&!x[i].includes("DetermineComponentFrameRoot");)i++;for(;r<D.length&&!D[r].includes("DetermineComponentFrameRoot");)r++;if(i===x.length||r===D.length)for(i=x.length-1,r=D.length-1;1<=i&&0<=r&&x[i]!==D[r];)r--;for(;1<=i&&0<=r;i--,r--)if(x[i]!==D[r]){if(i!==1||r!==1)do if(i--,r--,0>r||x[i]!==D[r]){var G=`
+`+x[i].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=i&&0<=r);break}}}finally{Be=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ye(a):""}function K(e){switch(e.tag){case 26:case 27:case 5:return Ye(e.type);case 16:return Ye("Lazy");case 13:return Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return e=ze(e.type,!1),e;case 11:return e=ze(e.type.render,!1),e;case 1:return e=ze(e.type,!0),e;default:return""}}function ce(e){try{var t="";do t+=K(e),e=e.return;while(e);return t}catch(a){return`
+Error generating stack: `+a.message+`
+`+a.stack}}function ne(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Re(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(ne(e)!==e)throw Error(s(188))}function Q(e){var t=e.alternate;if(!t){if(t=ne(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var r=a.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){a=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===a)return T(r),e;if(o===i)return T(r),t;o=o.sibling}throw Error(s(188))}if(a.return!==i.return)a=r,i=o;else{for(var m=!1,E=r.child;E;){if(E===a){m=!0,a=r,i=o;break}if(E===i){m=!0,i=r,a=o;break}E=E.sibling}if(!m){for(E=o.child;E;){if(E===a){m=!0,a=o,i=r;break}if(E===i){m=!0,i=o,a=r;break}E=E.sibling}if(!m)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function le(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=le(e),t!==null)return t;e=e.sibling}return null}var te=Array.isArray,P=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},ye=[],Je=-1;function Ce(e){return{current:e}}function Le(e){0>Je||(e.current=ye[Je],ye[Je]=null,Je--)}function Ee(e,t){Je++,ye[Je]=e.current,e.current=t}var Ze=Ce(null),vt=Ce(null),it=Ce(null),lt=Ce(null);function De(e,t){switch(Ee(it,t),Ee(vt,e),Ee(Ze,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?rm(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=rm(e),t=um(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Le(Ze),Ee(Ze,t)}function Rt(){Le(Ze),Le(vt),Le(it)}function St(e){e.memoizedState!==null&&Ee(lt,e);var t=Ze.current,a=um(t,e.type);t!==a&&(Ee(vt,e),Ee(Ze,a))}function Pt(e){vt.current===e&&(Le(Ze),Le(vt)),lt.current===e&&(Le(lt),Fi._currentValue=ge)}var Zt=Object.prototype.hasOwnProperty,un=l.unstable_scheduleCallback,cn=l.unstable_cancelCallback,Ut=l.unstable_shouldYield,Ht=l.unstable_requestPaint,mt=l.unstable_now,Kt=l.unstable_getCurrentPriorityLevel,_e=l.unstable_ImmediatePriority,Ie=l.unstable_UserBlockingPriority,Gt=l.unstable_NormalPriority,ui=l.unstable_LowPriority,pr=l.unstable_IdlePriority,Mn=l.log,vr=l.unstable_setDisableYieldValue,ma=null,Bt=null;function Ju(e){if(Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(ma,e,void 0,(e.current.flags&128)===128)}catch{}}function Nn(e){if(typeof Mn=="function"&&vr(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(ma,e)}catch{}}var Tt=Math.clz32?Math.clz32:Pu,gr=Math.log,ci=Math.LN2;function Pu(e){return e>>>=0,e===0?32:31-(gr(e)/ci|0)|0}var ka=128,bl=4194304;function zn(e){var t=e&42;if(t!==0)return t;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:return 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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qn(e,t){var a=e.pendingLanes;if(a===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,m=e.warmLanes;e=e.finishedLanes!==0;var E=a&134217727;return E!==0?(a=E&~r,a!==0?i=zn(a):(o&=E,o!==0?i=zn(o):e||(m=E&~m,m!==0&&(i=zn(m))))):(E=a&~r,E!==0?i=zn(E):o!==0?i=zn(o):e||(m=a&~m,m!==0&&(i=zn(m)))),i===0?0:t!==0&&t!==i&&!(t&r)&&(r=i&-i,m=t&-t,r>=m||r===32&&(m&4194176)!==0)?t:i}function Ln(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Wu(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Er(){var e=ka;return ka<<=1,!(ka&4194176)&&(ka=128),e}function C(){var e=bl;return bl<<=1,!(bl&62914560)&&(bl=4194304),e}function A(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function B(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function F(e,t,a,i,r,o){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,x=e.expirationTimes,D=e.hiddenUpdates;for(a=m&~a;0<a;){var G=31-Tt(a),$=1<<G;E[G]=0,x[G]=-1;var L=D[G];if(L!==null)for(D[G]=null,G=0;G<L.length;G++){var V=L[G];V!==null&&(V.lane&=-536870913)}a&=~$}i!==0&&ae(e,i,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function ae(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Tt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&4194218}function me(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Tt(a),r=1<<i;r&t|e[i]&t&&(e[i]|=t),a&=~r}}function xe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function re(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Tm(e.type))}function oe(e,t){var a=P.p;try{return P.p=e,t()}finally{P.p=a}}var ee=Math.random().toString(36).slice(2),fe="__reactFiber$"+ee,ve="__reactProps$"+ee,Xe="__reactContainer$"+ee,yt="__reactEvents$"+ee,at="__reactListeners$"+ee,Pe="__reactHandles$"+ee,ot="__reactResources$"+ee,sn="__reactMarker$"+ee;function Zn(e){delete e[fe],delete e[ve],delete e[yt],delete e[at],delete e[Pe]}function Dt(e){var t=e[fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xe]||a[fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=om(e);e!==null;){if(a=e[fe])return a;e=om(e)}return t}e=a,a=e.parentNode}return null}function wt(e){if(e=e[fe]||e[Xe]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Kn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function on(e){var t=e[ot];return t||(t=e[ot]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[sn]=!0}var Xa=new Set,Qa={};function qe(e,t){rt(e,t),rt(e+"Capture",t)}function rt(e,t){for(Qa[e]=t,e=0;e<t.length;e++)Xa.add(t[e])}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Za=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ut={},$n={};function br(e){return Zt.call($n,e)?!0:Zt.call(ut,e)?!1:Za.test(e)?$n[e]=!0:(ut[e]=!0,!1)}function Sl(e,t,a){if(br(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Sr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Fn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gp(e){var t=sf(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(m){i=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){e._valueTracker||(e._valueTracker=Gp(e))}function of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=sf(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function _r(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var kp=/[\n"\\]/g;function dn(e){return e.replace(kp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Iu(e,t,a,i,r,o,m,E){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+fn(t)):e.value!==""+fn(t)&&(e.value=""+fn(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?ec(e,m,fn(t)):a!=null?ec(e,m,fn(a)):i!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+fn(E):e.removeAttribute("name")}function ff(e,t,a,i,r,o,m,E){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;a=a!=null?""+fn(a):"",t=t!=null?""+fn(t):a,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m)}function ec(e,t,a){t==="number"&&_r(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xl(e,t,a,i){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&i&&(e[a].defaultSelected=!0)}else{for(a=""+fn(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function df(e,t,a){if(t!=null&&(t=""+fn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+fn(a):""}function hf(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(te(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=fn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i)}function _l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Xp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mf(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Xp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function yf(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&a[r]!==i&&mf(e,r,i)}else for(var o in t)t.hasOwnProperty(o)&&mf(e,o,t[o])}function tc(e){if(e.indexOf("-")===-1)return!1;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 Qp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Zp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rr(e){return Zp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var nc=null;function ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rl=null,Tl=null;function pf(e){var t=wt(e);if(t&&(e=t.stateNode)){var a=e[ve]||null;e:switch(e=t.stateNode,t.type){case"input":if(Iu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+dn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var r=i[ve]||null;if(!r)throw Error(s(90));Iu(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&of(i)}break e;case"textarea":df(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&xl(e,!!a.multiple,t,!1)}}}var lc=!1;function vf(e,t,a){if(lc)return e(t,a);lc=!0;try{var i=e(t);return i}finally{if(lc=!1,(Rl!==null||Tl!==null)&&(uu(),Rl&&(t=Rl,e=Tl,Tl=Rl=null,pf(t),e)))for(t=0;t<e.length;t++)pf(e[t])}}function si(e,t){var a=e.stateNode;if(a===null)return null;var i=a[ve]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ic=!1;if($t)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){ic=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{ic=!1}var ya=null,rc=null,Tr=null;function gf(){if(Tr)return Tr;var e,t=rc,a=t.length,i,r="value"in ya?ya.value:ya.textContent,o=r.length;for(e=0;e<a&&t[e]===r[e];e++);var m=a-e;for(i=1;i<=m&&t[a-i]===r[o-i];i++);return Tr=r.slice(e,1<i?1-i:void 0)}function Nr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Cr(){return!0}function Ef(){return!1}function Ft(e){function t(a,i,r,o,m){this._reactName=a,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(o):o[E]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cr:Ef,this.isPropagationStopped=Ef,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Cr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Cr)},persist:function(){},isPersistent:Cr}),t}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jr=Ft(Ka),fi=I({},Ka,{view:0,detail:0}),Kp=Ft(fi),uc,cc,di,Or=I({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==di&&(di&&e.type==="mousemove"?(uc=e.screenX-di.screenX,cc=e.screenY-di.screenY):cc=uc=0,di=e),uc)},movementY:function(e){return"movementY"in e?e.movementY:cc}}),bf=Ft(Or),$p=I({},Or,{dataTransfer:0}),Fp=Ft($p),Jp=I({},fi,{relatedTarget:0}),sc=Ft(Jp),Pp=I({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),Wp=Ft(Pp),Ip=I({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ev=Ft(Ip),tv=I({},Ka,{data:0}),Sf=Ft(tv),nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},av={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},lv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lv[e])?!!t[e]:!1}function oc(){return iv}var rv=I({},fi,{key:function(e){if(e.key){var t=nv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?av[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oc,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uv=Ft(rv),cv=I({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xf=Ft(cv),sv=I({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),ov=Ft(sv),fv=I({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),dv=Ft(fv),hv=I({},Or,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),mv=Ft(hv),yv=I({},Ka,{newState:0,oldState:0}),pv=Ft(yv),vv=[9,13,27,32],fc=$t&&"CompositionEvent"in window,hi=null;$t&&"documentMode"in document&&(hi=document.documentMode);var gv=$t&&"TextEvent"in window&&!hi,_f=$t&&(!fc||hi&&8<hi&&11>=hi),Rf=" ",Tf=!1;function Nf(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function Ev(e,t){switch(e){case"compositionend":return Cf(t);case"keypress":return t.which!==32?null:(Tf=!0,Rf);case"textInput":return e=t.data,e===Rf&&Tf?null:e;default:return null}}function bv(e,t){if(Nl)return e==="compositionend"||!fc&&Nf(e,t)?(e=gf(),Tr=rc=ya=null,Nl=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _f&&t.locale!=="ko"?null:t.data;default:return null}}var Sv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sv[e.type]:t==="textarea"}function Of(e,t,a,i){Rl?Tl?Tl.push(i):Tl=[i]:Rl=i,t=du(t,"onChange"),0<t.length&&(a=new jr("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var mi=null,yi=null;function xv(e){tm(e,0)}function Dr(e){var t=Kn(e);if(of(t))return e}function Df(e,t){if(e==="change")return t}var wf=!1;if($t){var dc;if($t){var hc="oninput"in document;if(!hc){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),hc=typeof Af.oninput=="function"}dc=hc}else dc=!1;wf=dc&&(!document.documentMode||9<document.documentMode)}function Mf(){mi&&(mi.detachEvent("onpropertychange",zf),yi=mi=null)}function zf(e){if(e.propertyName==="value"&&Dr(yi)){var t=[];Of(t,yi,e,ac(e)),vf(xv,t)}}function _v(e,t,a){e==="focusin"?(Mf(),mi=t,yi=a,mi.attachEvent("onpropertychange",zf)):e==="focusout"&&Mf()}function Rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dr(yi)}function Tv(e,t){if(e==="click")return Dr(t)}function Nv(e,t){if(e==="input"||e==="change")return Dr(t)}function Cv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wt=typeof Object.is=="function"?Object.is:Cv;function pi(e,t){if(Wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var r=a[i];if(!Zt.call(t,r)||!Wt(e[r],t[r]))return!1}return!0}function Lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uf(e,t){var a=Lf(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Lf(a)}}function Hf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_r(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=_r(e.document)}return t}function mc(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 jv(e,t){var a=Bf(t);t=e.focusedElem;var i=e.selectionRange;if(a!==t&&t&&t.ownerDocument&&Hf(t.ownerDocument.documentElement,t)){if(i!==null&&mc(t)){if(e=i.start,a=i.end,a===void 0&&(a=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(a,t.value.length);else if(a=(e=t.ownerDocument||document)&&e.defaultView||window,a.getSelection){a=a.getSelection();var r=t.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!a.extend&&o>i&&(r=i,i=o,o=r),r=Uf(t,o);var m=Uf(t,i);r&&m&&(a.rangeCount!==1||a.anchorNode!==r.node||a.anchorOffset!==r.offset||a.focusNode!==m.node||a.focusOffset!==m.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),a.removeAllRanges(),o>i?(a.addRange(e),a.extend(m.node,m.offset)):(e.setEnd(m.node,m.offset),a.addRange(e)))}}for(e=[],a=t;a=a.parentNode;)a.nodeType===1&&e.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)a=e[t],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var Ov=$t&&"documentMode"in document&&11>=document.documentMode,Cl=null,yc=null,vi=null,pc=!1;function qf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;pc||Cl==null||Cl!==_r(i)||(i=Cl,"selectionStart"in i&&mc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),vi&&pi(vi,i)||(vi=i,i=du(yc,"onSelect"),0<i.length&&(t=new jr("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=Cl)))}function $a(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var jl={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},vc={},Vf={};$t&&(Vf=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function Fa(e){if(vc[e])return vc[e];if(!jl[e])return e;var t=jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Vf)return vc[e]=t[a];return e}var Yf=Fa("animationend"),Gf=Fa("animationiteration"),kf=Fa("animationstart"),Dv=Fa("transitionrun"),wv=Fa("transitionstart"),Av=Fa("transitioncancel"),Xf=Fa("transitionend"),Qf=new Map,Zf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Cn(e,t){Qf.set(e,t),qe(t,[e])}var hn=[],Ol=0,gc=0;function wr(){for(var e=Ol,t=gc=Ol=0;t<e;){var a=hn[t];hn[t++]=null;var i=hn[t];hn[t++]=null;var r=hn[t];hn[t++]=null;var o=hn[t];if(hn[t++]=null,i!==null&&r!==null){var m=i.pending;m===null?r.next=r:(r.next=m.next,m.next=r),i.pending=r}o!==0&&Kf(a,r,o)}}function Ar(e,t,a,i){hn[Ol++]=e,hn[Ol++]=t,hn[Ol++]=a,hn[Ol++]=i,gc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ec(e,t,a,i){return Ar(e,t,a,i),Mr(e)}function pa(e,t){return Ar(e,null,null,t),Mr(e)}function Kf(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var r=!1,o=e.return;o!==null;)o.childLanes|=a,i=o.alternate,i!==null&&(i.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;r&&t!==null&&e.tag===3&&(o=e.stateNode,r=31-Tt(a),o=o.hiddenUpdates,e=o[r],e===null?o[r]=[t]:e.push(t),t.lane=a|536870912)}function Mr(e){if(50<Gi)throw Gi=0,Ts=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dl={},$f=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var a=$f.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ce(t)},$f.set(e,t),t)}return{value:e,source:t,stack:ce(t)}}var wl=[],Al=0,zr=null,Lr=0,yn=[],pn=0,Ja=null,Jn=1,Pn="";function Pa(e,t){wl[Al++]=Lr,wl[Al++]=zr,zr=e,Lr=t}function Ff(e,t,a){yn[pn++]=Jn,yn[pn++]=Pn,yn[pn++]=Ja,Ja=e;var i=Jn;e=Pn;var r=32-Tt(i)-1;i&=~(1<<r),a+=1;var o=32-Tt(t)+r;if(30<o){var m=r-r%5;o=(i&(1<<m)-1).toString(32),i>>=m,r-=m,Jn=1<<32-Tt(t)+r|a<<r|i,Pn=o+e}else Jn=1<<o|a<<r|i,Pn=e}function bc(e){e.return!==null&&(Pa(e,1),Ff(e,1,0))}function Sc(e){for(;e===zr;)zr=wl[--Al],wl[Al]=null,Lr=wl[--Al],wl[Al]=null;for(;e===Ja;)Ja=yn[--pn],yn[pn]=null,Pn=yn[--pn],yn[pn]=null,Jn=yn[--pn],yn[pn]=null}var kt=null,At=null,Ge=!1,jn=null,Un=!1,xc=Error(s(519));function Wa(e){var t=Error(s(418,""));throw bi(mn(t,e)),xc}function Jf(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[fe]=e,t[ve]=i,a){case"dialog":Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":case"embed":Ue("load",t);break;case"video":case"audio":for(a=0;a<Xi.length;a++)Ue(Xi[a],t);break;case"source":Ue("error",t);break;case"img":case"image":case"link":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"input":Ue("invalid",t),ff(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),xr(t);break;case"select":Ue("invalid",t);break;case"textarea":Ue("invalid",t),hf(t,i.value,i.defaultValue,i.children),xr(t)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||im(t.textContent,a)?(i.popover!=null&&(Ue("beforetoggle",t),Ue("toggle",t)),i.onScroll!=null&&Ue("scroll",t),i.onScrollEnd!=null&&Ue("scrollend",t),i.onClick!=null&&(t.onclick=hu),t=!0):t=!1,t||Wa(e)}function Pf(e){for(kt=e.return;kt;)switch(kt.tag){case 3:case 27:Un=!0;return;case 5:case 13:Un=!1;return;default:kt=kt.return}}function gi(e){if(e!==kt)return!1;if(!Ge)return Pf(e),Ge=!0,!1;var t=!1,a;if((a=e.tag!==3&&e.tag!==27)&&((a=e.tag===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Gs(e.type,e.memoizedProps)),a=!a),a&&(t=!0),t&&At&&Wa(e),Pf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){At=Dn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}At=null}}else At=kt?Dn(e.stateNode.nextSibling):null;return!0}function Ei(){At=kt=null,Ge=!1}function bi(e){jn===null?jn=[e]:jn.push(e)}var Si=Error(s(460)),Wf=Error(s(474)),_c={then:function(){}};function If(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ur(){}function ed(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ur,Ur),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Si?Error(s(483)):e;default:if(typeof t.status=="string")t.then(Ur,Ur);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Si?Error(s(483)):e}throw xi=t,Si}}var xi=null;function td(){if(xi===null)throw Error(s(459));var e=xi;return xi=null,e}var Ml=null,_i=0;function Hr(e){var t=_i;return _i+=1,Ml===null&&(Ml=[]),ed(Ml,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Br(e,t){throw t.$$typeof===f?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nd(e){var t=e._init;return t(e._payload)}function ad(e){function t(w,j){if(e){var z=w.deletions;z===null?(w.deletions=[j],w.flags|=16):z.push(j)}}function a(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function i(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function r(w,j){return w=ja(w,j),w.index=0,w.sibling=null,w}function o(w,j,z){return w.index=z,e?(z=w.alternate,z!==null?(z=z.index,z<j?(w.flags|=33554434,j):z):(w.flags|=33554434,j)):(w.flags|=1048576,j)}function m(w){return e&&w.alternate===null&&(w.flags|=33554434),w}function E(w,j,z,Z){return j===null||j.tag!==6?(j=vs(z,w.mode,Z),j.return=w,j):(j=r(j,z),j.return=w,j)}function x(w,j,z,Z){var ue=z.type;return ue===v?G(w,j,z.props.children,Z,z.key):j!==null&&(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===q&&nd(ue)===j.type)?(j=r(j,z.props),Ri(j,z),j.return=w,j):(j=nu(z.type,z.key,z.props,null,w.mode,Z),Ri(j,z),j.return=w,j)}function D(w,j,z,Z){return j===null||j.tag!==4||j.stateNode.containerInfo!==z.containerInfo||j.stateNode.implementation!==z.implementation?(j=gs(z,w.mode,Z),j.return=w,j):(j=r(j,z.children||[]),j.return=w,j)}function G(w,j,z,Z,ue){return j===null||j.tag!==7?(j=cl(z,w.mode,Z,ue),j.return=w,j):(j=r(j,z),j.return=w,j)}function $(w,j,z){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=vs(""+j,w.mode,z),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case d:return z=nu(j.type,j.key,j.props,null,w.mode,z),Ri(z,j),z.return=w,z;case y:return j=gs(j,w.mode,z),j.return=w,j;case q:var Z=j._init;return j=Z(j._payload),$(w,j,z)}if(te(j)||N(j))return j=cl(j,w.mode,z,null),j.return=w,j;if(typeof j.then=="function")return $(w,Hr(j),z);if(j.$$typeof===_)return $(w,Ir(w,j),z);Br(w,j)}return null}function L(w,j,z,Z){var ue=j!==null?j.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ue!==null?null:E(w,j,""+z,Z);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case d:return z.key===ue?x(w,j,z,Z):null;case y:return z.key===ue?D(w,j,z,Z):null;case q:return ue=z._init,z=ue(z._payload),L(w,j,z,Z)}if(te(z)||N(z))return ue!==null?null:G(w,j,z,Z,null);if(typeof z.then=="function")return L(w,j,Hr(z),Z);if(z.$$typeof===_)return L(w,j,Ir(w,z),Z);Br(w,z)}return null}function V(w,j,z,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return w=w.get(z)||null,E(j,w,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case d:return w=w.get(Z.key===null?z:Z.key)||null,x(j,w,Z,ue);case y:return w=w.get(Z.key===null?z:Z.key)||null,D(j,w,Z,ue);case q:var we=Z._init;return Z=we(Z._payload),V(w,j,z,Z,ue)}if(te(Z)||N(Z))return w=w.get(z)||null,G(j,w,Z,ue,null);if(typeof Z.then=="function")return V(w,j,z,Hr(Z),ue);if(Z.$$typeof===_)return V(w,j,z,Ir(j,Z),ue);Br(j,Z)}return null}function he(w,j,z,Z){for(var ue=null,we=null,pe=j,Se=j=0,jt=null;pe!==null&&Se<z.length;Se++){pe.index>Se?(jt=pe,pe=null):jt=pe.sibling;var ke=L(w,pe,z[Se],Z);if(ke===null){pe===null&&(pe=jt);break}e&&pe&&ke.alternate===null&&t(w,pe),j=o(ke,j,Se),we===null?ue=ke:we.sibling=ke,we=ke,pe=jt}if(Se===z.length)return a(w,pe),Ge&&Pa(w,Se),ue;if(pe===null){for(;Se<z.length;Se++)pe=$(w,z[Se],Z),pe!==null&&(j=o(pe,j,Se),we===null?ue=pe:we.sibling=pe,we=pe);return Ge&&Pa(w,Se),ue}for(pe=i(pe);Se<z.length;Se++)jt=V(pe,w,Se,z[Se],Z),jt!==null&&(e&&jt.alternate!==null&&pe.delete(jt.key===null?Se:jt.key),j=o(jt,j,Se),we===null?ue=jt:we.sibling=jt,we=jt);return e&&pe.forEach(function(La){return t(w,La)}),Ge&&Pa(w,Se),ue}function Te(w,j,z,Z){if(z==null)throw Error(s(151));for(var ue=null,we=null,pe=j,Se=j=0,jt=null,ke=z.next();pe!==null&&!ke.done;Se++,ke=z.next()){pe.index>Se?(jt=pe,pe=null):jt=pe.sibling;var La=L(w,pe,ke.value,Z);if(La===null){pe===null&&(pe=jt);break}e&&pe&&La.alternate===null&&t(w,pe),j=o(La,j,Se),we===null?ue=La:we.sibling=La,we=La,pe=jt}if(ke.done)return a(w,pe),Ge&&Pa(w,Se),ue;if(pe===null){for(;!ke.done;Se++,ke=z.next())ke=$(w,ke.value,Z),ke!==null&&(j=o(ke,j,Se),we===null?ue=ke:we.sibling=ke,we=ke);return Ge&&Pa(w,Se),ue}for(pe=i(pe);!ke.done;Se++,ke=z.next())ke=V(pe,w,Se,ke.value,Z),ke!==null&&(e&&ke.alternate!==null&&pe.delete(ke.key===null?Se:ke.key),j=o(ke,j,Se),we===null?ue=ke:we.sibling=ke,we=ke);return e&&pe.forEach(function(Zg){return t(w,Zg)}),Ge&&Pa(w,Se),ue}function ht(w,j,z,Z){if(typeof z=="object"&&z!==null&&z.type===v&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case d:e:{for(var ue=z.key;j!==null;){if(j.key===ue){if(ue=z.type,ue===v){if(j.tag===7){a(w,j.sibling),Z=r(j,z.props.children),Z.return=w,w=Z;break e}}else if(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===q&&nd(ue)===j.type){a(w,j.sibling),Z=r(j,z.props),Ri(Z,z),Z.return=w,w=Z;break e}a(w,j);break}else t(w,j);j=j.sibling}z.type===v?(Z=cl(z.props.children,w.mode,Z,z.key),Z.return=w,w=Z):(Z=nu(z.type,z.key,z.props,null,w.mode,Z),Ri(Z,z),Z.return=w,w=Z)}return m(w);case y:e:{for(ue=z.key;j!==null;){if(j.key===ue)if(j.tag===4&&j.stateNode.containerInfo===z.containerInfo&&j.stateNode.implementation===z.implementation){a(w,j.sibling),Z=r(j,z.children||[]),Z.return=w,w=Z;break e}else{a(w,j);break}else t(w,j);j=j.sibling}Z=gs(z,w.mode,Z),Z.return=w,w=Z}return m(w);case q:return ue=z._init,z=ue(z._payload),ht(w,j,z,Z)}if(te(z))return he(w,j,z,Z);if(N(z)){if(ue=N(z),typeof ue!="function")throw Error(s(150));return z=ue.call(z),Te(w,j,z,Z)}if(typeof z.then=="function")return ht(w,j,Hr(z),Z);if(z.$$typeof===_)return ht(w,j,Ir(w,z),Z);Br(w,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,j!==null&&j.tag===6?(a(w,j.sibling),Z=r(j,z),Z.return=w,w=Z):(a(w,j),Z=vs(z,w.mode,Z),Z.return=w,w=Z),m(w)):a(w,j)}return function(w,j,z,Z){try{_i=0;var ue=ht(w,j,z,Z);return Ml=null,ue}catch(pe){if(pe===Si)throw pe;var we=bn(29,pe,null,w.mode);return we.lanes=Z,we.return=w,we}finally{}}}var Ia=ad(!0),ld=ad(!1),zl=Ce(null),qr=Ce(0);function id(e,t){e=ca,Ee(qr,e),Ee(zl,t),ca=e|t.baseLanes}function Rc(){Ee(qr,ca),Ee(zl,zl.current)}function Tc(){ca=qr.current,Le(zl),Le(qr)}var vn=Ce(null),Hn=null;function va(e){var t=e.alternate;Ee(xt,xt.current&1),Ee(vn,e),Hn===null&&(t===null||zl.current!==null||t.memoizedState!==null)&&(Hn=e)}function rd(e){if(e.tag===22){if(Ee(xt,xt.current),Ee(vn,e),Hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Hn=e)}}else ga()}function ga(){Ee(xt,xt.current),Ee(vn,vn.current)}function Wn(e){Le(vn),Hn===e&&(Hn=null),Le(xt)}var xt=Ce(0);function Vr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.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 Mv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},zv=l.unstable_scheduleCallback,Lv=l.unstable_NormalPriority,_t={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nc(){return{controller:new Mv,data:new Map,refCount:0}}function Ti(e){e.refCount--,e.refCount===0&&zv(Lv,function(){e.controller.abort()})}var Ni=null,Cc=0,Ll=0,Ul=null;function Uv(e,t){if(Ni===null){var a=Ni=[];Cc=0,Ll=Ms(),Ul={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Cc++,t.then(ud,ud),t}function ud(){if(--Cc===0&&Ni!==null){Ul!==null&&(Ul.status="fulfilled");var e=Ni;Ni=null,Ll=0,Ul=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hv(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),i}var cd=X.S;X.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Uv(e,t),cd!==null&&cd(e,t)};var el=Ce(null);function jc(){var e=el.current;return e!==null?e:tt.pooledCache}function Yr(e,t){t===null?Ee(el,el.current):Ee(el,t.pool)}function sd(){var e=jc();return e===null?null:{parent:_t._currentValue,pool:e}}var Ea=0,Oe=null,$e=null,gt=null,Gr=!1,Hl=!1,tl=!1,kr=0,Ci=0,Bl=null,Bv=0;function pt(){throw Error(s(321))}function Oc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Wt(e[a],t[a]))return!1;return!0}function Dc(e,t,a,i,r,o){return Ea=o,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,X.H=e===null||e.memoizedState===null?nl:ba,tl=!1,o=a(i,r),tl=!1,Hl&&(o=fd(t,a,i,r)),od(e),o}function od(e){X.H=Bn;var t=$e!==null&&$e.next!==null;if(Ea=0,gt=$e=Oe=null,Gr=!1,Ci=0,Bl=null,t)throw Error(s(300));e===null||Nt||(e=e.dependencies,e!==null&&Wr(e)&&(Nt=!0))}function fd(e,t,a,i){Oe=e;var r=0;do{if(Hl&&(Bl=null),Ci=0,Hl=!1,25<=r)throw Error(s(301));if(r+=1,gt=$e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}X.H=al,o=t(a,i)}while(Hl);return o}function qv(){var e=X.H,t=e.useState()[0];return t=typeof t.then=="function"?ji(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Oe.flags|=1024),t}function wc(){var e=kr!==0;return kr=0,e}function Ac(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mc(e){if(Gr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Gr=!1}Ea=0,gt=$e=Oe=null,Hl=!1,Ci=kr=0,Bl=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Oe.memoizedState=gt=e:gt=gt.next=e,gt}function Et(){if($e===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=gt===null?Oe.memoizedState:gt.next;if(t!==null)gt=t,$e=e;else{if(e===null)throw Oe.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},gt===null?Oe.memoizedState=gt=e:gt=gt.next=e}return gt}var Xr;Xr=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function ji(e){var t=Ci;return Ci+=1,Bl===null&&(Bl=[]),e=ed(Bl,e,t),t=Oe,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,X.H=t===null||t.memoizedState===null?nl:ba),e}function Qr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ji(e);if(e.$$typeof===_)return qt(e)}throw Error(s(438,String(e)))}function zc(e){var t=null,a=Oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xr(),Oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=J;return t.index++,a}function In(e,t){return typeof t=="function"?t(e):t}function Zr(e){var t=Et();return Lc(t,$e,e)}function Lc(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var r=e.baseQueue,o=i.pending;if(o!==null){if(r!==null){var m=r.next;r.next=o.next,o.next=m}t.baseQueue=r=o,i.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var E=m=null,x=null,D=t,G=!1;do{var $=D.lane&-536870913;if($!==D.lane?(Ve&$)===$:(Ea&$)===$){var L=D.revertLane;if(L===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),$===Ll&&(G=!0);else if((Ea&L)===L){D=D.next,L===Ll&&(G=!0);continue}else $={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=$,m=o):x=x.next=$,Oe.lanes|=L,Oa|=L;$=D.action,tl&&a(o,$),o=D.hasEagerState?D.eagerState:a(o,$)}else L={lane:$,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=L,m=o):x=x.next=L,Oe.lanes|=$,Oa|=$;D=D.next}while(D!==null&&D!==t);if(x===null?m=o:x.next=E,!Wt(o,e.memoizedState)&&(Nt=!0,G&&(a=Ul,a!==null)))throw a;e.memoizedState=o,e.baseState=m,e.baseQueue=x,i.lastRenderedState=o}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Uc(e){var t=Et(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,r=a.pending,o=t.memoizedState;if(r!==null){a.pending=null;var m=r=r.next;do o=e(o,m.action),m=m.next;while(m!==r);Wt(o,t.memoizedState)||(Nt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,i]}function dd(e,t,a){var i=Oe,r=Et(),o=Ge;if(o){if(a===void 0)throw Error(s(407));a=a()}else a=t();var m=!Wt(($e||r).memoizedState,a);if(m&&(r.memoizedState=a,Nt=!0),r=r.queue,qc(yd.bind(null,i,r,e),[e]),r.getSnapshot!==t||m||gt!==null&&gt.memoizedState.tag&1){if(i.flags|=2048,ql(9,md.bind(null,i,r,a,t),{destroy:void 0},null),tt===null)throw Error(s(349));o||Ea&60||hd(i,t,a)}return a}function hd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Oe.updateQueue,t===null?(t=Xr(),Oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function md(e,t,a,i){t.value=a,t.getSnapshot=i,pd(t)&&vd(e)}function yd(e,t,a){return a(function(){pd(t)&&vd(e)})}function pd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Wt(e,a)}catch{return!0}}function vd(e){var t=pa(e,2);t!==null&&Xt(t,e,2)}function Hc(e){var t=Jt();if(typeof e=="function"){var a=e;if(e=a(),tl){Nn(!0);try{a()}finally{Nn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:e},t}function gd(e,t,a,i){return e.baseState=a,Lc(e,$e,typeof i=="function"?i:In)}function Vv(e,t,a,i,r){if(Fr(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};X.T!==null?a(!0):o.isTransition=!1,i(o),a=t.pending,a===null?(o.next=t.pending=o,Ed(t,o)):(o.next=a.next,t.pending=a.next=o)}}function Ed(e,t){var a=t.action,i=t.payload,r=e.state;if(t.isTransition){var o=X.T,m={};X.T=m;try{var E=a(r,i),x=X.S;x!==null&&x(m,E),bd(e,t,E)}catch(D){Bc(e,t,D)}finally{X.T=o}}else try{o=a(r,i),bd(e,t,o)}catch(D){Bc(e,t,D)}}function bd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Sd(e,t,i)},function(i){return Bc(e,t,i)}):Sd(e,t,a)}function Sd(e,t,a){t.status="fulfilled",t.value=a,xd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ed(e,a)))}function Bc(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,xd(t),t=t.next;while(t!==i)}e.action=null}function xd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _d(e,t){return t}function Rd(e,t){if(Ge){var a=tt.formState;if(a!==null){e:{var i=Oe;if(Ge){if(At){t:{for(var r=At,o=Un;r.nodeType!==8;){if(!o){r=null;break t}if(r=Dn(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){At=Dn(r.nextSibling),i=r.data==="F!";break e}}Wa(i)}i=!1}i&&(t=a[0])}}return a=Jt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:t},a.queue=i,a=Gd.bind(null,Oe,i),i.dispatch=a,i=Hc(!1),o=Xc.bind(null,Oe,!1,i.queue),i=Jt(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,a=Vv.bind(null,Oe,r,o,a),r.dispatch=a,i.memoizedState=e,[t,a,!1]}function Td(e){var t=Et();return Nd(t,$e,e)}function Nd(e,t,a){t=Lc(e,t,_d)[0],e=Zr(In)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?ji(t):t;var i=Et(),r=i.queue,o=r.dispatch;return a!==i.memoizedState&&(Oe.flags|=2048,ql(9,Yv.bind(null,r,a),{destroy:void 0},null)),[t,o,e]}function Yv(e,t){e.action=t}function Cd(e){var t=Et(),a=$e;if(a!==null)return Nd(t,a,e);Et(),t=t.memoizedState,a=Et();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function ql(e,t,a,i){return e={tag:e,create:t,inst:a,deps:i,next:null},t=Oe.updateQueue,t===null&&(t=Xr(),Oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function jd(){return Et().memoizedState}function Kr(e,t,a,i){var r=Jt();Oe.flags|=e,r.memoizedState=ql(1|t,a,{destroy:void 0},i===void 0?null:i)}function $r(e,t,a,i){var r=Et();i=i===void 0?null:i;var o=r.memoizedState.inst;$e!==null&&i!==null&&Oc(i,$e.memoizedState.deps)?r.memoizedState=ql(t,a,o,i):(Oe.flags|=e,r.memoizedState=ql(1|t,a,o,i))}function Od(e,t){Kr(8390656,8,e,t)}function qc(e,t){$r(2048,8,e,t)}function Dd(e,t){return $r(4,2,e,t)}function wd(e,t){return $r(4,4,e,t)}function Ad(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Md(e,t,a){a=a!=null?a.concat([e]):null,$r(4,4,Ad.bind(null,t,e),a)}function Vc(){}function zd(e,t){var a=Et();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Oc(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Ld(e,t){var a=Et();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Oc(t,i[1]))return i[0];if(i=e(),tl){Nn(!0);try{e()}finally{Nn(!1)}}return a.memoizedState=[i,t],i}function Yc(e,t,a){return a===void 0||Ea&1073741824?e.memoizedState=t:(e.memoizedState=a,e=Hh(),Oe.lanes|=e,Oa|=e,a)}function Ud(e,t,a,i){return Wt(a,t)?a:zl.current!==null?(e=Yc(e,a,i),Wt(e,t)||(Nt=!0),e):Ea&42?(e=Hh(),Oe.lanes|=e,Oa|=e,t):(Nt=!0,e.memoizedState=a)}function Hd(e,t,a,i,r){var o=P.p;P.p=o!==0&&8>o?o:8;var m=X.T,E={};X.T=E,Xc(e,!1,t,a);try{var x=r(),D=X.S;if(D!==null&&D(E,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var G=Hv(x,i);Oi(e,t,G,nn(e))}else Oi(e,t,i,nn(e))}catch($){Oi(e,t,{then:function(){},status:"rejected",reason:$},nn())}finally{P.p=o,X.T=m}}function Gv(){}function Gc(e,t,a,i){if(e.tag!==5)throw Error(s(476));var r=Bd(e).queue;Hd(e,r,t,ge,a===null?Gv:function(){return qd(e),a(i)})}function Bd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:ge},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qd(e){var t=Bd(e).next.queue;Oi(e,t,{},nn())}function kc(){return qt(Fi)}function Vd(){return Et().memoizedState}function Yd(){return Et().memoizedState}function kv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=nn();e=_a(a);var i=Ra(t,e,a);i!==null&&(Xt(i,t,a),Ai(i,t,a)),t={cache:Nc()},e.payload=t;return}t=t.return}}function Xv(e,t,a){var i=nn();a={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Fr(e)?kd(t,a):(a=Ec(e,t,a,i),a!==null&&(Xt(a,e,i),Xd(a,t,i)))}function Gd(e,t,a){var i=nn();Oi(e,t,a,i)}function Oi(e,t,a,i){var r={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fr(e))kd(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,E=o(m,a);if(r.hasEagerState=!0,r.eagerState=E,Wt(E,m))return Ar(e,t,r,0),tt===null&&wr(),!1}catch{}finally{}if(a=Ec(e,t,r,i),a!==null)return Xt(a,e,i),Xd(a,t,i),!0}return!1}function Xc(e,t,a,i){if(i={lane:2,revertLane:Ms(),action:i,hasEagerState:!1,eagerState:null,next:null},Fr(e)){if(t)throw Error(s(479))}else t=Ec(e,a,i,2),t!==null&&Xt(t,e,2)}function Fr(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function kd(e,t){Hl=Gr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Xd(e,t,a){if(a&4194176){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,me(e,a)}}var Bn={readContext:qt,use:Qr,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt};Bn.useCacheRefresh=pt,Bn.useMemoCache=pt,Bn.useHostTransitionStatus=pt,Bn.useFormState=pt,Bn.useActionState=pt,Bn.useOptimistic=pt;var nl={readContext:qt,use:Qr,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Od,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Kr(4194308,4,Ad.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){Kr(4,2,e,t)},useMemo:function(e,t){var a=Jt();t=t===void 0?null:t;var i=e();if(tl){Nn(!0);try{e()}finally{Nn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Jt();if(a!==void 0){var r=a(t);if(tl){Nn(!0);try{a(t)}finally{Nn(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=Xv.bind(null,Oe,e),[i.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Hc(e);var t=e.queue,a=Gd.bind(null,Oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Jt();return Yc(a,e,t)},useTransition:function(){var e=Hc(!1);return e=Hd.bind(null,Oe,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Oe,r=Jt();if(Ge){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),tt===null)throw Error(s(349));Ve&60||hd(i,t,a)}r.memoizedState=a;var o={value:a,getSnapshot:t};return r.queue=o,Od(yd.bind(null,i,o,e),[e]),i.flags|=2048,ql(9,md.bind(null,i,o,a,t),{destroy:void 0},null),a},useId:function(){var e=Jt(),t=tt.identifierPrefix;if(Ge){var a=Pn,i=Jn;a=(i&~(1<<32-Tt(i)-1)).toString(32)+a,t=":"+t+"R"+a,a=kr++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=Bv++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return Jt().memoizedState=kv.bind(null,Oe)}};nl.useMemoCache=zc,nl.useHostTransitionStatus=kc,nl.useFormState=Rd,nl.useActionState=Rd,nl.useOptimistic=function(e){var t=Jt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Xc.bind(null,Oe,!0,a),a.dispatch=t,[e,t]};var ba={readContext:qt,use:Qr,useCallback:zd,useContext:qt,useEffect:qc,useImperativeHandle:Md,useInsertionEffect:Dd,useLayoutEffect:wd,useMemo:Ld,useReducer:Zr,useRef:jd,useState:function(){return Zr(In)},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Et();return Ud(a,$e.memoizedState,e,t)},useTransition:function(){var e=Zr(In)[0],t=Et().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:dd,useId:Vd};ba.useCacheRefresh=Yd,ba.useMemoCache=zc,ba.useHostTransitionStatus=kc,ba.useFormState=Td,ba.useActionState=Td,ba.useOptimistic=function(e,t){var a=Et();return gd(a,$e,e,t)};var al={readContext:qt,use:Qr,useCallback:zd,useContext:qt,useEffect:qc,useImperativeHandle:Md,useInsertionEffect:Dd,useLayoutEffect:wd,useMemo:Ld,useReducer:Uc,useRef:jd,useState:function(){return Uc(In)},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Et();return $e===null?Yc(a,e,t):Ud(a,$e.memoizedState,e,t)},useTransition:function(){var e=Uc(In)[0],t=Et().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:dd,useId:Vd};al.useCacheRefresh=Yd,al.useMemoCache=zc,al.useHostTransitionStatus=kc,al.useFormState=Cd,al.useActionState=Cd,al.useOptimistic=function(e,t){var a=Et();return $e!==null?gd(a,$e,e,t):(a.baseState=e,[e,a.queue.dispatch])};function Qc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:I({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Zc={isMounted:function(e){return(e=e._reactInternals)?ne(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var i=nn(),r=_a(i);r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,i),t!==null&&(Xt(t,e,i),Ai(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=nn(),r=_a(i);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,i),t!==null&&(Xt(t,e,i),Ai(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(),i=_a(a);i.tag=2,t!=null&&(i.callback=t),t=Ra(e,i,a),t!==null&&(Xt(t,e,a),Ai(t,e,a))}};function Qd(e,t,a,i,r,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,m):t.prototype&&t.prototype.isPureReactComponent?!pi(a,i)||!pi(r,o):!0}function Zd(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Zc.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=I({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}var Jr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Kd(e){Jr(e)}function $d(e){console.error(e)}function Fd(e){Jr(e)}function Pr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Jd(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Kc(e,t,a){return a=_a(a),a.tag=3,a.payload={element:null},a.callback=function(){Pr(e,t)},a}function Pd(e){return e=_a(e),e.tag=3,e}function Wd(e,t,a,i){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var o=i.value;e.payload=function(){return r(o)},e.callback=function(){Jd(t,a,i)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Jd(t,a,i),typeof r!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function Qv(e,t,a,i,r){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&wi(t,a,r,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Hn===null?js():a.alternate===null&&dt===0&&(dt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,i===_c?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Ds(e,i,r)),!1;case 22:return a.flags|=65536,i===_c?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Ds(e,i,r)),!1}throw Error(s(435,a.tag))}return Ds(e,i,r),js(),!1}if(Ge)return t=vn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==xc&&(e=Error(s(422),{cause:i}),bi(mn(e,a)))):(i!==xc&&(t=Error(s(423),{cause:i}),bi(mn(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=mn(i,a),r=Kc(e.stateNode,i,r),cs(e,r),dt!==4&&(dt=2)),!1;var o=Error(s(520),{cause:i});if(o=mn(o,a),Vi===null?Vi=[o]:Vi.push(o),dt!==4&&(dt=2),t===null)return!0;i=mn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Kc(a.stateNode,i,e),cs(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Da===null||!Da.has(o))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Pd(r),Wd(r,e,a,i),cs(a,r),!1}a=a.return}while(a!==null);return!1}var Id=Error(s(461)),Nt=!1;function Mt(e,t,a,i){t.child=e===null?ld(t,null,a,i):Ia(t,e.child,a,i)}function eh(e,t,a,i,r){a=a.render;var o=t.ref;if("ref"in i){var m={};for(var E in i)E!=="ref"&&(m[E]=i[E])}else m=i;return rl(t),i=Dc(e,t,a,m,o,r),E=wc(),e!==null&&!Nt?(Ac(e,t,r),ea(e,t,r)):(Ge&&E&&bc(t),t.flags|=1,Mt(e,t,i,r),t.child)}function th(e,t,a,i,r){if(e===null){var o=a.type;return typeof o=="function"&&!ps(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,nh(e,t,o,i,r)):(e=nu(a.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!ns(e,r)){var m=o.memoizedProps;if(a=a.compare,a=a!==null?a:pi,a(m,i)&&e.ref===t.ref)return ea(e,t,r)}return t.flags|=1,e=ja(o,i),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,a,i,r){if(e!==null){var o=e.memoizedProps;if(pi(o,i)&&e.ref===t.ref)if(Nt=!1,t.pendingProps=i=o,ns(e,r))e.flags&131072&&(Nt=!0);else return t.lanes=e.lanes,ea(e,t,r)}return $c(e,t,a,i,r)}function ah(e,t,a){var i=t.pendingProps,r=i.children,o=(t.stateNode._pendingVisibility&2)!==0,m=e!==null?e.memoizedState:null;if(Di(e,t),i.mode==="hidden"||o){if(t.flags&128){if(i=m!==null?m.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;t.childLanes=o&~i}else t.childLanes=0,t.child=null;return lh(e,t,i,a)}if(a&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,m!==null?m.cachePool:null),m!==null?id(t,m):Rc(),rd(t);else return t.lanes=t.childLanes=536870912,lh(e,t,m!==null?m.baseLanes|a:a,a)}else m!==null?(Yr(t,m.cachePool),id(t,m),ga(),t.memoizedState=null):(e!==null&&Yr(t,null),Rc(),ga());return Mt(e,t,r,a),t.child}function lh(e,t,a,i){var r=jc();return r=r===null?null:{parent:_t._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Yr(t,null),Rc(),rd(t),e!==null&&wi(e,t,i,!0),null}function Di(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=2097664)}}function $c(e,t,a,i,r){return rl(t),a=Dc(e,t,a,i,void 0,r),i=wc(),e!==null&&!Nt?(Ac(e,t,r),ea(e,t,r)):(Ge&&i&&bc(t),t.flags|=1,Mt(e,t,a,r),t.child)}function ih(e,t,a,i,r,o){return rl(t),t.updateQueue=null,a=fd(t,i,a,r),od(e),i=wc(),e!==null&&!Nt?(Ac(e,t,o),ea(e,t,o)):(Ge&&i&&bc(t),t.flags|=1,Mt(e,t,a,o),t.child)}function rh(e,t,a,i,r){if(rl(t),t.stateNode===null){var o=Dl,m=a.contextType;typeof m=="object"&&m!==null&&(o=qt(m)),o=new a(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Zc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},rs(t),m=a.contextType,o.context=typeof m=="object"&&m!==null?qt(m):Dl,o.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Qc(t,a,m,i),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&Zc.enqueueReplaceState(o,o.state,null),zi(t,i,o,r),Mi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var E=t.memoizedProps,x=ll(a,E);o.props=x;var D=o.context,G=a.contextType;m=Dl,typeof G=="object"&&G!==null&&(m=qt(G));var $=a.getDerivedStateFromProps;G=typeof $=="function"||typeof o.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,G||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(E||D!==m)&&Zd(t,o,i,m),xa=!1;var L=t.memoizedState;o.state=L,zi(t,i,o,r),Mi(),D=t.memoizedState,E||L!==D||xa?(typeof $=="function"&&(Qc(t,a,$,i),D=t.memoizedState),(x=xa||Qd(t,a,x,i,L,D,m))?(G||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),o.props=i,o.state=D,o.context=m,i=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,us(e,t),m=t.memoizedProps,G=ll(a,m),o.props=G,$=t.pendingProps,L=o.context,D=a.contextType,x=Dl,typeof D=="object"&&D!==null&&(x=qt(D)),E=a.getDerivedStateFromProps,(D=typeof E=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==$||L!==x)&&Zd(t,o,i,x),xa=!1,L=t.memoizedState,o.state=L,zi(t,i,o,r),Mi();var V=t.memoizedState;m!==$||L!==V||xa||e!==null&&e.dependencies!==null&&Wr(e.dependencies)?(typeof E=="function"&&(Qc(t,a,E,i),V=t.memoizedState),(G=xa||Qd(t,a,G,i,L,V,x)||e!==null&&e.dependencies!==null&&Wr(e.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,V,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,V,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),o.props=i,o.state=V,o.context=x,i=G):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,Di(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Ia(t,e.child,null,r),t.child=Ia(t,null,a,r)):Mt(e,t,a,r),t.memoizedState=o.state,e=t.child):e=ea(e,t,r),e}function uh(e,t,a,i){return Ei(),t.flags|=256,Mt(e,t,a,i),t.child}var Fc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:sd()}}function Pc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Sn),e}function ch(e,t,a){var i=t.pendingProps,r=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),m&&(r=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ge){if(r?va(t):ga(),Ge){var E=At,x;if(x=E){e:{for(x=E,E=Un;x.nodeType!==8;){if(!E){E=null;break e}if(x=Dn(x.nextSibling),x===null){E=null;break e}}E=x}E!==null?(t.memoizedState={dehydrated:E,treeContext:Ja!==null?{id:Jn,overflow:Pn}:null,retryLane:536870912},x=bn(18,null,null,0),x.stateNode=E,x.return=t,t.child=x,kt=t,At=null,x=!0):x=!1}x||Wa(t)}if(E=t.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return E.data==="$!"?t.lanes=16:t.lanes=536870912,null;Wn(t)}return E=i.children,i=i.fallback,r?(ga(),r=t.mode,E=Ic({mode:"hidden",children:E},r),i=cl(i,r,a,null),E.return=t,i.return=t,E.sibling=i,t.child=E,r=t.child,r.memoizedState=Jc(a),r.childLanes=Pc(e,m,a),t.memoizedState=Fc,i):(va(t),Wc(t,E))}if(x=e.memoizedState,x!==null&&(E=x.dehydrated,E!==null)){if(o)t.flags&256?(va(t),t.flags&=-257,t=es(e,t,a)):t.memoizedState!==null?(ga(),t.child=e.child,t.flags|=128,t=null):(ga(),r=i.fallback,E=t.mode,i=Ic({mode:"visible",children:i.children},E),r=cl(r,E,a,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,Ia(t,e.child,null,a),i=t.child,i.memoizedState=Jc(a),i.childLanes=Pc(e,m,a),t.memoizedState=Fc,t=r);else if(va(t),E.data==="$!"){if(m=E.nextSibling&&E.nextSibling.dataset,m)var D=m.dgst;m=D,i=Error(s(419)),i.stack="",i.digest=m,bi({value:i,source:null,stack:null}),t=es(e,t,a)}else if(Nt||wi(e,t,a,!1),m=(a&e.childLanes)!==0,Nt||m){if(m=tt,m!==null){if(i=a&-a,i&42)i=1;else switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:i=64;break;case 268435456:i=134217728;break;default:i=0}if(i=i&(m.suspendedLanes|a)?0:i,i!==0&&i!==x.retryLane)throw x.retryLane=i,pa(e,i),Xt(m,e,i),Id}E.data==="$?"||js(),t=es(e,t,a)}else E.data==="$?"?(t.flags|=128,t.child=e.child,t=rg.bind(null,e),E._reactRetry=t,t=null):(e=x.treeContext,At=Dn(E.nextSibling),kt=t,Ge=!0,jn=null,Un=!1,e!==null&&(yn[pn++]=Jn,yn[pn++]=Pn,yn[pn++]=Ja,Jn=e.id,Pn=e.overflow,Ja=t),t=Wc(t,i.children),t.flags|=4096);return t}return r?(ga(),r=i.fallback,E=t.mode,x=e.child,D=x.sibling,i=ja(x,{mode:"hidden",children:i.children}),i.subtreeFlags=x.subtreeFlags&31457280,D!==null?r=ja(D,r):(r=cl(r,E,a,null),r.flags|=2),r.return=t,i.return=t,i.sibling=r,t.child=i,i=r,r=t.child,E=e.child.memoizedState,E===null?E=Jc(a):(x=E.cachePool,x!==null?(D=_t._currentValue,x=x.parent!==D?{parent:D,pool:D}:x):x=sd(),E={baseLanes:E.baseLanes|a,cachePool:x}),r.memoizedState=E,r.childLanes=Pc(e,m,a),t.memoizedState=Fc,i):(va(t),a=e.child,e=a.sibling,a=ja(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Wc(e,t){return t=Ic({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ic(e,t){return zh(e,t,0,null)}function es(e,t,a){return Ia(t,e.child,null,a),e=Wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sh(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ls(e.return,t,a)}function ts(e,t,a,i,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=a,o.tailMode=r)}function oh(e,t,a){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(Mt(e,t,i.children,a),i=xt.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sh(e,a,t);else if(e.tag===19)sh(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(Ee(xt,i),r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Vr(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),ts(t,!1,r,a,o);break;case"backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Vr(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}ts(t,!0,a,null,o);break;case"together":ts(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ea(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,!(a&t.childLanes))if(e!==null){if(wi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ja(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ja(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ns(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Wr(e)))}function Zv(e,t,a){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),Sa(t,_t,e.memoizedState.cache),Ei();break;case 27:case 5:St(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(va(t),t.flags|=128,null):a&t.child.childLanes?ch(e,t,a):(va(t),e=ea(e,t,a),e!==null?e.sibling:null);va(t);break;case 19:var r=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(wi(e,t,a,!1),i=(a&t.childLanes)!==0),r){if(i)return oh(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Ee(xt,xt.current),i)break;return null;case 22:case 23:return t.lanes=0,ah(e,t,a);case 24:Sa(t,_t,e.memoizedState.cache)}return ea(e,t,a)}function fh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Nt=!0;else{if(!ns(e,a)&&!(t.flags&128))return Nt=!1,Zv(e,t,a);Nt=!!(e.flags&131072)}else Nt=!1,Ge&&t.flags&1048576&&Ff(t,Lr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,r=i._init;if(i=r(i._payload),t.type=i,typeof i=="function")ps(i)?(e=ll(i,e),t.tag=1,t=rh(null,t,i,e,a)):(t.tag=0,t=$c(null,t,i,e,a));else{if(i!=null){if(r=i.$$typeof,r===O){t.tag=11,t=eh(null,t,i,e,a);break e}else if(r===M){t.tag=14,t=th(null,t,i,e,a);break e}}throw t=ie(i)||i,Error(s(306,t,""))}}return t;case 0:return $c(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,r=ll(i,t.pendingProps),rh(e,t,i,r,a);case 3:e:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(s(387));var o=t.pendingProps;r=t.memoizedState,i=r.element,us(e,t),zi(t,o,null,a);var m=t.memoizedState;if(o=m.cache,Sa(t,_t,o),o!==r.cache&&is(t,[_t],a,!0),Mi(),o=m.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=uh(e,t,o,a);break e}else if(o!==i){i=mn(Error(s(424)),t),bi(i),t=uh(e,t,o,a);break e}else for(At=Dn(t.stateNode.containerInfo.firstChild),kt=t,Ge=!0,jn=null,Un=!0,a=ld(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ei(),o===i){t=ea(e,t,a);break e}Mt(e,t,o,a)}t=t.child}return t;case 26:return Di(e,t),e===null?(a=mm(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ge||(a=t.type,e=t.pendingProps,i=mu(it.current).createElement(a),i[fe]=t,i[ve]=e,zt(i,a,e),et(i),t.stateNode=i):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return St(t),e===null&&Ge&&(i=t.stateNode=fm(t.type,t.pendingProps,it.current),kt=t,Un=!0,At=Dn(i.firstChild)),i=t.pendingProps.children,e!==null||Ge?Mt(e,t,i,a):t.child=Ia(t,null,i,a),Di(e,t),t.child;case 5:return e===null&&Ge&&((r=i=At)&&(i=xg(i,t.type,t.pendingProps,Un),i!==null?(t.stateNode=i,kt=t,At=Dn(i.firstChild),Un=!1,r=!0):r=!1),r||Wa(t)),St(t),r=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,i=o.children,Gs(r,o)?i=null:m!==null&&Gs(r,m)&&(t.flags|=32),t.memoizedState!==null&&(r=Dc(e,t,qv,null,null,a),Fi._currentValue=r),Di(e,t),Mt(e,t,i,a),t.child;case 6:return e===null&&Ge&&((e=a=At)&&(a=_g(a,t.pendingProps,Un),a!==null?(t.stateNode=a,kt=t,At=null,e=!0):e=!1),e||Wa(t)),null;case 13:return ch(e,t,a);case 4:return De(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ia(t,null,i,a):Mt(e,t,i,a),t.child;case 11:return eh(e,t,t.type,t.pendingProps,a);case 7:return Mt(e,t,t.pendingProps,a),t.child;case 8:return Mt(e,t,t.pendingProps.children,a),t.child;case 12:return Mt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Sa(t,t.type,i.value),Mt(e,t,i.children,a),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,rl(t),r=qt(r),i=i(r),t.flags|=1,Mt(e,t,i,a),t.child;case 14:return th(e,t,t.type,t.pendingProps,a);case 15:return nh(e,t,t.type,t.pendingProps,a);case 19:return oh(e,t,a);case 22:return ah(e,t,a);case 24:return rl(t),i=qt(_t),e===null?(r=jc(),r===null&&(r=tt,o=Nc(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=a),r=o),t.memoizedState={parent:i,cache:r},rs(t),Sa(t,_t,r)):(e.lanes&a&&(us(e,t),zi(t,null,null,a),Mi()),r=e.memoizedState,o=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Sa(t,_t,i)):(i=o.cache,Sa(t,_t,i),i!==r.cache&&is(t,[_t],a,!0))),Mt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}var as=Ce(null),il=null,ta=null;function Sa(e,t,a){Ee(as,t._currentValue),t._currentValue=a}function na(e){e._currentValue=as.current,Le(as)}function ls(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function is(e,t,a,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var m=r.child;o=o.firstContext;e:for(;o!==null;){var E=o;o=r;for(var x=0;x<t.length;x++)if(E.context===t[x]){o.lanes|=a,E=o.alternate,E!==null&&(E.lanes|=a),ls(o.return,a,e),i||(m=null);break e}o=E.next}}else if(r.tag===18){if(m=r.return,m===null)throw Error(s(341));m.lanes|=a,o=m.alternate,o!==null&&(o.lanes|=a),ls(m,a,e),m=null}else m=r.child;if(m!==null)m.return=r;else for(m=r;m!==null;){if(m===e){m=null;break}if(r=m.sibling,r!==null){r.return=m.return,m=r;break}m=m.return}r=m}}function wi(e,t,a,i){e=null;for(var r=t,o=!1;r!==null;){if(!o){if(r.flags&524288)o=!0;else if(r.flags&262144)break}if(r.tag===10){var m=r.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var E=r.type;Wt(r.pendingProps.value,m.value)||(e!==null?e.push(E):e=[E])}}else if(r===lt.current){if(m=r.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Fi):e=[Fi])}r=r.return}e!==null&&is(t,e,a,i),t.flags|=262144}function Wr(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function rl(e){il=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qt(e){return dh(il,e)}function Ir(e,t){return il===null&&rl(e),dh(e,t)}function dh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ta===null){if(e===null)throw Error(s(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return a}var xa=!1;function rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function us(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _a(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,st&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Mr(e),Kf(e,null,a),t}return Ar(e,i,t,a),Mr(e)}function Ai(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194176)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,me(e,a)}}function cs(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var r=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?r=o=m:o=o.next=m,a=a.next}while(a!==null);o===null?r=o=t:o=o.next=t}else r=o=t;a={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ss=!1;function Mi(){if(ss){var e=Ul;if(e!==null)throw e}}function zi(e,t,a,i){ss=!1;var r=e.updateQueue;xa=!1;var o=r.firstBaseUpdate,m=r.lastBaseUpdate,E=r.shared.pending;if(E!==null){r.shared.pending=null;var x=E,D=x.next;x.next=null,m===null?o=D:m.next=D,m=x;var G=e.alternate;G!==null&&(G=G.updateQueue,E=G.lastBaseUpdate,E!==m&&(E===null?G.firstBaseUpdate=D:E.next=D,G.lastBaseUpdate=x))}if(o!==null){var $=r.baseState;m=0,G=D=x=null,E=o;do{var L=E.lane&-536870913,V=L!==E.lane;if(V?(Ve&L)===L:(i&L)===L){L!==0&&L===Ll&&(ss=!0),G!==null&&(G=G.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var he=e,Te=E;L=t;var ht=a;switch(Te.tag){case 1:if(he=Te.payload,typeof he=="function"){$=he.call(ht,$,L);break e}$=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Te.payload,L=typeof he=="function"?he.call(ht,$,L):he,L==null)break e;$=I({},$,L);break e;case 2:xa=!0}}L=E.callback,L!==null&&(e.flags|=64,V&&(e.flags|=8192),V=r.callbacks,V===null?r.callbacks=[L]:V.push(L))}else V={lane:L,tag:E.tag,payload:E.payload,callback:E.callback,next:null},G===null?(D=G=V,x=$):G=G.next=V,m|=L;if(E=E.next,E===null){if(E=r.shared.pending,E===null)break;V=E,E=V.next,V.next=null,r.lastBaseUpdate=V,r.shared.pending=null}}while(!0);G===null&&(x=$),r.baseState=x,r.firstBaseUpdate=D,r.lastBaseUpdate=G,o===null&&(r.shared.lanes=0),Oa|=m,e.lanes=m,e.memoizedState=$}}function hh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function mh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)hh(a[e],t)}function Li(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){i=void 0;var o=a.create,m=a.inst;i=o(),m.destroy=i}a=a.next}while(a!==r)}}catch(E){We(t,t.return,E)}}function Ta(e,t,a){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){var m=i.inst,E=m.destroy;if(E!==void 0){m.destroy=void 0,r=t;var x=a;try{E()}catch(D){We(r,x,D)}}}i=i.next}while(i!==o)}}catch(D){We(t,t.return,D)}}function yh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{mh(t,a)}catch(i){We(e,e.return,i)}}}function ph(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){We(e,t,i)}}function ul(e,t){try{var a=e.ref;if(a!==null){var i=e.stateNode;switch(e.tag){case 26:case 27:case 5:var r=i;break;default:r=i}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){We(e,t,o)}}function It(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(r){We(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){We(e,t,r)}else a.current=null}function vh(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(r){We(e,e.return,r)}}function gh(e,t,a){try{var i=e.stateNode;vg(i,e.type,a,t),i[ve]=t}catch(r){We(e,e.return,r)}}function Eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&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 fs(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=hu));else if(i!==4&&i!==27&&(e=e.child,e!==null))for(fs(e,t,a),e=e.sibling;e!==null;)fs(e,t,a),e=e.sibling}function eu(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&i!==27&&(e=e.child,e!==null))for(eu(e,t,a),e=e.sibling;e!==null;)eu(e,t,a),e=e.sibling}var aa=!1,ft=!1,ds=!1,bh=typeof WeakSet=="function"?WeakSet:Set,Ct=null,Sh=!1;function Kv(e,t){if(e=e.containerInfo,Vs=bu,e=Bf(e),mc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var m=0,E=-1,x=-1,D=0,G=0,$=e,L=null;t:for(;;){for(var V;$!==a||r!==0&&$.nodeType!==3||(E=m+r),$!==o||i!==0&&$.nodeType!==3||(x=m+i),$.nodeType===3&&(m+=$.nodeValue.length),(V=$.firstChild)!==null;)L=$,$=V;for(;;){if($===e)break t;if(L===a&&++D===r&&(E=m),L===o&&++G===i&&(x=m),(V=$.nextSibling)!==null)break;$=L,L=$.parentNode}$=V}a=E===-1||x===-1?null:{start:E,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ys={focusedElem:e,selectionRange:a},bu=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,o=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,a=t,r=o.memoizedProps,o=o.memoizedState,i=a.stateNode;try{var he=ll(a.type,r,a.elementType===a.type);e=i.getSnapshotBeforeUpdate(he,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(Te){We(a,a.return,Te)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Qs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}return he=Sh,Sh=!1,he}function xh(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ia(e,a),i&4&&Li(5,a);break;case 1:if(ia(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(E){We(a,a.return,E)}else{var r=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(E){We(a,a.return,E)}}i&64&&yh(a),i&512&&ul(a,a.return);break;case 3:if(ia(e,a),i&64&&(i=a.updateQueue,i!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{mh(i,e)}catch(E){We(a,a.return,E)}}break;case 26:ia(e,a),i&512&&ul(a,a.return);break;case 27:case 5:ia(e,a),t===null&&i&4&&vh(a),i&512&&ul(a,a.return);break;case 12:ia(e,a);break;case 13:ia(e,a),i&4&&Th(e,a);break;case 22:if(r=a.memoizedState!==null||aa,!r){t=t!==null&&t.memoizedState!==null||ft;var o=aa,m=ft;aa=r,(ft=t)&&!m?Na(e,a,(a.subtreeFlags&8772)!==0):ia(e,a),aa=o,ft=m}i&512&&(a.memoizedProps.mode==="manual"?ul(a,a.return):It(a,a.return));break;default:ia(e,a)}}function _h(e){var t=e.alternate;t!==null&&(e.alternate=null,_h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zn(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var bt=null,en=!1;function la(e,t,a){for(a=a.child;a!==null;)Rh(e,t,a),a=a.sibling}function Rh(e,t,a){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(ma,a)}catch{}switch(a.tag){case 26:ft||It(a,t),la(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||It(a,t);var i=bt,r=en;for(bt=a.stateNode,la(e,t,a),a=a.stateNode,t=a.attributes;t.length;)a.removeAttributeNode(t[0]);Zn(a),bt=i,en=r;break;case 5:ft||It(a,t);case 6:r=bt;var o=en;if(bt=null,la(e,t,a),bt=r,en=o,bt!==null)if(en)try{e=bt,i=a.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)}catch(m){We(a,t,m)}else try{bt.removeChild(a.stateNode)}catch(m){We(a,t,m)}break;case 18:bt!==null&&(en?(t=bt,a=a.stateNode,t.nodeType===8?Xs(t.parentNode,a):t.nodeType===1&&Xs(t,a),Ii(t)):Xs(bt,a.stateNode));break;case 4:i=bt,r=en,bt=a.stateNode.containerInfo,en=!0,la(e,t,a),bt=i,en=r;break;case 0:case 11:case 14:case 15:ft||Ta(2,a,t),ft||Ta(4,a,t),la(e,t,a);break;case 1:ft||(It(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&ph(a,t,i)),la(e,t,a);break;case 21:la(e,t,a);break;case 22:ft||It(a,t),ft=(i=ft)||a.memoizedState!==null,la(e,t,a),ft=i;break;default:la(e,t,a)}}function Th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ii(e)}catch(a){We(t,t.return,a)}}function $v(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bh),t;default:throw Error(s(435,e.tag))}}function hs(e,t){var a=$v(e);t.forEach(function(i){var r=ug.bind(null,e,i);a.has(i)||(a.add(i),i.then(r,r))})}function gn(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var r=a[i],o=e,m=t,E=m;e:for(;E!==null;){switch(E.tag){case 27:case 5:bt=E.stateNode,en=!1;break e;case 3:bt=E.stateNode.containerInfo,en=!0;break e;case 4:bt=E.stateNode.containerInfo,en=!0;break e}E=E.return}if(bt===null)throw Error(s(160));Rh(o,m,r),bt=null,en=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Nh(t,e),t=t.sibling}var On=null;function Nh(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gn(t,e),En(e),i&4&&(Ta(3,e,e.return),Li(3,e),Ta(5,e,e.return));break;case 1:gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),i&64&&aa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var r=On;if(gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),i&4){var o=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":o=r.getElementsByTagName("title")[0],(!o||o[sn]||o[fe]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(i),r.head.insertBefore(o,r.querySelector("head > title"))),zt(o,i,a),o[fe]=e,et(o),i=o;break e;case"link":var m=vm("link","href",r).get(i+(a.href||""));if(m){for(var E=0;E<m.length;E++)if(o=m[E],o.getAttribute("href")===(a.href==null?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(E,1);break t}}o=r.createElement(i),zt(o,i,a),r.head.appendChild(o);break;case"meta":if(m=vm("meta","content",r).get(i+(a.content||""))){for(E=0;E<m.length;E++)if(o=m[E],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(E,1);break t}}o=r.createElement(i),zt(o,i,a),r.head.appendChild(o);break;default:throw Error(s(468,i))}o[fe]=e,et(o),i=o}e.stateNode=i}else gm(r,e.type,e.stateNode);else e.stateNode=pm(r,i,e.memoizedProps);else o!==i?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,i===null?gm(r,e.type,e.stateNode):pm(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&gh(e,e.memoizedProps,a.memoizedProps)}break;case 27:if(i&4&&e.alternate===null){r=e.stateNode,o=e.memoizedProps;try{for(var x=r.firstChild;x;){var D=x.nextSibling,G=x.nodeName;x[sn]||G==="HEAD"||G==="BODY"||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&x.rel.toLowerCase()==="stylesheet"||r.removeChild(x),x=D}for(var $=e.type,L=r.attributes;L.length;)r.removeAttributeNode(L[0]);zt(r,$,o),r[fe]=e,r[ve]=o}catch(he){We(e,e.return,he)}}case 5:if(gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),e.flags&32){r=e.stateNode;try{_l(r,"")}catch(he){We(e,e.return,he)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,gh(e,r,a!==null?a.memoizedProps:r)),i&1024&&(ds=!0);break;case 6:if(gn(t,e),En(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(he){We(e,e.return,he)}}break;case 3:if(vu=null,r=On,On=yu(t.containerInfo),gn(t,e),On=r,En(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Ii(t.containerInfo)}catch(he){We(e,e.return,he)}ds&&(ds=!1,Ch(e));break;case 4:i=On,On=yu(e.stateNode.containerInfo),gn(t,e),En(e),On=i;break;case 12:gn(t,e),En(e);break;case 13:gn(t,e),En(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xs=mt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hs(e,i)));break;case 22:if(i&512&&(ft||a===null||It(a,a.return)),x=e.memoizedState!==null,D=a!==null&&a.memoizedState!==null,G=aa,$=ft,aa=G||x,ft=$||D,gn(t,e),ft=$,aa=G,En(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,i&8192&&(t._visibility=x?t._visibility&-2:t._visibility|1,x&&(t=aa||ft,a===null||D||t||Vl(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(a=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(a===null){D=a=t;try{if(r=D.stateNode,x)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=D.stateNode,E=D.memoizedProps.style;var V=E!=null&&E.hasOwnProperty("display")?E.display:null;m.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(he){We(D,D.return,he)}}}else if(t.tag===6){if(a===null){D=t;try{D.stateNode.nodeValue=x?"":D.memoizedProps}catch(he){We(D,D.return,he)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,hs(e,a))));break;case 19:gn(t,e),En(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hs(e,i)));break;case 21:break;default:gn(t,e),En(e)}}function En(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var a=e.return;a!==null;){if(Eh(a)){var i=a;break e}a=a.return}throw Error(s(160))}switch(i.tag){case 27:var r=i.stateNode,o=os(e);eu(e,o,r);break;case 5:var m=i.stateNode;i.flags&32&&(_l(m,""),i.flags&=-33);var E=os(e);eu(e,E,m);break;case 3:case 4:var x=i.stateNode.containerInfo,D=os(e);fs(e,D,x);break;default:throw Error(s(161))}}}catch(G){We(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ch(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ch(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xh(e,t.alternate,t),t=t.sibling}function Vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ta(4,t,t.return),Vl(t);break;case 1:It(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ph(t,t.return,a),Vl(t);break;case 26:case 27:case 5:It(t,t.return),Vl(t);break;case 22:It(t,t.return),t.memoizedState===null&&Vl(t);break;default:Vl(t)}e=e.sibling}}function Na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:Na(r,o,a),Li(4,o);break;case 1:if(Na(r,o,a),i=o,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(D){We(i,i.return,D)}if(i=o,r=i.updateQueue,r!==null){var E=i.stateNode;try{var x=r.shared.hiddenCallbacks;if(x!==null)for(r.shared.hiddenCallbacks=null,r=0;r<x.length;r++)hh(x[r],E)}catch(D){We(i,i.return,D)}}a&&m&64&&yh(o),ul(o,o.return);break;case 26:case 27:case 5:Na(r,o,a),a&&i===null&&m&4&&vh(o),ul(o,o.return);break;case 12:Na(r,o,a);break;case 13:Na(r,o,a),a&&m&4&&Th(r,o);break;case 22:o.memoizedState===null&&Na(r,o,a),ul(o,o.return);break;default:Na(r,o,a)}t=t.sibling}}function ms(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ti(a))}function ys(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ti(e))}function Ca(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jh(e,t,a,i),t=t.sibling}function jh(e,t,a,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ca(e,t,a,i),r&2048&&Li(9,t);break;case 3:Ca(e,t,a,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ti(e)));break;case 12:if(r&2048){Ca(e,t,a,i),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,E=o.onPostCommit;typeof E=="function"&&E(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){We(t,t.return,x)}}else Ca(e,t,a,i);break;case 23:break;case 22:o=t.stateNode,t.memoizedState!==null?o._visibility&4?Ca(e,t,a,i):Ui(e,t):o._visibility&4?Ca(e,t,a,i):(o._visibility|=4,Yl(e,t,a,i,(t.subtreeFlags&10256)!==0)),r&2048&&ms(t.alternate,t);break;case 24:Ca(e,t,a,i),r&2048&&ys(t.alternate,t);break;default:Ca(e,t,a,i)}}function Yl(e,t,a,i,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var o=e,m=t,E=a,x=i,D=m.flags;switch(m.tag){case 0:case 11:case 15:Yl(o,m,E,x,r),Li(8,m);break;case 23:break;case 22:var G=m.stateNode;m.memoizedState!==null?G._visibility&4?Yl(o,m,E,x,r):Ui(o,m):(G._visibility|=4,Yl(o,m,E,x,r)),r&&D&2048&&ms(m.alternate,m);break;case 24:Yl(o,m,E,x,r),r&&D&2048&&ys(m.alternate,m);break;default:Yl(o,m,E,x,r)}t=t.sibling}}function Ui(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,r=i.flags;switch(i.tag){case 22:Ui(a,i),r&2048&&ms(i.alternate,i);break;case 24:Ui(a,i),r&2048&&ys(i.alternate,i);break;default:Ui(a,i)}t=t.sibling}}var Hi=8192;function Gl(e){if(e.subtreeFlags&Hi)for(e=e.child;e!==null;)Oh(e),e=e.sibling}function Oh(e){switch(e.tag){case 26:Gl(e),e.flags&Hi&&e.memoizedState!==null&&Ug(On,e.memoizedState,e.memoizedProps);break;case 5:Gl(e);break;case 3:case 4:var t=On;On=yu(e.stateNode.containerInfo),Gl(e),On=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Hi,Hi=16777216,Gl(e),Hi=t):Gl(e));break;default:Gl(e)}}function Dh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Ct=i,Ah(i,e)}Dh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wh(e),e=e.sibling}function wh(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&Ta(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,tu(e)):Bi(e);break;default:Bi(e)}}function tu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Ct=i,Ah(i,e)}Dh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ta(8,t,t.return),tu(t);break;case 22:a=t.stateNode,a._visibility&4&&(a._visibility&=-5,tu(t));break;default:tu(t)}e=e.sibling}}function Ah(e,t){for(;Ct!==null;){var a=Ct;switch(a.tag){case 0:case 11:case 15:Ta(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ti(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Ct=i;else e:for(a=e;Ct!==null;){i=Ct;var r=i.sibling,o=i.return;if(_h(i),i===a){Ct=null;break e}if(r!==null){r.return=o,Ct=r;break e}Ct=o}}}function Fv(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,a,i){return new Fv(e,t,a,i)}function ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ja(e,t){var a=e.alternate;return a===null?(a=bn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&31457280,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Mh(e,t){e.flags&=31457282;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nu(e,t,a,i,r,o){var m=0;if(i=e,typeof e=="function")ps(e)&&(m=1);else if(typeof e=="string")m=zg(e,a,Ze.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case v:return cl(a.children,r,o,t);case p:m=8,r|=24;break;case b:return e=bn(12,a,t,r|2),e.elementType=b,e.lanes=o,e;case H:return e=bn(13,a,t,r),e.elementType=H,e.lanes=o,e;case U:return e=bn(19,a,t,r),e.elementType=U,e.lanes=o,e;case Y:return zh(a,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:case _:m=10;break e;case S:m=9;break e;case O:m=11;break e;case M:m=14;break e;case q:m=16,i=null;break e}m=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=bn(m,a,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function cl(e,t,a,i){return e=bn(7,e,i,t),e.lanes=a,e}function zh(e,t,a,i){e=bn(22,e,i,t),e.elementType=Y,e.lanes=a;var r={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var o=r._current;if(o===null)throw Error(s(456));if(!(r._pendingVisibility&2)){var m=pa(o,2);m!==null&&(r._pendingVisibility|=2,Xt(m,o,2))}},attach:function(){var o=r._current;if(o===null)throw Error(s(456));if(r._pendingVisibility&2){var m=pa(o,2);m!==null&&(r._pendingVisibility&=-3,Xt(m,o,2))}}};return e.stateNode=r,e}function vs(e,t,a){return e=bn(6,e,null,t),e.lanes=a,e}function gs(e,t,a){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ra(e){e.flags|=4}function Lh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t)){if(t=vn.current,t!==null&&((Ve&4194176)===Ve?Hn!==null:(Ve&62914560)!==Ve&&!(Ve&536870912)||t!==Hn))throw xi=_c,Wf;e.flags|=8192}}function au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?C():536870912,e.lanes|=t,Xl|=t)}function qi(e,t){if(!Ge)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,i|=r.subtreeFlags&31457280,i|=r.flags&31457280,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Jv(e,t,a){var i=t.pendingProps;switch(Sc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return ct(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),na(_t),Rt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gi(t)?ra(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jn!==null&&(Ns(jn),jn=null))),ct(t),null;case 26:return a=t.memoizedState,e===null?(ra(t),a!==null?(ct(t),Lh(t,a)):(ct(t),t.flags&=-16777217)):a?a!==e.memoizedState?(ra(t),ct(t),Lh(t,a)):(ct(t),t.flags&=-16777217):(e.memoizedProps!==i&&ra(t),ct(t),t.flags&=-16777217),null;case 27:Pt(t),a=it.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ct(t),null}e=Ze.current,gi(t)?Jf(t):(e=fm(r,i,a),t.stateNode=e,ra(t))}return ct(t),null;case 5:if(Pt(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ct(t),null}if(e=Ze.current,gi(t))Jf(t);else{switch(r=mu(it.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?r.createElement("select",{is:i.is}):r.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?r.createElement(a,{is:i.is}):r.createElement(a)}}e[fe]=t,e[ve]=i;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(zt(e,a,i),a){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ra(t)}}return ct(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=it.current,gi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,r=kt,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[fe]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||im(e.nodeValue,a)),e||Wa(t)}else e=mu(e).createTextNode(i),e[fe]=t,t.stateNode=e}return ct(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=gi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[fe]=t}else Ei(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ct(t),r=!1}else jn!==null&&(Ns(jn),jn=null),r=!0;if(!r)return t.flags&256?(Wn(t),t):(Wn(t),null)}if(Wn(t),t.flags&128)return t.lanes=a,t;if(a=i!==null,e=e!==null&&e.memoizedState!==null,a){i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool);var o=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==r&&(i.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),au(t,t.updateQueue),ct(t),null;case 4:return Rt(),e===null&&Hs(t.stateNode.containerInfo),ct(t),null;case 10:return na(t.type),ct(t),null;case 19:if(Le(xt),r=t.memoizedState,r===null)return ct(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)qi(r,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vr(e),o!==null){for(t.flags|=128,qi(r,!1),e=o.updateQueue,t.updateQueue=e,au(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Mh(a,e),a=a.sibling;return Ee(xt,xt.current&1|2),t.child}e=e.sibling}r.tail!==null&&mt()>lu&&(t.flags|=128,i=!0,qi(r,!1),t.lanes=4194304)}else{if(!i)if(e=Vr(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,au(t,e),qi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Ge)return ct(t),null}else 2*mt()-r.renderingStartTime>lu&&a!==536870912&&(t.flags|=128,i=!0,qi(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=mt(),t.sibling=null,e=xt.current,Ee(xt,i?e&1|2:e&1),t):(ct(t),null);case 22:case 23:return Wn(t),Tc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?a&536870912&&!(t.flags&128)&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),a=t.updateQueue,a!==null&&au(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Le(el),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(_t),ct(t),null;case 25:return null}throw Error(s(156,t.tag))}function Pv(e,t){switch(Sc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(_t),Rt(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pt(t),null;case 13:if(Wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(xt),null;case 4:return Rt(),null;case 10:return na(t.type),null;case 22:case 23:return Wn(t),Tc(),e!==null&&Le(el),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(_t),null;case 25:return null;default:return null}}function Uh(e,t){switch(Sc(t),t.tag){case 3:na(_t),Rt();break;case 26:case 27:case 5:Pt(t);break;case 4:Rt();break;case 13:Wn(t);break;case 19:Le(xt);break;case 10:na(t.type);break;case 22:case 23:Wn(t),Tc(),e!==null&&Le(el);break;case 24:na(_t)}}var Wv={getCacheForType:function(e){var t=qt(_t),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Iv=typeof WeakMap=="function"?WeakMap:Map,st=0,tt=null,Me=null,Ve=0,nt=0,tn=null,ua=!1,kl=!1,Es=!1,ca=0,dt=0,Oa=0,sl=0,bs=0,Sn=0,Xl=0,Vi=null,qn=null,Ss=!1,xs=0,lu=1/0,iu=null,Da=null,ru=!1,ol=null,Yi=0,_s=0,Rs=null,Gi=0,Ts=null;function nn(){if(st&2&&Ve!==0)return Ve&-Ve;if(X.T!==null){var e=Ll;return e!==0?e:Ms()}return re()}function Hh(){Sn===0&&(Sn=!(Ve&536870912)||Ge?Er():536870912);var e=vn.current;return e!==null&&(e.flags|=32),Sn}function Xt(e,t,a){(e===tt&&nt===2||e.cancelPendingCommit!==null)&&(Ql(e,0),sa(e,Ve,Sn,!1)),B(e,a),(!(st&2)||e!==tt)&&(e===tt&&(!(st&2)&&(sl|=a),dt===4&&sa(e,Ve,Sn,!1)),Vn(e))}function Bh(e,t,a){if(st&6)throw Error(s(327));var i=!a&&(t&60)===0&&(t&e.expiredLanes)===0||Ln(e,t),r=i?ng(e,t):Os(e,t,!0),o=i;do{if(r===0){kl&&!i&&sa(e,t,0,!1);break}else if(r===6)sa(e,t,0,!ua);else{if(a=e.current.alternate,o&&!eg(a)){r=Os(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var E=e;r=Vi;var x=E.current.memoizedState.isDehydrated;if(x&&(Ql(E,m).flags|=256),m=Os(E,m,!1),m!==2){if(Es&&!x){E.errorRecoveryDisabledLanes|=o,sl|=o,r=4;break e}o=qn,qn=r,o!==null&&Ns(o)}r=m}if(o=!1,r!==2)continue}}if(r===1){Ql(e,0),sa(e,t,0,!0);break}e:{switch(i=e,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194176)===t){sa(i,t,Sn,!ua);break e}break;case 2:qn=null;break;case 3:case 5:break;default:throw Error(s(329))}if(i.finishedWork=a,i.finishedLanes=t,(t&62914560)===t&&(o=xs+300-mt(),10<o)){if(sa(i,t,Sn,!ua),Qn(i,0)!==0)break e;i.timeoutHandle=cm(qh.bind(null,i,a,qn,iu,Ss,t,Sn,sl,Xl,ua,2,-0,0),o);break e}qh(i,a,qn,iu,Ss,t,Sn,sl,Xl,ua,0,-0,0)}}break}while(!0);Vn(e)}function Ns(e){qn===null?qn=e:qn.push.apply(qn,e)}function qh(e,t,a,i,r,o,m,E,x,D,G,$,L){var V=t.subtreeFlags;if((V&8192||(V&16785408)===16785408)&&($i={stylesheets:null,count:0,unsuspend:Lg},Oh(t),t=Hg(),t!==null)){e.cancelPendingCommit=t(Zh.bind(null,e,a,i,r,m,E,x,1,$,L)),sa(e,o,m,!D);return}Zh(e,a,i,r,m,E,x,G,$,L)}function eg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var r=a[i],o=r.getSnapshot;r=r.value;try{if(!Wt(o(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sa(e,t,a,i){t&=~bs,t&=~sl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var o=31-Tt(r),m=1<<o;i[o]=-1,r&=~m}a!==0&&ae(e,a,t)}function uu(){return st&6?!0:(ki(0),!1)}function Cs(){if(Me!==null){if(nt===0)var e=Me.return;else e=Me,ta=il=null,Mc(e),Ml=null,_i=0,e=Me;for(;e!==null;)Uh(e.alternate,e),e=e.return;Me=null}}function Ql(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Eg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Cs(),tt=e,Me=a=ja(e.current,null),Ve=t,nt=0,tn=null,ua=!1,kl=Ln(e,t),Es=!1,Xl=Sn=bs=sl=Oa=dt=0,qn=Vi=null,Ss=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-Tt(i),o=1<<r;t|=e[r],i&=~o}return ca=t,wr(),a}function Vh(e,t){Oe=null,X.H=Bn,t===Si?(t=td(),nt=3):t===Wf?(t=td(),nt=4):nt=t===Id?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Me===null&&(dt=1,Pr(e,mn(t,e.current)))}function Yh(){var e=X.H;return X.H=Bn,e===null?Bn:e}function Gh(){var e=X.A;return X.A=Wv,e}function js(){dt=4,ua||(Ve&4194176)!==Ve&&vn.current!==null||(kl=!0),!(Oa&134217727)&&!(sl&134217727)||tt===null||sa(tt,Ve,Sn,!1)}function Os(e,t,a){var i=st;st|=2;var r=Yh(),o=Gh();(tt!==e||Ve!==t)&&(iu=null,Ql(e,t)),t=!1;var m=dt;e:do try{if(nt!==0&&Me!==null){var E=Me,x=tn;switch(nt){case 8:Cs(),m=6;break e;case 3:case 2:case 6:vn.current===null&&(t=!0);var D=nt;if(nt=0,tn=null,Zl(e,E,x,D),a&&kl){m=0;break e}break;default:D=nt,nt=0,tn=null,Zl(e,E,x,D)}}tg(),m=dt;break}catch(G){Vh(e,G)}while(!0);return t&&e.shellSuspendCounter++,ta=il=null,st=i,X.H=r,X.A=o,Me===null&&(tt=null,Ve=0,wr()),m}function tg(){for(;Me!==null;)kh(Me)}function ng(e,t){var a=st;st|=2;var i=Yh(),r=Gh();tt!==e||Ve!==t?(iu=null,lu=mt()+500,Ql(e,t)):kl=Ln(e,t);e:do try{if(nt!==0&&Me!==null){t=Me;var o=tn;t:switch(nt){case 1:nt=0,tn=null,Zl(e,t,o,1);break;case 2:if(If(o)){nt=0,tn=null,Xh(t);break}t=function(){nt===2&&tt===e&&(nt=7),Vn(e)},o.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:If(o)?(nt=0,tn=null,Xh(t)):(nt=0,tn=null,Zl(e,t,o,7));break;case 5:var m=null;switch(Me.tag){case 26:m=Me.memoizedState;case 5:case 27:var E=Me;if(!m||Em(m)){nt=0,tn=null;var x=E.sibling;if(x!==null)Me=x;else{var D=E.return;D!==null?(Me=D,cu(D)):Me=null}break t}}nt=0,tn=null,Zl(e,t,o,5);break;case 6:nt=0,tn=null,Zl(e,t,o,6);break;case 8:Cs(),dt=6;break e;default:throw Error(s(462))}}ag();break}catch(G){Vh(e,G)}while(!0);return ta=il=null,X.H=i,X.A=r,st=a,Me!==null?0:(tt=null,Ve=0,wr(),dt)}function ag(){for(;Me!==null&&!Ut();)kh(Me)}function kh(e){var t=fh(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?cu(e):Me=t}function Xh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ih(a,t,t.pendingProps,t.type,void 0,Ve);break;case 11:t=ih(a,t,t.pendingProps,t.type.render,t.ref,Ve);break;case 5:Mc(t);default:Uh(a,t),t=Me=Mh(t,ca),t=fh(a,t,ca)}e.memoizedProps=e.pendingProps,t===null?cu(e):Me=t}function Zl(e,t,a,i){ta=il=null,Mc(t),Ml=null,_i=0;var r=t.return;try{if(Qv(e,r,t,a,Ve)){dt=1,Pr(e,mn(a,e.current)),Me=null;return}}catch(o){if(r!==null)throw Me=r,o;dt=1,Pr(e,mn(a,e.current)),Me=null;return}t.flags&32768?(Ge||i===1?e=!0:kl||Ve&536870912?e=!1:(ua=e=!0,(i===2||i===3||i===6)&&(i=vn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Qh(t,e)):cu(t)}function cu(e){var t=e;do{if(t.flags&32768){Qh(t,ua);return}e=t.return;var a=Jv(t.alternate,t,ca);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);dt===0&&(dt=5)}function Qh(e,t){do{var a=Pv(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);dt=6,Me=null}function Zh(e,t,a,i,r,o,m,E,x,D){var G=X.T,$=P.p;try{P.p=2,X.T=null,lg(e,t,a,i,$,r,o,m,E,x,D)}finally{X.T=G,P.p=$}}function lg(e,t,a,i,r,o,m,E){do Kl();while(ol!==null);if(st&6)throw Error(s(327));var x=e.finishedWork;if(i=e.finishedLanes,x===null)return null;if(e.finishedWork=null,e.finishedLanes=0,x===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var D=x.lanes|x.childLanes;if(D|=gc,F(e,i,D,o,m,E),e===tt&&(Me=tt=null,Ve=0),!(x.subtreeFlags&10256)&&!(x.flags&10256)||ru||(ru=!0,_s=D,Rs=a,cg(Gt,function(){return Kl(),null})),a=(x.flags&15990)!==0,x.subtreeFlags&15990||a?(a=X.T,X.T=null,o=P.p,P.p=2,m=st,st|=4,Kv(e,x),Nh(x,e),jv(Ys,e.containerInfo),bu=!!Vs,Ys=Vs=null,e.current=x,xh(e,x.alternate,x),Ht(),st=m,P.p=o,X.T=a):e.current=x,ru?(ru=!1,ol=e,Yi=i):Kh(e,D),D=e.pendingLanes,D===0&&(Da=null),Ju(x.stateNode),Vn(e),t!==null)for(r=e.onRecoverableError,x=0;x<t.length;x++)D=t[x],r(D.value,{componentStack:D.stack});return Yi&3&&Kl(),D=e.pendingLanes,i&4194218&&D&42?e===Ts?Gi++:(Gi=0,Ts=e):Gi=0,ki(0),null}function Kh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ti(t)))}function Kl(){if(ol!==null){var e=ol,t=_s;_s=0;var a=xe(Yi),i=X.T,r=P.p;try{if(P.p=32>a?32:a,X.T=null,ol===null)var o=!1;else{a=Rs,Rs=null;var m=ol,E=Yi;if(ol=null,Yi=0,st&6)throw Error(s(331));var x=st;if(st|=4,wh(m.current),jh(m,m.current,E,a),st=x,ki(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(ma,m)}catch{}o=!0}return o}finally{P.p=r,X.T=i,Kh(e,t)}}return!1}function $h(e,t,a){t=mn(a,t),t=Kc(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(B(e,2),Vn(e))}function We(e,t,a){if(e.tag===3)$h(e,e,a);else for(;t!==null;){if(t.tag===3){$h(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Da===null||!Da.has(i))){e=mn(a,e),a=Pd(2),i=Ra(t,a,2),i!==null&&(Wd(a,i,t,e),B(i,2),Vn(i));break}}t=t.return}}function Ds(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Iv;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(a)||(Es=!0,r.add(a),e=ig.bind(null,e,t,a),t.then(e,e))}function ig(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,tt===e&&(Ve&a)===a&&(dt===4||dt===3&&(Ve&62914560)===Ve&&300>mt()-xs?!(st&2)&&Ql(e,0):bs|=a,Xl===Ve&&(Xl=0)),Vn(e)}function Fh(e,t){t===0&&(t=C()),e=pa(e,t),e!==null&&(B(e,t),Vn(e))}function rg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fh(e,a)}function ug(e,t){var a=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Fh(e,a)}function cg(e,t){return un(e,t)}var su=null,$l=null,ws=!1,ou=!1,As=!1,fl=0;function Vn(e){e!==$l&&e.next===null&&($l===null?su=$l=e:$l=$l.next=e),ou=!0,ws||(ws=!0,og(sg))}function ki(e,t){if(!As&&ou){As=!0;do for(var a=!1,i=su;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var o=0;else{var m=i.suspendedLanes,E=i.pingedLanes;o=(1<<31-Tt(42|e)+1)-1,o&=r&~(m&~E),o=o&201326677?o&201326677|1:o?o|2:0}o!==0&&(a=!0,Wh(i,o))}else o=Ve,o=Qn(i,i===tt?o:0),!(o&3)||Ln(i,o)||(a=!0,Wh(i,o));i=i.next}while(a);As=!1}}function sg(){ou=ws=!1;var e=0;fl!==0&&(gg()&&(e=fl),fl=0);for(var t=mt(),a=null,i=su;i!==null;){var r=i.next,o=Jh(i,t);o===0?(i.next=null,a===null?su=r:a.next=r,r===null&&($l=a)):(a=i,(e!==0||o&3)&&(ou=!0)),i=r}ki(e)}function Jh(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-Tt(o),E=1<<m,x=r[m];x===-1?(!(E&a)||E&i)&&(r[m]=Wu(E,t)):x<=t&&(e.expiredLanes|=E),o&=~E}if(t=tt,a=Ve,a=Qn(e,e===t?a:0),i=e.callbackNode,a===0||e===t&&nt===2||e.cancelPendingCommit!==null)return i!==null&&i!==null&&cn(i),e.callbackNode=null,e.callbackPriority=0;if(!(a&3)||Ln(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&cn(i),xe(a)){case 2:case 8:a=Ie;break;case 32:a=Gt;break;case 268435456:a=pr;break;default:a=Gt}return i=Ph.bind(null,e),a=un(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&cn(i),e.callbackPriority=2,e.callbackNode=null,2}function Ph(e,t){var a=e.callbackNode;if(Kl()&&e.callbackNode!==a)return null;var i=Ve;return i=Qn(e,e===tt?i:0),i===0?null:(Bh(e,i,t),Jh(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Ph.bind(null,e):null)}function Wh(e,t){if(Kl())return null;Bh(e,t,!0)}function og(e){bg(function(){st&6?un(_e,e):e()})}function Ms(){return fl===0&&(fl=Er()),fl}function Ih(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rr(""+e)}function em(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function fg(e,t,a,i,r){if(t==="submit"&&a&&a.stateNode===r){var o=Ih((r[ve]||null).action),m=i.submitter;m&&(t=(t=m[ve]||null)?Ih(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var E=new jr("action","action",null,i,r);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(fl!==0){var x=m?em(r,m):new FormData(r);Gc(a,{pending:!0,data:x,method:r.method,action:o},null,x)}}else typeof o=="function"&&(E.preventDefault(),x=m?em(r,m):new FormData(r),Gc(a,{pending:!0,data:x,method:r.method,action:o},o,x))},currentTarget:r}]})}}for(var zs=0;zs<Zf.length;zs++){var Ls=Zf[zs],dg=Ls.toLowerCase(),hg=Ls[0].toUpperCase()+Ls.slice(1);Cn(dg,"on"+hg)}Cn(Yf,"onAnimationEnd"),Cn(Gf,"onAnimationIteration"),Cn(kf,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(Dv,"onTransitionRun"),Cn(wv,"onTransitionStart"),Cn(Av,"onTransitionCancel"),Cn(Xf,"onTransitionEnd"),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xi));function tm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var m=i.length-1;0<=m;m--){var E=i[m],x=E.instance,D=E.currentTarget;if(E=E.listener,x!==o&&r.isPropagationStopped())break e;o=E,r.currentTarget=D;try{o(r)}catch(G){Jr(G)}r.currentTarget=null,o=x}else for(m=0;m<i.length;m++){if(E=i[m],x=E.instance,D=E.currentTarget,E=E.listener,x!==o&&r.isPropagationStopped())break e;o=E,r.currentTarget=D;try{o(r)}catch(G){Jr(G)}r.currentTarget=null,o=x}}}}function Ue(e,t){var a=t[yt];a===void 0&&(a=t[yt]=new Set);var i=e+"__bubble";a.has(i)||(nm(t,e,2,!1),a.add(i))}function Us(e,t,a){var i=0;t&&(i|=4),nm(a,e,i,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Hs(e){if(!e[fu]){e[fu]=!0,Xa.forEach(function(a){a!=="selectionchange"&&(mg.has(a)||Us(a,!1,e),Us(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Us("selectionchange",!1,t))}}function nm(e,t,a,i){switch(Tm(t)){case 2:var r=Vg;break;case 8:r=Yg;break;default:r=Js}a=r.bind(null,t,a,e),r=void 0,!ic||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Bs(e,t,a,i,r){var o=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var E=i.stateNode.containerInfo;if(E===r||E.nodeType===8&&E.parentNode===r)break;if(m===4)for(m=i.return;m!==null;){var x=m.tag;if((x===3||x===4)&&(x=m.stateNode.containerInfo,x===r||x.nodeType===8&&x.parentNode===r))return;m=m.return}for(;E!==null;){if(m=Dt(E),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){i=o=m;continue e}E=E.parentNode}}i=i.return}vf(function(){var D=o,G=ac(a),$=[];e:{var L=Qf.get(e);if(L!==void 0){var V=jr,he=e;switch(e){case"keypress":if(Nr(a)===0)break e;case"keydown":case"keyup":V=uv;break;case"focusin":he="focus",V=sc;break;case"focusout":he="blur",V=sc;break;case"beforeblur":case"afterblur":V=sc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=ov;break;case Yf:case Gf:case kf:V=Wp;break;case Xf:V=dv;break;case"scroll":case"scrollend":V=Kp;break;case"wheel":V=mv;break;case"copy":case"cut":case"paste":V=ev;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=xf;break;case"toggle":case"beforetoggle":V=pv}var Te=(t&4)!==0,ht=!Te&&(e==="scroll"||e==="scrollend"),w=Te?L!==null?L+"Capture":null:L;Te=[];for(var j=D,z;j!==null;){var Z=j;if(z=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||z===null||w===null||(Z=si(j,w),Z!=null&&Te.push(Qi(j,Z,z))),ht)break;j=j.return}0<Te.length&&(L=new V(L,he,null,a,G),$.push({event:L,listeners:Te}))}}if(!(t&7)){e:{if(L=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",L&&a!==nc&&(he=a.relatedTarget||a.fromElement)&&(Dt(he)||he[Xe]))break e;if((V||L)&&(L=G.window===G?G:(L=G.ownerDocument)?L.defaultView||L.parentWindow:window,V?(he=a.relatedTarget||a.toElement,V=D,he=he?Dt(he):null,he!==null&&(ht=ne(he),Te=he.tag,he!==ht||Te!==5&&Te!==27&&Te!==6)&&(he=null)):(V=null,he=D),V!==he)){if(Te=bf,Z="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(Te=xf,Z="onPointerLeave",w="onPointerEnter",j="pointer"),ht=V==null?L:Kn(V),z=he==null?L:Kn(he),L=new Te(Z,j+"leave",V,a,G),L.target=ht,L.relatedTarget=z,Z=null,Dt(G)===D&&(Te=new Te(w,j+"enter",he,a,G),Te.target=z,Te.relatedTarget=ht,Z=Te),ht=Z,V&&he)t:{for(Te=V,w=he,j=0,z=Te;z;z=Fl(z))j++;for(z=0,Z=w;Z;Z=Fl(Z))z++;for(;0<j-z;)Te=Fl(Te),j--;for(;0<z-j;)w=Fl(w),z--;for(;j--;){if(Te===w||w!==null&&Te===w.alternate)break t;Te=Fl(Te),w=Fl(w)}Te=null}else Te=null;V!==null&&am($,L,V,Te,!1),he!==null&&ht!==null&&am($,ht,he,Te,!0)}}e:{if(L=D?Kn(D):window,V=L.nodeName&&L.nodeName.toLowerCase(),V==="select"||V==="input"&&L.type==="file")var ue=Df;else if(jf(L))if(wf)ue=Nv;else{ue=Rv;var we=_v}else V=L.nodeName,!V||V.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?D&&tc(D.elementType)&&(ue=Df):ue=Tv;if(ue&&(ue=ue(e,D))){Of($,ue,a,G);break e}we&&we(e,L,D),e==="focusout"&&D&&L.type==="number"&&D.memoizedProps.value!=null&&ec(L,"number",L.value)}switch(we=D?Kn(D):window,e){case"focusin":(jf(we)||we.contentEditable==="true")&&(Cl=we,yc=D,vi=null);break;case"focusout":vi=yc=Cl=null;break;case"mousedown":pc=!0;break;case"contextmenu":case"mouseup":case"dragend":pc=!1,qf($,a,G);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":qf($,a,G)}var pe;if(fc)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Nl?Nf(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(_f&&a.locale!=="ko"&&(Nl||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Nl&&(pe=gf()):(ya=G,rc="value"in ya?ya.value:ya.textContent,Nl=!0)),we=du(D,Se),0<we.length&&(Se=new Sf(Se,e,null,a,G),$.push({event:Se,listeners:we}),pe?Se.data=pe:(pe=Cf(a),pe!==null&&(Se.data=pe)))),(pe=gv?Ev(e,a):bv(e,a))&&(Se=du(D,"onBeforeInput"),0<Se.length&&(we=new Sf("onBeforeInput","beforeinput",null,a,G),$.push({event:we,listeners:Se}),we.data=pe)),fg($,e,D,a,G)}tm($,t)})}function Qi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function du(e,t){for(var a=t+"Capture",i=[];e!==null;){var r=e,o=r.stateNode;r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=si(e,a),r!=null&&i.unshift(Qi(e,r,o)),r=si(e,t),r!=null&&i.push(Qi(e,r,o))),e=e.return}return i}function Fl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function am(e,t,a,i,r){for(var o=t._reactName,m=[];a!==null&&a!==i;){var E=a,x=E.alternate,D=E.stateNode;if(E=E.tag,x!==null&&x===i)break;E!==5&&E!==26&&E!==27||D===null||(x=D,r?(D=si(a,o),D!=null&&m.unshift(Qi(a,D,x))):r||(D=si(a,o),D!=null&&m.push(Qi(a,D,x)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var yg=/\r\n?/g,pg=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(yg,`
+`).replace(pg,"")}function im(e,t){return t=lm(t),lm(e)===t}function hu(){}function Fe(e,t,a,i,r,o){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||_l(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&_l(e,""+i);break;case"className":Sr(e,"class",i);break;case"tabIndex":Sr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Sr(e,a,i);break;case"style":yf(e,i,o);break;case"data":if(t!=="object"){Sr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Rr(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(a==="formAction"?(t!=="input"&&Fe(e,t,"name",r.name,r,null),Fe(e,t,"formEncType",r.formEncType,r,null),Fe(e,t,"formMethod",r.formMethod,r,null),Fe(e,t,"formTarget",r.formTarget,r,null)):(Fe(e,t,"encType",r.encType,r,null),Fe(e,t,"method",r.method,r,null),Fe(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Rr(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=hu);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Rr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Sl(e,"popover",i);break;case"xlinkActuate":Fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Fn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Fn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Fn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Fn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Sl(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Qp.get(a)||a,Sl(e,a,i))}}function qs(e,t,a,i,r,o){switch(a){case"style":yf(e,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?_l(e,i):(typeof i=="number"||typeof i=="bigint")&&_l(e,""+i);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"onClick":i!=null&&(e.onclick=hu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qa.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),o=e[ve]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof i=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,r);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Sl(e,a,i)}}}function zt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var i=!1,r=!1,o;for(o in a)if(a.hasOwnProperty(o)){var m=a[o];if(m!=null)switch(o){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,o,m,a,null)}}r&&Fe(e,t,"srcSet",a.srcSet,a,null),i&&Fe(e,t,"src",a.src,a,null);return;case"input":Ue("invalid",e);var E=o=m=r=null,x=null,D=null;for(i in a)if(a.hasOwnProperty(i)){var G=a[i];if(G!=null)switch(i){case"name":r=G;break;case"type":m=G;break;case"checked":x=G;break;case"defaultChecked":D=G;break;case"value":o=G;break;case"defaultValue":E=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:Fe(e,t,i,G,a,null)}}ff(e,o,E,x,D,m,r,!1),xr(e);return;case"select":Ue("invalid",e),i=m=o=null;for(r in a)if(a.hasOwnProperty(r)&&(E=a[r],E!=null))switch(r){case"value":o=E;break;case"defaultValue":m=E;break;case"multiple":i=E;default:Fe(e,t,r,E,a,null)}t=o,a=m,e.multiple=!!i,t!=null?xl(e,!!i,t,!1):a!=null&&xl(e,!!i,a,!0);return;case"textarea":Ue("invalid",e),o=r=i=null;for(m in a)if(a.hasOwnProperty(m)&&(E=a[m],E!=null))switch(m){case"value":i=E;break;case"defaultValue":r=E;break;case"children":o=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:Fe(e,t,m,E,a,null)}hf(e,i,r,o),xr(e);return;case"option":for(x in a)if(a.hasOwnProperty(x)&&(i=a[x],i!=null))switch(x){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Fe(e,t,x,i,a,null)}return;case"dialog":Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(i=0;i<Xi.length;i++)Ue(Xi[i],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(i=a[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,D,i,a,null)}return;default:if(tc(t)){for(G in a)a.hasOwnProperty(G)&&(i=a[G],i!==void 0&&qs(e,t,G,i,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(i=a[E],i!=null&&Fe(e,t,E,i,a,null))}function vg(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,m=null,E=null,x=null,D=null,G=null;for(V in a){var $=a[V];if(a.hasOwnProperty(V)&&$!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":x=$;default:i.hasOwnProperty(V)||Fe(e,t,V,null,i,$)}}for(var L in i){var V=i[L];if($=a[L],i.hasOwnProperty(L)&&(V!=null||$!=null))switch(L){case"type":o=V;break;case"name":r=V;break;case"checked":D=V;break;case"defaultChecked":G=V;break;case"value":m=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:V!==$&&Fe(e,t,L,V,i,$)}}Iu(e,m,E,x,D,G,o,r);return;case"select":V=m=E=L=null;for(o in a)if(x=a[o],a.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":V=x;default:i.hasOwnProperty(o)||Fe(e,t,o,null,i,x)}for(r in i)if(o=i[r],x=a[r],i.hasOwnProperty(r)&&(o!=null||x!=null))switch(r){case"value":L=o;break;case"defaultValue":E=o;break;case"multiple":m=o;default:o!==x&&Fe(e,t,r,o,i,x)}t=E,a=m,i=V,L!=null?xl(e,!!a,L,!1):!!i!=!!a&&(t!=null?xl(e,!!a,t,!0):xl(e,!!a,a?[]:"",!1));return;case"textarea":V=L=null;for(E in a)if(r=a[E],a.hasOwnProperty(E)&&r!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Fe(e,t,E,null,i,r)}for(m in i)if(r=i[m],o=a[m],i.hasOwnProperty(m)&&(r!=null||o!=null))switch(m){case"value":L=r;break;case"defaultValue":V=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&Fe(e,t,m,r,i,o)}df(e,L,V);return;case"option":for(var he in a)if(L=a[he],a.hasOwnProperty(he)&&L!=null&&!i.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Fe(e,t,he,null,i,L)}for(x in i)if(L=i[x],V=a[x],i.hasOwnProperty(x)&&L!==V&&(L!=null||V!=null))switch(x){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Fe(e,t,x,L,i,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in a)L=a[Te],a.hasOwnProperty(Te)&&L!=null&&!i.hasOwnProperty(Te)&&Fe(e,t,Te,null,i,L);for(D in i)if(L=i[D],V=a[D],i.hasOwnProperty(D)&&L!==V&&(L!=null||V!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:Fe(e,t,D,L,i,V)}return;default:if(tc(t)){for(var ht in a)L=a[ht],a.hasOwnProperty(ht)&&L!==void 0&&!i.hasOwnProperty(ht)&&qs(e,t,ht,void 0,i,L);for(G in i)L=i[G],V=a[G],!i.hasOwnProperty(G)||L===V||L===void 0&&V===void 0||qs(e,t,G,L,i,V);return}}for(var w in a)L=a[w],a.hasOwnProperty(w)&&L!=null&&!i.hasOwnProperty(w)&&Fe(e,t,w,null,i,L);for($ in i)L=i[$],V=a[$],!i.hasOwnProperty($)||L===V||L==null&&V==null||Fe(e,t,$,L,i,V)}var Vs=null,Ys=null;function mu(e){return e.nodeType===9?e:e.ownerDocument}function rm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function um(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Gs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ks=null;function gg(){var e=window.event;return e&&e.type==="popstate"?e===ks?!1:(ks=e,!0):(ks=null,!1)}var cm=typeof setTimeout=="function"?setTimeout:void 0,Eg=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,bg=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Sg)}:cm;function Sg(e){setTimeout(function(){throw e})}function Xs(e,t){var a=t,i=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(i===0){e.removeChild(r),Ii(t);return}i--}else a!=="$"&&a!=="$?"&&a!=="$!"||i++;a=r}while(a);Ii(t)}function Qs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Qs(a),Zn(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function xg(e,t,a,i){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[sn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function _g(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Dn(e.nextSibling),e===null))return null;return e}function Dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function fm(e,t,a){switch(t=mu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}var xn=new Map,dm=new Set;function yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var oa=P.d;P.d={f:Rg,r:Tg,D:Ng,C:Cg,L:jg,m:Og,X:wg,S:Dg,M:Ag};function Rg(){var e=oa.f(),t=uu();return e||t}function Tg(e){var t=wt(e);t!==null&&t.tag===5&&t.type==="form"?qd(t):oa.r(e)}var Jl=typeof document>"u"?null:document;function hm(e,t,a){var i=Jl;if(i&&typeof t=="string"&&t){var r=dn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),dm.has(r)||(dm.add(r),e={rel:e,crossOrigin:a,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),zt(t,"link",e),et(t),i.head.appendChild(t)))}}function Ng(e){oa.D(e),hm("dns-prefetch",e,null)}function Cg(e,t){oa.C(e,t),hm("preconnect",e,t)}function jg(e,t,a){oa.L(e,t,a);var i=Jl;if(i&&e&&t){var r='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+dn(a.imageSizes)+'"]')):r+='[href="'+dn(e)+'"]';var o=r;switch(t){case"style":o=Pl(e);break;case"script":o=Wl(e)}xn.has(o)||(e=I({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),xn.set(o,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Zi(o))||t==="script"&&i.querySelector(Ki(o))||(t=i.createElement("link"),zt(t,"link",e),et(t),i.head.appendChild(t)))}}function Og(e,t){oa.m(e,t);var a=Jl;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+dn(i)+'"][href="'+dn(e)+'"]',o=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Wl(e)}if(!xn.has(o)&&(e=I({rel:"modulepreload",href:e},t),xn.set(o,e),a.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ki(o)))return}i=a.createElement("link"),zt(i,"link",e),et(i),a.head.appendChild(i)}}}function Dg(e,t,a){oa.S(e,t,a);var i=Jl;if(i&&e){var r=on(i).hoistableStyles,o=Pl(e);t=t||"default";var m=r.get(o);if(!m){var E={loading:0,preload:null};if(m=i.querySelector(Zi(o)))E.loading=5;else{e=I({rel:"stylesheet",href:e,"data-precedence":t},a),(a=xn.get(o))&&Zs(e,a);var x=m=i.createElement("link");et(x),zt(x,"link",e),x._p=new Promise(function(D,G){x.onload=D,x.onerror=G}),x.addEventListener("load",function(){E.loading|=1}),x.addEventListener("error",function(){E.loading|=2}),E.loading|=4,pu(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:E},r.set(o,m)}}}function wg(e,t){oa.X(e,t);var a=Jl;if(a&&e){var i=on(a).hoistableScripts,r=Wl(e),o=i.get(r);o||(o=a.querySelector(Ki(r)),o||(e=I({src:e,async:!0},t),(t=xn.get(r))&&Ks(e,t),o=a.createElement("script"),et(o),zt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function Ag(e,t){oa.M(e,t);var a=Jl;if(a&&e){var i=on(a).hoistableScripts,r=Wl(e),o=i.get(r);o||(o=a.querySelector(Ki(r)),o||(e=I({src:e,async:!0,type:"module"},t),(t=xn.get(r))&&Ks(e,t),o=a.createElement("script"),et(o),zt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function mm(e,t,a,i){var r=(r=it.current)?yu(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Pl(a.href),a=on(r).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Pl(a.href);var o=on(r).hoistableStyles,m=o.get(e);if(m||(r=r.ownerDocument||r,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=r.querySelector(Zi(e)))&&!o._p&&(m.instance=o,m.state.loading=5),xn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},xn.set(e,a),o||Mg(r,e,a,m.state))),t&&i===null)throw Error(s(528,""));return m}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Wl(a),a=on(r).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pl(e){return'href="'+dn(e)+'"'}function Zi(e){return'link[rel="stylesheet"]['+e+"]"}function ym(e){return I({},e,{"data-precedence":e.precedence,precedence:null})}function Mg(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),zt(t,"link",a),et(t),e.head.appendChild(t))}function Wl(e){return'[src="'+dn(e)+'"]'}function Ki(e){return"script[async]"+e}function pm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+dn(a.href)+'"]');if(i)return t.instance=i,et(i),i;var r=I({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),et(i),zt(i,"style",r),pu(i,a.precedence,e),t.instance=i;case"stylesheet":r=Pl(a.href);var o=e.querySelector(Zi(r));if(o)return t.state.loading|=4,t.instance=o,et(o),o;i=ym(a),(r=xn.get(r))&&Zs(i,r),o=(e.ownerDocument||e).createElement("link"),et(o);var m=o;return m._p=new Promise(function(E,x){m.onload=E,m.onerror=x}),zt(o,"link",i),t.state.loading|=4,pu(o,a.precedence,e),t.instance=o;case"script":return o=Wl(a.src),(r=e.querySelector(Ki(o)))?(t.instance=r,et(r),r):(i=a,(r=xn.get(o))&&(i=I({},a),Ks(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),et(r),zt(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,pu(i,a.precedence,e));return t.instance}function pu(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,o=r,m=0;m<i.length;m++){var E=i[m];if(E.dataset.precedence===t)o=E;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ks(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vu=null;function vm(e,t,a){if(vu===null){var i=new Map,r=vu=new Map;r.set(a,i)}else r=vu,i=r.get(a),i||(i=new Map,r.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var o=a[r];if(!(o[sn]||o[fe]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var E=i.get(m);E?E.push(o):i.set(m,[o])}}return i}function gm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function zg(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Em(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var $i=null;function Lg(){}function Ug(e,t,a){if($i===null)throw Error(s(475));var i=$i;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=Pl(a.href),o=e.querySelector(Zi(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=gu.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=o,et(o);return}o=e.ownerDocument||e,a=ym(a),(r=xn.get(r))&&Zs(a,r),o=o.createElement("link"),et(o);var m=o;m._p=new Promise(function(E,x){m.onload=E,m.onerror=x}),zt(o,"link",a),t.instance=o}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(i.count++,t=gu.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function Hg(){if($i===null)throw Error(s(475));var e=$i;return e.stylesheets&&e.count===0&&$s(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&$s(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function gu(){if(this.count--,this.count===0){if(this.stylesheets)$s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Eu=null;function $s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Eu=new Map,t.forEach(Bg,e),Eu=null,gu.call(e))}function Bg(e,t){if(!(t.state.loading&4)){var a=Eu.get(e);if(a)var i=a.get(null);else{a=new Map,Eu.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var m=r[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),i=m)}i&&a.set(null,i)}r=t.instance,m=r.getAttribute("data-precedence"),o=a.get(m)||i,o===i&&a.set(null,r),a.set(m,r),this.count++,i=gu.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Fi={$$typeof:_,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function qg(e,t,a,i,r,o,m,E){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=A(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A(0),this.hiddenUpdates=A(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function bm(e,t,a,i,r,o,m,E,x,D,G,$){return e=new qg(e,t,a,m,E,x,D,$),t=1,o===!0&&(t|=24),o=bn(3,null,null,t),e.current=o,o.stateNode=e,t=Nc(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:a,cache:t},rs(o),e}function Sm(e){return e?(e=Dl,e):Dl}function xm(e,t,a,i,r,o){r=Sm(r),i.context===null?i.context=r:i.pendingContext=r,i=_a(t),i.payload={element:a},o=o===void 0?null:o,o!==null&&(i.callback=o),a=Ra(e,i,t),a!==null&&(Xt(a,e,t),Ai(a,e,t))}function _m(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fs(e,t){_m(e,t),(e=e.alternate)&&_m(e,t)}function Rm(e){if(e.tag===13){var t=pa(e,67108864);t!==null&&Xt(t,e,67108864),Fs(e,67108864)}}var bu=!0;function Vg(e,t,a,i){var r=X.T;X.T=null;var o=P.p;try{P.p=2,Js(e,t,a,i)}finally{P.p=o,X.T=r}}function Yg(e,t,a,i){var r=X.T;X.T=null;var o=P.p;try{P.p=8,Js(e,t,a,i)}finally{P.p=o,X.T=r}}function Js(e,t,a,i){if(bu){var r=Ps(i);if(r===null)Bs(e,t,i,Su,a),Nm(e,i);else if(kg(r,e,t,a,i))i.stopPropagation();else if(Nm(e,i),t&4&&-1<Gg.indexOf(e)){for(;r!==null;){var o=wt(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=zn(o.pendingLanes);if(m!==0){var E=o;for(E.pendingLanes|=2,E.entangledLanes|=2;m;){var x=1<<31-Tt(m);E.entanglements[1]|=x,m&=~x}Vn(o),!(st&6)&&(lu=mt()+500,ki(0))}}break;case 13:E=pa(o,2),E!==null&&Xt(E,o,2),uu(),Fs(o,2)}if(o=Ps(i),o===null&&Bs(e,t,i,Su,a),o===r)break;r=o}r!==null&&i.stopPropagation()}else Bs(e,t,i,null,a)}}function Ps(e){return e=ac(e),Ws(e)}var Su=null;function Ws(e){if(Su=null,e=Dt(e),e!==null){var t=ne(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Re(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Su=e,null}function Tm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Kt()){case _e:return 2;case Ie:return 8;case Gt:case ui:return 32;case pr:return 268435456;default:return 32}default:return 32}}var Is=!1,wa=null,Aa=null,Ma=null,Ji=new Map,Pi=new Map,za=[],Gg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Nm(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":Ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(t.pointerId)}}function Wi(e,t,a,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&&(t=wt(t),t!==null&&Rm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function kg(e,t,a,i,r){switch(t){case"focusin":return wa=Wi(wa,e,t,a,i,r),!0;case"dragenter":return Aa=Wi(Aa,e,t,a,i,r),!0;case"mouseover":return Ma=Wi(Ma,e,t,a,i,r),!0;case"pointerover":var o=r.pointerId;return Ji.set(o,Wi(Ji.get(o)||null,e,t,a,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Pi.set(o,Wi(Pi.get(o)||null,e,t,a,i,r)),!0}return!1}function Cm(e){var t=Dt(e.target);if(t!==null){var a=ne(t);if(a!==null){if(t=a.tag,t===13){if(t=Re(a),t!==null){e.blockedOn=t,oe(e.priority,function(){if(a.tag===13){var i=nn(),r=pa(a,i);r!==null&&Xt(r,a,i),Fs(a,i)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ps(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);nc=i,a.target.dispatchEvent(i),nc=null}else return t=wt(a),t!==null&&Rm(t),e.blockedOn=a,!1;t.shift()}return!0}function jm(e,t,a){xu(e)&&a.delete(t)}function Xg(){Is=!1,wa!==null&&xu(wa)&&(wa=null),Aa!==null&&xu(Aa)&&(Aa=null),Ma!==null&&xu(Ma)&&(Ma=null),Ji.forEach(jm),Pi.forEach(jm)}function _u(e,t){e.blockedOn===t&&(e.blockedOn=null,Is||(Is=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Xg)))}var Ru=null;function Om(e){Ru!==e&&(Ru=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ru===e&&(Ru=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(Ws(i||a)===null)continue;break}var o=wt(a);o!==null&&(e.splice(t,3),t-=3,Gc(o,{pending:!0,data:r,method:a.method,action:i},i,r))}}))}function Ii(e){function t(x){return _u(x,e)}wa!==null&&_u(wa,e),Aa!==null&&_u(Aa,e),Ma!==null&&_u(Ma,e),Ji.forEach(t),Pi.forEach(t);for(var a=0;a<za.length;a++){var i=za[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<za.length&&(a=za[0],a.blockedOn===null);)Cm(a),a.blockedOn===null&&za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var r=a[i],o=a[i+1],m=r[ve]||null;if(typeof o=="function")m||Om(a);else if(m){var E=null;if(o&&o.hasAttribute("formAction")){if(r=o,m=o[ve]||null)E=m.formAction;else if(Ws(r)!==null)continue}else E=m.action;typeof E=="function"?a[i+1]=E:(a.splice(i,3),i-=3),Om(a)}}}function eo(e){this._internalRoot=e}Tu.prototype.render=eo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=nn();xm(a,i,e,t,null,null)},Tu.prototype.unmount=eo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Kl(),xm(e.current,2,null,e,null,null),uu(),t[Xe]=null}};function Tu(e){this._internalRoot=e}Tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=re();e={blockedOn:null,target:e,priority:t};for(var a=0;a<za.length&&t!==0&&t<za[a].priority;a++);za.splice(a,0,e),a===0&&Cm(e)}};var Dm=n.version;if(Dm!=="19.0.0")throw Error(s(527,Dm,"19.0.0"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Q(t),e=e!==null?le(e):null,e=e===null?null:e.stateNode,e};var Qg={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:X,findFiberByHostInstance:Dt,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{ma=Nu.inject(Qg),Bt=Nu}catch{}}return tr.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",r=Kd,o=$d,m=Fd,E=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(E=t.unstable_transitionCallbacks)),t=bm(e,1,!1,null,null,a,i,r,o,m,E,null),e[Xe]=t.current,Hs(e.nodeType===8?e.parentNode:e),new eo(t)},tr.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,r="",o=Kd,m=$d,E=Fd,x=null,D=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(x=a.unstable_transitionCallbacks),a.formState!==void 0&&(D=a.formState)),t=bm(e,1,!0,t,a??null,i,r,o,m,E,x,D),t.context=Sm(null),a=t.current,i=nn(),r=_a(i),r.callback=null,Ra(a,r,i),t.current.lanes=i,B(t,i),Vn(t),e[Xe]=t.current,Hs(e),new Tu(t)},tr.version="19.0.0",tr}var Ym;function n1(){if(Ym)return ao.exports;Ym=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),ao.exports=t1(),ao.exports}var a1=n1();const l1="modulepreload",i1=function(l){return"/static/"+l},Gm={},be=function(n,c,s){let u=Promise.resolve();if(c&&c.length>0){document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),y=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));u=Promise.allSettled(c.map(v=>{if(v=i1(v),v in Gm)return;Gm[v]=!0;const p=v.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${b}`))return;const R=document.createElement("link");if(R.rel=p?"stylesheet":l1,p||(R.as="script"),R.crossOrigin="",R.href=v,y&&R.setAttribute("nonce",y),document.head.appendChild(R),p)return new Promise((S,_)=>{R.addEventListener("load",S),R.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${v}`)))})}))}function f(d){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=d,window.dispatchEvent(y),!y.defaultPrevented)throw d}return u.then(d=>{for(const y of d||[])y.status==="rejected"&&f(y.reason);return n().catch(f)})};var uo={exports:{}},co={};/**
+ * @license React
+ * react-compiler-runtime.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var km;function r1(){if(km)return co;km=1;var l=ku().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return co.c=function(n){return l.H.useMemoCache(n)},co}var Xm;function u1(){return Xm||(Xm=1,uo.exports=r1()),uo.exports}var Ke=u1(),nr={},Qm;function c1(){if(Qm)return nr;Qm=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.parse=d,nr.serialize=p;const l=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,c=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,f=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function d(S,_){const O=new f,H=S.length;if(H<2)return O;const U=(_==null?void 0:_.decode)||b;let M=0;do{const q=S.indexOf("=",M);if(q===-1)break;const Y=S.indexOf(";",M),J=Y===-1?H:Y;if(q>J){M=S.lastIndexOf(";",q-1)+1;continue}const k=y(S,M,q),N=v(S,q,k),W=S.slice(k,N);if(O[W]===void 0){let ie=y(S,q+1,J),X=v(S,J,ie);const I=U(S.slice(ie,X));O[W]=I}M=J+1}while(M<H);return O}function y(S,_,O){do{const H=S.charCodeAt(_);if(H!==32&&H!==9)return _}while(++_<O);return O}function v(S,_,O){for(;_>O;){const H=S.charCodeAt(--_);if(H!==32&&H!==9)return _+1}return O}function p(S,_,O){const H=(O==null?void 0:O.encode)||encodeURIComponent;if(!l.test(S))throw new TypeError(`argument name is invalid: ${S}`);const U=H(_);if(!n.test(U))throw new TypeError(`argument val is invalid: ${_}`);let M=S+"="+U;if(!O)return M;if(O.maxAge!==void 0){if(!Number.isInteger(O.maxAge))throw new TypeError(`option maxAge is invalid: ${O.maxAge}`);M+="; Max-Age="+O.maxAge}if(O.domain){if(!c.test(O.domain))throw new TypeError(`option domain is invalid: ${O.domain}`);M+="; Domain="+O.domain}if(O.path){if(!s.test(O.path))throw new TypeError(`option path is invalid: ${O.path}`);M+="; Path="+O.path}if(O.expires){if(!R(O.expires)||!Number.isFinite(O.expires.valueOf()))throw new TypeError(`option expires is invalid: ${O.expires}`);M+="; Expires="+O.expires.toUTCString()}if(O.httpOnly&&(M+="; HttpOnly"),O.secure&&(M+="; Secure"),O.partitioned&&(M+="; Partitioned"),O.priority)switch(typeof O.priority=="string"?O.priority.toLowerCase():void 0){case"low":M+="; Priority=Low";break;case"medium":M+="; Priority=Medium";break;case"high":M+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${O.priority}`)}if(O.sameSite)switch(typeof O.sameSite=="string"?O.sameSite.toLowerCase():O.sameSite){case!0:case"strict":M+="; SameSite=Strict";break;case"lax":M+="; SameSite=Lax";break;case"none":M+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${O.sameSite}`)}return M}function b(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function R(S){return u.call(S)==="[object Date]"}return nr}c1();/**
+ * react-router v7.1.5
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */var Zm="popstate";function s1(l={}){function n(s,u){let{pathname:f,search:d,hash:y}=s.location;return sr("",{pathname:f,search:d,hash:y},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function c(s,u){return typeof u=="string"?u:Va(u)}return f1(n,c,null,l)}function He(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}function Ot(l,n){if(!l){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function o1(){return Math.random().toString(36).substring(2,10)}function Km(l,n){return{usr:l.state,key:l.key,idx:n}}function sr(l,n,c=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof n=="string"?Ga(n):n,state:c,key:n&&n.key||s||o1()}}function Va({pathname:l="/",search:n="",hash:c=""}){return n&&n!=="?"&&(l+=n.charAt(0)==="?"?n:"?"+n),c&&c!=="#"&&(l+=c.charAt(0)==="#"?c:"#"+c),l}function Ga(l){let n={};if(l){let c=l.indexOf("#");c>=0&&(n.hash=l.substring(c),l=l.substring(0,c));let s=l.indexOf("?");s>=0&&(n.search=l.substring(s),l=l.substring(0,s)),l&&(n.pathname=l)}return n}function f1(l,n,c,s={}){let{window:u=document.defaultView,v5Compat:f=!1}=s,d=u.history,y="POP",v=null,p=b();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function b(){return(d.state||{idx:null}).idx}function R(){y="POP";let U=b(),M=U==null?null:U-p;p=U,v&&v({action:y,location:H.location,delta:M})}function S(U,M){y="PUSH";let q=sr(H.location,U,M);p=b()+1;let Y=Km(q,p),J=H.createHref(q);try{d.pushState(Y,"",J)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;u.location.assign(J)}f&&v&&v({action:y,location:H.location,delta:1})}function _(U,M){y="REPLACE";let q=sr(H.location,U,M);p=b();let Y=Km(q,p),J=H.createHref(q);d.replaceState(Y,"",J),f&&v&&v({action:y,location:H.location,delta:0})}function O(U){let M=u.location.origin!=="null"?u.location.origin:u.location.href,q=typeof U=="string"?U:Va(U);return q=q.replace(/ $/,"%20"),He(M,`No window.location.(origin|href) available to create URL for href: ${q}`),new URL(q,M)}let H={get action(){return y},get location(){return l(u,d)},listen(U){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(Zm,R),v=U,()=>{u.removeEventListener(Zm,R),v=null}},createHref(U){return n(u,U)},createURL:O,encodeLocation(U){let M=O(U);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:S,replace:_,go(U){return d.go(U)}};return H}var d1=new Set(["lazy","caseSensitive","path","id","index","children"]);function h1(l){return l.index===!0}function Lu(l,n,c=[],s={}){return l.map((u,f)=>{let d=[...c,String(f)],y=typeof u.id=="string"?u.id:d.join("-");if(He(u.index!==!0||!u.children,"Cannot specify children on an index route"),He(!s[y],`Found a route id collision on id "${y}".  Route id's must be globally unique within Data Router usages`),h1(u)){let v={...u,...n(u),id:y};return s[y]=v,v}else{let v={...u,...n(u),id:y,children:void 0};return s[y]=v,u.children&&(v.children=Lu(u.children,n,d,s)),v}})}function qa(l,n,c="/"){return Au(l,n,c,!1)}function Au(l,n,c,s){let u=typeof n=="string"?Ga(n):n,f=rn(u.pathname||"/",c);if(f==null)return null;let d=Ay(l);y1(d);let y=null;for(let v=0;y==null&&v<d.length;++v){let p=N1(f);y=R1(d[v],p,s)}return y}function m1(l,n){let{route:c,pathname:s,params:u}=l;return{id:c.id,pathname:s,params:u,data:n[c.id],handle:c.handle}}function Ay(l,n=[],c=[],s=""){let u=(f,d,y)=>{let v={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};v.relativePath.startsWith("/")&&(He(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length));let p=Gn([s,v.relativePath]),b=c.concat(v);f.children&&f.children.length>0&&(He(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Ay(f.children,n,b,p)),!(f.path==null&&!f.index)&&n.push({path:p,score:x1(p,f.index),routesMeta:b})};return l.forEach((f,d)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))u(f,d);else for(let v of My(f.path))u(f,d,v)}),n}function My(l){let n=l.split("/");if(n.length===0)return[];let[c,...s]=n,u=c.endsWith("?"),f=c.replace(/\?$/,"");if(s.length===0)return u?[f,""]:[f];let d=My(s.join("/")),y=[];return y.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&y.push(...d),y.map(v=>l.startsWith("/")&&v===""?"/":v)}function y1(l){l.sort((n,c)=>n.score!==c.score?c.score-n.score:_1(n.routesMeta.map(s=>s.childrenIndex),c.routesMeta.map(s=>s.childrenIndex)))}var p1=/^:[\w-]+$/,v1=3,g1=2,E1=1,b1=10,S1=-2,$m=l=>l==="*";function x1(l,n){let c=l.split("/"),s=c.length;return c.some($m)&&(s+=S1),n&&(s+=g1),c.filter(u=>!$m(u)).reduce((u,f)=>u+(p1.test(f)?v1:f===""?E1:b1),s)}function _1(l,n){return l.length===n.length&&l.slice(0,-1).every((s,u)=>s===n[u])?l[l.length-1]-n[n.length-1]:0}function R1(l,n,c=!1){let{routesMeta:s}=l,u={},f="/",d=[];for(let y=0;y<s.length;++y){let v=s[y],p=y===s.length-1,b=f==="/"?n:n.slice(f.length)||"/",R=Uu({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},b),S=v.route;if(!R&&p&&c&&!s[s.length-1].route.index&&(R=Uu({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!R)return null;Object.assign(u,R.params),d.push({params:u,pathname:Gn([f,R.pathname]),pathnameBase:O1(Gn([f,R.pathnameBase])),route:S}),R.pathnameBase!=="/"&&(f=Gn([f,R.pathnameBase]))}return d}function Uu(l,n){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[c,s]=T1(l.path,l.caseSensitive,l.end),u=n.match(c);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),y=u.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:R},S)=>{if(b==="*"){let O=y[S]||"";d=f.slice(0,f.length-O.length).replace(/(.)\/+$/,"$1")}const _=y[S];return R&&!_?p[b]=void 0:p[b]=(_||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:l}}function T1(l,n=!1,c=!0){Ot(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],u="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,y,v)=>(s.push({paramName:y,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(s.push({paramName:"*"}),u+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?u+="\\/*$":l!==""&&l!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,n?void 0:"i"),s]}function N1(l){try{return l.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ot(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),l}}function rn(l,n){if(n==="/")return l;if(!l.toLowerCase().startsWith(n.toLowerCase()))return null;let c=n.endsWith("/")?n.length-1:n.length,s=l.charAt(c);return s&&s!=="/"?null:l.slice(c)||"/"}function C1(l,n="/"){let{pathname:c,search:s="",hash:u=""}=typeof l=="string"?Ga(l):l;return{pathname:c?c.startsWith("/")?c:j1(c,n):n,search:D1(s),hash:w1(u)}}function j1(l,n){let c=n.replace(/\/+$/,"").split("/");return l.split("/").forEach(u=>{u===".."?c.length>1&&c.pop():u!=="."&&c.push(u)}),c.length>1?c.join("/"):"/"}function so(l,n,c,s){return`Cannot include a '${l}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zy(l){return l.filter((n,c)=>c===0||n.route.path&&n.route.path.length>0)}function qo(l){let n=zy(l);return n.map((c,s)=>s===n.length-1?c.pathname:c.pathnameBase)}function Vo(l,n,c,s=!1){let u;typeof l=="string"?u=Ga(l):(u={...l},He(!u.pathname||!u.pathname.includes("?"),so("?","pathname","search",u)),He(!u.pathname||!u.pathname.includes("#"),so("#","pathname","hash",u)),He(!u.search||!u.search.includes("#"),so("#","search","hash",u)));let f=l===""||u.pathname==="",d=f?"/":u.pathname,y;if(d==null)y=c;else{let R=n.length-1;if(!s&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),R-=1;u.pathname=S.join("/")}y=R>=0?n[R]:"/"}let v=C1(u,y),p=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&c.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var Gn=l=>l.join("/").replace(/\/\/+/g,"/"),O1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),D1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,w1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Hu=class{constructor(l,n,c,s=!1){this.status=l,this.statusText=n||"",this.internal=s,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function or(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Ly=["POST","PUT","PATCH","DELETE"],A1=new Set(Ly),M1=["GET",...Ly],z1=new Set(M1),L1=new Set([301,302,303,307,308]),U1=new Set([307,308]),oo={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ai={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Yo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B1=l=>({hasErrorBoundary:!!l.hasErrorBoundary}),Uy="remix-router-transitions",Hy=Symbol("ResetLoaderData");function q1(l){const n=l.window?l.window:typeof window<"u"?window:void 0,c=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";He(l.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=l.mapRouteProperties||B1,u={},f=Lu(l.routes,s,void 0,u),d,y=l.basename||"/",v=l.dataStrategy||X1,p=l.patchRoutesOnNavigation,b={...l.future},R=null,S=new Set,_=null,O=null,H=null,U=l.hydrationData!=null,M=qa(f,l.history.location,y),q=!1,Y=null;if(M==null&&!p){let C=_n(404,{pathname:l.history.location.pathname}),{matches:A,route:B}=iy(f);M=A,Y={[B.id]:C}}M&&!l.hydrationData&&Qn(M,f,l.history.location.pathname).active&&(M=null);let J;if(M)if(M.some(C=>C.route.lazy))J=!1;else if(!M.some(C=>C.route.loader))J=!0;else{let C=l.hydrationData?l.hydrationData.loaderData:null,A=l.hydrationData?l.hydrationData.errors:null;if(A){let B=M.findIndex(F=>A[F.route.id]!==void 0);J=M.slice(0,B+1).every(F=>!jo(F.route,C,A))}else J=M.every(B=>!jo(B.route,C,A))}else{J=!1,M=[];let C=Qn(null,f,l.history.location.pathname);C.active&&C.matches&&(q=!0,M=C.matches)}let k,N={historyAction:l.history.action,location:l.history.location,matches:M,initialized:J,navigation:oo,restoreScrollPosition:l.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:l.hydrationData&&l.hydrationData.loaderData||{},actionData:l.hydrationData&&l.hydrationData.actionData||null,errors:l.hydrationData&&l.hydrationData.errors||Y,fetchers:new Map,blockers:new Map},W="POP",ie=!1,X,I=!1,de=new Map,Ne=null,Ye=!1,Be=!1,ze=new Set,K=new Map,ce=0,ne=-1,Re=new Map,T=new Set,Q=new Map,le=new Map,te=new Set,P=new Map,ge,ye=null;function Je(){if(R=l.history.listen(({action:C,location:A,delta:B})=>{if(ge){ge(),ge=void 0;return}Ot(P.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let F=gr({currentLocation:N.location,nextLocation:A,historyAction:C});if(F&&B!=null){let ae=new Promise(me=>{ge=me});l.history.go(B*-1),Tt(F,{state:"blocked",location:A,proceed(){Tt(F,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ae.then(()=>l.history.go(B))},reset(){let me=new Map(N.blockers);me.set(F,ai),Ee({blockers:me})}});return}return lt(C,A)}),c){t0(n,de);let C=()=>n0(n,de);n.addEventListener("pagehide",C),Ne=()=>n.removeEventListener("pagehide",C)}return N.initialized||lt("POP",N.location,{initialHydration:!0}),k}function Ce(){R&&R(),Ne&&Ne(),S.clear(),X&&X.abort(),N.fetchers.forEach((C,A)=>ui(A)),N.blockers.forEach((C,A)=>Nn(A))}function Le(C){return S.add(C),()=>S.delete(C)}function Ee(C,A={}){N={...N,...C};let B=[],F=[];N.fetchers.forEach((ae,me)=>{ae.state==="idle"&&(te.has(me)?B.push(me):F.push(me))}),te.forEach(ae=>{!N.fetchers.has(ae)&&!K.has(ae)&&B.push(ae)}),[...S].forEach(ae=>ae(N,{deletedFetchers:B,viewTransitionOpts:A.viewTransitionOpts,flushSync:A.flushSync===!0})),B.forEach(ae=>ui(ae)),F.forEach(ae=>N.fetchers.delete(ae))}function Ze(C,A,{flushSync:B}={}){var ee,fe;let F=N.actionData!=null&&N.navigation.formMethod!=null&&wn(N.navigation.formMethod)&&N.navigation.state==="loading"&&((ee=C.state)==null?void 0:ee._isRedirect)!==!0,ae;A.actionData?Object.keys(A.actionData).length>0?ae=A.actionData:ae=null:F?ae=N.actionData:ae=null;let me=A.loaderData?ay(N.loaderData,A.loaderData,A.matches||[],A.errors):N.loaderData,xe=N.blockers;xe.size>0&&(xe=new Map(xe),xe.forEach((ve,Xe)=>xe.set(Xe,ai)));let re=ie===!0||N.navigation.formMethod!=null&&wn(N.navigation.formMethod)&&((fe=C.state)==null?void 0:fe._isRedirect)!==!0;d&&(f=d,d=void 0),Ye||W==="POP"||(W==="PUSH"?l.history.push(C,C.state):W==="REPLACE"&&l.history.replace(C,C.state));let oe;if(W==="POP"){let ve=de.get(N.location.pathname);ve&&ve.has(C.pathname)?oe={currentLocation:N.location,nextLocation:C}:de.has(C.pathname)&&(oe={currentLocation:C,nextLocation:N.location})}else if(I){let ve=de.get(N.location.pathname);ve?ve.add(C.pathname):(ve=new Set([C.pathname]),de.set(N.location.pathname,ve)),oe={currentLocation:N.location,nextLocation:C}}Ee({...A,actionData:ae,loaderData:me,historyAction:W,location:C,initialized:!0,navigation:oo,revalidation:"idle",restoreScrollPosition:zn(C,A.matches||N.matches),preventScrollReset:re,blockers:xe},{viewTransitionOpts:oe,flushSync:B===!0}),W="POP",ie=!1,I=!1,Ye=!1,Be=!1,ye==null||ye.resolve(),ye=null}async function vt(C,A){if(typeof C=="number"){l.history.go(C);return}let B=Co(N.location,N.matches,y,C,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:F,submission:ae,error:me}=Fm(!1,B,A),xe=N.location,re=sr(N.location,F,A&&A.state);re={...re,...l.history.encodeLocation(re)};let oe=A&&A.replace!=null?A.replace:void 0,ee="PUSH";oe===!0?ee="REPLACE":oe===!1||ae!=null&&wn(ae.formMethod)&&ae.formAction===N.location.pathname+N.location.search&&(ee="REPLACE");let fe=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ve=(A&&A.flushSync)===!0,Xe=gr({currentLocation:xe,nextLocation:re,historyAction:ee});if(Xe){Tt(Xe,{state:"blocked",location:re,proceed(){Tt(Xe,{state:"proceeding",proceed:void 0,reset:void 0,location:re}),vt(C,A)},reset(){let yt=new Map(N.blockers);yt.set(Xe,ai),Ee({blockers:yt})}});return}await lt(ee,re,{submission:ae,pendingError:me,preventScrollReset:fe,replace:A&&A.replace,enableViewTransition:A&&A.viewTransition,flushSync:ve})}function it(){ye||(ye=a0()),Kt(),Ee({revalidation:"loading"});let C=ye.promise;return N.navigation.state==="submitting"?C:N.navigation.state==="idle"?(lt(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),C):(lt(W||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:I===!0}),C)}async function lt(C,A,B){X&&X.abort(),X=null,W=C,Ye=(B&&B.startUninterruptedRevalidation)===!0,bl(N.location,N.matches),ie=(B&&B.preventScrollReset)===!0,I=(B&&B.enableViewTransition)===!0;let F=d||f,ae=B&&B.overrideNavigation,me=B!=null&&B.initialHydration&&N.matches&&N.matches.length>0&&!q?N.matches:qa(F,A,y),xe=(B&&B.flushSync)===!0;if(me&&N.initialized&&!Be&&J1(N.location,A)&&!(B&&B.submission&&wn(B.submission.formMethod))){Ze(A,{matches:me},{flushSync:xe});return}let re=Qn(me,F,A.pathname);if(re.active&&re.matches&&(me=re.matches),!me){let{error:at,notFoundMatches:Pe,route:ot}=ci(A.pathname);Ze(A,{matches:Pe,loaderData:{},errors:{[ot.id]:at}},{flushSync:xe});return}X=new AbortController;let oe=Il(l.history,A,X.signal,B&&B.submission),ee;if(B&&B.pendingError)ee=[ml(me).route.id,{type:"error",error:B.pendingError}];else if(B&&B.submission&&wn(B.submission.formMethod)){let at=await De(oe,A,B.submission,me,re.active,{replace:B.replace,flushSync:xe});if(at.shortCircuited)return;if(at.pendingActionResult){let[Pe,ot]=at.pendingActionResult;if(an(ot)&&or(ot.error)&&ot.error.status===404){X=null,Ze(A,{matches:at.matches,loaderData:{},errors:{[Pe]:ot.error}});return}}me=at.matches||me,ee=at.pendingActionResult,ae=fo(A,B.submission),xe=!1,re.active=!1,oe=Il(l.history,oe.url,oe.signal)}let{shortCircuited:fe,matches:ve,loaderData:Xe,errors:yt}=await Rt(oe,A,me,re.active,ae,B&&B.submission,B&&B.fetcherSubmission,B&&B.replace,B&&B.initialHydration===!0,xe,ee);fe||(X=null,Ze(A,{matches:ve||me,...ly(ee),loaderData:Xe,errors:yt}))}async function De(C,A,B,F,ae,me={}){Kt();let xe=I1(A,B);if(Ee({navigation:xe},{flushSync:me.flushSync===!0}),ae){let ee=await Ln(F,A.pathname,C.signal);if(ee.type==="aborted")return{shortCircuited:!0};if(ee.type==="error"){let fe=ml(ee.partialMatches).route.id;return{matches:ee.partialMatches,pendingActionResult:[fe,{type:"error",error:ee.error}]}}else if(ee.matches)F=ee.matches;else{let{notFoundMatches:fe,error:ve,route:Xe}=ci(A.pathname);return{matches:fe,pendingActionResult:[Xe.id,{type:"error",error:ve}]}}}let re,oe=ur(F,A);if(!oe.route.action&&!oe.route.lazy)re={type:"error",error:_n(405,{method:C.method,pathname:A.pathname,routeId:oe.route.id})};else if(re=(await Ht("action",N,C,[oe],F,null))[oe.route.id],C.signal.aborted)return{shortCircuited:!0};if(vl(re)){let ee;return me&&me.replace!=null?ee=me.replace:ee=ey(re.response.headers.get("Location"),new URL(C.url),y)===N.location.pathname+N.location.search,await Ut(C,re,!0,{submission:B,replace:ee}),{shortCircuited:!0}}if(an(re)){let ee=ml(F,oe.route.id);return(me&&me.replace)!==!0&&(W="PUSH"),{matches:F,pendingActionResult:[ee.route.id,re]}}return{matches:F,pendingActionResult:[oe.route.id,re]}}async function Rt(C,A,B,F,ae,me,xe,re,oe,ee,fe){let ve=ae||fo(A,me),Xe=me||xe||uy(ve),yt=!Ye&&!oe;if(F){if(yt){let rt=St(fe);Ee({navigation:ve,...rt!==void 0?{actionData:rt}:{}},{flushSync:ee})}let qe=await Ln(B,A.pathname,C.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let rt=ml(qe.partialMatches).route.id;return{matches:qe.partialMatches,loaderData:{},errors:{[rt]:qe.error}}}else if(qe.matches)B=qe.matches;else{let{error:rt,notFoundMatches:$t,route:Za}=ci(A.pathname);return{matches:$t,loaderData:{},errors:{[Za.id]:rt}}}}let at=d||f,[Pe,ot]=Pm(l.history,N,B,Xe,A,oe===!0,Be,ze,te,Q,T,at,y,fe);if(ne=++ce,Pe.length===0&&ot.length===0){let qe=ma();return Ze(A,{matches:B,loaderData:{},errors:fe&&an(fe[1])?{[fe[0]]:fe[1].error}:null,...ly(fe),...qe?{fetchers:new Map(N.fetchers)}:{}},{flushSync:ee}),{shortCircuited:!0}}if(yt){let qe={};if(!F){qe.navigation=ve;let rt=St(fe);rt!==void 0&&(qe.actionData=rt)}ot.length>0&&(qe.fetchers=Pt(ot)),Ee(qe,{flushSync:ee})}ot.forEach(qe=>{Mn(qe.key),qe.controller&&K.set(qe.key,qe.controller)});let sn=()=>ot.forEach(qe=>Mn(qe.key));X&&X.signal.addEventListener("abort",sn);let{loaderResults:Zn,fetcherResults:Dt}=await mt(N,B,Pe,ot,C);if(C.signal.aborted)return{shortCircuited:!0};X&&X.signal.removeEventListener("abort",sn),ot.forEach(qe=>K.delete(qe.key));let wt=Cu(Zn);if(wt)return await Ut(C,wt.result,!0,{replace:re}),{shortCircuited:!0};if(wt=Cu(Dt),wt)return T.add(wt.key),await Ut(C,wt.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:Kn,errors:on}=ny(N,B,Zn,fe,ot,Dt);oe&&N.errors&&(on={...N.errors,...on});let et=ma(),Xa=Bt(ne),Qa=et||Xa||ot.length>0;return{matches:B,loaderData:Kn,errors:on,...Qa?{fetchers:new Map(N.fetchers)}:{}}}function St(C){if(C&&!an(C[1]))return{[C[0]]:C[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Pt(C){return C.forEach(A=>{let B=N.fetchers.get(A.key),F=ar(void 0,B?B.data:void 0);N.fetchers.set(A.key,F)}),new Map(N.fetchers)}async function Zt(C,A,B,F){Mn(C);let ae=(F&&F.flushSync)===!0,me=d||f,xe=Co(N.location,N.matches,y,B,A,F==null?void 0:F.relative),re=qa(me,xe,y),oe=Qn(re,me,xe);if(oe.active&&oe.matches&&(re=oe.matches),!re){Ie(C,A,_n(404,{pathname:xe}),{flushSync:ae});return}let{path:ee,submission:fe,error:ve}=Fm(!0,xe,F);if(ve){Ie(C,A,ve,{flushSync:ae});return}let Xe=ur(re,ee),yt=(F&&F.preventScrollReset)===!0;if(fe&&wn(fe.formMethod)){await un(C,A,ee,Xe,re,oe.active,ae,yt,fe);return}Q.set(C,{routeId:A,path:ee}),await cn(C,A,ee,Xe,re,oe.active,ae,yt,fe)}async function un(C,A,B,F,ae,me,xe,re,oe){Kt(),Q.delete(C);function ee(ut){if(!ut.route.action&&!ut.route.lazy){let $n=_n(405,{method:oe.formMethod,pathname:B,routeId:A});return Ie(C,A,$n,{flushSync:xe}),!0}return!1}if(!me&&ee(F))return;let fe=N.fetchers.get(C);_e(C,e0(oe,fe),{flushSync:xe});let ve=new AbortController,Xe=Il(l.history,B,ve.signal,oe);if(me){let ut=await Ln(ae,B,Xe.signal);if(ut.type==="aborted")return;if(ut.type==="error"){Ie(C,A,ut.error,{flushSync:xe});return}else if(ut.matches){if(ae=ut.matches,F=ur(ae,B),ee(F))return}else{Ie(C,A,_n(404,{pathname:B}),{flushSync:xe});return}}K.set(C,ve);let yt=ce,Pe=(await Ht("action",N,Xe,[F],ae,C))[F.route.id];if(Xe.signal.aborted){K.get(C)===ve&&K.delete(C);return}if(te.has(C)){if(vl(Pe)||an(Pe)){_e(C,Ha(void 0));return}}else{if(vl(Pe))if(K.delete(C),ne>yt){_e(C,Ha(void 0));return}else return T.add(C),_e(C,ar(oe)),Ut(Xe,Pe,!1,{fetcherSubmission:oe,preventScrollReset:re});if(an(Pe)){Ie(C,A,Pe.error);return}}let ot=N.navigation.location||N.location,sn=Il(l.history,ot,ve.signal),Zn=d||f,Dt=N.navigation.state!=="idle"?qa(Zn,N.navigation.location,y):N.matches;He(Dt,"Didn't find any matches after fetcher action");let wt=++ce;Re.set(C,wt);let Kn=ar(oe,Pe.data);N.fetchers.set(C,Kn);let[on,et]=Pm(l.history,N,Dt,oe,ot,!1,Be,ze,te,Q,T,Zn,y,[F.route.id,Pe]);et.filter(ut=>ut.key!==C).forEach(ut=>{let $n=ut.key,br=N.fetchers.get($n),Sl=ar(void 0,br?br.data:void 0);N.fetchers.set($n,Sl),Mn($n),ut.controller&&K.set($n,ut.controller)}),Ee({fetchers:new Map(N.fetchers)});let Xa=()=>et.forEach(ut=>Mn(ut.key));ve.signal.addEventListener("abort",Xa);let{loaderResults:Qa,fetcherResults:qe}=await mt(N,Dt,on,et,sn);if(ve.signal.aborted)return;ve.signal.removeEventListener("abort",Xa),Re.delete(C),K.delete(C),et.forEach(ut=>K.delete(ut.key));let rt=Cu(Qa);if(rt)return Ut(sn,rt.result,!1,{preventScrollReset:re});if(rt=Cu(qe),rt)return T.add(rt.key),Ut(sn,rt.result,!1,{preventScrollReset:re});let{loaderData:$t,errors:Za}=ny(N,Dt,Qa,void 0,et,qe);if(N.fetchers.has(C)){let ut=Ha(Pe.data);N.fetchers.set(C,ut)}Bt(wt),N.navigation.state==="loading"&&wt>ne?(He(W,"Expected pending action"),X&&X.abort(),Ze(N.navigation.location,{matches:Dt,loaderData:$t,errors:Za,fetchers:new Map(N.fetchers)})):(Ee({errors:Za,loaderData:ay(N.loaderData,$t,Dt,Za),fetchers:new Map(N.fetchers)}),Be=!1)}async function cn(C,A,B,F,ae,me,xe,re,oe){let ee=N.fetchers.get(C);_e(C,ar(oe,ee?ee.data:void 0),{flushSync:xe});let fe=new AbortController,ve=Il(l.history,B,fe.signal);if(me){let Pe=await Ln(ae,B,ve.signal);if(Pe.type==="aborted")return;if(Pe.type==="error"){Ie(C,A,Pe.error,{flushSync:xe});return}else if(Pe.matches)ae=Pe.matches,F=ur(ae,B);else{Ie(C,A,_n(404,{pathname:B}),{flushSync:xe});return}}K.set(C,fe);let Xe=ce,at=(await Ht("loader",N,ve,[F],ae,C))[F.route.id];if(K.get(C)===fe&&K.delete(C),!ve.signal.aborted){if(te.has(C)){_e(C,Ha(void 0));return}if(vl(at))if(ne>Xe){_e(C,Ha(void 0));return}else{T.add(C),await Ut(ve,at,!1,{preventScrollReset:re});return}if(an(at)){Ie(C,A,at.error);return}_e(C,Ha(at.data))}}async function Ut(C,A,B,{submission:F,fetcherSubmission:ae,preventScrollReset:me,replace:xe}={}){A.response.headers.has("X-Remix-Revalidate")&&(Be=!0);let re=A.response.headers.get("Location");He(re,"Expected a Location header on the redirect Response"),re=ey(re,new URL(C.url),y);let oe=sr(N.location,re,{_isRedirect:!0});if(c){let at=!1;if(A.response.headers.has("X-Remix-Reload-Document"))at=!0;else if(Yo.test(re)){const Pe=l.history.createURL(re);at=Pe.origin!==n.location.origin||rn(Pe.pathname,y)==null}if(at){xe?n.location.replace(re):n.location.assign(re);return}}X=null;let ee=xe===!0||A.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:fe,formAction:ve,formEncType:Xe}=N.navigation;!F&&!ae&&fe&&ve&&Xe&&(F=uy(N.navigation));let yt=F||ae;if(U1.has(A.response.status)&&yt&&wn(yt.formMethod))await lt(ee,oe,{submission:{...yt,formAction:re},preventScrollReset:me||ie,enableViewTransition:B?I:void 0});else{let at=fo(oe,F);await lt(ee,oe,{overrideNavigation:at,fetcherSubmission:ae,preventScrollReset:me||ie,enableViewTransition:B?I:void 0})}}async function Ht(C,A,B,F,ae,me){let xe,re={};try{xe=await Q1(v,C,A,B,F,ae,me,u,s)}catch(oe){return F.forEach(ee=>{re[ee.route.id]={type:"error",error:oe}}),re}for(let[oe,ee]of Object.entries(xe))if(P1(ee)){let fe=ee.result;re[oe]={type:"redirect",response:$1(fe,B,oe,ae,y)}}else re[oe]=await K1(ee);return re}async function mt(C,A,B,F,ae){let me=Ht("loader",C,ae,B,A,null),xe=Promise.all(F.map(async ee=>{if(ee.matches&&ee.match&&ee.controller){let ve=(await Ht("loader",C,Il(l.history,ee.path,ee.controller.signal),[ee.match],ee.matches,ee.key))[ee.match.route.id];return{[ee.key]:ve}}else return Promise.resolve({[ee.key]:{type:"error",error:_n(404,{pathname:ee.path})}})})),re=await me,oe=(await xe).reduce((ee,fe)=>Object.assign(ee,fe),{});return{loaderResults:re,fetcherResults:oe}}function Kt(){Be=!0,Q.forEach((C,A)=>{K.has(A)&&ze.add(A),Mn(A)})}function _e(C,A,B={}){N.fetchers.set(C,A),Ee({fetchers:new Map(N.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function Ie(C,A,B,F={}){let ae=ml(N.matches,A);ui(C),Ee({errors:{[ae.route.id]:B},fetchers:new Map(N.fetchers)},{flushSync:(F&&F.flushSync)===!0})}function Gt(C){return le.set(C,(le.get(C)||0)+1),te.has(C)&&te.delete(C),N.fetchers.get(C)||H1}function ui(C){let A=N.fetchers.get(C);K.has(C)&&!(A&&A.state==="loading"&&Re.has(C))&&Mn(C),Q.delete(C),Re.delete(C),T.delete(C),te.delete(C),ze.delete(C),N.fetchers.delete(C)}function pr(C){let A=(le.get(C)||0)-1;A<=0?(le.delete(C),te.add(C)):le.set(C,A),Ee({fetchers:new Map(N.fetchers)})}function Mn(C){let A=K.get(C);A&&(A.abort(),K.delete(C))}function vr(C){for(let A of C){let B=Gt(A),F=Ha(B.data);N.fetchers.set(A,F)}}function ma(){let C=[],A=!1;for(let B of T){let F=N.fetchers.get(B);He(F,`Expected fetcher: ${B}`),F.state==="loading"&&(T.delete(B),C.push(B),A=!0)}return vr(C),A}function Bt(C){let A=[];for(let[B,F]of Re)if(F<C){let ae=N.fetchers.get(B);He(ae,`Expected fetcher: ${B}`),ae.state==="loading"&&(Mn(B),Re.delete(B),A.push(B))}return vr(A),A.length>0}function Ju(C,A){let B=N.blockers.get(C)||ai;return P.get(C)!==A&&P.set(C,A),B}function Nn(C){N.blockers.delete(C),P.delete(C)}function Tt(C,A){let B=N.blockers.get(C)||ai;He(B.state==="unblocked"&&A.state==="blocked"||B.state==="blocked"&&A.state==="blocked"||B.state==="blocked"&&A.state==="proceeding"||B.state==="blocked"&&A.state==="unblocked"||B.state==="proceeding"&&A.state==="unblocked",`Invalid blocker state transition: ${B.state} -> ${A.state}`);let F=new Map(N.blockers);F.set(C,A),Ee({blockers:F})}function gr({currentLocation:C,nextLocation:A,historyAction:B}){if(P.size===0)return;P.size>1&&Ot(!1,"A router only supports one blocker at a time");let F=Array.from(P.entries()),[ae,me]=F[F.length-1],xe=N.blockers.get(ae);if(!(xe&&xe.state==="proceeding")&&me({currentLocation:C,nextLocation:A,historyAction:B}))return ae}function ci(C){let A=_n(404,{pathname:C}),B=d||f,{matches:F,route:ae}=iy(B);return{notFoundMatches:F,route:ae,error:A}}function Pu(C,A,B){if(_=C,H=A,O=B||null,!U&&N.navigation===oo){U=!0;let F=zn(N.location,N.matches);F!=null&&Ee({restoreScrollPosition:F})}return()=>{_=null,H=null,O=null}}function ka(C,A){return O&&O(C,A.map(F=>m1(F,N.loaderData)))||C.key}function bl(C,A){if(_&&H){let B=ka(C,A);_[B]=H()}}function zn(C,A){if(_){let B=ka(C,A),F=_[B];if(typeof F=="number")return F}return null}function Qn(C,A,B){if(p)if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Au(A,B,y,!0)}}else return{active:!0,matches:Au(A,B,y,!0)||[]};return{active:!1,matches:null}}async function Ln(C,A,B){if(!p)return{type:"success",matches:C};let F=C;for(;;){let ae=d==null,me=d||f,xe=u;try{await p({path:A,matches:F,patch:(ee,fe)=>{B.aborted||Im(ee,fe,me,xe,s)}})}catch(ee){return{type:"error",error:ee,partialMatches:F}}finally{ae&&!B.aborted&&(f=[...f])}if(B.aborted)return{type:"aborted"};let re=qa(me,A,y);if(re)return{type:"success",matches:re};let oe=Au(me,A,y,!0);if(!oe||F.length===oe.length&&F.every((ee,fe)=>ee.route.id===oe[fe].route.id))return{type:"success",matches:null};F=oe}}function Wu(C){u={},d=Lu(C,s,void 0,u)}function Er(C,A){let B=d==null;Im(C,A,d||f,u,s),B&&(f=[...f],Ee({}))}return k={get basename(){return y},get future(){return b},get state(){return N},get routes(){return f},get window(){return n},initialize:Je,subscribe:Le,enableScrollRestoration:Pu,navigate:vt,fetch:Zt,revalidate:it,createHref:C=>l.history.createHref(C),encodeLocation:C=>l.history.encodeLocation(C),getFetcher:Gt,deleteFetcher:pr,dispose:Ce,getBlocker:Ju,deleteBlocker:Nn,patchRoutes:Er,_internalFetchControllers:K,_internalSetRoutes:Wu},k}function V1(l){return l!=null&&("formData"in l&&l.formData!=null||"body"in l&&l.body!==void 0)}function Co(l,n,c,s,u,f){let d,y;if(u){d=[];for(let p of n)if(d.push(p),p.route.id===u){y=p;break}}else d=n,y=n[n.length-1];let v=Vo(s||".",qo(d),rn(l.pathname,c)||l.pathname,f==="path");if(s==null&&(v.search=l.search,v.hash=l.hash),(s==null||s===""||s===".")&&y){let p=Go(v.search);if(y.route.index&&!p)v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&p){let b=new URLSearchParams(v.search),R=b.getAll("index");b.delete("index"),R.filter(_=>_).forEach(_=>b.append("index",_));let S=b.toString();v.search=S?`?${S}`:""}}return c!=="/"&&(v.pathname=v.pathname==="/"?c:Gn([c,v.pathname])),Va(v)}function Fm(l,n,c){if(!c||!V1(c))return{path:n};if(c.formMethod&&!W1(c.formMethod))return{path:n,error:_n(405,{method:c.formMethod})};let s=()=>({path:n,error:_n(400,{type:"invalid-body"})}),f=(c.formMethod||"get").toUpperCase(),d=qy(n);if(c.body!==void 0){if(c.formEncType==="text/plain"){if(!wn(f))return s();let R=typeof c.body=="string"?c.body:c.body instanceof FormData||c.body instanceof URLSearchParams?Array.from(c.body.entries()).reduce((S,[_,O])=>`${S}${_}=${O}
+`,""):String(c.body);return{path:n,submission:{formMethod:f,formAction:d,formEncType:c.formEncType,formData:void 0,json:void 0,text:R}}}else if(c.formEncType==="application/json"){if(!wn(f))return s();try{let R=typeof c.body=="string"?JSON.parse(c.body):c.body;return{path:n,submission:{formMethod:f,formAction:d,formEncType:c.formEncType,formData:void 0,json:R,text:void 0}}}catch{return s()}}}He(typeof FormData=="function","FormData is not available in this environment");let y,v;if(c.formData)y=Oo(c.formData),v=c.formData;else if(c.body instanceof FormData)y=Oo(c.body),v=c.body;else if(c.body instanceof URLSearchParams)y=c.body,v=ty(y);else if(c.body==null)y=new URLSearchParams,v=new FormData;else try{y=new URLSearchParams(c.body),v=ty(y)}catch{return s()}let p={formMethod:f,formAction:d,formEncType:c&&c.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(wn(p.formMethod))return{path:n,submission:p};let b=Ga(n);return l&&b.search&&Go(b.search)&&y.append("index",""),b.search=`?${y}`,{path:Va(b),submission:p}}function Jm(l,n,c=!1){let s=l.findIndex(u=>u.route.id===n);return s>=0?l.slice(0,c?s+1:s):l}function Pm(l,n,c,s,u,f,d,y,v,p,b,R,S,_){let O=_?an(_[1])?_[1].error:_[1].data:void 0,H=l.createURL(n.location),U=l.createURL(u),M=c;f&&n.errors?M=Jm(c,Object.keys(n.errors)[0],!0):_&&an(_[1])&&(M=Jm(c,_[0]));let q=_?_[1].statusCode:void 0,Y=q&&q>=400,J=M.filter((N,W)=>{let{route:ie}=N;if(ie.lazy)return!0;if(ie.loader==null)return!1;if(f)return jo(ie,n.loaderData,n.errors);if(Y1(n.loaderData,n.matches[W],N))return!0;let X=n.matches[W],I=N;return Wm(N,{currentUrl:H,currentParams:X.params,nextUrl:U,nextParams:I.params,...s,actionResult:O,actionStatus:q,defaultShouldRevalidate:Y?!1:d||H.pathname+H.search===U.pathname+U.search||H.search!==U.search||G1(X,I)})}),k=[];return p.forEach((N,W)=>{if(f||!c.some(Ne=>Ne.route.id===N.routeId)||v.has(W))return;let ie=qa(R,N.path,S);if(!ie){k.push({key:W,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let X=n.fetchers.get(W),I=ur(ie,N.path),de=!1;b.has(W)?de=!1:y.has(W)?(y.delete(W),de=!0):X&&X.state!=="idle"&&X.data===void 0?de=d:de=Wm(I,{currentUrl:H,currentParams:n.matches[n.matches.length-1].params,nextUrl:U,nextParams:c[c.length-1].params,...s,actionResult:O,actionStatus:q,defaultShouldRevalidate:Y?!1:d}),de&&k.push({key:W,routeId:N.routeId,path:N.path,matches:ie,match:I,controller:new AbortController})}),[J,k]}function jo(l,n,c){if(l.lazy)return!0;if(!l.loader)return!1;let s=n!=null&&n[l.id]!==void 0,u=c!=null&&c[l.id]!==void 0;return!s&&u?!1:typeof l.loader=="function"&&l.loader.hydrate===!0?!0:!s&&!u}function Y1(l,n,c){let s=!n||c.route.id!==n.route.id,u=!l.hasOwnProperty(c.route.id);return s||u}function G1(l,n){let c=l.route.path;return l.pathname!==n.pathname||c!=null&&c.endsWith("*")&&l.params["*"]!==n.params["*"]}function Wm(l,n){if(l.route.shouldRevalidate){let c=l.route.shouldRevalidate(n);if(typeof c=="boolean")return c}return n.defaultShouldRevalidate}function Im(l,n,c,s,u){let f;if(l){let v=s[l];He(v,`No route found to patch children into: routeId = ${l}`),v.children||(v.children=[]),f=v.children}else f=c;let d=n.filter(v=>!f.some(p=>By(v,p))),y=Lu(d,u,[l||"_","patch",String((f==null?void 0:f.length)||"0")],s);f.push(...y)}function By(l,n){return"id"in l&&"id"in n&&l.id===n.id?!0:l.index===n.index&&l.path===n.path&&l.caseSensitive===n.caseSensitive?(!l.children||l.children.length===0)&&(!n.children||n.children.length===0)?!0:l.children.every((c,s)=>{var u;return(u=n.children)==null?void 0:u.some(f=>By(c,f))}):!1}async function k1(l,n,c){if(!l.lazy)return;let s=await l.lazy();if(!l.lazy)return;let u=c[l.id];He(u,"No route found in manifest");let f={};for(let d in s){let v=u[d]!==void 0&&d!=="hasErrorBoundary";Ot(!v,`Route "${u.id}" has a static property "${d}" defined but its lazy function is also returning a value for this property. The lazy route property "${d}" will be ignored.`),!v&&!d1.has(d)&&(f[d]=s[d])}Object.assign(u,f),Object.assign(u,{...n(u),lazy:void 0})}async function X1({matches:l}){let n=l.filter(s=>s.shouldLoad);return(await Promise.all(n.map(s=>s.resolve()))).reduce((s,u,f)=>Object.assign(s,{[n[f].route.id]:u}),{})}async function Q1(l,n,c,s,u,f,d,y,v,p){let b=f.map(_=>_.route.lazy?k1(_.route,v,y):void 0),R=f.map((_,O)=>{let H=b[O],U=u.some(q=>q.route.id===_.route.id);return{..._,shouldLoad:U,resolve:async q=>(q&&s.method==="GET"&&(_.route.lazy||_.route.loader)&&(U=!0),U?Z1(n,s,_,H,q,p):Promise.resolve({type:"data",result:void 0}))}}),S=await l({matches:R,request:s,params:f[0].params,fetcherKey:d,context:p});try{await Promise.all(b)}catch{}return S}async function Z1(l,n,c,s,u,f){let d,y,v=p=>{let b,R=new Promise((O,H)=>b=H);y=()=>b(),n.signal.addEventListener("abort",y);let S=O=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${c.route.id}]`)):p({request:n,params:c.params,context:f},...O!==void 0?[O]:[]),_=(async()=>{try{return{type:"data",result:await(u?u(H=>S(H)):S())}}catch(O){return{type:"error",result:O}}})();return Promise.race([_,R])};try{let p=c.route[l];if(s)if(p){let b,[R]=await Promise.all([v(p).catch(S=>{b=S}),s]);if(b!==void 0)throw b;d=R}else if(await s,p=c.route[l],p)d=await v(p);else if(l==="action"){let b=new URL(n.url),R=b.pathname+b.search;throw _n(405,{method:n.method,pathname:R,routeId:c.route.id})}else return{type:"data",result:void 0};else if(p)d=await v(p);else{let b=new URL(n.url),R=b.pathname+b.search;throw _n(404,{pathname:R})}}catch(p){return{type:"error",result:p}}finally{y&&n.signal.removeEventListener("abort",y)}return d}async function K1(l){var s,u,f,d,y,v;let{result:n,type:c}=l;if(Vy(n)){let p;try{let b=n.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?n.body==null?p=null:p=await n.json():p=await n.text()}catch(b){return{type:"error",error:b}}return c==="error"?{type:"error",error:new Hu(n.status,n.statusText,p),statusCode:n.status,headers:n.headers}:{type:"data",data:p,statusCode:n.status,headers:n.headers}}return c==="error"?ry(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(s=n.init)==null?void 0:s.status,headers:(u=n.init)!=null&&u.headers?new Headers(n.init.headers):void 0}:{type:"error",error:new Hu(((f=n.init)==null?void 0:f.status)||500,void 0,n.data),statusCode:or(n)?n.status:void 0,headers:(d=n.init)!=null&&d.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:or(n)?n.status:void 0}:ry(n)?{type:"data",data:n.data,statusCode:(y=n.init)==null?void 0:y.status,headers:(v=n.init)!=null&&v.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function $1(l,n,c,s,u){let f=l.headers.get("Location");if(He(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Yo.test(f)){let d=s.slice(0,s.findIndex(y=>y.route.id===c)+1);f=Co(new URL(n.url),d,u,f),l.headers.set("Location",f)}return l}function ey(l,n,c){if(Yo.test(l)){let s=l,u=s.startsWith("//")?new URL(n.protocol+s):new URL(s),f=rn(u.pathname,c)!=null;if(u.origin===n.origin&&f)return u.pathname+u.search+u.hash}return l}function Il(l,n,c,s){let u=l.createURL(qy(n)).toString(),f={signal:c};if(s&&wn(s.formMethod)){let{formMethod:d,formEncType:y}=s;f.method=d.toUpperCase(),y==="application/json"?(f.headers=new Headers({"Content-Type":y}),f.body=JSON.stringify(s.json)):y==="text/plain"?f.body=s.text:y==="application/x-www-form-urlencoded"&&s.formData?f.body=Oo(s.formData):f.body=s.formData}return new Request(u,f)}function Oo(l){let n=new URLSearchParams;for(let[c,s]of l.entries())n.append(c,typeof s=="string"?s:s.name);return n}function ty(l){let n=new FormData;for(let[c,s]of l.entries())n.append(c,s);return n}function F1(l,n,c,s=!1,u=!1){let f={},d=null,y,v=!1,p={},b=c&&an(c[1])?c[1].error:void 0;return l.forEach(R=>{if(!(R.route.id in n))return;let S=R.route.id,_=n[S];if(He(!vl(_),"Cannot handle redirect results in processLoaderData"),an(_)){let O=_.error;if(b!==void 0&&(O=b,b=void 0),d=d||{},u)d[S]=O;else{let H=ml(l,S);d[H.route.id]==null&&(d[H.route.id]=O)}s||(f[S]=Hy),v||(v=!0,y=or(_.error)?_.error.status:500),_.headers&&(p[S]=_.headers)}else f[S]=_.data,_.statusCode&&_.statusCode!==200&&!v&&(y=_.statusCode),_.headers&&(p[S]=_.headers)}),b!==void 0&&c&&(d={[c[0]]:b},f[c[0]]=void 0),{loaderData:f,errors:d,statusCode:y||200,loaderHeaders:p}}function ny(l,n,c,s,u,f){let{loaderData:d,errors:y}=F1(n,c,s);return u.forEach(v=>{let{key:p,match:b,controller:R}=v,S=f[p];if(He(S,"Did not find corresponding fetcher result"),!(R&&R.signal.aborted))if(an(S)){let _=ml(l.matches,b==null?void 0:b.route.id);y&&y[_.route.id]||(y={...y,[_.route.id]:S.error}),l.fetchers.delete(p)}else if(vl(S))He(!1,"Unhandled fetcher revalidation redirect");else{let _=Ha(S.data);l.fetchers.set(p,_)}}),{loaderData:d,errors:y}}function ay(l,n,c,s){let u=Object.entries(n).filter(([,f])=>f!==Hy).reduce((f,[d,y])=>(f[d]=y,f),{});for(let f of c){let d=f.route.id;if(!n.hasOwnProperty(d)&&l.hasOwnProperty(d)&&f.route.loader&&(u[d]=l[d]),s&&s.hasOwnProperty(d))break}return u}function ly(l){return l?an(l[1])?{actionData:{}}:{actionData:{[l[0]]:l[1].data}}:{}}function ml(l,n){return(n?l.slice(0,l.findIndex(s=>s.route.id===n)+1):[...l]).reverse().find(s=>s.route.hasErrorBoundary===!0)||l[0]}function iy(l){let n=l.length===1?l[0]:l.find(c=>c.index||!c.path||c.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function _n(l,{pathname:n,routeId:c,method:s,type:u,message:f}={}){let d="Unknown Server Error",y="Unknown @remix-run/router error";return l===400?(d="Bad Request",s&&n&&c?y=`You made a ${s} request to "${n}" but did not provide a \`loader\` for route "${c}", so there is no way to handle the request.`:u==="invalid-body"&&(y="Unable to encode submission body")):l===403?(d="Forbidden",y=`Route "${c}" does not match URL "${n}"`):l===404?(d="Not Found",y=`No route matches URL "${n}"`):l===405&&(d="Method Not Allowed",s&&n&&c?y=`You made a ${s.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${c}", so there is no way to handle the request.`:s&&(y=`Invalid request method "${s.toUpperCase()}"`)),new Hu(l||500,d,new Error(y),!0)}function Cu(l){let n=Object.entries(l);for(let c=n.length-1;c>=0;c--){let[s,u]=n[c];if(vl(u))return{key:s,result:u}}}function qy(l){let n=typeof l=="string"?Ga(l):l;return Va({...n,hash:""})}function J1(l,n){return l.pathname!==n.pathname||l.search!==n.search?!1:l.hash===""?n.hash!=="":l.hash===n.hash?!0:n.hash!==""}function P1(l){return Vy(l.result)&&L1.has(l.result.status)}function an(l){return l.type==="error"}function vl(l){return(l&&l.type)==="redirect"}function ry(l){return typeof l=="object"&&l!=null&&"type"in l&&"data"in l&&"init"in l&&l.type==="DataWithResponseInit"}function Vy(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.headers=="object"&&typeof l.body<"u"}function W1(l){return z1.has(l.toUpperCase())}function wn(l){return A1.has(l.toUpperCase())}function Go(l){return new URLSearchParams(l).getAll("index").some(n=>n==="")}function ur(l,n){let c=typeof n=="string"?Ga(n).search:n.search;if(l[l.length-1].route.index&&Go(c||""))return l[l.length-1];let s=zy(l);return s[s.length-1]}function uy(l){let{formMethod:n,formAction:c,formEncType:s,text:u,formData:f,json:d}=l;if(!(!n||!c||!s)){if(u!=null)return{formMethod:n,formAction:c,formEncType:s,formData:void 0,json:void 0,text:u};if(f!=null)return{formMethod:n,formAction:c,formEncType:s,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:n,formAction:c,formEncType:s,formData:void 0,json:d,text:void 0}}}function fo(l,n){return n?{state:"loading",location:l,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:l,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function I1(l,n){return{state:"submitting",location:l,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function ar(l,n){return l?{state:"loading",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function e0(l,n){return{state:"submitting",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:n?n.data:void 0}}function Ha(l){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:l}}function t0(l,n){try{let c=l.sessionStorage.getItem(Uy);if(c){let s=JSON.parse(c);for(let[u,f]of Object.entries(s||{}))f&&Array.isArray(f)&&n.set(u,new Set(f||[]))}}catch{}}function n0(l,n){if(n.size>0){let c={};for(let[s,u]of n)c[s]=[...u];try{l.sessionStorage.setItem(Uy,JSON.stringify(c))}catch(s){Ot(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function a0(){let l,n,c=new Promise((s,u)=>{l=async f=>{s(f);try{await c}catch{}},n=async f=>{u(f);try{await c}catch{}}});return{promise:c,resolve:l,reject:n}}var El=g.createContext(null);El.displayName="DataRouter";var dr=g.createContext(null);dr.displayName="DataRouterState";var ko=g.createContext({isTransitioning:!1});ko.displayName="ViewTransition";var Yy=g.createContext(new Map);Yy.displayName="Fetchers";var l0=g.createContext(null);l0.displayName="Await";var kn=g.createContext(null);kn.displayName="Navigation";var Xu=g.createContext(null);Xu.displayName="Location";var An=g.createContext({outlet:null,matches:[],isDataRoute:!1});An.displayName="Route";var Xo=g.createContext(null);Xo.displayName="RouteError";function i0(l,{relative:n}={}){He(hr(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:s}=g.useContext(kn),{hash:u,pathname:f,search:d}=mr(l,{relative:n}),y=f;return c!=="/"&&(y=f==="/"?c:Gn([c,f])),s.createHref({pathname:y,search:d,hash:u})}function hr(){return g.useContext(Xu)!=null}function Xn(){return He(hr(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Xu).location}var Gy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ky(l){g.useContext(kn).static||g.useLayoutEffect(l)}function Xy(){let{isDataRoute:l}=g.useContext(An);return l?E0():r0()}function r0(){He(hr(),"useNavigate() may be used only in the context of a <Router> component.");let l=g.useContext(El),{basename:n,navigator:c}=g.useContext(kn),{matches:s}=g.useContext(An),{pathname:u}=Xn(),f=JSON.stringify(qo(s)),d=g.useRef(!1);return ky(()=>{d.current=!0}),g.useCallback((v,p={})=>{if(Ot(d.current,Gy),!d.current)return;if(typeof v=="number"){c.go(v);return}let b=Vo(v,JSON.parse(f),u,p.relative==="path");l==null&&n!=="/"&&(b.pathname=b.pathname==="/"?n:Gn([n,b.pathname])),(p.replace?c.replace:c.push)(b,p.state,p)},[n,c,f,u,l])}var u0=g.createContext(null);function c0(l){let n=g.useContext(An).outlet;return n&&g.createElement(u0.Provider,{value:l},n)}function H2(){let{matches:l}=g.useContext(An),n=l[l.length-1];return n?n.params:{}}function mr(l,{relative:n}={}){let{matches:c}=g.useContext(An),{pathname:s}=Xn(),u=JSON.stringify(qo(c));return g.useMemo(()=>Vo(l,JSON.parse(u),s,n==="path"),[l,u,s,n])}function s0(l,n,c,s){He(hr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u,static:f}=g.useContext(kn),{matches:d}=g.useContext(An),y=d[d.length-1],v=y?y.params:{},p=y?y.pathname:"/",b=y?y.pathnameBase:"/",R=y&&y.route;{let q=R&&R.path||"";Ky(p,!R||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
+
+Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let S=Xn(),_;_=S;let O=_.pathname||"/",H=O;if(b!=="/"){let q=b.replace(/^\//,"").split("/");H="/"+O.replace(/^\//,"").split("/").slice(q.length).join("/")}let U=!f&&c&&c.matches&&c.matches.length>0?c.matches:qa(l,{pathname:H});return Ot(R||U!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Ot(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),m0(U&&U.map(q=>Object.assign({},q,{params:Object.assign({},v,q.params),pathname:Gn([b,u.encodeLocation?u.encodeLocation(q.pathname).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?b:Gn([b,u.encodeLocation?u.encodeLocation(q.pathnameBase).pathname:q.pathnameBase])})),d,c,s)}function o0(){let l=v0(),n=or(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),c=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:f},"ErrorBoundary")," or"," ",g.createElement("code",{style:f},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},n),c?g.createElement("pre",{style:u},c):null,d)}var f0=g.createElement(o0,null),d0=class extends g.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,n){return n.location!==l.location||n.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:n.error,location:n.location,revalidation:l.revalidation||n.revalidation}}componentDidCatch(l,n){console.error("React Router caught the following error during render",l,n)}render(){return this.state.error!==void 0?g.createElement(An.Provider,{value:this.props.routeContext},g.createElement(Xo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function h0({routeContext:l,match:n,children:c}){let s=g.useContext(El);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(An.Provider,{value:l},c)}function m0(l,n=[],c=null,s=null){if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(n.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let u=l,f=c==null?void 0:c.errors;if(f!=null){let v=u.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);He(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,v+1))}let d=!1,y=-1;if(c)for(let v=0;v<u.length;v++){let p=u[v];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(y=v),p.route.id){let{loaderData:b,errors:R}=c,S=p.route.loader&&!b.hasOwnProperty(p.route.id)&&(!R||R[p.route.id]===void 0);if(p.route.lazy||S){d=!0,y>=0?u=u.slice(0,y+1):u=[u[0]];break}}}return u.reduceRight((v,p,b)=>{let R,S=!1,_=null,O=null;c&&(R=f&&p.route.id?f[p.route.id]:void 0,_=p.route.errorElement||f0,d&&(y<0&&b===0?(Ky("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,O=null):y===b&&(S=!0,O=p.route.hydrateFallbackElement||null)));let H=n.concat(u.slice(0,b+1)),U=()=>{let M;return R?M=_:S?M=O:p.route.Component?M=g.createElement(p.route.Component,null):p.route.element?M=p.route.element:M=v,g.createElement(h0,{match:p,routeContext:{outlet:v,matches:H,isDataRoute:c!=null},children:M})};return c&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?g.createElement(d0,{location:c.location,revalidation:c.revalidation,component:_,error:R,children:U(),routeContext:{outlet:null,matches:H,isDataRoute:!0}}):U()},null)}function Qo(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qy(l){let n=g.useContext(El);return He(n,Qo(l)),n}function Zy(l){let n=g.useContext(dr);return He(n,Qo(l)),n}function y0(l){let n=g.useContext(An);return He(n,Qo(l)),n}function Zo(l){let n=y0(l),c=n.matches[n.matches.length-1];return He(c.route.id,`${l} can only be used on routes that contain a unique "id"`),c.route.id}function p0(){return Zo("useRouteId")}function v0(){var s;let l=g.useContext(Xo),n=Zy("useRouteError"),c=Zo("useRouteError");return l!==void 0?l:(s=n.errors)==null?void 0:s[c]}var g0=0;function B2(l){let{router:n,basename:c}=Qy("useBlocker"),s=Zy("useBlocker"),[u,f]=g.useState(""),d=g.useCallback(y=>{if(typeof l!="function")return!!l;if(c==="/")return l(y);let{currentLocation:v,nextLocation:p,historyAction:b}=y;return l({currentLocation:{...v,pathname:rn(v.pathname,c)||v.pathname},nextLocation:{...p,pathname:rn(p.pathname,c)||p.pathname},historyAction:b})},[c,l]);return g.useEffect(()=>{let y=String(++g0);return f(y),()=>n.deleteBlocker(y)},[n]),g.useEffect(()=>{u!==""&&n.getBlocker(u,d)},[n,u,d]),u&&s.blockers.has(u)?s.blockers.get(u):ai}function E0(){let{router:l}=Qy("useNavigate"),n=Zo("useNavigate"),c=g.useRef(!1);return ky(()=>{c.current=!0}),g.useCallback(async(u,f={})=>{Ot(c.current,Gy),c.current&&(typeof u=="number"?l.navigate(u):await l.navigate(u,{fromRouteId:n,...f}))},[l,n])}var cy={};function Ky(l,n,c){!n&&!cy[l]&&(cy[l]=!0,Ot(!1,c))}var sy={};function oy(l,n){!l&&!sy[n]&&(sy[n]=!0,console.warn(n))}function b0(l){let n={hasErrorBoundary:l.hasErrorBoundary||l.ErrorBoundary!=null||l.errorElement!=null};return l.Component&&(l.element&&Ot(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:g.createElement(l.Component),Component:void 0})),l.HydrateFallback&&(l.hydrateFallbackElement&&Ot(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:g.createElement(l.HydrateFallback),HydrateFallback:void 0})),l.ErrorBoundary&&(l.errorElement&&Ot(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:g.createElement(l.ErrorBoundary),ErrorBoundary:void 0})),n}var S0=class{constructor(){this.status="pending",this.promise=new Promise((l,n)=>{this.resolve=c=>{this.status==="pending"&&(this.status="resolved",l(c))},this.reject=c=>{this.status==="pending"&&(this.status="rejected",n(c))}})}};function x0({router:l,flushSync:n}){let[c,s]=g.useState(l.state),[u,f]=g.useState(),[d,y]=g.useState({isTransitioning:!1}),[v,p]=g.useState(),[b,R]=g.useState(),[S,_]=g.useState(),O=g.useRef(new Map),H=g.useCallback((Y,{deletedFetchers:J,flushSync:k,viewTransitionOpts:N})=>{Y.fetchers.forEach((ie,X)=>{ie.data!==void 0&&O.current.set(X,ie.data)}),J.forEach(ie=>O.current.delete(ie)),oy(k===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let W=l.window!=null&&l.window.document!=null&&typeof l.window.document.startViewTransition=="function";if(oy(N==null||W,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!N||!W){n&&k?n(()=>s(Y)):g.startTransition(()=>s(Y));return}if(n&&k){n(()=>{b&&(v&&v.resolve(),b.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let ie=l.window.document.startViewTransition(()=>{n(()=>s(Y))});ie.finished.finally(()=>{n(()=>{p(void 0),R(void 0),f(void 0),y({isTransitioning:!1})})}),n(()=>R(ie));return}b?(v&&v.resolve(),b.skipTransition(),_({state:Y,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(f(Y),y({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[l.window,n,b,v]);g.useLayoutEffect(()=>l.subscribe(H),[l,H]),g.useEffect(()=>{d.isTransitioning&&!d.flushSync&&p(new S0)},[d]),g.useEffect(()=>{if(v&&u&&l.window){let Y=u,J=v.promise,k=l.window.document.startViewTransition(async()=>{g.startTransition(()=>s(Y)),await J});k.finished.finally(()=>{p(void 0),R(void 0),f(void 0),y({isTransitioning:!1})}),R(k)}},[u,v,l.window]),g.useEffect(()=>{v&&u&&c.location.key===u.location.key&&v.resolve()},[v,b,c.location,u]),g.useEffect(()=>{!d.isTransitioning&&S&&(f(S.state),y({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),_(void 0))},[d.isTransitioning,S]);let U=g.useMemo(()=>({createHref:l.createHref,encodeLocation:l.encodeLocation,go:Y=>l.navigate(Y),push:(Y,J,k)=>l.navigate(Y,{state:J,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(Y,J,k)=>l.navigate(Y,{replace:!0,state:J,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[l]),M=l.basename||"/",q=g.useMemo(()=>({router:l,navigator:U,static:!1,basename:M}),[l,U,M]);return g.createElement(g.Fragment,null,g.createElement(El.Provider,{value:q},g.createElement(dr.Provider,{value:c},g.createElement(Yy.Provider,{value:O.current},g.createElement(ko.Provider,{value:d},g.createElement(N0,{basename:M,location:c.location,navigationType:c.historyAction,navigator:U},g.createElement(_0,{routes:l.routes,future:l.future,state:c})))))),null)}var _0=g.memo(R0);function R0({routes:l,future:n,state:c}){return s0(l,void 0,c,n)}function T0(l){return c0(l.context)}function N0({basename:l="/",children:n=null,location:c,navigationType:s="POP",navigator:u,static:f=!1}){He(!hr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=l.replace(/^\/*/,"/"),y=g.useMemo(()=>({basename:d,navigator:u,static:f,future:{}}),[d,u,f]);typeof c=="string"&&(c=Ga(c));let{pathname:v="/",search:p="",hash:b="",state:R=null,key:S="default"}=c,_=g.useMemo(()=>{let O=rn(v,d);return O==null?null:{location:{pathname:O,search:p,hash:b,state:R,key:S},navigationType:s}},[d,v,p,b,R,S,s]);return Ot(_!=null,`<Router basename="${d}"> is not able to match the URL "${v}${p}${b}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:g.createElement(kn.Provider,{value:y},g.createElement(Xu.Provider,{children:n,value:_}))}var Mu="get",zu="application/x-www-form-urlencoded";function Qu(l){return l!=null&&typeof l.tagName=="string"}function C0(l){return Qu(l)&&l.tagName.toLowerCase()==="button"}function j0(l){return Qu(l)&&l.tagName.toLowerCase()==="form"}function O0(l){return Qu(l)&&l.tagName.toLowerCase()==="input"}function D0(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function w0(l,n){return l.button===0&&(!n||n==="_self")&&!D0(l)}function Do(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((n,c)=>{let s=l[c];return n.concat(Array.isArray(s)?s.map(u=>[c,u]):[[c,s]])},[]))}function A0(l,n){let c=Do(l);return n&&n.forEach((s,u)=>{c.has(u)||n.getAll(u).forEach(f=>{c.append(u,f)})}),c}var ju=null;function M0(){if(ju===null)try{new FormData(document.createElement("form"),0),ju=!1}catch{ju=!0}return ju}var z0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ho(l){return l!=null&&!z0.has(l)?(Ot(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zu}"`),null):l}function L0(l,n){let c,s,u,f,d;if(j0(l)){let y=l.getAttribute("action");s=y?rn(y,n):null,c=l.getAttribute("method")||Mu,u=ho(l.getAttribute("enctype"))||zu,f=new FormData(l)}else if(C0(l)||O0(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||y.getAttribute("action");if(s=v?rn(v,n):null,c=l.getAttribute("formmethod")||y.getAttribute("method")||Mu,u=ho(l.getAttribute("formenctype"))||ho(y.getAttribute("enctype"))||zu,f=new FormData(y,l),!M0()){let{name:p,type:b,value:R}=l;if(b==="image"){let S=p?`${p}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else p&&f.append(p,R)}}else{if(Qu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Mu,s=null,u=zu,d=l}return f&&u==="text/plain"&&(d=f,f=void 0),{action:s,method:c.toLowerCase(),encType:u,formData:f,body:d}}function Ko(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}async function U0(l,n){if(l.id in n)return n[l.id];try{let c=await import(l.module);return n[l.id]=c,c}catch(c){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function H0(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function B0(l,n,c){let s=await Promise.all(l.map(async u=>{let f=n.routes[u.route.id];if(f){let d=await U0(f,c);return d.links?d.links():[]}return[]}));return G0(s.flat(1).filter(H0).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function fy(l,n,c,s,u,f){let d=(v,p)=>c[p]?v.route.id!==c[p].route.id:!0,y=(v,p)=>{var b;return c[p].pathname!==v.pathname||((b=c[p].route.path)==null?void 0:b.endsWith("*"))&&c[p].params["*"]!==v.params["*"]};return f==="assets"?n.filter((v,p)=>d(v,p)||y(v,p)):f==="data"?n.filter((v,p)=>{var R;let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(d(v,p)||y(v,p))return!0;if(v.route.shouldRevalidate){let S=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((R=c[0])==null?void 0:R.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function q0(l,n){return V0(l.map(c=>{let s=n.routes[c.route.id];if(!s)return[];let u=[s.module];return s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function V0(l){return[...new Set(l)]}function Y0(l){let n={},c=Object.keys(l).sort();for(let s of c)n[s]=l[s];return n}function G0(l,n){let c=new Set;return new Set(n),l.reduce((s,u)=>{let f=JSON.stringify(Y0(u));return c.has(f)||(c.add(f),s.push({key:f,link:u})),s},[])}function k0(l){let n=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return n.pathname==="/"?n.pathname="_root.data":n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function X0(){let l=g.useContext(El);return Ko(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Q0(){let l=g.useContext(dr);return Ko(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var $o=g.createContext(void 0);$o.displayName="FrameworkContext";function $y(){let l=g.useContext($o);return Ko(l,"You must render this element inside a <HydratedRouter> element"),l}function Z0(l,n){let c=g.useContext($o),[s,u]=g.useState(!1),[f,d]=g.useState(!1),{onFocus:y,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:R}=n,S=g.useRef(null);g.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let H=M=>{M.forEach(q=>{d(q.isIntersecting)})},U=new IntersectionObserver(H,{threshold:.5});return S.current&&U.observe(S.current),()=>{U.disconnect()}}},[l]),g.useEffect(()=>{if(s){let H=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(H)}}},[s]);let _=()=>{u(!0)},O=()=>{u(!1),d(!1)};return c?l!=="intent"?[f,S,{}]:[f,S,{onFocus:lr(y,_),onBlur:lr(v,O),onMouseEnter:lr(p,_),onMouseLeave:lr(b,O),onTouchStart:lr(R,_)}]:[!1,S,{}]}function lr(l,n){return c=>{l&&l(c),c.defaultPrevented||n(c)}}function K0({page:l,...n}){let{router:c}=X0(),s=g.useMemo(()=>qa(c.routes,l,c.basename),[c.routes,l,c.basename]);return s?g.createElement(F0,{page:l,matches:s,...n}):null}function $0(l){let{manifest:n,routeModules:c}=$y(),[s,u]=g.useState([]);return g.useEffect(()=>{let f=!1;return B0(l,n,c).then(d=>{f||u(d)}),()=>{f=!0}},[l,n,c]),s}function F0({page:l,matches:n,...c}){let s=Xn(),{manifest:u,routeModules:f}=$y(),{loaderData:d,matches:y}=Q0(),v=g.useMemo(()=>fy(l,n,y,u,s,"data"),[l,n,y,u,s]),p=g.useMemo(()=>fy(l,n,y,u,s,"assets"),[l,n,y,u,s]),b=g.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let _=new Set,O=!1;if(n.forEach(U=>{var q;let M=u.routes[U.route.id];!M||!M.hasLoader||(!v.some(Y=>Y.route.id===U.route.id)&&U.route.id in d&&((q=f[U.route.id])!=null&&q.shouldRevalidate)||M.hasClientLoader?O=!0:_.add(U.route.id))}),_.size===0)return[];let H=k0(l);return O&&_.size>0&&H.searchParams.set("_routes",n.filter(U=>_.has(U.route.id)).map(U=>U.route.id).join(",")),[H.pathname+H.search]},[d,s,u,v,n,l,f]),R=g.useMemo(()=>q0(p,u),[p,u]),S=$0(p);return g.createElement(g.Fragment,null,b.map(_=>g.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...c})),R.map(_=>g.createElement("link",{key:_,rel:"modulepreload",href:_,...c})),S.map(({key:_,link:O})=>g.createElement("link",{key:_,...O})))}function J0(...l){return n=>{l.forEach(c=>{typeof c=="function"?c(n):c!=null&&(c.current=n)})}}var Fy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fy&&(window.__reactRouterVersion="7.1.5")}catch{}function P0(l,n){return q1({basename:n==null?void 0:n.basename,future:n==null?void 0:n.future,history:s1({window:n==null?void 0:n.window}),hydrationData:W0(),routes:l,mapRouteProperties:b0,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function W0(){let l=window==null?void 0:window.__staticRouterHydrationData;return l&&l.errors&&(l={...l,errors:I0(l.errors)}),l}function I0(l){if(!l)return null;let n=Object.entries(l),c={};for(let[s,u]of n)if(u&&u.__type==="RouteErrorResponse")c[s]=new Hu(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let f=window[u.__subType];if(typeof f=="function")try{let d=new f(u.message);d.stack="",c[s]=d}catch{}}if(c[s]==null){let f=new Error(u.message);f.stack="",c[s]=f}}else c[s]=u;return c}var Jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tn=g.forwardRef(function({onClick:n,discover:c="render",prefetch:s="none",relative:u,reloadDocument:f,replace:d,state:y,target:v,to:p,preventScrollReset:b,viewTransition:R,...S},_){let{basename:O}=g.useContext(kn),H=typeof p=="string"&&Jy.test(p),U,M=!1;if(typeof p=="string"&&H&&(U=p,Fy))try{let X=new URL(window.location.href),I=p.startsWith("//")?new URL(X.protocol+p):new URL(p),de=rn(I.pathname,O);I.origin===X.origin&&de!=null?p=de+I.search+I.hash:M=!0}catch{Ot(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let q=i0(p,{relative:u}),[Y,J,k]=Z0(s,S),N=aE(p,{replace:d,state:y,target:v,preventScrollReset:b,relative:u,viewTransition:R});function W(X){n&&n(X),X.defaultPrevented||N(X)}let ie=g.createElement("a",{...S,...k,href:U||q,onClick:M||f?n:W,ref:J0(_,J),target:v,"data-discover":!H&&c==="render"?"true":void 0});return Y&&!H?g.createElement(g.Fragment,null,ie,g.createElement(K0,{page:q})):ie});Tn.displayName="Link";var eE=g.forwardRef(function({"aria-current":n="page",caseSensitive:c=!1,className:s="",end:u=!1,style:f,to:d,viewTransition:y,children:v,...p},b){let R=mr(d,{relative:p.relative}),S=Xn(),_=g.useContext(dr),{navigator:O,basename:H}=g.useContext(kn),U=_!=null&&sE(R)&&y===!0,M=O.encodeLocation?O.encodeLocation(R).pathname:R.pathname,q=S.pathname,Y=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;c||(q=q.toLowerCase(),Y=Y?Y.toLowerCase():null,M=M.toLowerCase()),Y&&H&&(Y=rn(Y,H)||Y);const J=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let k=q===M||!u&&q.startsWith(M)&&q.charAt(J)==="/",N=Y!=null&&(Y===M||!u&&Y.startsWith(M)&&Y.charAt(M.length)==="/"),W={isActive:k,isPending:N,isTransitioning:U},ie=k?n:void 0,X;typeof s=="function"?X=s(W):X=[s,k?"active":null,N?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let I=typeof f=="function"?f(W):f;return g.createElement(Tn,{...p,"aria-current":ie,className:X,ref:b,style:I,to:d,viewTransition:y},typeof v=="function"?v(W):v)});eE.displayName="NavLink";var tE=g.forwardRef(({discover:l="render",fetcherKey:n,navigate:c,reloadDocument:s,replace:u,state:f,method:d=Mu,action:y,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:R,...S},_)=>{let O=uE(),H=cE(y,{relative:p}),U=d.toLowerCase()==="get"?"get":"post",M=typeof y=="string"&&Jy.test(y),q=Y=>{if(v&&v(Y),Y.defaultPrevented)return;Y.preventDefault();let J=Y.nativeEvent.submitter,k=(J==null?void 0:J.getAttribute("formmethod"))||d;O(J||Y.currentTarget,{fetcherKey:n,method:k,navigate:c,replace:u,state:f,relative:p,preventScrollReset:b,viewTransition:R})};return g.createElement("form",{ref:_,method:U,action:H,onSubmit:s?v:q,...S,"data-discover":!M&&l==="render"?"true":void 0})});tE.displayName="Form";function nE(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Py(l){let n=g.useContext(El);return He(n,nE(l)),n}function aE(l,{target:n,replace:c,state:s,preventScrollReset:u,relative:f,viewTransition:d}={}){let y=Xy(),v=Xn(),p=mr(l,{relative:f});return g.useCallback(b=>{if(w0(b,n)){b.preventDefault();let R=c!==void 0?c:Va(v)===Va(p);y(l,{replace:R,state:s,preventScrollReset:u,relative:f,viewTransition:d})}},[v,y,p,c,s,n,l,u,f,d])}function lE(l){Ot(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=g.useRef(Do(l)),c=g.useRef(!1),s=Xn(),u=g.useMemo(()=>A0(s.search,c.current?null:n.current),[s.search]),f=Xy(),d=g.useCallback((y,v)=>{const p=Do(typeof y=="function"?y(u):y);c.current=!0,f("?"+p,v)},[f,u]);return[u,d]}var iE=0,rE=()=>`__${String(++iE)}__`;function uE(){let{router:l}=Py("useSubmit"),{basename:n}=g.useContext(kn),c=p0();return g.useCallback(async(s,u={})=>{let{action:f,method:d,encType:y,formData:v,body:p}=L0(s,n);if(u.navigate===!1){let b=u.fetcherKey||rE();await l.fetch(b,c,u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:p,formMethod:u.method||d,formEncType:u.encType||y,flushSync:u.flushSync})}else await l.navigate(u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:p,formMethod:u.method||d,formEncType:u.encType||y,replace:u.replace,state:u.state,fromRouteId:c,flushSync:u.flushSync,viewTransition:u.viewTransition})},[l,n,c])}function cE(l,{relative:n}={}){let{basename:c}=g.useContext(kn),s=g.useContext(An);He(s,"useFormAction must be used inside a RouteContext");let[u]=s.matches.slice(-1),f={...mr(l||".",{relative:n})},d=Xn();if(l==null){f.search=d.search;let y=new URLSearchParams(f.search),v=y.getAll("index");if(v.some(b=>b==="")){y.delete("index"),v.filter(R=>R).forEach(R=>y.append("index",R));let b=y.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:Gn([c,f.pathname])),Va(f)}function sE(l,n={}){let c=g.useContext(ko);He(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Py("useViewTransitionState"),u=mr(l,{relative:n.relative});if(!c.isTransitioning)return!1;let f=rn(c.currentLocation.pathname,s)||c.currentLocation.pathname,d=rn(c.nextLocation.pathname,s)||c.nextLocation.pathname;return Uu(u.pathname,d)!=null||Uu(u.pathname,f)!=null}new TextEncoder;var Wy=wy();const ii=fr(Wy);/**
+ * react-router v7.1.5
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function oE(l){return g.createElement(x0,{flushSync:Wy.flushSync,...l})}const fE=g.createContext({show:!1,toggle:()=>{}}),dE=l=>{const n=Ke.c(8),{children:c}=l,[s,u]=g.useState(!1);let f;n[0]!==s?(f=()=>{u(!s)},n[0]=s,n[1]=f):f=n[1];const d=f;let y;n[2]!==s||n[3]!==d?(y={show:s,toggle:d},n[2]=s,n[3]=d,n[4]=y):y=n[4];let v;return n[5]!==c||n[6]!==y?(v=h.jsx(fE.Provider,{value:y,children:c}),n[5]=c,n[6]=y,n[7]=v):v=n[7],v};async function hE(){return await(await fetch("/api/user/")).json()}const wo={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Fo=g.createContext({user:wo,logout:()=>{},setUser:()=>{}}),mE=l=>{const n=Ke.c(8),{children:c}=l,[s,u]=g.useState(wo);let f;n[0]===Symbol.for("react.memo_cache_sentinel")?(f=async function(){await fetch("/logout"),u(wo)},n[0]=f):f=n[0];const d=f;let y,v;n[1]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{hE().then(R=>{u(R)})},v=[],n[1]=y,n[2]=v):(y=n[1],v=n[2]),g.useEffect(y,v);let p;n[3]!==s?(p={user:s,logout:d,setUser:u},n[3]=s,n[4]=p):p=n[4];let b;return n[5]!==c||n[6]!==p?(b=h.jsx(Fo.Provider,{value:p,children:c}),n[5]=c,n[6]=p,n[7]=b):b=n[7],b},yE=g.createContext({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:()=>{}}),pE=l=>{const n=Ke.c(6),{children:c}=l;let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s={selectedYears:[],selectedNrens:[]},n[0]=s):s=n[0];const[u,f]=g.useState(s);let d;n[1]!==u?(d={filterSelection:u,setFilterSelection:f},n[1]=u,n[2]=d):d=n[2];let y;return n[3]!==c||n[4]!==d?(y=h.jsx(yE.Provider,{value:d,children:c}),n[3]=c,n[4]=d,n[5]=y):y=n[5],y},vE=g.createContext(null),gE=l=>{const n=Ke.c(2),{children:c}=l,s=g.useRef(null);let u;return n[0]!==c?(u=h.jsx(vE.Provider,{value:s,children:c}),n[0]=c,n[1]=u):u=n[1],u},Iy=g.createContext({preview:!1,setPreview:()=>{}}),EE=l=>{const n=Ke.c(5),{children:c}=l,[s,u]=g.useState(!1);let f;n[0]!==s?(f={preview:s,setPreview:u},n[0]=s,n[1]=f):f=n[1];let d;return n[2]!==c||n[3]!==f?(d=h.jsx(Iy.Provider,{value:f,children:c}),n[2]=c,n[3]=f,n[4]=d):d=n[4],d};async function bE(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}const SE=g.createContext({nrens:[],setNrens:()=>{}}),xE=l=>{const n=Ke.c(8),{children:c}=l;let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],n[0]=s):s=n[0];const[u,f]=g.useState(s);let d,y;n[1]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{bE().then(b=>f(b))},y=[],n[1]=d,n[2]=y):(d=n[1],y=n[2]),g.useEffect(d,y);let v;n[3]!==u?(v={nrens:u,setNrens:f},n[3]=u,n[4]=v):v=n[4];let p;return n[5]!==c||n[6]!==v?(p=h.jsx(SE.Provider,{value:v,children:c}),n[5]=c,n[6]=v,n[7]=p):p=n[7],p},mo={TRACK_EVENT:"trackEvent",TRACK_LINK:"trackLink",TRACK_VIEW:"trackPageView"};class _E{constructor(n){wm(this,"mutationObserver");if(!n.urlBase)throw new Error("Matomo urlBase is required.");if(!n.siteId)throw new Error("Matomo siteId is required.");this.initialize(n)}initialize({urlBase:n,siteId:c,userId:s,trackerUrl:u,srcUrl:f,disabled:d,heartBeat:y,requireConsent:v=!1,configurations:p={}}){const b=n[n.length-1]!=="/"?`${n}/`:n;if(typeof window>"u"||(window._paq=window._paq||[],window._paq.length!==0)||d)return;v&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",u??`${b}matomo.php`),this.pushInstruction("setSiteId",c),s&&this.pushInstruction("setUserId",s),Object.entries(p).forEach(([O,H])=>{H instanceof Array?this.pushInstruction(O,...H):this.pushInstruction(O,H)}),(!y||y&&y.active)&&this.enableHeartBeatTimer((y&&y.seconds)??15);const R=document,S=R.createElement("script"),_=R.getElementsByTagName("script")[0];S.type="text/javascript",S.async=!0,S.defer=!0,S.src=f||`${b}matomo.js`,_&&_.parentNode&&_.parentNode.insertBefore(S,_)}enableHeartBeatTimer(n){this.pushInstruction("enableHeartBeatTimer",n)}trackEventsForElements(n){n.length&&n.forEach(c=>{c.addEventListener("click",()=>{const{matomoCategory:s,matomoAction:u,matomoName:f,matomoValue:d}=c.dataset;if(s&&u)this.trackEvent({category:s,action:u,name:f,value:Number(d)});else throw new Error("Error: data-matomo-category and data-matomo-action are required.")})})}trackEvents(){const n='[data-matomo-event="click"]';let c=!1;if(this.mutationObserver||(c=!0,this.mutationObserver=new MutationObserver(s=>{s.forEach(u=>{u.addedNodes.forEach(f=>{if(!(f instanceof HTMLElement))return;f.matches(n)&&this.trackEventsForElements([f]);const d=Array.from(f.querySelectorAll(n));this.trackEventsForElements(d)})})})),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),c){const s=Array.from(document.querySelectorAll(n));this.trackEventsForElements(s)}}stopObserving(){this.mutationObserver&&this.mutationObserver.disconnect()}trackEvent({category:n,action:c,name:s,value:u,...f}){if(n&&c)this.track({data:[mo.TRACK_EVENT,n,c,s,u],...f});else throw new Error("Error: category and action are required.")}giveConsent(){this.pushInstruction("setConsentGiven")}trackLink({href:n,linkType:c="link"}){this.pushInstruction(mo.TRACK_LINK,n,c)}trackPageView(n){this.track({data:[mo.TRACK_VIEW],...n})}track({data:n=[],documentTitle:c=window.document.title,href:s,customDimensions:u=!1}){n.length&&(u&&Array.isArray(u)&&u.length&&u.map(f=>this.pushInstruction("setCustomDimension",f.id,f.value)),this.pushInstruction("setCustomUrl",s??window.location.href),this.pushInstruction("setDocumentTitle",c),this.pushInstruction(...n))}pushInstruction(n,...c){return typeof window<"u"&&window._paq.push([n,...c]),this}}function RE(l){return window.location.hostname==="localhost"&&(console.log("Matomo tracking disabled in development mode."),l.disabled=!0),new _E(l)}const Jo=g.createContext({consent:null,setConsent:()=>{}}),TE=l=>{const n=Ke.c(7),{children:c}=l,s=NE;let u;n[0]===Symbol.for("react.memo_cache_sentinel")?(u=s(),n[0]=u):u=n[0];const[f,d]=g.useState(u);let y;n[1]===Symbol.for("react.memo_cache_sentinel")?(y=b=>d(b),n[1]=y):y=n[1];let v;n[2]!==f?(v={setConsent:y,consent:f},n[2]=f,n[3]=v):v=n[3];let p;return n[4]!==c||n[5]!==v?(p=h.jsx(Jo.Provider,{value:v,children:c}),n[4]=c,n[5]=v,n[6]=p):p=n[6],p};function NE(){const l=localStorage.getItem("matomo_consent");if(l){const n=JSON.parse(l);if(new Date(n.expiry)>new Date)return n.consent}return null}const ep=g.createContext(null),CE=function(l){const n=Ke.c(5),{children:c}=l,u=!g.useContext(Jo).consent;let f;n[0]!==u?(f=RE({urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:u}),n[0]=u,n[1]=f):f=n[1];const d=f;let y;return n[2]!==c||n[3]!==d?(y=h.jsx(ep.Provider,{value:d,children:c}),n[2]=c,n[3]=d,n[4]=y):y=n[4],y},jE=()=>{const l=JSON.parse(localStorage.getItem("config")??"{}"),n={};for(const c in l){const s=l[c];s.expireTime&&s.expireTime<Date.now()||s&&(n[c]=s)}return n},yo=l=>{localStorage.setItem("config",JSON.stringify(l))},OE=g.createContext({getConfig:()=>{},setConfig:()=>{}}),DE=l=>{const n=Ke.c(12),{children:c}=l;let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=jE(),n[0]=s):s=n[0];const[u,f]=g.useState(s);let d;n[1]!==u?(d=(S,_,O)=>{var q;if(!S)throw new Error("Valid config key must be provided");if(_==null){const Y={...u};delete Y[S],f(Y),yo(Y);return}const H=JSON.stringify(_),U=JSON.stringify((q=u[S])==null?void 0:q.value);if(H===U)return;const M=O?O.getTime():null;if(M&&M<Date.now())throw new Error("Timeout must be in the future");M?(f({...u,[S]:{value:_,expireTime:M}}),yo({...u,[S]:{value:_,expireTime:M}})):(f({...u,[S]:{value:_}}),yo({...u,[S]:{value:_}}))},n[1]=u,n[2]=d):d=n[2];const y=d;let v;n[3]!==u||n[4]!==y?(v=S=>{const _=u[S];if(_!=null&&_.expireTime&&_.expireTime<Date.now()){y(S);return}if(_!=null)return _.value},n[3]=u,n[4]=y,n[5]=v):v=n[5];const p=v;let b;n[6]!==p||n[7]!==y?(b={getConfig:p,setConfig:y},n[6]=p,n[7]=y,n[8]=b):b=n[8];let R;return n[9]!==c||n[10]!==b?(R=h.jsx(OE.Provider,{value:b,children:c}),n[9]=c,n[10]=b,n[11]=R):R=n[11],R};function wE(l){const n=Ke.c(2),{children:c}=l;let s;return n[0]!==c?(s=h.jsx(DE,{children:h.jsx(TE,{children:h.jsx(CE,{children:h.jsx(dE,{children:h.jsx(mE,{children:h.jsx(pE,{children:h.jsx(gE,{children:h.jsx(EE,{children:h.jsx(xE,{children:c})})})})})})})})}),n[0]=c,n[1]=s):s=n[1],s}var Qt=(l=>(l.ConnectedProportion="proportion",l.ConnectivityLevel="level",l.ConnectionCarrier="carrier",l.ConnectivityLoad="load",l.ConnectivityGrowth="growth",l.CommercialConnectivity="commercial",l.CommercialChargingLevel="charging",l))(Qt||{}),Lt=(l=>(l.network_services="network_services",l.isp_support="isp_support",l.security="security",l.identity="identity",l.collaboration="collaboration",l.multimedia="multimedia",l.storage_and_hosting="storage_and_hosting",l.professional_services="professional_services",l))(Lt||{}),po={exports:{}};/*!
+	Copyright (c) 2018 Jed Watson.
+	Licensed under the MIT License (MIT), see
+	http://jedwatson.github.io/classnames
+*/var dy;function AE(){return dy||(dy=1,function(l){(function(){var n={}.hasOwnProperty;function c(){for(var f="",d=0;d<arguments.length;d++){var y=arguments[d];y&&(f=u(f,s(y)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return c.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var y in f)n.call(f,y)&&f[y]&&(d=u(d,y));return d}function u(f,d){return d?f?f+" "+d:f+d:f}l.exports?(c.default=c,l.exports=c):window.classNames=c})()}(po)),po.exports}var ME=AE();const Ae=fr(ME);function zE(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.includes(s))continue;c[s]=l[s]}return c}function Ao(l,n){return Ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},Ao(l,n)}function LE(l,n){l.prototype=Object.create(n.prototype),l.prototype.constructor=l,Ao(l,n)}const UE=["xxl","xl","lg","md","sm","xs"],HE="xs",Zu=g.createContext({prefixes:{},breakpoints:UE,minBreakpoint:HE});function Qe(l,n){const{prefixes:c}=g.useContext(Zu);return l||c[n]||n}function tp(){const{breakpoints:l}=g.useContext(Zu);return l}function np(){const{minBreakpoint:l}=g.useContext(Zu);return l}function BE(){const{dir:l}=g.useContext(Zu);return l==="rtl"}function Ku(l){return l&&l.ownerDocument||document}function qE(l){var n=Ku(l);return n&&n.defaultView||window}function VE(l,n){return qE(l).getComputedStyle(l,n)}var YE=/([A-Z])/g;function GE(l){return l.replace(YE,"-$1").toLowerCase()}var kE=/^ms-/;function Ou(l){return GE(l).replace(kE,"-ms-")}var XE=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function QE(l){return!!(l&&XE.test(l))}function gl(l,n){var c="",s="";if(typeof n=="string")return l.style.getPropertyValue(Ou(n))||VE(l).getPropertyValue(Ou(n));Object.keys(n).forEach(function(u){var f=n[u];!f&&f!==0?l.style.removeProperty(Ou(u)):QE(u)?s+=u+"("+f+") ":c+=Ou(u)+": "+f+";"}),s&&(c+="transform: "+s+";"),l.style.cssText+=";"+c}var vo={exports:{}},go,hy;function ZE(){if(hy)return go;hy=1;var l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return go=l,go}var Eo,my;function KE(){if(my)return Eo;my=1;var l=ZE();function n(){}function c(){}return c.resetWarningCache=n,Eo=function(){function s(d,y,v,p,b,R){if(R!==l){var S=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 S.name="Invariant Violation",S}}s.isRequired=s;function u(){return s}var f={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:u,element:s,elementType:s,instanceOf:u,node:s,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:c,resetWarningCache:n};return f.PropTypes=f,f},Eo}var yy;function $E(){return yy||(yy=1,vo.exports=KE()()),vo.exports}var FE=$E();const fa=fr(FE),py={disabled:!1},ap=Yt.createContext(null);var JE=function(n){return n.scrollTop},cr="unmounted",hl="exited",Ba="entering",yl="entered",Mo="exiting",ha=function(l){LE(n,l);function n(s,u){var f;f=l.call(this,s,u)||this;var d=u,y=d&&!d.isMounting?s.enter:s.appear,v;return f.appearStatus=null,s.in?y?(v=hl,f.appearStatus=Ba):v=yl:s.unmountOnExit||s.mountOnEnter?v=cr:v=hl,f.state={status:v},f.nextCallback=null,f}n.getDerivedStateFromProps=function(u,f){var d=u.in;return d&&f.status===cr?{status:hl}:null};var c=n.prototype;return c.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},c.componentDidUpdate=function(u){var f=null;if(u!==this.props){var d=this.state.status;this.props.in?d!==Ba&&d!==yl&&(f=Ba):(d===Ba||d===yl)&&(f=Mo)}this.updateStatus(!1,f)},c.componentWillUnmount=function(){this.cancelNextCallback()},c.getTimeouts=function(){var u=this.props.timeout,f,d,y;return f=d=y=u,u!=null&&typeof u!="number"&&(f=u.exit,d=u.enter,y=u.appear!==void 0?u.appear:d),{exit:f,enter:d,appear:y}},c.updateStatus=function(u,f){if(u===void 0&&(u=!1),f!==null)if(this.cancelNextCallback(),f===Ba){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:ii.findDOMNode(this);d&&JE(d)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hl&&this.setState({status:cr})},c.performEnter=function(u){var f=this,d=this.props.enter,y=this.context?this.context.isMounting:u,v=this.props.nodeRef?[y]:[ii.findDOMNode(this),y],p=v[0],b=v[1],R=this.getTimeouts(),S=y?R.appear:R.enter;if(!u&&!d||py.disabled){this.safeSetState({status:yl},function(){f.props.onEntered(p)});return}this.props.onEnter(p,b),this.safeSetState({status:Ba},function(){f.props.onEntering(p,b),f.onTransitionEnd(S,function(){f.safeSetState({status:yl},function(){f.props.onEntered(p,b)})})})},c.performExit=function(){var u=this,f=this.props.exit,d=this.getTimeouts(),y=this.props.nodeRef?void 0:ii.findDOMNode(this);if(!f||py.disabled){this.safeSetState({status:hl},function(){u.props.onExited(y)});return}this.props.onExit(y),this.safeSetState({status:Mo},function(){u.props.onExiting(y),u.onTransitionEnd(d.exit,function(){u.safeSetState({status:hl},function(){u.props.onExited(y)})})})},c.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},c.safeSetState=function(u,f){f=this.setNextCallback(f),this.setState(u,f)},c.setNextCallback=function(u){var f=this,d=!0;return this.nextCallback=function(y){d&&(d=!1,f.nextCallback=null,u(y))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},c.onTransitionEnd=function(u,f){this.setNextCallback(f);var d=this.props.nodeRef?this.props.nodeRef.current:ii.findDOMNode(this),y=u==null&&!this.props.addEndListener;if(!d||y){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],p=v[0],b=v[1];this.props.addEndListener(p,b)}u!=null&&setTimeout(this.nextCallback,u)},c.render=function(){var u=this.state.status;if(u===cr)return null;var f=this.props,d=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var y=zE(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yt.createElement(ap.Provider,{value:null},typeof d=="function"?d(u,y):Yt.cloneElement(Yt.Children.only(d),y))},n}(Yt.Component);ha.contextType=ap;ha.propTypes={};function ei(){}ha.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ei,onEntering:ei,onEntered:ei,onExit:ei,onExiting:ei,onExited:ei};ha.UNMOUNTED=cr;ha.EXITED=hl;ha.ENTERING=Ba;ha.ENTERED=yl;ha.EXITING=Mo;function PE(l){return l.code==="Escape"||l.keyCode===27}function WE(){const l=g.version.split(".");return{major:+l[0],minor:+l[1],patch:+l[2]}}function $u(l){if(!l||typeof l=="function")return null;const{major:n}=WE();return n>=19?l.props.ref:l.ref}const ri=!!(typeof window<"u"&&window.document&&window.document.createElement);var zo=!1,Lo=!1;try{var bo={get passive(){return zo=!0},get once(){return Lo=zo=!0}};ri&&(window.addEventListener("test",bo,bo),window.removeEventListener("test",bo,!0))}catch{}function lp(l,n,c,s){if(s&&typeof s!="boolean"&&!Lo){var u=s.once,f=s.capture,d=c;!Lo&&u&&(d=c.__once||function y(v){this.removeEventListener(n,y,f),c.call(this,v)},c.__once=d),l.addEventListener(n,d,zo?s:f)}l.addEventListener(n,c,s)}function Uo(l,n,c,s){var u=s&&typeof s!="boolean"?s.capture:s;l.removeEventListener(n,c,u),c.__once&&l.removeEventListener(n,c.__once,u)}function Bu(l,n,c,s){return lp(l,n,c,s),function(){Uo(l,n,c,s)}}function IE(l,n,c,s){if(s===void 0&&(s=!0),l){var u=document.createEvent("HTMLEvents");u.initEvent(n,c,s),l.dispatchEvent(u)}}function eb(l){var n=gl(l,"transitionDuration")||"",c=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*c}function tb(l,n,c){c===void 0&&(c=5);var s=!1,u=setTimeout(function(){s||IE(l,"transitionend",!0)},n+c),f=Bu(l,"transitionend",function(){s=!0},{once:!0});return function(){clearTimeout(u),f()}}function ip(l,n,c,s){c==null&&(c=eb(l)||0);var u=tb(l,c,s),f=Bu(l,"transitionend",n);return function(){u(),f()}}function vy(l,n){const c=gl(l,n)||"",s=c.indexOf("ms")===-1?1e3:1;return parseFloat(c)*s}function nb(l,n){const c=vy(l,"transitionDuration"),s=vy(l,"transitionDelay"),u=ip(l,f=>{f.target===l&&(u(),n(f))},c+s)}function ab(l){l.offsetHeight}const gy=l=>!l||typeof l=="function"?l:n=>{l.current=n};function lb(l,n){const c=gy(l),s=gy(n);return u=>{c&&c(u),s&&s(u)}}function rp(l,n){return g.useMemo(()=>lb(l,n),[l,n])}function ib(l){return l&&"setState"in l?ii.findDOMNode(l):l??null}const rb=Yt.forwardRef(({onEnter:l,onEntering:n,onEntered:c,onExit:s,onExiting:u,onExited:f,addEndListener:d,children:y,childRef:v,...p},b)=>{const R=g.useRef(null),S=rp(R,v),_=N=>{S(ib(N))},O=N=>W=>{N&&R.current&&N(R.current,W)},H=g.useCallback(O(l),[l]),U=g.useCallback(O(n),[n]),M=g.useCallback(O(c),[c]),q=g.useCallback(O(s),[s]),Y=g.useCallback(O(u),[u]),J=g.useCallback(O(f),[f]),k=g.useCallback(O(d),[d]);return h.jsx(ha,{ref:b,...p,onEnter:H,onEntered:M,onEntering:U,onExit:q,onExited:J,onExiting:Y,addEndListener:k,nodeRef:R,children:typeof y=="function"?(N,W)=>y(N,{...W,ref:_}):Yt.cloneElement(y,{ref:_})})});function ub(l){const n=g.useRef(l);return g.useEffect(()=>{n.current=l},[l]),n}function Ho(l){const n=ub(l);return g.useCallback(function(...c){return n.current&&n.current(...c)},[n])}const Po=l=>g.forwardRef((n,c)=>h.jsx("div",{...n,ref:c,className:Ae(n.className,l)}));function cb(l){const n=g.useRef(l);return g.useEffect(()=>{n.current=l},[l]),n}function pl(l){const n=cb(l);return g.useCallback(function(...c){return n.current&&n.current(...c)},[n])}function sb(){const l=g.useRef(!0),n=g.useRef(()=>l.current);return g.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]),n.current}function ob(l){const n=g.useRef(null);return g.useEffect(()=>{n.current=l}),n.current}const fb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",db=typeof document<"u",Ey=db||fb?g.useLayoutEffect:g.useEffect,hb=["as","disabled"];function mb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function yb(l){return!l||l.trim()==="#"}function up({tagName:l,disabled:n,href:c,target:s,rel:u,role:f,onClick:d,tabIndex:y=0,type:v}){l||(c!=null||s!=null||u!=null?l="a":l="button");const p={tagName:l};if(l==="button")return[{type:v||"button",disabled:n},p];const b=S=>{if((n||l==="a"&&yb(c))&&S.preventDefault(),n){S.stopPropagation();return}d==null||d(S)},R=S=>{S.key===" "&&(S.preventDefault(),b(S))};return l==="a"&&(c||(c="#"),n&&(c=void 0)),[{role:f??"button",disabled:void 0,tabIndex:n?void 0:y,href:c,target:l==="a"?s:void 0,"aria-disabled":n||void 0,rel:l==="a"?u:void 0,onClick:b,onKeyDown:R},p]}const pb=g.forwardRef((l,n)=>{let{as:c,disabled:s}=l,u=mb(l,hb);const[f,{tagName:d}]=up(Object.assign({tagName:c,disabled:s},u));return h.jsx(d,Object.assign({},u,f,{ref:n}))});pb.displayName="Button";const vb={[Ba]:"show",[yl]:"show"},Wo=g.forwardRef(({className:l,children:n,transitionClasses:c={},onEnter:s,...u},f)=>{const d={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},y=g.useCallback((v,p)=>{ab(v),s==null||s(v,p)},[s]);return h.jsx(rb,{ref:f,addEndListener:nb,...d,onEnter:y,childRef:$u(n),children:(v,p)=>g.cloneElement(n,{...p,className:Ae("fade",l,n.props.className,vb[v],c[v])})})});Wo.displayName="Fade";const gb={"aria-label":fa.string,onClick:fa.func,variant:fa.oneOf(["white"])},Io=g.forwardRef(({className:l,variant:n,"aria-label":c="Close",...s},u)=>h.jsx("button",{ref:u,type:"button",className:Ae("btn-close",n&&`btn-close-${n}`,l),"aria-label":c,...s}));Io.displayName="CloseButton";Io.propTypes=gb;const Bo=g.forwardRef(({as:l,bsPrefix:n,variant:c="primary",size:s,active:u=!1,disabled:f=!1,className:d,...y},v)=>{const p=Qe(n,"btn"),[b,{tagName:R}]=up({tagName:l,disabled:f,...y}),S=R;return h.jsx(S,{...b,...y,ref:v,disabled:f,className:Ae(d,p,u&&"active",c&&`${p}-${c}`,s&&`${p}-${s}`,y.href&&f&&"disabled")})});Bo.displayName="Button";const ef=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-body"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));ef.displayName="CardBody";const cp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-footer"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));cp.displayName="CardFooter";const sp=g.createContext(null);sp.displayName="CardHeaderContext";const op=g.forwardRef(({bsPrefix:l,className:n,as:c="div",...s},u)=>{const f=Qe(l,"card-header"),d=g.useMemo(()=>({cardHeaderBsPrefix:f}),[f]);return h.jsx(sp.Provider,{value:d,children:h.jsx(c,{ref:u,...s,className:Ae(n,f)})})});op.displayName="CardHeader";const fp=g.forwardRef(({bsPrefix:l,className:n,variant:c,as:s="img",...u},f)=>{const d=Qe(l,"card-img");return h.jsx(s,{ref:f,className:Ae(c?`${d}-${c}`:d,n),...u})});fp.displayName="CardImg";const dp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-img-overlay"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));dp.displayName="CardImgOverlay";const hp=g.forwardRef(({className:l,bsPrefix:n,as:c="a",...s},u)=>(n=Qe(n,"card-link"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));hp.displayName="CardLink";const Eb=Po("h6"),mp=g.forwardRef(({className:l,bsPrefix:n,as:c=Eb,...s},u)=>(n=Qe(n,"card-subtitle"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));mp.displayName="CardSubtitle";const yp=g.forwardRef(({className:l,bsPrefix:n,as:c="p",...s},u)=>(n=Qe(n,"card-text"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));yp.displayName="CardText";const bb=Po("h5"),pp=g.forwardRef(({className:l,bsPrefix:n,as:c=bb,...s},u)=>(n=Qe(n,"card-title"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));pp.displayName="CardTitle";const vp=g.forwardRef(({bsPrefix:l,className:n,bg:c,text:s,border:u,body:f=!1,children:d,as:y="div",...v},p)=>{const b=Qe(l,"card");return h.jsx(y,{ref:p,...v,className:Ae(n,b,c&&`bg-${c}`,s&&`text-${s}`,u&&`border-${u}`),children:f?h.jsx(ef,{children:d}):d})});vp.displayName="Card";const Yn=Object.assign(vp,{Img:fp,Title:pp,Subtitle:mp,Body:ef,Link:hp,Text:yp,Header:op,Footer:cp,ImgOverlay:dp});function Sb(l){const n=g.useRef(l);return n.current=l,n}function xb(l){const n=Sb(l);g.useEffect(()=>()=>n.current(),[])}function _b(l,n){return g.Children.toArray(l).some(c=>g.isValidElement(c)&&c.type===n)}function Rb({as:l,bsPrefix:n,className:c,...s}){n=Qe(n,"col");const u=tp(),f=np(),d=[],y=[];return u.forEach(v=>{const p=s[v];delete s[v];let b,R,S;typeof p=="object"&&p!=null?{span:b,offset:R,order:S}=p:b=p;const _=v!==f?`-${v}`:"";b&&d.push(b===!0?`${n}${_}`:`${n}${_}-${b}`),S!=null&&y.push(`order${_}-${S}`),R!=null&&y.push(`offset${_}-${R}`)}),[{...s,className:Ae(c,...d,...y)},{as:l,bsPrefix:n,spans:d}]}const ln=g.forwardRef((l,n)=>{const[{className:c,...s},{as:u="div",bsPrefix:f,spans:d}]=Rb(l);return h.jsx(u,{...s,ref:n,className:Ae(c,!d.length&&f)})});ln.displayName="Col";const Ya=g.forwardRef(({bsPrefix:l,fluid:n=!1,as:c="div",className:s,...u},f)=>{const d=Qe(l,"container"),y=typeof n=="string"?`-${n}`:"-fluid";return h.jsx(c,{ref:f,...u,className:Ae(s,n?`${d}${y}`:d)})});Ya.displayName="Container";var Tb=Function.prototype.bind.call(Function.prototype.call,[].slice);function ti(l,n){return Tb(l.querySelectorAll(n))}function by(l,n){if(l.contains)return l.contains(n);if(l.compareDocumentPosition)return l===n||!!(l.compareDocumentPosition(n)&16)}var So,Sy;function Nb(){if(Sy)return So;Sy=1;var l=function(){};return So=l,So}var Cb=Nb();const q2=fr(Cb),jb="data-rr-ui-";function Ob(l){return`${jb}${l}`}const gp=g.createContext(ri?window:void 0);gp.Provider;function tf(){return g.useContext(gp)}const Db={type:fa.string,tooltip:fa.bool,as:fa.elementType},Fu=g.forwardRef(({as:l="div",className:n,type:c="valid",tooltip:s=!1,...u},f)=>h.jsx(l,{...u,ref:f,className:Ae(n,`${c}-${s?"tooltip":"feedback"}`)}));Fu.displayName="Feedback";Fu.propTypes=Db;const da=g.createContext({}),nf=g.forwardRef(({id:l,bsPrefix:n,className:c,type:s="checkbox",isValid:u=!1,isInvalid:f=!1,as:d="input",...y},v)=>{const{controlId:p}=g.useContext(da);return n=Qe(n,"form-check-input"),h.jsx(d,{...y,ref:v,type:s,id:l||p,className:Ae(c,n,u&&"is-valid",f&&"is-invalid")})});nf.displayName="FormCheckInput";const qu=g.forwardRef(({bsPrefix:l,className:n,htmlFor:c,...s},u)=>{const{controlId:f}=g.useContext(da);return l=Qe(l,"form-check-label"),h.jsx("label",{...s,ref:u,htmlFor:c||f,className:Ae(n,l)})});qu.displayName="FormCheckLabel";const Ep=g.forwardRef(({id:l,bsPrefix:n,bsSwitchPrefix:c,inline:s=!1,reverse:u=!1,disabled:f=!1,isValid:d=!1,isInvalid:y=!1,feedbackTooltip:v=!1,feedback:p,feedbackType:b,className:R,style:S,title:_="",type:O="checkbox",label:H,children:U,as:M="input",...q},Y)=>{n=Qe(n,"form-check"),c=Qe(c,"form-switch");const{controlId:J}=g.useContext(da),k=g.useMemo(()=>({controlId:l||J}),[J,l]),N=!U&&H!=null&&H!==!1||_b(U,qu),W=h.jsx(nf,{...q,type:O==="switch"?"checkbox":O,ref:Y,isValid:d,isInvalid:y,disabled:f,as:M});return h.jsx(da.Provider,{value:k,children:h.jsx("div",{style:S,className:Ae(R,N&&n,s&&`${n}-inline`,u&&`${n}-reverse`,O==="switch"&&c),children:U||h.jsxs(h.Fragment,{children:[W,N&&h.jsx(qu,{title:_,children:H}),p&&h.jsx(Fu,{type:b,tooltip:v,children:p})]})})})});Ep.displayName="FormCheck";const Vu=Object.assign(Ep,{Input:nf,Label:qu}),bp=g.forwardRef(({bsPrefix:l,type:n,size:c,htmlSize:s,id:u,className:f,isValid:d=!1,isInvalid:y=!1,plaintext:v,readOnly:p,as:b="input",...R},S)=>{const{controlId:_}=g.useContext(da);return l=Qe(l,"form-control"),h.jsx(b,{...R,type:n,size:s,ref:S,readOnly:p,id:u||_,className:Ae(f,v?`${l}-plaintext`:l,c&&`${l}-${c}`,n==="color"&&`${l}-color`,d&&"is-valid",y&&"is-invalid")})});bp.displayName="FormControl";const wb=Object.assign(bp,{Feedback:Fu}),Sp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"form-floating"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Sp.displayName="FormFloating";const af=g.forwardRef(({controlId:l,as:n="div",...c},s)=>{const u=g.useMemo(()=>({controlId:l}),[l]);return h.jsx(da.Provider,{value:u,children:h.jsx(n,{...c,ref:s})})});af.displayName="FormGroup";const xp=g.forwardRef(({as:l="label",bsPrefix:n,column:c=!1,visuallyHidden:s=!1,className:u,htmlFor:f,...d},y)=>{const{controlId:v}=g.useContext(da);n=Qe(n,"form-label");let p="col-form-label";typeof c=="string"&&(p=`${p} ${p}-${c}`);const b=Ae(u,n,s&&"visually-hidden",c&&p);return f=f||v,c?h.jsx(ln,{ref:y,as:"label",className:b,htmlFor:f,...d}):h.jsx(l,{ref:y,className:b,htmlFor:f,...d})});xp.displayName="FormLabel";const _p=g.forwardRef(({bsPrefix:l,className:n,id:c,...s},u)=>{const{controlId:f}=g.useContext(da);return l=Qe(l,"form-range"),h.jsx("input",{...s,type:"range",ref:u,className:Ae(n,l),id:c||f})});_p.displayName="FormRange";const Rp=g.forwardRef(({bsPrefix:l,size:n,htmlSize:c,className:s,isValid:u=!1,isInvalid:f=!1,id:d,...y},v)=>{const{controlId:p}=g.useContext(da);return l=Qe(l,"form-select"),h.jsx("select",{...y,size:c,ref:v,className:Ae(s,l,n&&`${l}-${n}`,u&&"is-valid",f&&"is-invalid"),id:d||p})});Rp.displayName="FormSelect";const Tp=g.forwardRef(({bsPrefix:l,className:n,as:c="small",muted:s,...u},f)=>(l=Qe(l,"form-text"),h.jsx(c,{...u,ref:f,className:Ae(n,l,s&&"text-muted")})));Tp.displayName="FormText";const Np=g.forwardRef((l,n)=>h.jsx(Vu,{...l,ref:n,type:"switch"}));Np.displayName="Switch";const Ab=Object.assign(Np,{Input:Vu.Input,Label:Vu.Label}),Cp=g.forwardRef(({bsPrefix:l,className:n,children:c,controlId:s,label:u,...f},d)=>(l=Qe(l,"form-floating"),h.jsxs(af,{ref:d,className:Ae(n,l),controlId:s,...f,children:[c,h.jsx("label",{htmlFor:s,children:u})]})));Cp.displayName="FloatingLabel";const Mb={_ref:fa.any,validated:fa.bool,as:fa.elementType},lf=g.forwardRef(({className:l,validated:n,as:c="form",...s},u)=>h.jsx(c,{...s,ref:u,className:Ae(l,n&&"was-validated")}));lf.displayName="Form";lf.propTypes=Mb;const Du=Object.assign(lf,{Group:af,Control:wb,Floating:Sp,Check:Vu,Switch:Ab,Label:xp,Text:Tp,Range:_p,Select:Rp,FloatingLabel:Cp}),xy=l=>!l||typeof l=="function"?l:n=>{l.current=n};function zb(l,n){const c=xy(l),s=xy(n);return u=>{c&&c(u),s&&s(u)}}function rf(l,n){return g.useMemo(()=>zb(l,n),[l,n])}var wu;function _y(l){if((!wu&&wu!==0||l)&&ri){var n=document.createElement("div");n.style.position="absolute",n.style.top="-9999px",n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n),wu=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return wu}function Lb(){return g.useState(null)}function xo(l){l===void 0&&(l=Ku());try{var n=l.activeElement;return!n||!n.nodeName?null:n}catch{return l.body}}function Ub(l){const n=g.useRef(l);return n.current=l,n}function Hb(l){const n=Ub(l);g.useEffect(()=>()=>n.current(),[])}function Bb(l=document){const n=l.defaultView;return Math.abs(n.innerWidth-l.documentElement.clientWidth)}const Ry=Ob("modal-open");class uf{constructor({ownerDocument:n,handleContainerOverflow:c=!0,isRTL:s=!1}={}){this.handleContainerOverflow=c,this.isRTL=s,this.modals=[],this.ownerDocument=n}getScrollbarWidth(){return Bb(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(n){}removeModalAttributes(n){}setContainerStyle(n){const c={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();n.style={overflow:u.style.overflow,[s]:u.style[s]},n.scrollBarWidth&&(c[s]=`${parseInt(gl(u,s)||"0",10)+n.scrollBarWidth}px`),u.setAttribute(Ry,""),gl(u,c)}reset(){[...this.modals].forEach(n=>this.remove(n))}removeContainerStyle(n){const c=this.getElement();c.removeAttribute(Ry),Object.assign(c.style,n.style)}add(n){let c=this.modals.indexOf(n);return c!==-1||(c=this.modals.length,this.modals.push(n),this.setModalAttributes(n),c!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),c}remove(n){const c=this.modals.indexOf(n);c!==-1&&(this.modals.splice(c,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(n))}isTopModal(n){return!!this.modals.length&&this.modals[this.modals.length-1]===n}}const _o=(l,n)=>ri?l==null?(n||Ku()).body:(typeof l=="function"&&(l=l()),l&&"current"in l&&(l=l.current),l&&("nodeType"in l||l.getBoundingClientRect)?l:null):null;function qb(l,n){const c=tf(),[s,u]=g.useState(()=>_o(l,c==null?void 0:c.document));if(!s){const f=_o(l);f&&u(f)}return g.useEffect(()=>{},[n,s]),g.useEffect(()=>{const f=_o(l);f!==s&&u(f)},[l,s]),s}function Vb({children:l,in:n,onExited:c,mountOnEnter:s,unmountOnExit:u}){const f=g.useRef(null),d=g.useRef(n),y=pl(c);g.useEffect(()=>{n?d.current=!0:y(f.current)},[n,y]);const v=rf(f,$u(l)),p=g.cloneElement(l,{ref:v});return n?p:u||!d.current&&s?null:p}const Yb=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Gb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function kb(l){let{onEnter:n,onEntering:c,onEntered:s,onExit:u,onExiting:f,onExited:d,addEndListener:y,children:v}=l,p=Gb(l,Yb);const b=g.useRef(null),R=rf(b,$u(v)),S=J=>k=>{J&&b.current&&J(b.current,k)},_=g.useCallback(S(n),[n]),O=g.useCallback(S(c),[c]),H=g.useCallback(S(s),[s]),U=g.useCallback(S(u),[u]),M=g.useCallback(S(f),[f]),q=g.useCallback(S(d),[d]),Y=g.useCallback(S(y),[y]);return Object.assign({},p,{nodeRef:b},n&&{onEnter:_},c&&{onEntering:O},s&&{onEntered:H},u&&{onExit:U},f&&{onExiting:M},d&&{onExited:q},y&&{addEndListener:Y},{children:typeof v=="function"?(J,k)=>v(J,Object.assign({},k,{ref:R})):g.cloneElement(v,{ref:R})})}const Xb=["component"];function Qb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}const Zb=g.forwardRef((l,n)=>{let{component:c}=l,s=Qb(l,Xb);const u=kb(s);return h.jsx(c,Object.assign({ref:n},u))});function Kb({in:l,onTransition:n}){const c=g.useRef(null),s=g.useRef(!0),u=pl(n);return Ey(()=>{if(!c.current)return;let f=!1;return u({in:l,element:c.current,initial:s.current,isStale:()=>f}),()=>{f=!0}},[l,u]),Ey(()=>(s.current=!1,()=>{s.current=!0}),[]),c}function $b({children:l,in:n,onExited:c,onEntered:s,transition:u}){const[f,d]=g.useState(!n);n&&f&&d(!1);const y=Kb({in:!!n,onTransition:p=>{const b=()=>{p.isStale()||(p.in?s==null||s(p.element,p.initial):(d(!0),c==null||c(p.element)))};Promise.resolve(u(p)).then(b,R=>{throw p.in||d(!0),R})}}),v=rf(y,$u(l));return f&&!n?null:g.cloneElement(l,{ref:v})}function Ty(l,n,c){return l?h.jsx(Zb,Object.assign({},c,{component:l})):n?h.jsx($b,Object.assign({},c,{transition:n})):h.jsx(Vb,Object.assign({},c))}const Fb=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Jb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}let Ro;function Pb(l){return Ro||(Ro=new uf({ownerDocument:l==null?void 0:l.document})),Ro}function Wb(l){const n=tf(),c=l||Pb(n),s=g.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>c.add(s.current),remove:()=>c.remove(s.current),isTopModal:()=>c.isTopModal(s.current),setDialogRef:g.useCallback(u=>{s.current.dialog=u},[]),setBackdropRef:g.useCallback(u=>{s.current.backdrop=u},[])})}const jp=g.forwardRef((l,n)=>{let{show:c=!1,role:s="dialog",className:u,style:f,children:d,backdrop:y=!0,keyboard:v=!0,onBackdropClick:p,onEscapeKeyDown:b,transition:R,runTransition:S,backdropTransition:_,runBackdropTransition:O,autoFocus:H=!0,enforceFocus:U=!0,restoreFocus:M=!0,restoreFocusOptions:q,renderDialog:Y,renderBackdrop:J=De=>h.jsx("div",Object.assign({},De)),manager:k,container:N,onShow:W,onHide:ie=()=>{},onExit:X,onExited:I,onExiting:de,onEnter:Ne,onEntering:Ye,onEntered:Be}=l,ze=Jb(l,Fb);const K=tf(),ce=qb(N),ne=Wb(k),Re=sb(),T=ob(c),[Q,le]=g.useState(!c),te=g.useRef(null);g.useImperativeHandle(n,()=>ne,[ne]),ri&&!T&&c&&(te.current=xo(K==null?void 0:K.document)),c&&Q&&le(!1);const P=pl(()=>{if(ne.add(),Ee.current=Bu(document,"keydown",Ce),Le.current=Bu(document,"focus",()=>setTimeout(ye),!0),W&&W(),H){var De,Rt;const St=xo((De=(Rt=ne.dialog)==null?void 0:Rt.ownerDocument)!=null?De:K==null?void 0:K.document);ne.dialog&&St&&!by(ne.dialog,St)&&(te.current=St,ne.dialog.focus())}}),ge=pl(()=>{if(ne.remove(),Ee.current==null||Ee.current(),Le.current==null||Le.current(),M){var De;(De=te.current)==null||De.focus==null||De.focus(q),te.current=null}});g.useEffect(()=>{!c||!ce||P()},[c,ce,P]),g.useEffect(()=>{Q&&ge()},[Q,ge]),Hb(()=>{ge()});const ye=pl(()=>{if(!U||!Re()||!ne.isTopModal())return;const De=xo(K==null?void 0:K.document);ne.dialog&&De&&!by(ne.dialog,De)&&ne.dialog.focus()}),Je=pl(De=>{De.target===De.currentTarget&&(p==null||p(De),y===!0&&ie())}),Ce=pl(De=>{v&&PE(De)&&ne.isTopModal()&&(b==null||b(De),De.defaultPrevented||ie())}),Le=g.useRef(),Ee=g.useRef(),Ze=(...De)=>{le(!0),I==null||I(...De)};if(!ce)return null;const vt=Object.assign({role:s,ref:ne.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},ze,{style:f,className:u,tabIndex:-1});let it=Y?Y(vt):h.jsx("div",Object.assign({},vt,{children:g.cloneElement(d,{role:"document"})}));it=Ty(R,S,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!c,onExit:X,onExiting:de,onExited:Ze,onEnter:Ne,onEntering:Ye,onEntered:Be,children:it});let lt=null;return y&&(lt=J({ref:ne.setBackdropRef,onClick:Je}),lt=Ty(_,O,{in:!!c,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:lt})),h.jsx(h.Fragment,{children:ii.createPortal(h.jsxs(h.Fragment,{children:[lt,it]}),ce)})});jp.displayName="Modal";const Ib=Object.assign(jp,{Manager:uf});function eS(l,n){return l.classList?l.classList.contains(n):(" "+(l.className.baseVal||l.className)+" ").indexOf(" "+n+" ")!==-1}function tS(l,n){l.classList?l.classList.add(n):eS(l,n)||(typeof l.className=="string"?l.className=l.className+" "+n:l.setAttribute("class",(l.className&&l.className.baseVal||"")+" "+n))}function Ny(l,n){return l.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nS(l,n){l.classList?l.classList.remove(n):typeof l.className=="string"?l.className=Ny(l.className,n):l.setAttribute("class",Ny(l.className&&l.className.baseVal||"",n))}const ni={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class aS extends uf{adjustAndStore(n,c,s){const u=c.style[n];c.dataset[n]=u,gl(c,{[n]:`${parseFloat(gl(c,n))+s}px`})}restore(n,c){const s=c.dataset[n];s!==void 0&&(delete c.dataset[n],gl(c,{[n]:s}))}setContainerStyle(n){super.setContainerStyle(n);const c=this.getElement();if(tS(c,"modal-open"),!n.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";ti(c,ni.FIXED_CONTENT).forEach(f=>this.adjustAndStore(s,f,n.scrollBarWidth)),ti(c,ni.STICKY_CONTENT).forEach(f=>this.adjustAndStore(u,f,-n.scrollBarWidth)),ti(c,ni.NAVBAR_TOGGLER).forEach(f=>this.adjustAndStore(u,f,n.scrollBarWidth))}removeContainerStyle(n){super.removeContainerStyle(n);const c=this.getElement();nS(c,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";ti(c,ni.FIXED_CONTENT).forEach(f=>this.restore(s,f)),ti(c,ni.STICKY_CONTENT).forEach(f=>this.restore(u,f)),ti(c,ni.NAVBAR_TOGGLER).forEach(f=>this.restore(u,f))}}let To;function lS(l){return To||(To=new aS(l)),To}const Op=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"modal-body"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Op.displayName="ModalBody";const Dp=g.createContext({onHide(){}}),cf=g.forwardRef(({bsPrefix:l,className:n,contentClassName:c,centered:s,size:u,fullscreen:f,children:d,scrollable:y,...v},p)=>{l=Qe(l,"modal");const b=`${l}-dialog`,R=typeof f=="string"?`${l}-fullscreen-${f}`:`${l}-fullscreen`;return h.jsx("div",{...v,ref:p,className:Ae(b,n,u&&`${l}-${u}`,s&&`${b}-centered`,y&&`${b}-scrollable`,f&&R),children:h.jsx("div",{className:Ae(`${l}-content`,c),children:d})})});cf.displayName="ModalDialog";const wp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"modal-footer"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));wp.displayName="ModalFooter";const iS=g.forwardRef(({closeLabel:l="Close",closeVariant:n,closeButton:c=!1,onHide:s,children:u,...f},d)=>{const y=g.useContext(Dp),v=Ho(()=>{y==null||y.onHide(),s==null||s()});return h.jsxs("div",{ref:d,...f,children:[u,c&&h.jsx(Io,{"aria-label":l,variant:n,onClick:v})]})}),Ap=g.forwardRef(({bsPrefix:l,className:n,closeLabel:c="Close",closeButton:s=!1,...u},f)=>(l=Qe(l,"modal-header"),h.jsx(iS,{ref:f,...u,className:Ae(n,l),closeLabel:c,closeButton:s})));Ap.displayName="ModalHeader";const rS=Po("h4"),Mp=g.forwardRef(({className:l,bsPrefix:n,as:c=rS,...s},u)=>(n=Qe(n,"modal-title"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Mp.displayName="ModalTitle";function uS(l){return h.jsx(Wo,{...l,timeout:null})}function cS(l){return h.jsx(Wo,{...l,timeout:null})}const zp=g.forwardRef(({bsPrefix:l,className:n,style:c,dialogClassName:s,contentClassName:u,children:f,dialogAs:d=cf,"data-bs-theme":y,"aria-labelledby":v,"aria-describedby":p,"aria-label":b,show:R=!1,animation:S=!0,backdrop:_=!0,keyboard:O=!0,onEscapeKeyDown:H,onShow:U,onHide:M,container:q,autoFocus:Y=!0,enforceFocus:J=!0,restoreFocus:k=!0,restoreFocusOptions:N,onEntered:W,onExit:ie,onExiting:X,onEnter:I,onEntering:de,onExited:Ne,backdropClassName:Ye,manager:Be,...ze},K)=>{const[ce,ne]=g.useState({}),[Re,T]=g.useState(!1),Q=g.useRef(!1),le=g.useRef(!1),te=g.useRef(null),[P,ge]=Lb(),ye=rp(K,ge),Je=Ho(M),Ce=BE();l=Qe(l,"modal");const Le=g.useMemo(()=>({onHide:Je}),[Je]);function Ee(){return Be||lS({isRTL:Ce})}function Ze(_e){if(!ri)return;const Ie=Ee().getScrollbarWidth()>0,Gt=_e.scrollHeight>Ku(_e).documentElement.clientHeight;ne({paddingRight:Ie&&!Gt?_y():void 0,paddingLeft:!Ie&&Gt?_y():void 0})}const vt=Ho(()=>{P&&Ze(P.dialog)});xb(()=>{Uo(window,"resize",vt),te.current==null||te.current()});const it=()=>{Q.current=!0},lt=_e=>{Q.current&&P&&_e.target===P.dialog&&(le.current=!0),Q.current=!1},De=()=>{T(!0),te.current=ip(P.dialog,()=>{T(!1)})},Rt=_e=>{_e.target===_e.currentTarget&&De()},St=_e=>{if(_==="static"){Rt(_e);return}if(le.current||_e.target!==_e.currentTarget){le.current=!1;return}M==null||M()},Pt=_e=>{O?H==null||H(_e):(_e.preventDefault(),_==="static"&&De())},Zt=(_e,Ie)=>{_e&&Ze(_e),I==null||I(_e,Ie)},un=_e=>{te.current==null||te.current(),ie==null||ie(_e)},cn=(_e,Ie)=>{de==null||de(_e,Ie),lp(window,"resize",vt)},Ut=_e=>{_e&&(_e.style.display=""),Ne==null||Ne(_e),Uo(window,"resize",vt)},Ht=g.useCallback(_e=>h.jsx("div",{..._e,className:Ae(`${l}-backdrop`,Ye,!S&&"show")}),[S,Ye,l]),mt={...c,...ce};mt.display="block";const Kt=_e=>h.jsx("div",{role:"dialog",..._e,style:mt,className:Ae(n,l,Re&&`${l}-static`,!S&&"show"),onClick:_?St:void 0,onMouseUp:lt,"data-bs-theme":y,"aria-label":b,"aria-labelledby":v,"aria-describedby":p,children:h.jsx(d,{...ze,onMouseDown:it,className:s,contentClassName:u,children:f})});return h.jsx(Dp.Provider,{value:Le,children:h.jsx(Ib,{show:R,ref:ye,backdrop:_,container:q,keyboard:!0,autoFocus:Y,enforceFocus:J,restoreFocus:k,restoreFocusOptions:N,onEscapeKeyDown:Pt,onShow:U,onHide:M,onEnter:Zt,onEntering:cn,onEntered:W,onExit:un,onExiting:X,onExited:Ut,manager:Ee(),transition:S?uS:void 0,backdropTransition:S?cS:void 0,renderBackdrop:Ht,renderDialog:Kt})})});zp.displayName="Modal";const ir=Object.assign(zp,{Body:Op,Header:Ap,Title:Mp,Footer:wp,Dialog:cf,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Rn=g.forwardRef(({bsPrefix:l,className:n,as:c="div",...s},u)=>{const f=Qe(l,"row"),d=tp(),y=np(),v=`${f}-cols`,p=[];return d.forEach(b=>{const R=s[b];delete s[b];let S;R!=null&&typeof R=="object"?{cols:S}=R:S=R;const _=b!==y?`-${b}`:"";S!=null&&p.push(`${v}${_}-${S}`)}),h.jsx(c,{ref:u,...s,className:Ae(n,f,...p)})});Rn.displayName="Row";const sS="/static/DY3vaYXT.svg";function oS(){const l=Ke.c(6),{user:n}=g.useContext(Fo),{pathname:c}=Xn();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(ln,{xs:10,children:h.jsx("div",{className:"nav-wrapper",children:h.jsxs("nav",{className:"header-nav",children:[h.jsx("a",{href:"https://geant.org/",children:h.jsx("img",{src:sS,alt:"GÉANT Logo"})}),h.jsxs("ul",{children:[h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://network.geant.org/",children:"NETWORK"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://geant.org/services/",children:"SERVICES"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://community.geant.org/",children:"COMMUNITY"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/",children:"TNC"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://geant.org/projects/",children:"PROJECTS"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/",children:"CONNECT"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://impact.geant.org/",children:"IMPACT"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://careers.geant.org/",children:"CAREERS"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://about.geant.org/",children:"ABOUT"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news",children:"NEWS"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://resources.geant.org/",children:"RESOURCES"})}),h.jsx("li",{children:h.jsx(Tn,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),l[0]=s):s=l[0];let u;l[1]!==c||l[2]!==n.permissions.admin?(u=n.permissions.admin&&!c.includes("survey")&&h.jsx("div",{className:"nav-link",style:{float:"right"},children:h.jsx(Tn,{className:"nav-link-entry",to:"/survey",children:h.jsx("span",{children:"Go to Survey"})})}),l[1]=c,l[2]=n.permissions.admin,l[3]=u):u=l[3];let f;return l[4]!==u?(f=h.jsx("div",{className:"external-page-nav-bar",children:h.jsx(Ya,{children:h.jsxs(Rn,{children:[s,h.jsx(ln,{xs:2,children:u})]})})}),l[4]=u,l[5]=f):f=l[5],f}const fS="/static/A3T3A-a_.svg",dS="/static/DOOiIGTs.png";function hS(){const l=Ke.c(9);let n;l[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("a",{href:"https://geant.org",children:h.jsx("img",{src:fS,className:"m-3",style:{maxWidth:"100px"},alt:"GÉANT Logo"})}),l[0]=n):n=l[0];let c;l[1]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsxs(ln,{children:[n,h.jsx("img",{src:dS,className:"m-3",style:{maxWidth:"200px"},alt:"European Union Flag"})]}),l[1]=c):c=l[1];let s,u;l[2]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),u=h.jsx("wbr",{}),l[2]=s,l[3]=u):(s=l[2],u=l[3]);let f,d;l[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/",children:"GEANT Anti‑Slavery Policy"}),d=h.jsx("wbr",{}),l[4]=f,l[5]=d):(f=l[4],d=l[5]);let y,v;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),v=h.jsx("wbr",{}),l[6]=y,l[7]=v):(y=l[6],v=l[7]);let p;return l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("footer",{className:"page-footer pt-3",children:h.jsx(Ya,{children:h.jsxs(Rn,{children:[c,h.jsx(ln,{className:"mt-4 text-end",children:h.jsxs("span",{children:[s,u,"|",f,d,"|",y,v,"|",h.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:mS,children:"Analytics Consent"})]})})]})})}),l[8]=p):p=l[8],p}function mS(){localStorage.removeItem("matomo_consent"),window.location.reload()}const Lp="/static/C4lsyu6A.svg",Up="/static/DhA-EmEc.svg";function Hp(){const l=Ke.c(16),n=g.useContext(ep);let c;l[0]!==n?(c=O=>n==null?void 0:n.trackPageView(O),l[0]=n,l[1]=c):c=l[1];const s=c;let u;l[2]!==n?(u=O=>n==null?void 0:n.trackEvent(O),l[2]=n,l[3]=u):u=l[3];const f=u;let d;l[4]!==n?(d=()=>n==null?void 0:n.trackEvents(),l[4]=n,l[5]=d):d=l[5];const y=d;let v;l[6]!==n?(v=O=>n==null?void 0:n.trackLink(O),l[6]=n,l[7]=v):v=l[7];const p=v,b=yS;let R;l[8]!==n?(R=(O,...H)=>{const U=H;n==null||n.pushInstruction(O,...U)},l[8]=n,l[9]=R):R=l[9];const S=R;let _;return l[10]!==S||l[11]!==f||l[12]!==y||l[13]!==p||l[14]!==s?(_={trackEvent:f,trackEvents:y,trackPageView:s,trackLink:p,enableLinkTracking:b,pushInstruction:S},l[10]=S,l[11]=f,l[12]=y,l[13]=p,l[14]=s,l[15]=_):_=l[15],_}function yS(){}function Bp(){const l=Ke.c(13),{trackPageView:n}=Hp();let c,s;l[0]!==n?(c=()=>{n({documentTitle:"GEANT Compendium Landing Page"})},s=[n],l[0]=n,l[1]=c,l[2]=s):(c=l[1],s=l[2]),g.useEffect(c,s);let u;l[3]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),l[3]=u):u=l[3];let f;l[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(Rn,{children:h.jsxs("div",{className:"center-text",children:[u,h.jsxs("div",{className:"wordwrap pt-4",children:[h.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"Each year GÉANT invites European National Research and Eduction Networks to fill in a questionnaire asking about their network, their organisation, standards and policies, connected users, and the services they offer their users. This Compendium of responses is an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. No two NRENs are identical, with great diversity in their structures, funding, size, and focus."}),h.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"The GÉANT Compendium of NRENs Report is published annually, using both data from the Compendium from other sources, including surveys and studies carried out within different teams within GÉANT and the NREN community. The Report gives a broad overview of the European NREN landscape, identifying developments and trends."}),h.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"Compendium Data, the responses from the NRENs, are made available to be viewed and downloaded. Graphs, charts, and tables can be customised to show as many or few NRENs as required, across different years. These can be downloaded as images or in PDF form."})]})]})}),l[4]=f):f=l[4];let d;l[5]===Symbol.for("react.memo_cache_sentinel")?(d={backgroundColor:"white"},l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y={width:"18rem"},l[6]=y):y=l[6];let v;l[7]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(Yn.Img,{src:Lp}),l[7]=v):v=l[7];let p;l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(Yn.Title,{children:"Compendium Data"}),l[8]=p):p=l[8];let b;l[9]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(ln,{align:"center",children:h.jsx(Yn,{border:"light",style:y,children:h.jsxs(Tn,{to:"/data",className:"link-text",children:[v,h.jsxs(Yn.Body,{children:[p,h.jsx(Yn.Text,{children:h.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),l[9]=b):b=l[9];let R;l[10]===Symbol.for("react.memo_cache_sentinel")?(R={width:"18rem"},l[10]=R):R=l[10];let S;l[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx(Yn.Img,{src:Up}),l[11]=S):S=l[11];let _;return l[12]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsxs(Ya,{className:"py-5 grey-container",children:[f,h.jsx(Rn,{children:h.jsx(ln,{children:h.jsx(Ya,{style:d,className:"rounded-border",children:h.jsxs(Rn,{className:"justify-content-md-center",children:[b,h.jsx(ln,{align:"center",children:h.jsx(Yn,{border:"light",style:R,children:h.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[S,h.jsxs(Yn.Body,{children:[h.jsx(Yn.Title,{children:"Compendium Reports"}),h.jsx(Yn.Text,{children:"A GÉANT Compendium Report is published annually, drawing on data from the Compendium Survey filled in by NRENs, complemented by information from other surveys"})]})]})})})]})})})})]}),l[12]=_):_=l[12],_}var qp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Cy=Yt.createContext&&Yt.createContext(qp),pS=["attr","size","title"];function vS(l,n){if(l==null)return{};var c=gS(l,n),s,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(u=0;u<f.length;u++)s=f[u],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(l,s)&&(c[s]=l[s])}return c}function gS(l,n){if(l==null)return{};var c={};for(var s in l)if(Object.prototype.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function Yu(){return Yu=Object.assign?Object.assign.bind():function(l){for(var n=1;n<arguments.length;n++){var c=arguments[n];for(var s in c)Object.prototype.hasOwnProperty.call(c,s)&&(l[s]=c[s])}return l},Yu.apply(this,arguments)}function jy(l,n){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);n&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),c.push.apply(c,s)}return c}function Gu(l){for(var n=1;n<arguments.length;n++){var c=arguments[n]!=null?arguments[n]:{};n%2?jy(Object(c),!0).forEach(function(s){ES(l,s,c[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):jy(Object(c)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(c,s))})}return l}function ES(l,n,c){return n=bS(n),n in l?Object.defineProperty(l,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[n]=c,l}function bS(l){var n=SS(l,"string");return typeof n=="symbol"?n:n+""}function SS(l,n){if(typeof l!="object"||!l)return l;var c=l[Symbol.toPrimitive];if(c!==void 0){var s=c.call(l,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(l)}function Vp(l){return l&&l.map((n,c)=>Yt.createElement(n.tag,Gu({key:c},n.attr),Vp(n.child)))}function Yp(l){return n=>Yt.createElement(xS,Yu({attr:Gu({},l.attr)},n),Vp(l.child))}function xS(l){var n=c=>{var{attr:s,size:u,title:f}=l,d=vS(l,pS),y=u||c.size||"1em",v;return c.className&&(v=c.className),l.className&&(v=(v?v+" ":"")+l.className),Yt.createElement("svg",Yu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},c.attr,s,d,{className:v,style:Gu(Gu({color:l.color||c.color},c.style),l.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),f&&Yt.createElement("title",null,f),l.children)};return Cy!==void 0?Yt.createElement(Cy.Consumer,null,c=>n(c)):n(qp)}function _S(l){return Yp({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(l)}function RS(l){return Yp({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(l)}const rr=l=>{const n=Ke.c(23),{title:c,children:s,startCollapsed:u,theme:f}=l,d=f===void 0?"":f,[y,v]=g.useState(!!u);let p;n[0]===Symbol.for("react.memo_cache_sentinel")?(p={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},n[0]=p):p=n[0];let b=p;if(d){let k;n[1]===Symbol.for("react.memo_cache_sentinel")?(k={...b,color:"black",fontWeight:"bold"},n[1]=k):k=n[1],b=k}const R=`collapsible-box${d} p-0`;let S;n[2]!==c?(S=h.jsx(ln,{children:h.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:c})}),n[2]=c,n[3]=S):S=n[3];const _=`toggle-btn${d} p-${d?3:2}`;let O;n[4]!==y?(O=()=>v(!y),n[4]=y,n[5]=O):O=n[5];let H;n[6]!==y||n[7]!==b?(H=y?h.jsx(RS,{style:b}):h.jsx(_S,{style:b}),n[6]=y,n[7]=b,n[8]=H):H=n[8];let U;n[9]!==_||n[10]!==O||n[11]!==H?(U=h.jsx(ln,{className:"flex-grow-0 flex-shrink-1",children:h.jsx("div",{className:_,onClick:O,children:H})}),n[9]=_,n[10]=O,n[11]=H,n[12]=U):U=n[12];let M;n[13]!==S||n[14]!==U?(M=h.jsxs(Rn,{children:[S,U]}),n[13]=S,n[14]=U,n[15]=M):M=n[15];const q=`collapsible-content${y?" collapsed":""}`;let Y;n[16]!==s||n[17]!==q?(Y=h.jsx("div",{className:q,children:s}),n[16]=s,n[17]=q,n[18]=Y):Y=n[18];let J;return n[19]!==Y||n[20]!==R||n[21]!==M?(J=h.jsxs("div",{className:R,children:[M,Y]}),n[19]=Y,n[20]=R,n[21]=M,n[22]=J):J=n[22],J};function TS(l){const n=Ke.c(8),{section:c}=l;let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},n[0]=s):s=n[0];let u,f;n[1]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx("br",{}),f={float:"right"},n[1]=u,n[2]=f):(u=n[1],f=n[2]);let d;n[3]!==c?(d=h.jsx("div",{style:s,children:h.jsxs("span",{children:["Compendium ",u,h.jsx("span",{style:f,children:c})]})}),n[3]=c,n[4]=d):d=n[4];let y;n[5]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("img",{src:Up,style:{maxWidth:"4rem"},alt:"Compendium Data logo"}),n[5]=y):y=n[5];let v;return n[6]!==d?(v=h.jsxs("div",{className:"bold-caps-17pt section-container",children:[d,y]}),n[6]=d,n[7]=v):v=n[7],v}function NS(l){const n=Ke.c(14),{type:c}=l;let s="";c=="data"?s=" compendium-data-header":c=="reports"&&(s=" compendium-reports-header");let u;n[0]===Symbol.for("react.memo_cache_sentinel")?(u={marginTop:"0.5rem"},n[0]=u):u=n[0];const f=c==="data"?"/data":"/";let d;n[1]===Symbol.for("react.memo_cache_sentinel")?(d={textDecoration:"none",color:"white"},n[1]=d):d=n[1];const y=c==="data"?"Data":"Reports";let v;n[2]!==y?(v=h.jsxs("span",{children:["Compendium ",y]}),n[2]=y,n[3]=v):v=n[3];let p;n[4]!==f||n[5]!==v?(p=h.jsx(ln,{sm:8,children:h.jsx("h1",{className:"bold-caps-30pt",style:u,children:h.jsx(Tn,{to:f,style:d,children:v})})}),n[4]=f,n[5]=v,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b={color:"inherit"},n[7]=b):b=n[7];let R;n[8]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx(ln,{sm:4,children:h.jsx("a",{style:b,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:h.jsx(TS,{section:"Reports"})})}),n[8]=R):R=n[8];let S;n[9]!==p?(S=h.jsx(Ya,{children:h.jsxs(Rn,{children:[p,R]})}),n[9]=p,n[10]=S):S=n[10];let _;return n[11]!==s||n[12]!==S?(_=h.jsx("div",{className:s,children:S}),n[11]=s,n[12]=S,n[13]=_):_=n[13],_}function CS(l){const n=Ke.c(8),{children:c,type:s}=l;let u="";s=="data"?u=" compendium-data-banner":s=="reports"&&(u=" compendium-reports-banner");let f,d;n[0]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx("img",{src:Lp,style:{maxWidth:"7rem",marginBottom:"1rem"},alt:"Compendium Data logo"}),d={display:"flex",alignSelf:"right"},n[0]=f,n[1]=d):(f=n[0],d=n[1]);let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y={paddingTop:"1rem"},n[2]=y):y=n[2];let v;n[3]!==c?(v=h.jsx(Ya,{children:h.jsx(Rn,{children:h.jsx(Rn,{children:h.jsxs("div",{className:"section-container",children:[f,h.jsx("div",{style:d,children:h.jsx("div",{className:"center-text",style:y,children:c})})]})})})}),n[3]=c,n[4]=v):v=n[4];let p;return n[5]!==u||n[6]!==v?(p=h.jsx("div",{className:u,children:v}),n[5]=u,n[6]=v,n[7]=p):p=n[7],p}var li=(l=>(l.Organisation="ORGANISATION",l.Policy="STANDARDS AND POLICIES",l.ConnectedUsers="CONNECTED USERS",l.Network="NETWORK",l.Services="SERVICES",l))(li||{}),jS=(l=>(l.CSV="CSV",l.EXCEL="EXCEL",l))(jS||{}),OS=(l=>(l.PNG="png",l.JPEG="jpeg",l.SVG="svg",l))(OS||{});const V2={universities:"Universities & Other (ISCED 6-8)",further_education:"Further education (ISCED 4-5)",secondary_schools:"Secondary schools (ISCED 2-3)",primary_schools:"Primary schools (ISCED 1)",institutes:"Research Institutes",cultural:"Libraries, Museums, Archives, Cultural institutions",hospitals:"Non-university public Hospitals",government:"Government departments (national, regional, local)",iros:"International (virtual) research organisations",for_profit_orgs:"For-profit organisations"},Y2={commercial_r_and_e:"Commercial R&E traffic only",commercial_general:"Commercial general",commercial_collaboration:"Commercial for collaboration only (project/time limited)",commercial_service_provider:"Commercial Service Provider",university_spin_off:"University Spin Off/Incubator"},G2={collaboration:"Connection to your network for collaboration with R&E users",service_supplier:"Connection to your network for supplying services for R&E",direct_peering:"Direct peering (e.g. direct peering or cloud peering)"};function DS(){const l=Ke.c(7),{preview:n,setPreview:c}=g.useContext(Iy),{user:s}=g.useContext(Fo),[u]=lE();let f;l[0]!==u?(f=u.get("preview"),l[0]=u,l[1]=f):f=l[1];const d=f;let y,v;return l[2]!==d||l[3]!==c||l[4]!==s?(y=()=>{d!==null&&(s.permissions.admin||s.role=="observer")&&c(!0)},v=[d,c,s],l[2]=d,l[3]=c,l[4]=s,l[5]=y,l[6]=v):(y=l[5],v=l[6]),g.useEffect(y,v),n}function yr(l){const n=Ke.c(9),{to:c,children:s}=l,u=window.location.pathname===c,f=g.useRef(null);let d,y;n[0]!==u?(d=()=>{u&&f.current&&f.current.scrollIntoView({behavior:"smooth",block:"center"})},y=[u],n[0]=u,n[1]=d,n[2]=y):(d=n[1],y=n[2]),g.useEffect(d,y);let v;n[3]!==s||n[4]!==u?(v=u?h.jsx("b",{children:s}):s,n[3]=s,n[4]=u,n[5]=v):v=n[5];let p;return n[6]!==v||n[7]!==c?(p=h.jsx(Rn,{children:h.jsx(Tn,{to:c,className:"link-text-underline",ref:f,children:v})}),n[6]=v,n[7]=c,n[8]=p):p=n[8],p}const se={budget:"Budget of NRENs per Year",funding:"Income Source of NRENs",charging:"Charging Mechanism of NRENs","employee-count":"Number of NREN Employees",roles:"Roles of NREN employees (Technical v. Non-Technical)",employment:"Types of Employment within NRENs",suborganisations:"NREN Sub-Organisations",parentorganisation:"NREN Parent Organisations","ec-projects":"NREN Involvement in European Commission Projects",policy:"NREN Policies",audits:"External and Internal Audits of Information Security Management Systems","business-continuity":"NREN Business Continuity Planning","central-procurement":"Value of Software Procured for Customers by NRENs","crisis-management":"Crisis Management Procedures","crisis-exercise":"Crisis Exercises - NREN Operation and Participation",eosc_listings:"NREN Services Listed on the EOSC Portal","security-control":"Security Controls Used by NRENs","services-offered":"Services Offered by NRENs by Types of Users","corporate-strategy":"NREN Corporate Strategies","service-level-targets":"NRENs Offering Service Level Targets","service-management-framework":"NRENs Operating a Formal Service Management Framework","institutions-urls":"Webpages Listing Institutions and Organisations Connected to NREN Networks","connected-proportion":"Proportion of Different Categories of Institutions Served by NRENs","connectivity-level":"Level of IP Connectivity by Institution Type","connection-carrier":"Methods of Carrying IP Traffic to Users","connectivity-load":"Connectivity Load","connectivity-growth":"Connectivity Growth","remote-campuses":"NREN Connectivity to Remote Campuses in Other Countries","commercial-charging-level":"Commercial Charging Level","commercial-connectivity":"Commercial Connectivity","traffic-volume":"NREN Traffic - NREN Customers & External Networks","iru-duration":"Average Duration of IRU leases of Fibre by NRENs","fibre-light":"Approaches to lighting NREN fibre networks","dark-fibre-lease":"Kilometres of Leased Dark Fibre (National)","dark-fibre-lease-international":"Kilometres of Leased Dark Fibre (International)","dark-fibre-installed":"Kilometres of Installed Dark Fibre","network-map":"NREN Network Maps","monitoring-tools":"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions","pert-team":"NRENs with Performance Enhancement Response Teams","passive-monitoring":"Methods for Passively Monitoring International Traffic","traffic-stats":"Traffic Statistics","weather-map":"NREN Online Network Weather Maps","certificate-provider":"Certification Services used by NRENs","siem-vendors":"Vendors of SIEM/SOC systems used by NRENs","alien-wave":"NREN Use of 3rd Party Alienwave/Lightpath Services","alien-wave-internal":"Internal NREN Use of Alien Waves","capacity-largest-link":"Capacity of the Largest Link in an NREN Network","external-connections":"NREN External IP Connections","capacity-core-ip":"NREN Core IP Capacity","non-rne-peers":"Number of Non-R&E Networks NRENs Peer With","traffic-ratio":"Types of traffic in NREN networks (Commodity v. Research & Education)","ops-automation":"NREN Automation of Operational Processes","network-automation":"Network Tasks for which NRENs Use Automation",nfv:"Kinds of Network Function Virtualisation used by NRENs","network-services":"NREN Network services matrix","isp-support-services":"NREN ISP support services matrix","security-services":"NREN Security services matrix","identity-services":"NREN Identity services matrix","collaboration-services":"NREN Collaboration services matrix","multimedia-services":"NREN Multimedia services matrix","storage-and-hosting-services":"NREN Storage and hosting services matrix","professional-services":"NREN Professional services matrix"};function wS(l){const n=Ke.c(52),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Organisation"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se.budget}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/budget",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se.funding}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/funding",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se.charging}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/charging",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O,H;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("hr",{className:"fake-divider"}),H=h.jsx("h6",{className:"section-title",children:"Staff and Projects"}),n[15]=O,n[16]=H):(O=n[15],H=n[16]);let U;n[17]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["employee-count"]}),n[17]=U):U=n[17];let M;n[18]!==u||n[19]!==f?(M=h.jsx(u,{to:"/employee-count",className:f,children:U}),n[18]=u,n[19]=f,n[20]=M):M=n[20];let q;n[21]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se.employment}),n[21]=q):q=n[21];let Y;n[22]!==u||n[23]!==f?(Y=h.jsx(u,{to:"/employment",className:f,children:q}),n[22]=u,n[23]=f,n[24]=Y):Y=n[24];let J;n[25]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("span",{children:se.roles}),n[25]=J):J=n[25];let k;n[26]!==u||n[27]!==f?(k=h.jsx(u,{to:"/roles",className:f,children:J}),n[26]=u,n[27]=f,n[28]=k):k=n[28];let N;n[29]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("span",{children:se.parentorganisation}),n[29]=N):N=n[29];let W;n[30]!==u||n[31]!==f?(W=h.jsx(u,{to:"/parentorganisation",className:f,children:N}),n[30]=u,n[31]=f,n[32]=W):W=n[32];let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se.suborganisations}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/suborganisations",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["ec-projects"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/ec-projects",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;return n[41]!==M||n[42]!==Y||n[43]!==k||n[44]!==W||n[45]!==d||n[46]!==X||n[47]!==de||n[48]!==p||n[49]!==R||n[50]!==_?(Ne=h.jsxs(h.Fragment,{children:[d,y,p,R,_,O,H,M,Y,k,W,X,de]}),n[41]=M,n[42]=Y,n[43]=k,n[44]=W,n[45]=d,n[46]=X,n[47]=de,n[48]=p,n[49]=R,n[50]=_,n[51]=Ne):Ne=n[51],Ne}function AS(l){const n=Ke.c(61),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Standards And Policies"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Policy & Portfolio"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["corporate-strategy"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/corporate-strategy",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se.policy}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/policy",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["central-procurement"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/central-procurement",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["service-management-framework"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/service-management-framework",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["service-level-targets"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/service-level-targets",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["services-offered"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/services-offered",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("h6",{className:"section-title",children:"Standards"}),n[27]=J):J=n[27];let k;n[28]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("span",{children:se.audits}),n[28]=k):k=n[28];let N;n[29]!==u||n[30]!==f?(N=h.jsx(u,{to:"/audits",className:f,children:k}),n[29]=u,n[30]=f,n[31]=N):N=n[31];let W;n[32]===Symbol.for("react.memo_cache_sentinel")?(W=h.jsx("span",{children:se["business-continuity"]}),n[32]=W):W=n[32];let ie;n[33]!==u||n[34]!==f?(ie=h.jsx(u,{to:"/business-continuity",className:f,children:W}),n[33]=u,n[34]=f,n[35]=ie):ie=n[35];let X;n[36]===Symbol.for("react.memo_cache_sentinel")?(X=h.jsx("span",{children:se["crisis-management"]}),n[36]=X):X=n[36];let I;n[37]!==u||n[38]!==f?(I=h.jsx(u,{to:"/crisis-management",className:f,children:X}),n[37]=u,n[38]=f,n[39]=I):I=n[39];let de;n[40]===Symbol.for("react.memo_cache_sentinel")?(de=h.jsx("span",{children:se["crisis-exercise"]}),n[40]=de):de=n[40];let Ne;n[41]!==u||n[42]!==f?(Ne=h.jsx(u,{to:"/crisis-exercise",className:f,children:de}),n[41]=u,n[42]=f,n[43]=Ne):Ne=n[43];let Ye;n[44]===Symbol.for("react.memo_cache_sentinel")?(Ye=h.jsx("span",{children:se["security-control"]}),n[44]=Ye):Ye=n[44];let Be;n[45]!==u||n[46]!==f?(Be=h.jsx(u,{to:"/security-control",className:f,children:Ye}),n[45]=u,n[46]=f,n[47]=Be):Be=n[47];let ze;return n[48]!==H||n[49]!==M||n[50]!==Y||n[51]!==N||n[52]!==d||n[53]!==ie||n[54]!==I||n[55]!==Ne||n[56]!==Be||n[57]!==p||n[58]!==R||n[59]!==_?(ze=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,J,N,ie,I,Ne,Be]}),n[48]=H,n[49]=M,n[50]=Y,n[51]=N,n[52]=d,n[53]=ie,n[54]=I,n[55]=Ne,n[56]=Be,n[57]=p,n[58]=R,n[59]=_,n[60]=ze):ze=n[60],ze}function MS(l){const n=Ke.c(52),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Connected Users"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Connected Users"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["institutions-urls"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/institutions-urls",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se["connected-proportion"]}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/connected-proportion",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["connectivity-level"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/connectivity-level",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["connection-carrier"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/connection-carrier",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["connectivity-load"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/connectivity-load",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["connectivity-growth"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/connectivity-growth",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("span",{children:se["remote-campuses"]}),n[27]=J):J=n[27];let k;n[28]!==u||n[29]!==f?(k=h.jsx(u,{to:"/remote-campuses",className:f,children:J}),n[28]=u,n[29]=f,n[30]=k):k=n[30];let N,W;n[31]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("hr",{className:"fake-divider"}),W=h.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),n[31]=N,n[32]=W):(N=n[31],W=n[32]);let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se["commercial-charging-level"]}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/commercial-charging-level",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["commercial-connectivity"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/commercial-connectivity",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;return n[41]!==H||n[42]!==M||n[43]!==Y||n[44]!==k||n[45]!==d||n[46]!==X||n[47]!==de||n[48]!==p||n[49]!==R||n[50]!==_?(Ne=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,k,N,W,X,de]}),n[41]=H,n[42]=M,n[43]=Y,n[44]=k,n[45]=d,n[46]=X,n[47]=de,n[48]=p,n[49]=R,n[50]=_,n[51]=Ne):Ne=n[51],Ne}function zS(l){const n=Ke.c(133),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Network"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Connectivity"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["dark-fibre-lease"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/dark-fibre-lease",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se["dark-fibre-lease-international"]}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/dark-fibre-lease-international",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["iru-duration"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/iru-duration",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["dark-fibre-installed"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/dark-fibre-installed",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["fibre-light"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/fibre-light",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["network-map"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/network-map",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J,k;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("hr",{className:"fake-divider"}),k=h.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),n[27]=J,n[28]=k):(J=n[27],k=n[28]);let N;n[29]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("span",{children:se["monitoring-tools"]}),n[29]=N):N=n[29];let W;n[30]!==u||n[31]!==f?(W=h.jsx(u,{to:"/monitoring-tools",className:f,children:N}),n[30]=u,n[31]=f,n[32]=W):W=n[32];let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se["passive-monitoring"]}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/passive-monitoring",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["traffic-stats"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/traffic-stats",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;n[41]===Symbol.for("react.memo_cache_sentinel")?(Ne=h.jsx("span",{children:se["siem-vendors"]}),n[41]=Ne):Ne=n[41];let Ye;n[42]!==u||n[43]!==f?(Ye=h.jsx(u,{to:"/siem-vendors",className:f,children:Ne}),n[42]=u,n[43]=f,n[44]=Ye):Ye=n[44];let Be;n[45]===Symbol.for("react.memo_cache_sentinel")?(Be=h.jsx("span",{children:se["certificate-provider"]}),n[45]=Be):Be=n[45];let ze;n[46]!==u||n[47]!==f?(ze=h.jsx(u,{to:"/certificate-provider",className:f,children:Be}),n[46]=u,n[47]=f,n[48]=ze):ze=n[48];let K;n[49]===Symbol.for("react.memo_cache_sentinel")?(K=h.jsx("span",{children:se["weather-map"]}),n[49]=K):K=n[49];let ce;n[50]!==u||n[51]!==f?(ce=h.jsx(u,{to:"/weather-map",className:f,children:K}),n[50]=u,n[51]=f,n[52]=ce):ce=n[52];let ne;n[53]===Symbol.for("react.memo_cache_sentinel")?(ne=h.jsx("span",{children:se["pert-team"]}),n[53]=ne):ne=n[53];let Re;n[54]!==u||n[55]!==f?(Re=h.jsx(u,{to:"/pert-team",className:f,children:ne}),n[54]=u,n[55]=f,n[56]=Re):Re=n[56];let T,Q;n[57]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx("hr",{className:"fake-divider"}),Q=h.jsx("h6",{className:"section-title",children:"Alienwave"}),n[57]=T,n[58]=Q):(T=n[57],Q=n[58]);let le;n[59]===Symbol.for("react.memo_cache_sentinel")?(le=h.jsx("span",{children:se["alien-wave"]}),n[59]=le):le=n[59];let te;n[60]!==u||n[61]!==f?(te=h.jsx(u,{to:"/alien-wave",className:f,children:le}),n[60]=u,n[61]=f,n[62]=te):te=n[62];let P;n[63]===Symbol.for("react.memo_cache_sentinel")?(P=h.jsx("span",{children:se["alien-wave-internal"]}),n[63]=P):P=n[63];let ge;n[64]!==u||n[65]!==f?(ge=h.jsx(u,{to:"/alien-wave-internal",className:f,children:P}),n[64]=u,n[65]=f,n[66]=ge):ge=n[66];let ye,Je;n[67]===Symbol.for("react.memo_cache_sentinel")?(ye=h.jsx("hr",{className:"fake-divider"}),Je=h.jsx("h6",{className:"section-title",children:"Capacity"}),n[67]=ye,n[68]=Je):(ye=n[67],Je=n[68]);let Ce;n[69]===Symbol.for("react.memo_cache_sentinel")?(Ce=h.jsx("span",{children:se["capacity-largest-link"]}),n[69]=Ce):Ce=n[69];let Le;n[70]!==u||n[71]!==f?(Le=h.jsx(u,{to:"/capacity-largest-link",className:f,children:Ce}),n[70]=u,n[71]=f,n[72]=Le):Le=n[72];let Ee;n[73]===Symbol.for("react.memo_cache_sentinel")?(Ee=h.jsx("span",{children:se["capacity-core-ip"]}),n[73]=Ee):Ee=n[73];let Ze;n[74]!==u||n[75]!==f?(Ze=h.jsx(u,{to:"/capacity-core-ip",className:f,children:Ee}),n[74]=u,n[75]=f,n[76]=Ze):Ze=n[76];let vt;n[77]===Symbol.for("react.memo_cache_sentinel")?(vt=h.jsx("span",{children:se["external-connections"]}),n[77]=vt):vt=n[77];let it;n[78]!==u||n[79]!==f?(it=h.jsx(u,{to:"/external-connections",className:f,children:vt}),n[78]=u,n[79]=f,n[80]=it):it=n[80];let lt;n[81]===Symbol.for("react.memo_cache_sentinel")?(lt=h.jsx("span",{children:se["non-rne-peers"]}),n[81]=lt):lt=n[81];let De;n[82]!==u||n[83]!==f?(De=h.jsx(u,{to:"/non-rne-peers",className:f,children:lt}),n[82]=u,n[83]=f,n[84]=De):De=n[84];let Rt;n[85]===Symbol.for("react.memo_cache_sentinel")?(Rt=h.jsx("span",{children:se["traffic-volume"]}),n[85]=Rt):Rt=n[85];let St;n[86]!==u||n[87]!==f?(St=h.jsx(u,{to:"/traffic-volume",className:f,children:Rt}),n[86]=u,n[87]=f,n[88]=St):St=n[88];let Pt;n[89]===Symbol.for("react.memo_cache_sentinel")?(Pt=h.jsx("span",{children:se["traffic-ratio"]}),n[89]=Pt):Pt=n[89];let Zt;n[90]!==u||n[91]!==f?(Zt=h.jsx(u,{to:"/traffic-ratio",className:f,children:Pt}),n[90]=u,n[91]=f,n[92]=Zt):Zt=n[92];let un,cn;n[93]===Symbol.for("react.memo_cache_sentinel")?(un=h.jsx("hr",{className:"fake-divider"}),cn=h.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),n[93]=un,n[94]=cn):(un=n[93],cn=n[94]);let Ut;n[95]===Symbol.for("react.memo_cache_sentinel")?(Ut=h.jsx("span",{children:se["ops-automation"]}),n[95]=Ut):Ut=n[95];let Ht;n[96]!==u||n[97]!==f?(Ht=h.jsx(u,{to:"/ops-automation",className:f,children:Ut}),n[96]=u,n[97]=f,n[98]=Ht):Ht=n[98];let mt;n[99]===Symbol.for("react.memo_cache_sentinel")?(mt=h.jsx("span",{children:se.nfv}),n[99]=mt):mt=n[99];let Kt;n[100]!==u||n[101]!==f?(Kt=h.jsx(u,{to:"/nfv",className:f,children:mt}),n[100]=u,n[101]=f,n[102]=Kt):Kt=n[102];let _e;n[103]===Symbol.for("react.memo_cache_sentinel")?(_e=h.jsx("span",{children:se["network-automation"]}),n[103]=_e):_e=n[103];let Ie;n[104]!==u||n[105]!==f?(Ie=h.jsx(u,{to:"/network-automation",className:f,children:_e}),n[104]=u,n[105]=f,n[106]=Ie):Ie=n[106];let Gt;return n[107]!==H||n[108]!==M||n[109]!==Y||n[110]!==W||n[111]!==d||n[112]!==X||n[113]!==de||n[114]!==Ye||n[115]!==ze||n[116]!==ce||n[117]!==Re||n[118]!==te||n[119]!==ge||n[120]!==Le||n[121]!==Ze||n[122]!==it||n[123]!==De||n[124]!==St||n[125]!==p||n[126]!==Zt||n[127]!==Ht||n[128]!==Kt||n[129]!==Ie||n[130]!==R||n[131]!==_?(Gt=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,J,k,W,X,de,Ye,ze,ce,Re,T,Q,te,ge,ye,Je,Le,Ze,it,De,St,Zt,un,cn,Ht,Kt,Ie]}),n[107]=H,n[108]=M,n[109]=Y,n[110]=W,n[111]=d,n[112]=X,n[113]=de,n[114]=Ye,n[115]=ze,n[116]=ce,n[117]=Re,n[118]=te,n[119]=ge,n[120]=Le,n[121]=Ze,n[122]=it,n[123]=De,n[124]=St,n[125]=p,n[126]=Zt,n[127]=Ht,n[128]=Kt,n[129]=Ie,n[130]=R,n[131]=_,n[132]=Gt):Gt=n[132],Gt}function LS(l){const n=Ke.c(44),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Services"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("span",{children:se["network-services"]}),n[2]=y):y=n[2];let v;n[3]!==u||n[4]!==f?(v=h.jsx(u,{to:"/network-services",className:f,children:y}),n[3]=u,n[4]=f,n[5]=v):v=n[5];let p;n[6]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("span",{children:se["isp-support-services"]}),n[6]=p):p=n[6];let b;n[7]!==u||n[8]!==f?(b=h.jsx(u,{to:"/isp-support-services",className:f,children:p}),n[7]=u,n[8]=f,n[9]=b):b=n[9];let R;n[10]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx("span",{children:se["security-services"]}),n[10]=R):R=n[10];let S;n[11]!==u||n[12]!==f?(S=h.jsx(u,{to:"/security-services",className:f,children:R}),n[11]=u,n[12]=f,n[13]=S):S=n[13];let _;n[14]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx("span",{children:se["identity-services"]}),n[14]=_):_=n[14];let O;n[15]!==u||n[16]!==f?(O=h.jsx(u,{to:"/identity-services",className:f,children:_}),n[15]=u,n[16]=f,n[17]=O):O=n[17];let H;n[18]===Symbol.for("react.memo_cache_sentinel")?(H=h.jsx("span",{children:se["storage-and-hosting-services"]}),n[18]=H):H=n[18];let U;n[19]!==u||n[20]!==f?(U=h.jsx(u,{to:"/storage-and-hosting-services",className:f,children:H}),n[19]=u,n[20]=f,n[21]=U):U=n[21];let M;n[22]===Symbol.for("react.memo_cache_sentinel")?(M=h.jsx("span",{children:se["multimedia-services"]}),n[22]=M):M=n[22];let q;n[23]!==u||n[24]!==f?(q=h.jsx(u,{to:"/multimedia-services",className:f,children:M}),n[23]=u,n[24]=f,n[25]=q):q=n[25];let Y;n[26]===Symbol.for("react.memo_cache_sentinel")?(Y=h.jsx("span",{children:se["collaboration-services"]}),n[26]=Y):Y=n[26];let J;n[27]!==u||n[28]!==f?(J=h.jsx(u,{to:"/collaboration-services",className:f,children:Y}),n[27]=u,n[28]=f,n[29]=J):J=n[29];let k;n[30]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("span",{children:se["professional-services"]}),n[30]=k):k=n[30];let N;n[31]!==u||n[32]!==f?(N=h.jsx(u,{to:"/professional-services",className:f,children:k}),n[31]=u,n[32]=f,n[33]=N):N=n[33];let W;return n[34]!==O||n[35]!==U||n[36]!==q||n[37]!==J||n[38]!==N||n[39]!==d||n[40]!==v||n[41]!==b||n[42]!==S?(W=h.jsxs(h.Fragment,{children:[d,v,b,S,O,U,q,J,N]}),n[34]=O,n[35]=U,n[36]=q,n[37]=J,n[38]=N,n[39]=d,n[40]=v,n[41]=b,n[42]=S,n[43]=W):W=n[43],W}function US(){const l=Ke.c(10);DS();const{trackPageView:n}=Hp();let c,s;l[0]!==n?(c=()=>{n({documentTitle:"Compendium Data"})},s=[n],l[0]=n,l[1]=c,l[2]=s):(c=l[1],s=l[2]),Yt.useEffect(c,s);let u;l[3]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx(NS,{type:"data"}),l[3]=u):u=l[3];let f;l[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(CS,{type:"data",children:h.jsx("p",{className:"wordwrap",children:"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing."})}),l[4]=f):f=l[4];let d;l[5]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsx(rr,{title:li.Organisation,children:h.jsx(wS,{})}),l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(rr,{title:li.Policy,startCollapsed:!0,children:h.jsx(AS,{})}),l[6]=y):y=l[6];let v;l[7]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(rr,{title:li.ConnectedUsers,startCollapsed:!0,children:h.jsx(MS,{})}),l[7]=v):v=l[7];let p;l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(rr,{title:li.Network,startCollapsed:!0,children:h.jsx(zS,{})}),l[8]=p):p=l[8];let b;return l[9]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsxs(h.Fragment,{children:[u,f,h.jsx(Ya,{className:"mt-5 mb-5",children:h.jsxs(Rn,{children:[d,y,v,p,h.jsx(rr,{title:li.Services,startCollapsed:!0,children:h.jsx(LS,{})})]})})]}),l[9]=b):b=l[9],b}const HS=()=>{const l=Ke.c(26),{consent:n,setConsent:c}=g.useContext(Jo),[s,u]=g.useState(n===null);let f;l[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{u(!1),window.location.reload()},l[0]=f):f=l[0];const d=f,[y,v]=g.useState(!0);let p;l[1]!==c?(p=N=>{const W=new Date;W.setDate(W.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:N,expiry:W})),c(N)},l[1]=c,l[2]=p):p=l[2];const b=p;let R;l[3]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx(ir.Header,{closeButton:!0,children:h.jsx(ir.Title,{children:"Privacy on this site"})}),l[3]=R):R=l[3];let S;l[4]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),l[4]=S):S=l[4];let _;l[5]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsxs("p",{children:["On our site we use Matomo to collect and process data about your visit to better understand how it is used. For more information, see our ",S,".",h.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),l[5]=_):_=l[5];let O;l[6]!==y?(O=()=>v(!y),l[6]=y,l[7]=O):O=l[7];let H;l[8]!==y||l[9]!==O?(H=h.jsx(Du.Check,{type:"checkbox",label:"Analytics",checked:y,onChange:O}),l[8]=y,l[9]=O,l[10]=H):H=l[10];let U;l[11]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx(Du.Text,{className:"text-muted",children:"We collect information about your visit on the compendium site — this helps us understand how the site is used, and how we can improve it."}),l[11]=U):U=l[11];let M;l[12]!==H?(M=h.jsxs(ir.Body,{children:[_,h.jsx(Du,{children:h.jsxs(Du.Group,{className:"mb-3",children:[H,U]})})]}),l[12]=H,l[13]=M):M=l[13];let q;l[14]!==b?(q=h.jsx(Bo,{variant:"secondary",onClick:()=>{b(!1),d()},children:"Decline all"}),l[14]=b,l[15]=q):q=l[15];let Y;l[16]!==y||l[17]!==b?(Y=h.jsx(Bo,{variant:"primary",onClick:()=>{b(y),d()},children:"Save consent for 30 days"}),l[16]=y,l[17]=b,l[18]=Y):Y=l[18];let J;l[19]!==Y||l[20]!==q?(J=h.jsxs(ir.Footer,{children:[q,Y]}),l[19]=Y,l[20]=q,l[21]=J):J=l[21];let k;return l[22]!==s||l[23]!==J||l[24]!==M?(k=h.jsxs(ir,{show:s,centered:!0,children:[R,M,J]}),l[22]=s,l[23]=J,l[24]=M,l[25]=k):k=l[25],k},BS=g.lazy(()=>be(()=>import("./Budget-DX8h4kEm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),qS=g.lazy(()=>be(()=>import("./ChargingStructure-BiXVfonj.js"),__vite__mapDeps([8,2,3,4,5,6,9,10,11]))),VS=g.lazy(()=>be(()=>import("./ECProjects-Ixano_sS.js"),__vite__mapDeps([12,2,3,4,5,6,13,11]))),YS=g.lazy(()=>be(()=>import("./FundingSource-DoZCzgMa.js"),__vite__mapDeps([14,1,2,3,4,5,6,15]))),GS=g.lazy(()=>be(()=>import("./ParentOrganisation-OrE_JaGF.js"),__vite__mapDeps([16,2,3,4,5,6,13,11]))),Oy=g.lazy(()=>be(()=>import("./StaffGraph-D3mBN476.js"),__vite__mapDeps([17,1,2,3,4,5,6,18]))),kS=g.lazy(()=>be(()=>import("./StaffGraphAbsolute-I7Y3C-nj.js"),__vite__mapDeps([19,1,2,3,4,5,6,15,7]))),XS=g.lazy(()=>be(()=>import("./SubOrganisation-C7B4_RD0.js"),__vite__mapDeps([20,2,3,4,5,6,13,11]))),QS=g.lazy(()=>be(()=>import("./Audits-DfjcC9VL.js"),__vite__mapDeps([21,2,3,4,5,6,9,10,11]))),ZS=g.lazy(()=>be(()=>import("./BusinessContinuity-CswNIFcO.js"),__vite__mapDeps([22,2,3,4,5,6,9,10,11]))),KS=g.lazy(()=>be(()=>import("./CentralProcurement-_z44vsb4.js"),__vite__mapDeps([23,2,3,4,5,6,15,1,7]))),$S=g.lazy(()=>be(()=>import("./CorporateStrategy-BrErbevP.js"),__vite__mapDeps([24,2,3,4,5,6,13,11]))),FS=g.lazy(()=>be(()=>import("./CrisisExercises-mu7CJTN3.js"),__vite__mapDeps([25,2,3,4,5,6,9,10,11]))),JS=g.lazy(()=>be(()=>import("./CrisisManagement-BxTFYm8e.js"),__vite__mapDeps([26,2,3,4,5,6,9,10,11]))),PS=g.lazy(()=>be(()=>import("./EOSCListings-DWYL3kBM.js"),__vite__mapDeps([27,2,3,4,5,6,13,11]))),WS=g.lazy(()=>be(()=>import("./Policy-C19_KfRY.js"),__vite__mapDeps([28,2,3,4,5,6,13,11]))),IS=g.lazy(()=>be(()=>import("./SecurityControls-CkjbRt2j.js"),__vite__mapDeps([29,2,3,4,5,6,9,10,11]))),e2=g.lazy(()=>be(()=>import("./ServiceLevelTargets-BQyQ1ynP.js"),__vite__mapDeps([30,2,3,4,5,6,9,10,11]))),t2=g.lazy(()=>be(()=>import("./ServiceManagementFramework-DDW7v-XJ.js"),__vite__mapDeps([31,2,3,4,5,6,9,10,11]))),n2=g.lazy(()=>be(()=>import("./ServicesOffered-BnmNlrgs.js"),__vite__mapDeps([32,2,3,4,5,6,33,11]))),a2=g.lazy(()=>be(()=>import("./ConnectedInstitutionsURLs-BSBw8xZy.js"),__vite__mapDeps([34,2,3,4,5,6,13,11]))),dl=g.lazy(()=>be(()=>import("./ConnectedUser-DXYx3bSL.js"),__vite__mapDeps([35,2,3,4,5,6,33,11]))),l2=g.lazy(()=>be(()=>import("./RemoteCampuses-Bu_1Ucwy.js"),__vite__mapDeps([36,2,3,4,5,6,11]))),i2=g.lazy(()=>be(()=>import("./AlienWave-DO1S2459.js"),__vite__mapDeps([37,2,3,4,5,6,9,10,11]))),r2=g.lazy(()=>be(()=>import("./AlienWaveInternal-BhuqQCyf.js"),__vite__mapDeps([38,2,3,4,5,6,9,10,11]))),u2=g.lazy(()=>be(()=>import("./Automation-DzfRRQiO.js"),__vite__mapDeps([39,2,3,4,5,6,10,11]))),c2=g.lazy(()=>be(()=>import("./CapacityCoreIP-P2rbPvQY.js"),__vite__mapDeps([40,1,2,3,4,5,6,15,7]))),s2=g.lazy(()=>be(()=>import("./CapacityLargestLink-CGhxu47M.js"),__vite__mapDeps([41,1,2,3,4,5,6,15,7]))),o2=g.lazy(()=>be(()=>import("./CertificateProvider-CpWnMPbq.js"),__vite__mapDeps([42,2,3,4,5,6,9,10,11]))),Dy=g.lazy(()=>be(()=>import("./DarkFibreLease-Nz1_rVx9.js"),__vite__mapDeps([43,1,2,3,4,5,6,7]))),f2=g.lazy(()=>be(()=>import("./DarkFibreInstalled-Uox2eGX8.js"),__vite__mapDeps([44,1,2,3,4,5,6,7]))),d2=g.lazy(()=>be(()=>import("./ExternalConnections-BVnV4NEl.js"),__vite__mapDeps([45,2,3,4,5,6,11]))),h2=g.lazy(()=>be(()=>import("./FibreLight-UtHnGi0p.js"),__vite__mapDeps([46,2,3,4,5,6,9,10,11]))),m2=g.lazy(()=>be(()=>import("./IRUDuration-CI7E3kyS.js"),__vite__mapDeps([47,1,2,3,4,5,6,7]))),y2=g.lazy(()=>be(()=>import("./MonitoringTools-C61NJKaR.js"),__vite__mapDeps([48,2,3,4,5,6,9,10,11]))),p2=g.lazy(()=>be(()=>import("./NetworkFunctionVirtualisation-DLW-vjXN.js"),__vite__mapDeps([49,2,3,4,5,6,10,11]))),v2=g.lazy(()=>be(()=>import("./NetworkMapUrls-B3Qc49It.js"),__vite__mapDeps([50,2,3,4,5,6,13,11]))),g2=g.lazy(()=>be(()=>import("./NonRAndEPeer-Cg_pAdU8.js"),__vite__mapDeps([51,1,2,3,4,5,6,15,7]))),E2=g.lazy(()=>be(()=>import("./OPsAutomation-BoFZP12U.js"),__vite__mapDeps([52,2,3,4,5,6,9,10,11]))),b2=g.lazy(()=>be(()=>import("./PassiveMonitoring-Cv8zkVr2.js"),__vite__mapDeps([53,2,3,4,5,6,9,10,11]))),S2=g.lazy(()=>be(()=>import("./PertTeam-Cf_GEMUq.js"),__vite__mapDeps([54,2,3,4,5,6,9,10,11]))),x2=g.lazy(()=>be(()=>import("./SiemVendors-pjqFJlX2.js"),__vite__mapDeps([55,2,3,4,5,6,9,10,11]))),_2=g.lazy(()=>be(()=>import("./TrafficRatio-BELkAOlA.js"),__vite__mapDeps([56,1,2,3,4,5,6,18]))),R2=g.lazy(()=>be(()=>import("./TrafficUrl-BLm4mZku.js"),__vite__mapDeps([57,2,3,4,5,6,13,11]))),T2=g.lazy(()=>be(()=>import("./TrafficVolume-1MvPPErr.js"),__vite__mapDeps([58,1,2,3,4,5,6,7]))),N2=g.lazy(()=>be(()=>import("./WeatherMap-CZPcsrK6.js"),__vite__mapDeps([59,2,3,4,5,6,13,11]))),Ua=g.lazy(()=>be(()=>import("./Services-kzZ5IOvA.js"),__vite__mapDeps([60,2,3,4,5,6,11]))),C2=g.lazy(()=>be(()=>import("./Landing-B1Sq71Lu.js"),__vite__mapDeps([61,62,63,3,4,11]))),No=g.lazy(()=>be(()=>import("./SurveyContainerComponent-DxT_-mC9.js"),__vite__mapDeps([64,65,66,67,63,3,68]))),j2=g.lazy(()=>be(()=>import("./SurveyManagementComponent-DygIuffI.js"),__vite__mapDeps([69,70,6,11,65,67,62,63,3]))),O2=g.lazy(()=>be(()=>import("./UserManagementComponent-DK-BhUBG.js"),__vite__mapDeps([71,65,63,3,5,70,6,11]))),D2=()=>{const l=Ke.c(9),{pathname:n}=Xn(),c=n!=="/";let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(oS,{}),l[0]=s):s=l[0];let u;l[1]!==c?(u=h.jsx("main",{className:"grow",children:c?h.jsx(T0,{}):h.jsx(Bp,{})}),l[1]=c,l[2]=u):u=l[2];let f;l[3]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(HS,{}),l[3]=f):f=l[3];let d;l[4]!==u?(d=h.jsxs(wE,{children:[s,u,f]}),l[4]=u,l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(hS,{}),l[6]=y):y=l[6];let v;return l[7]!==d?(v=h.jsxs(h.Fragment,{children:[d,y]}),l[7]=d,l[8]=v):v=l[8],v},w2=P0([{path:"",element:h.jsx(D2,{}),children:[{path:"/budget",element:h.jsx(BS,{})},{path:"/funding",element:h.jsx(YS,{})},{path:"/employment",element:h.jsx(Oy,{},"staffgraph")},{path:"/traffic-ratio",element:h.jsx(_2,{})},{path:"/roles",element:h.jsx(Oy,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:h.jsx(kS,{})},{path:"/charging",element:h.jsx(qS,{})},{path:"/suborganisations",element:h.jsx(XS,{})},{path:"/parentorganisation",element:h.jsx(GS,{})},{path:"/ec-projects",element:h.jsx(VS,{})},{path:"/policy",element:h.jsx(WS,{})},{path:"/traffic-volume",element:h.jsx(T2,{})},{path:"/data",element:h.jsx(US,{})},{path:"/institutions-urls",element:h.jsx(a2,{})},{path:"/connected-proportion",element:h.jsx(dl,{page:Qt.ConnectedProportion},Qt.ConnectedProportion)},{path:"/connectivity-level",element:h.jsx(dl,{page:Qt.ConnectivityLevel},Qt.ConnectivityLevel)},{path:"/connectivity-growth",element:h.jsx(dl,{page:Qt.ConnectivityGrowth},Qt.ConnectivityGrowth)},{path:"/connection-carrier",element:h.jsx(dl,{page:Qt.ConnectionCarrier},Qt.ConnectionCarrier)},{path:"/connectivity-load",element:h.jsx(dl,{page:Qt.ConnectivityLoad},Qt.ConnectivityLoad)},{path:"/commercial-charging-level",element:h.jsx(dl,{page:Qt.CommercialChargingLevel},Qt.CommercialChargingLevel)},{path:"/commercial-connectivity",element:h.jsx(dl,{page:Qt.CommercialConnectivity},Qt.CommercialConnectivity)},{path:"/network-services",element:h.jsx(Ua,{category:Lt.network_services},Lt.network_services)},{path:"/isp-support-services",element:h.jsx(Ua,{category:Lt.isp_support},Lt.isp_support)},{path:"/security-services",element:h.jsx(Ua,{category:Lt.security},Lt.security)},{path:"/identity-services",element:h.jsx(Ua,{category:Lt.identity},Lt.identity)},{path:"/collaboration-services",element:h.jsx(Ua,{category:Lt.collaboration},Lt.collaboration)},{path:"/multimedia-services",element:h.jsx(Ua,{category:Lt.multimedia},Lt.multimedia)},{path:"/storage-and-hosting-services",element:h.jsx(Ua,{category:Lt.storage_and_hosting},Lt.storage_and_hosting)},{path:"/professional-services",element:h.jsx(Ua,{category:Lt.professional_services},Lt.professional_services)},{path:"/dark-fibre-lease",element:h.jsx(Dy,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:h.jsx(Dy,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:h.jsx(f2,{})},{path:"/remote-campuses",element:h.jsx(l2,{})},{path:"/eosc-listings",element:h.jsx(PS,{})},{path:"/fibre-light",element:h.jsx(h2,{})},{path:"/monitoring-tools",element:h.jsx(y2,{})},{path:"/pert-team",element:h.jsx(S2,{})},{path:"/passive-monitoring",element:h.jsx(b2,{})},{path:"/alien-wave",element:h.jsx(i2,{})},{path:"/alien-wave-internal",element:h.jsx(r2,{})},{path:"/external-connections",element:h.jsx(d2,{})},{path:"/ops-automation",element:h.jsx(E2,{})},{path:"/network-automation",element:h.jsx(u2,{})},{path:"/traffic-stats",element:h.jsx(R2,{})},{path:"/weather-map",element:h.jsx(N2,{})},{path:"/network-map",element:h.jsx(v2,{})},{path:"/nfv",element:h.jsx(p2,{})},{path:"/certificate-providers",element:h.jsx(o2,{})},{path:"/siem-vendors",element:h.jsx(x2,{})},{path:"/capacity-largest-link",element:h.jsx(s2,{})},{path:"/capacity-core-ip",element:h.jsx(c2,{})},{path:"/non-rne-peers",element:h.jsx(g2,{})},{path:"/iru-duration",element:h.jsx(m2,{})},{path:"/audits",element:h.jsx(QS,{})},{path:"/business-continuity",element:h.jsx(ZS,{})},{path:"/crisis-management",element:h.jsx(JS,{})},{path:"/crisis-exercise",element:h.jsx(FS,{})},{path:"/central-procurement",element:h.jsx(KS,{})},{path:"/security-control",element:h.jsx(IS,{})},{path:"/services-offered",element:h.jsx(n2,{})},{path:"/service-management-framework",element:h.jsx(t2,{})},{path:"/service-level-targets",element:h.jsx(e2,{})},{path:"/corporate-strategy",element:h.jsx($S,{})},{path:"/survey/admin/surveys",element:h.jsx(j2,{})},{path:"/survey/admin/users",element:h.jsx(O2,{})},{path:"/survey/admin/inspect/:year",element:h.jsx(No,{loadFrom:"/api/response/inspect/"})},{path:"/survey/admin/try/:year",element:h.jsx(No,{loadFrom:"/api/response/try/"})},{path:"/survey/response/:year/:nren",element:h.jsx(No,{loadFrom:"/api/response/load/"})},{path:"/survey/*",element:h.jsx(C2,{})},{path:"/*",element:h.jsx(Bp,{})}]}]);function A2(){const l=Ke.c(1);let n;return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("div",{className:"app",children:h.jsx(oE,{router:w2})}),l[0]=n):n=l[0],n}const M2=document.getElementById("root"),z2=a1.createRoot(M2);z2.render(h.jsx(Yt.StrictMode,{children:h.jsx(A2,{})}));export{zE as $,Ho as A,pb as B,ln as C,Xy as D,Ya as E,yE as F,MS as G,LS as H,jS as I,vE as J,OS as K,Tn as L,Iy as M,zS as N,wS as O,AS as P,Hp as Q,Rn as R,li as S,NS as T,V2 as U,SE as V,Du as W,DS as X,_S as Y,RS as Z,Yp as _,Qt as a,Lt as a0,Fo as a1,yr as a2,ku as a3,wy as a4,B2 as a5,H2 as a6,be as a7,rb as a8,nb as a9,$u as aa,gl as ab,hl as ac,Mo as ad,Ba as ae,yl as af,ab as ag,U2 as ah,nf as ai,OE as aj,Y2 as b,Ke as c,G2 as d,rr as e,Yt as f,up as g,Qe as h,Ae as i,h as j,sb as k,by as l,Bu as m,Ob as n,Ku as o,tf as p,ob as q,g as r,ti as s,se as t,pl as u,lp as v,q2 as w,rp as x,Bo as y,BE as z};
diff --git a/compendium_v2/static/lodash-BjwYmmCl.js b/compendium_v2/static/lodash-0qAddrJ1.js
similarity index 82%
rename from compendium_v2/static/lodash-BjwYmmCl.js
rename to compendium_v2/static/lodash-0qAddrJ1.js
index e696e2e1e70e0157d05bb606f0aa1078769ba2b8..661a252f9e250faf64c56a95bea3bbc3f560e7bf 100644
--- a/compendium_v2/static/lodash-BjwYmmCl.js
+++ b/compendium_v2/static/lodash-0qAddrJ1.js
@@ -1,13 +1,13 @@
-import{i as vo,r as X,j as On,a1 as A_,a2 as y_,a3 as m_,c as Et,a4 as xo,a5 as E_,a6 as R_,a7 as I_,a8 as C_,a9 as S_,u as $t,aa as cr}from"./main-BIBsTO5W.js";import{u as T_}from"./hook-DmuGcAOd.js";function he(...W){return W.filter(I=>I!=null).reduce((I,o)=>{if(typeof o!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return I===null?o:function(...U){I.apply(this,U),o.apply(this,U)}},null)}const L_={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function O_(W,I){const o=`offset${W[0].toUpperCase()}${W.slice(1)}`,$=I[o],U=L_[W];return $+parseInt(xo(I,U[0]),10)+parseInt(xo(I,U[1]),10)}const W_={[E_]:"collapse",[R_]:"collapsing",[I_]:"collapsing",[C_]:"collapse show"},B_=vo.forwardRef(({onEnter:W,onEntering:I,onEntered:o,onExit:$,onExiting:U,className:k,children:L,dimension:nn="height",in:rn=!1,timeout:ht=300,mountOnEnter:Wn=!1,unmountOnExit:an=!1,appear:_e=!1,getDimensionValue:Kn=O_,...zn},Rt)=>{const N=typeof nn=="function"?nn():nn,et=X.useMemo(()=>he(J=>{J.style[N]="0"},W),[N,W]),de=X.useMemo(()=>he(J=>{const _n=`scroll${N[0].toUpperCase()}${N.slice(1)}`;J.style[N]=`${J[_n]}px`},I),[N,I]),Bn=X.useMemo(()=>he(J=>{J.style[N]=null},o),[N,o]),gt=X.useMemo(()=>he(J=>{J.style[N]=`${Kn(N,J)}px`,S_(J)},$),[$,Kn,N]),Mn=X.useMemo(()=>he(J=>{J.style[N]=null},U),[N,U]);return On.jsx(A_,{ref:Rt,addEndListener:y_,...zn,"aria-expanded":zn.role?rn:null,onEnter:et,onEntering:de,onEntered:Bn,onExit:gt,onExiting:Mn,childRef:m_(L),in:rn,timeout:ht,mountOnEnter:Wn,unmountOnExit:an,appear:_e,children:(J,_n)=>vo.cloneElement(L,{..._n,className:Et(k,L.props.className,W_[J],N==="width"&&"collapse-horizontal")})})});function Ao(W,I){return Array.isArray(W)?W.includes(I):W===I}const pe=X.createContext({});pe.displayName="AccordionContext";const Pi=X.forwardRef(({as:W="div",bsPrefix:I,className:o,children:$,eventKey:U,...k},L)=>{const{activeEventKey:nn}=X.useContext(pe);return I=$t(I,"accordion-collapse"),On.jsx(B_,{ref:L,in:Ao(nn,U),...k,className:Et(o,I),children:On.jsx(W,{children:X.Children.only($)})})});Pi.displayName="AccordionCollapse";const hr=X.createContext({eventKey:""});hr.displayName="AccordionItemContext";const yo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,...ht},Wn)=>{I=$t(I,"accordion-body");const{eventKey:an}=X.useContext(hr);return On.jsx(Pi,{eventKey:an,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,children:On.jsx(W,{ref:Wn,...ht,className:Et(o,I)})})});yo.displayName="AccordionBody";function M_(W,I){const{activeEventKey:o,onSelect:$,alwaysOpen:U}=X.useContext(pe);return k=>{let L=W===o?null:W;U&&(Array.isArray(o)?o.includes(W)?L=o.filter(nn=>nn!==W):L=[...o,W]:L=[W]),$==null||$(L,k),I==null||I(k)}}const bi=X.forwardRef(({as:W="button",bsPrefix:I,className:o,onClick:$,...U},k)=>{I=$t(I,"accordion-button");const{eventKey:L}=X.useContext(hr),nn=M_(L,$),{activeEventKey:rn}=X.useContext(pe);return W==="button"&&(U.type="button"),On.jsx(W,{ref:k,onClick:nn,...U,"aria-expanded":Array.isArray(rn)?rn.includes(L):L===rn,className:Et(o,I,!Ao(rn,L)&&"collapsed")})});bi.displayName="AccordionButton";const mo=X.forwardRef(({as:W="h2","aria-controls":I,bsPrefix:o,className:$,children:U,onClick:k,...L},nn)=>(o=$t(o,"accordion-header"),On.jsx(W,{ref:nn,...L,className:Et($,o),children:On.jsx(bi,{onClick:k,"aria-controls":I,children:U})})));mo.displayName="AccordionHeader";const Eo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,eventKey:$,...U},k)=>{I=$t(I,"accordion-item");const L=X.useMemo(()=>({eventKey:$}),[$]);return On.jsx(hr.Provider,{value:L,children:On.jsx(W,{ref:k,...U,className:Et(o,I)})})});Eo.displayName="AccordionItem";const Ro=X.forwardRef((W,I)=>{const{as:o="div",activeKey:$,bsPrefix:U,className:k,onSelect:L,flush:nn,alwaysOpen:rn,...ht}=T_(W,{activeKey:"onSelect"}),Wn=$t(U,"accordion"),an=X.useMemo(()=>({activeEventKey:$,onSelect:L,alwaysOpen:rn}),[$,L,rn]);return On.jsx(pe.Provider,{value:an,children:On.jsx(o,{ref:I,...ht,className:Et(k,Wn,nn&&`${Wn}-flush`)})})});Ro.displayName="Accordion";const D_=Object.assign(Ro,{Button:bi,Collapse:Pi,Item:Eo,Header:mo,Body:yo});var ge={exports:{}};/**
+import{f as vo,r as X,j as On,a8 as A_,a9 as y_,aa as m_,i as Et,ab as xo,ac as E_,ad as R_,ae as I_,af as C_,ag as S_,h as $t,ah as cr}from"./index.js";import{u as T_}from"./hook-BbhLqP_c.js";function he(...W){return W.filter(I=>I!=null).reduce((I,o)=>{if(typeof o!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return I===null?o:function(...U){I.apply(this,U),o.apply(this,U)}},null)}const L_={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function O_(W,I){const o=`offset${W[0].toUpperCase()}${W.slice(1)}`,$=I[o],U=L_[W];return $+parseInt(xo(I,U[0]),10)+parseInt(xo(I,U[1]),10)}const W_={[E_]:"collapse",[R_]:"collapsing",[I_]:"collapsing",[C_]:"collapse show"},B_=vo.forwardRef(({onEnter:W,onEntering:I,onEntered:o,onExit:$,onExiting:U,className:k,children:L,dimension:nn="height",in:rn=!1,timeout:ht=300,mountOnEnter:Wn=!1,unmountOnExit:an=!1,appear:_e=!1,getDimensionValue:Kn=O_,...zn},Rt)=>{const N=typeof nn=="function"?nn():nn,et=X.useMemo(()=>he(J=>{J.style[N]="0"},W),[N,W]),de=X.useMemo(()=>he(J=>{const _n=`scroll${N[0].toUpperCase()}${N.slice(1)}`;J.style[N]=`${J[_n]}px`},I),[N,I]),Bn=X.useMemo(()=>he(J=>{J.style[N]=null},o),[N,o]),gt=X.useMemo(()=>he(J=>{J.style[N]=`${Kn(N,J)}px`,S_(J)},$),[$,Kn,N]),Mn=X.useMemo(()=>he(J=>{J.style[N]=null},U),[N,U]);return On.jsx(A_,{ref:Rt,addEndListener:y_,...zn,"aria-expanded":zn.role?rn:null,onEnter:et,onEntering:de,onEntered:Bn,onExit:gt,onExiting:Mn,childRef:m_(L),in:rn,timeout:ht,mountOnEnter:Wn,unmountOnExit:an,appear:_e,children:(J,_n)=>vo.cloneElement(L,{..._n,className:Et(k,L.props.className,W_[J],N==="width"&&"collapse-horizontal")})})});function Ao(W,I){return Array.isArray(W)?W.includes(I):W===I}const pe=X.createContext({});pe.displayName="AccordionContext";const bi=X.forwardRef(({as:W="div",bsPrefix:I,className:o,children:$,eventKey:U,...k},L)=>{const{activeEventKey:nn}=X.useContext(pe);return I=$t(I,"accordion-collapse"),On.jsx(B_,{ref:L,in:Ao(nn,U),...k,className:Et(o,I),children:On.jsx(W,{children:X.Children.only($)})})});bi.displayName="AccordionCollapse";const hr=X.createContext({eventKey:""});hr.displayName="AccordionItemContext";const yo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,...ht},Wn)=>{I=$t(I,"accordion-body");const{eventKey:an}=X.useContext(hr);return On.jsx(bi,{eventKey:an,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,children:On.jsx(W,{ref:Wn,...ht,className:Et(o,I)})})});yo.displayName="AccordionBody";function M_(W,I){const{activeEventKey:o,onSelect:$,alwaysOpen:U}=X.useContext(pe);return k=>{let L=W===o?null:W;U&&(Array.isArray(o)?o.includes(W)?L=o.filter(nn=>nn!==W):L=[...o,W]:L=[W]),$==null||$(L,k),I==null||I(k)}}const Pi=X.forwardRef(({as:W="button",bsPrefix:I,className:o,onClick:$,...U},k)=>{I=$t(I,"accordion-button");const{eventKey:L}=X.useContext(hr),nn=M_(L,$),{activeEventKey:rn}=X.useContext(pe);return W==="button"&&(U.type="button"),On.jsx(W,{ref:k,onClick:nn,...U,"aria-expanded":Array.isArray(rn)?rn.includes(L):L===rn,className:Et(o,I,!Ao(rn,L)&&"collapsed")})});Pi.displayName="AccordionButton";const mo=X.forwardRef(({as:W="h2","aria-controls":I,bsPrefix:o,className:$,children:U,onClick:k,...L},nn)=>(o=$t(o,"accordion-header"),On.jsx(W,{ref:nn,...L,className:Et($,o),children:On.jsx(Pi,{onClick:k,"aria-controls":I,children:U})})));mo.displayName="AccordionHeader";const Eo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,eventKey:$,...U},k)=>{I=$t(I,"accordion-item");const L=X.useMemo(()=>({eventKey:$}),[$]);return On.jsx(hr.Provider,{value:L,children:On.jsx(W,{ref:k,...U,className:Et(o,I)})})});Eo.displayName="AccordionItem";const Ro=X.forwardRef((W,I)=>{const{as:o="div",activeKey:$,bsPrefix:U,className:k,onSelect:L,flush:nn,alwaysOpen:rn,...ht}=T_(W,{activeKey:"onSelect"}),Wn=$t(U,"accordion"),an=X.useMemo(()=>({activeEventKey:$,onSelect:L,alwaysOpen:rn}),[$,L,rn]);return On.jsx(pe.Provider,{value:an,children:On.jsx(o,{ref:I,...ht,className:Et(k,Wn,nn&&`${Wn}-flush`)})})});Ro.displayName="Accordion";const D_=Object.assign(Ro,{Button:Pi,Collapse:bi,Item:Eo,Header:mo,Body:yo});var ge={exports:{}};/**
  * @license
  * Lodash <https://lodash.com/>
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  * Released under MIT license <https://lodash.com/license>
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */var F_=ge.exports,wo;function P_(){return wo||(wo=1,function(W,I){(function(){var o,$="4.17.21",U=200,k="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",L="Expected a function",nn="Invalid `variable` option passed into `_.template`",rn="__lodash_hash_undefined__",ht=500,Wn="__lodash_placeholder__",an=1,_e=2,Kn=4,zn=1,Rt=2,N=1,et=2,de=4,Bn=8,gt=16,Mn=32,J=64,_n=128,qt=256,gr=512,Io=30,Co="...",So=800,To=16,Ui=1,Lo=2,Oo=3,ve=1/0,It=9007199254740991,Wo=17976931348623157e292,xe=NaN,Gn=4294967295,Bo=Gn-1,Mo=Gn>>>1,Fo=[["ary",_n],["bind",N],["bindKey",et],["curry",Bn],["curryRight",gt],["flip",gr],["partial",Mn],["partialRight",J],["rearg",qt]],Ct="[object Arguments]",we="[object Array]",Po="[object AsyncFunction]",Kt="[object Boolean]",zt="[object Date]",bo="[object DOMException]",Ae="[object Error]",ye="[object Function]",Di="[object GeneratorFunction]",Fn="[object Map]",Zt="[object Number]",Uo="[object Null]",Zn="[object Object]",Ni="[object Promise]",Do="[object Proxy]",Yt="[object RegExp]",Pn="[object Set]",Xt="[object String]",me="[object Symbol]",No="[object Undefined]",Jt="[object WeakMap]",Go="[object WeakSet]",Qt="[object ArrayBuffer]",St="[object DataView]",pr="[object Float32Array]",_r="[object Float64Array]",dr="[object Int8Array]",vr="[object Int16Array]",xr="[object Int32Array]",wr="[object Uint8Array]",Ar="[object Uint8ClampedArray]",yr="[object Uint16Array]",mr="[object Uint32Array]",Ho=/\b__p \+= '';/g,$o=/\b(__p \+=) '' \+/g,qo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gi=/&(?:amp|lt|gt|quot|#39);/g,Hi=/[&<>"']/g,Ko=RegExp(Gi.source),zo=RegExp(Hi.source),Zo=/<%-([\s\S]+?)%>/g,Yo=/<%([\s\S]+?)%>/g,$i=/<%=([\s\S]+?)%>/g,Xo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jo=/^\w*$/,Qo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Er=/[\\^$.*+?()[\]{}|]/g,Vo=RegExp(Er.source),Rr=/^\s+/,ko=/\s/,jo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nl=/\{\n\/\* \[wrapped with (.+)\] \*/,tl=/,? & /,el=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rl=/[()=,{}\[\]\/\s]/,il=/\\(\\)?/g,ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/\w*$/,fl=/^[-+]0x[0-9a-f]+$/i,ol=/^0b[01]+$/i,ll=/^\[object .+?Constructor\]$/,sl=/^0o[0-7]+$/i,al=/^(?:0|[1-9]\d*)$/,cl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,hl=/['\n\r\u2028\u2029\\]/g,Re="\\ud800-\\udfff",gl="\\u0300-\\u036f",pl="\\ufe20-\\ufe2f",_l="\\u20d0-\\u20ff",Ki=gl+pl+_l,zi="\\u2700-\\u27bf",Zi="a-z\\xdf-\\xf6\\xf8-\\xff",dl="\\xac\\xb1\\xd7\\xf7",vl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xl="\\u2000-\\u206f",wl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yi="A-Z\\xc0-\\xd6\\xd8-\\xde",Xi="\\ufe0e\\ufe0f",Ji=dl+vl+xl+wl,Ir="['’]",Al="["+Re+"]",Qi="["+Ji+"]",Ie="["+Ki+"]",Vi="\\d+",yl="["+zi+"]",ki="["+Zi+"]",ji="[^"+Re+Ji+Vi+zi+Zi+Yi+"]",Cr="\\ud83c[\\udffb-\\udfff]",ml="(?:"+Ie+"|"+Cr+")",nu="[^"+Re+"]",Sr="(?:\\ud83c[\\udde6-\\uddff]){2}",Tr="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Yi+"]",tu="\\u200d",eu="(?:"+ki+"|"+ji+")",El="(?:"+Tt+"|"+ji+")",ru="(?:"+Ir+"(?:d|ll|m|re|s|t|ve))?",iu="(?:"+Ir+"(?:D|LL|M|RE|S|T|VE))?",uu=ml+"?",fu="["+Xi+"]?",Rl="(?:"+tu+"(?:"+[nu,Sr,Tr].join("|")+")"+fu+uu+")*",Il="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ou=fu+uu+Rl,Sl="(?:"+[yl,Sr,Tr].join("|")+")"+ou,Tl="(?:"+[nu+Ie+"?",Ie,Sr,Tr,Al].join("|")+")",Ll=RegExp(Ir,"g"),Ol=RegExp(Ie,"g"),Lr=RegExp(Cr+"(?="+Cr+")|"+Tl+ou,"g"),Wl=RegExp([Tt+"?"+ki+"+"+ru+"(?="+[Qi,Tt,"$"].join("|")+")",El+"+"+iu+"(?="+[Qi,Tt+eu,"$"].join("|")+")",Tt+"?"+eu+"+"+ru,Tt+"+"+iu,Cl,Il,Vi,Sl].join("|"),"g"),Bl=RegExp("["+tu+Re+Ki+Xi+"]"),Ml=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pl=-1,H={};H[pr]=H[_r]=H[dr]=H[vr]=H[xr]=H[wr]=H[Ar]=H[yr]=H[mr]=!0,H[Ct]=H[we]=H[Qt]=H[Kt]=H[St]=H[zt]=H[Ae]=H[ye]=H[Fn]=H[Zt]=H[Zn]=H[Yt]=H[Pn]=H[Xt]=H[Jt]=!1;var G={};G[Ct]=G[we]=G[Qt]=G[St]=G[Kt]=G[zt]=G[pr]=G[_r]=G[dr]=G[vr]=G[xr]=G[Fn]=G[Zt]=G[Zn]=G[Yt]=G[Pn]=G[Xt]=G[me]=G[wr]=G[Ar]=G[yr]=G[mr]=!0,G[Ae]=G[ye]=G[Jt]=!1;var bl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ul={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Dl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Nl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gl=parseFloat,Hl=parseInt,lu=typeof cr=="object"&&cr&&cr.Object===Object&&cr,$l=typeof self=="object"&&self&&self.Object===Object&&self,tn=lu||$l||Function("return this")(),Or=I&&!I.nodeType&&I,pt=Or&&!0&&W&&!W.nodeType&&W,su=pt&&pt.exports===Or,Wr=su&&lu.process,mn=function(){try{var a=pt&&pt.require&&pt.require("util").types;return a||Wr&&Wr.binding&&Wr.binding("util")}catch{}}(),au=mn&&mn.isArrayBuffer,cu=mn&&mn.isDate,hu=mn&&mn.isMap,gu=mn&&mn.isRegExp,pu=mn&&mn.isSet,_u=mn&&mn.isTypedArray;function dn(a,g,h){switch(h.length){case 0:return a.call(g);case 1:return a.call(g,h[0]);case 2:return a.call(g,h[0],h[1]);case 3:return a.call(g,h[0],h[1],h[2])}return a.apply(g,h)}function ql(a,g,h,x){for(var E=-1,F=a==null?0:a.length;++E<F;){var Q=a[E];g(x,Q,h(Q),a)}return x}function En(a,g){for(var h=-1,x=a==null?0:a.length;++h<x&&g(a[h],h,a)!==!1;);return a}function Kl(a,g){for(var h=a==null?0:a.length;h--&&g(a[h],h,a)!==!1;);return a}function du(a,g){for(var h=-1,x=a==null?0:a.length;++h<x;)if(!g(a[h],h,a))return!1;return!0}function rt(a,g){for(var h=-1,x=a==null?0:a.length,E=0,F=[];++h<x;){var Q=a[h];g(Q,h,a)&&(F[E++]=Q)}return F}function Ce(a,g){var h=a==null?0:a.length;return!!h&&Lt(a,g,0)>-1}function Br(a,g,h){for(var x=-1,E=a==null?0:a.length;++x<E;)if(h(g,a[x]))return!0;return!1}function q(a,g){for(var h=-1,x=a==null?0:a.length,E=Array(x);++h<x;)E[h]=g(a[h],h,a);return E}function it(a,g){for(var h=-1,x=g.length,E=a.length;++h<x;)a[E+h]=g[h];return a}function Mr(a,g,h,x){var E=-1,F=a==null?0:a.length;for(x&&F&&(h=a[++E]);++E<F;)h=g(h,a[E],E,a);return h}function zl(a,g,h,x){var E=a==null?0:a.length;for(x&&E&&(h=a[--E]);E--;)h=g(h,a[E],E,a);return h}function Fr(a,g){for(var h=-1,x=a==null?0:a.length;++h<x;)if(g(a[h],h,a))return!0;return!1}var Zl=Pr("length");function Yl(a){return a.split("")}function Xl(a){return a.match(el)||[]}function vu(a,g,h){var x;return h(a,function(E,F,Q){if(g(E,F,Q))return x=F,!1}),x}function Se(a,g,h,x){for(var E=a.length,F=h+(x?1:-1);x?F--:++F<E;)if(g(a[F],F,a))return F;return-1}function Lt(a,g,h){return g===g?fs(a,g,h):Se(a,xu,h)}function Jl(a,g,h,x){for(var E=h-1,F=a.length;++E<F;)if(x(a[E],g))return E;return-1}function xu(a){return a!==a}function wu(a,g){var h=a==null?0:a.length;return h?Ur(a,g)/h:xe}function Pr(a){return function(g){return g==null?o:g[a]}}function br(a){return function(g){return a==null?o:a[g]}}function Au(a,g,h,x,E){return E(a,function(F,Q,D){h=x?(x=!1,F):g(h,F,Q,D)}),h}function Ql(a,g){var h=a.length;for(a.sort(g);h--;)a[h]=a[h].value;return a}function Ur(a,g){for(var h,x=-1,E=a.length;++x<E;){var F=g(a[x]);F!==o&&(h=h===o?F:h+F)}return h}function Dr(a,g){for(var h=-1,x=Array(a);++h<a;)x[h]=g(h);return x}function Vl(a,g){return q(g,function(h){return[h,a[h]]})}function yu(a){return a&&a.slice(0,Iu(a)+1).replace(Rr,"")}function vn(a){return function(g){return a(g)}}function Nr(a,g){return q(g,function(h){return a[h]})}function Vt(a,g){return a.has(g)}function mu(a,g){for(var h=-1,x=a.length;++h<x&&Lt(g,a[h],0)>-1;);return h}function Eu(a,g){for(var h=a.length;h--&&Lt(g,a[h],0)>-1;);return h}function kl(a,g){for(var h=a.length,x=0;h--;)a[h]===g&&++x;return x}var jl=br(bl),ns=br(Ul);function ts(a){return"\\"+Nl[a]}function es(a,g){return a==null?o:a[g]}function Ot(a){return Bl.test(a)}function rs(a){return Ml.test(a)}function is(a){for(var g,h=[];!(g=a.next()).done;)h.push(g.value);return h}function Gr(a){var g=-1,h=Array(a.size);return a.forEach(function(x,E){h[++g]=[E,x]}),h}function Ru(a,g){return function(h){return a(g(h))}}function ut(a,g){for(var h=-1,x=a.length,E=0,F=[];++h<x;){var Q=a[h];(Q===g||Q===Wn)&&(a[h]=Wn,F[E++]=h)}return F}function Te(a){var g=-1,h=Array(a.size);return a.forEach(function(x){h[++g]=x}),h}function us(a){var g=-1,h=Array(a.size);return a.forEach(function(x){h[++g]=[x,x]}),h}function fs(a,g,h){for(var x=h-1,E=a.length;++x<E;)if(a[x]===g)return x;return-1}function os(a,g,h){for(var x=h+1;x--;)if(a[x]===g)return x;return x}function Wt(a){return Ot(a)?ss(a):Zl(a)}function bn(a){return Ot(a)?as(a):Yl(a)}function Iu(a){for(var g=a.length;g--&&ko.test(a.charAt(g)););return g}var ls=br(Dl);function ss(a){for(var g=Lr.lastIndex=0;Lr.test(a);)++g;return g}function as(a){return a.match(Lr)||[]}function cs(a){return a.match(Wl)||[]}var hs=function a(g){g=g==null?tn:Bt.defaults(tn.Object(),g,Bt.pick(tn,Fl));var h=g.Array,x=g.Date,E=g.Error,F=g.Function,Q=g.Math,D=g.Object,Hr=g.RegExp,gs=g.String,Rn=g.TypeError,Le=h.prototype,ps=F.prototype,Mt=D.prototype,Oe=g["__core-js_shared__"],We=ps.toString,b=Mt.hasOwnProperty,_s=0,Cu=function(){var n=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Be=Mt.toString,ds=We.call(D),vs=tn._,xs=Hr("^"+We.call(b).replace(Er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=su?g.Buffer:o,ft=g.Symbol,Fe=g.Uint8Array,Su=Me?Me.allocUnsafe:o,Pe=Ru(D.getPrototypeOf,D),Tu=D.create,Lu=Mt.propertyIsEnumerable,be=Le.splice,Ou=ft?ft.isConcatSpreadable:o,kt=ft?ft.iterator:o,_t=ft?ft.toStringTag:o,Ue=function(){try{var n=At(D,"defineProperty");return n({},"",{}),n}catch{}}(),ws=g.clearTimeout!==tn.clearTimeout&&g.clearTimeout,As=x&&x.now!==tn.Date.now&&x.now,ys=g.setTimeout!==tn.setTimeout&&g.setTimeout,De=Q.ceil,Ne=Q.floor,$r=D.getOwnPropertySymbols,ms=Me?Me.isBuffer:o,Wu=g.isFinite,Es=Le.join,Rs=Ru(D.keys,D),V=Q.max,un=Q.min,Is=x.now,Cs=g.parseInt,Bu=Q.random,Ss=Le.reverse,qr=At(g,"DataView"),jt=At(g,"Map"),Kr=At(g,"Promise"),Ft=At(g,"Set"),ne=At(g,"WeakMap"),te=At(D,"create"),Ge=ne&&new ne,Pt={},Ts=yt(qr),Ls=yt(jt),Os=yt(Kr),Ws=yt(Ft),Bs=yt(ne),He=ft?ft.prototype:o,ee=He?He.valueOf:o,Mu=He?He.toString:o;function u(n){if(z(n)&&!R(n)&&!(n instanceof B)){if(n instanceof In)return n;if(b.call(n,"__wrapped__"))return Pf(n)}return new In(n)}var bt=function(){function n(){}return function(t){if(!K(t))return{};if(Tu)return Tu(t);n.prototype=t;var e=new n;return n.prototype=o,e}}();function $e(){}function In(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}u.templateSettings={escape:Zo,evaluate:Yo,interpolate:$i,variable:"",imports:{_:u}},u.prototype=$e.prototype,u.prototype.constructor=u,In.prototype=bt($e.prototype),In.prototype.constructor=In;function B(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Gn,this.__views__=[]}function Ms(){var n=new B(this.__wrapped__);return n.__actions__=cn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=cn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=cn(this.__views__),n}function Fs(){if(this.__filtered__){var n=new B(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Ps(){var n=this.__wrapped__.value(),t=this.__dir__,e=R(n),r=t<0,i=e?n.length:0,f=Ya(0,i,this.__views__),l=f.start,s=f.end,c=s-l,p=r?s:l-1,_=this.__iteratees__,d=_.length,v=0,w=un(c,this.__takeCount__);if(!e||!r&&i==c&&w==c)return rf(n,this.__actions__);var y=[];n:for(;c--&&v<w;){p+=t;for(var S=-1,m=n[p];++S<d;){var O=_[S],M=O.iteratee,An=O.type,sn=M(m);if(An==Lo)m=sn;else if(!sn){if(An==Ui)continue n;break n}}y[v++]=m}return y}B.prototype=bt($e.prototype),B.prototype.constructor=B;function dt(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function bs(){this.__data__=te?te(null):{},this.size=0}function Us(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function Ds(n){var t=this.__data__;if(te){var e=t[n];return e===rn?o:e}return b.call(t,n)?t[n]:o}function Ns(n){var t=this.__data__;return te?t[n]!==o:b.call(t,n)}function Gs(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=te&&t===o?rn:t,this}dt.prototype.clear=bs,dt.prototype.delete=Us,dt.prototype.get=Ds,dt.prototype.has=Ns,dt.prototype.set=Gs;function Yn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Hs(){this.__data__=[],this.size=0}function $s(n){var t=this.__data__,e=qe(t,n);if(e<0)return!1;var r=t.length-1;return e==r?t.pop():be.call(t,e,1),--this.size,!0}function qs(n){var t=this.__data__,e=qe(t,n);return e<0?o:t[e][1]}function Ks(n){return qe(this.__data__,n)>-1}function zs(n,t){var e=this.__data__,r=qe(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this}Yn.prototype.clear=Hs,Yn.prototype.delete=$s,Yn.prototype.get=qs,Yn.prototype.has=Ks,Yn.prototype.set=zs;function Xn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Zs(){this.size=0,this.__data__={hash:new dt,map:new(jt||Yn),string:new dt}}function Ys(n){var t=tr(this,n).delete(n);return this.size-=t?1:0,t}function Xs(n){return tr(this,n).get(n)}function Js(n){return tr(this,n).has(n)}function Qs(n,t){var e=tr(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this}Xn.prototype.clear=Zs,Xn.prototype.delete=Ys,Xn.prototype.get=Xs,Xn.prototype.has=Js,Xn.prototype.set=Qs;function vt(n){var t=-1,e=n==null?0:n.length;for(this.__data__=new Xn;++t<e;)this.add(n[t])}function Vs(n){return this.__data__.set(n,rn),this}function ks(n){return this.__data__.has(n)}vt.prototype.add=vt.prototype.push=Vs,vt.prototype.has=ks;function Un(n){var t=this.__data__=new Yn(n);this.size=t.size}function js(){this.__data__=new Yn,this.size=0}function na(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e}function ta(n){return this.__data__.get(n)}function ea(n){return this.__data__.has(n)}function ra(n,t){var e=this.__data__;if(e instanceof Yn){var r=e.__data__;if(!jt||r.length<U-1)return r.push([n,t]),this.size=++e.size,this;e=this.__data__=new Xn(r)}return e.set(n,t),this.size=e.size,this}Un.prototype.clear=js,Un.prototype.delete=na,Un.prototype.get=ta,Un.prototype.has=ea,Un.prototype.set=ra;function Fu(n,t){var e=R(n),r=!e&&mt(n),i=!e&&!r&&ct(n),f=!e&&!r&&!i&&Gt(n),l=e||r||i||f,s=l?Dr(n.length,gs):[],c=s.length;for(var p in n)(t||b.call(n,p))&&!(l&&(p=="length"||i&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||kn(p,c)))&&s.push(p);return s}function Pu(n){var t=n.length;return t?n[ti(0,t-1)]:o}function ia(n,t){return er(cn(n),xt(t,0,n.length))}function ua(n){return er(cn(n))}function zr(n,t,e){(e!==o&&!Dn(n[t],e)||e===o&&!(t in n))&&Jn(n,t,e)}function re(n,t,e){var r=n[t];(!(b.call(n,t)&&Dn(r,e))||e===o&&!(t in n))&&Jn(n,t,e)}function qe(n,t){for(var e=n.length;e--;)if(Dn(n[e][0],t))return e;return-1}function fa(n,t,e,r){return ot(n,function(i,f,l){t(r,i,e(i),l)}),r}function bu(n,t){return n&&$n(t,j(t),n)}function oa(n,t){return n&&$n(t,gn(t),n)}function Jn(n,t,e){t=="__proto__"&&Ue?Ue(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}function Zr(n,t){for(var e=-1,r=t.length,i=h(r),f=n==null;++e<r;)i[e]=f?o:Ci(n,t[e]);return i}function xt(n,t,e){return n===n&&(e!==o&&(n=n<=e?n:e),t!==o&&(n=n>=t?n:t)),n}function Cn(n,t,e,r,i,f){var l,s=t&an,c=t&_e,p=t&Kn;if(e&&(l=i?e(n,r,i,f):e(n)),l!==o)return l;if(!K(n))return n;var _=R(n);if(_){if(l=Ja(n),!s)return cn(n,l)}else{var d=fn(n),v=d==ye||d==Di;if(ct(n))return of(n,s);if(d==Zn||d==Ct||v&&!i){if(l=c||v?{}:Cf(n),!s)return c?Da(n,oa(l,n)):Ua(n,bu(l,n))}else{if(!G[d])return i?n:{};l=Qa(n,d,s)}}f||(f=new Un);var w=f.get(n);if(w)return w;f.set(n,l),to(n)?n.forEach(function(m){l.add(Cn(m,t,e,m,n,f))}):jf(n)&&n.forEach(function(m,O){l.set(O,Cn(m,t,e,O,n,f))});var y=p?c?hi:ci:c?gn:j,S=_?o:y(n);return En(S||n,function(m,O){S&&(O=m,m=n[O]),re(l,O,Cn(m,t,e,O,n,f))}),l}function la(n){var t=j(n);return function(e){return Uu(e,n,t)}}function Uu(n,t,e){var r=e.length;if(n==null)return!r;for(n=D(n);r--;){var i=e[r],f=t[i],l=n[i];if(l===o&&!(i in n)||!f(l))return!1}return!0}function Du(n,t,e){if(typeof n!="function")throw new Rn(L);return ae(function(){n.apply(o,e)},t)}function ie(n,t,e,r){var i=-1,f=Ce,l=!0,s=n.length,c=[],p=t.length;if(!s)return c;e&&(t=q(t,vn(e))),r?(f=Br,l=!1):t.length>=U&&(f=Vt,l=!1,t=new vt(t));n:for(;++i<s;){var _=n[i],d=e==null?_:e(_);if(_=r||_!==0?_:0,l&&d===d){for(var v=p;v--;)if(t[v]===d)continue n;c.push(_)}else f(t,d,r)||c.push(_)}return c}var ot=hf(Hn),Nu=hf(Xr,!0);function sa(n,t){var e=!0;return ot(n,function(r,i,f){return e=!!t(r,i,f),e}),e}function Ke(n,t,e){for(var r=-1,i=n.length;++r<i;){var f=n[r],l=t(f);if(l!=null&&(s===o?l===l&&!wn(l):e(l,s)))var s=l,c=f}return c}function aa(n,t,e,r){var i=n.length;for(e=C(e),e<0&&(e=-e>i?0:i+e),r=r===o||r>i?i:C(r),r<0&&(r+=i),r=e>r?0:ro(r);e<r;)n[e++]=t;return n}function Gu(n,t){var e=[];return ot(n,function(r,i,f){t(r,i,f)&&e.push(r)}),e}function en(n,t,e,r,i){var f=-1,l=n.length;for(e||(e=ka),i||(i=[]);++f<l;){var s=n[f];t>0&&e(s)?t>1?en(s,t-1,e,r,i):it(i,s):r||(i[i.length]=s)}return i}var Yr=gf(),Hu=gf(!0);function Hn(n,t){return n&&Yr(n,t,j)}function Xr(n,t){return n&&Hu(n,t,j)}function ze(n,t){return rt(t,function(e){return jn(n[e])})}function wt(n,t){t=st(t,n);for(var e=0,r=t.length;n!=null&&e<r;)n=n[qn(t[e++])];return e&&e==r?n:o}function $u(n,t,e){var r=t(n);return R(n)?r:it(r,e(n))}function on(n){return n==null?n===o?No:Uo:_t&&_t in D(n)?Za(n):uc(n)}function Jr(n,t){return n>t}function ca(n,t){return n!=null&&b.call(n,t)}function ha(n,t){return n!=null&&t in D(n)}function ga(n,t,e){return n>=un(t,e)&&n<V(t,e)}function Qr(n,t,e){for(var r=e?Br:Ce,i=n[0].length,f=n.length,l=f,s=h(f),c=1/0,p=[];l--;){var _=n[l];l&&t&&(_=q(_,vn(t))),c=un(_.length,c),s[l]=!e&&(t||i>=120&&_.length>=120)?new vt(l&&_):o}_=n[0];var d=-1,v=s[0];n:for(;++d<i&&p.length<c;){var w=_[d],y=t?t(w):w;if(w=e||w!==0?w:0,!(v?Vt(v,y):r(p,y,e))){for(l=f;--l;){var S=s[l];if(!(S?Vt(S,y):r(n[l],y,e)))continue n}v&&v.push(y),p.push(w)}}return p}function pa(n,t,e,r){return Hn(n,function(i,f,l){t(r,e(i),f,l)}),r}function ue(n,t,e){t=st(t,n),n=Of(n,t);var r=n==null?n:n[qn(Tn(t))];return r==null?o:dn(r,n,e)}function qu(n){return z(n)&&on(n)==Ct}function _a(n){return z(n)&&on(n)==Qt}function da(n){return z(n)&&on(n)==zt}function fe(n,t,e,r,i){return n===t?!0:n==null||t==null||!z(n)&&!z(t)?n!==n&&t!==t:va(n,t,e,r,fe,i)}function va(n,t,e,r,i,f){var l=R(n),s=R(t),c=l?we:fn(n),p=s?we:fn(t);c=c==Ct?Zn:c,p=p==Ct?Zn:p;var _=c==Zn,d=p==Zn,v=c==p;if(v&&ct(n)){if(!ct(t))return!1;l=!0,_=!1}if(v&&!_)return f||(f=new Un),l||Gt(n)?Ef(n,t,e,r,i,f):Ka(n,t,c,e,r,i,f);if(!(e&zn)){var w=_&&b.call(n,"__wrapped__"),y=d&&b.call(t,"__wrapped__");if(w||y){var S=w?n.value():n,m=y?t.value():t;return f||(f=new Un),i(S,m,e,r,f)}}return v?(f||(f=new Un),za(n,t,e,r,i,f)):!1}function xa(n){return z(n)&&fn(n)==Fn}function Vr(n,t,e,r){var i=e.length,f=i,l=!r;if(n==null)return!f;for(n=D(n);i--;){var s=e[i];if(l&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<f;){s=e[i];var c=s[0],p=n[c],_=s[1];if(l&&s[2]){if(p===o&&!(c in n))return!1}else{var d=new Un;if(r)var v=r(p,_,c,n,t,d);if(!(v===o?fe(_,p,zn|Rt,r,d):v))return!1}}return!0}function Ku(n){if(!K(n)||nc(n))return!1;var t=jn(n)?xs:ll;return t.test(yt(n))}function wa(n){return z(n)&&on(n)==Yt}function Aa(n){return z(n)&&fn(n)==Pn}function ya(n){return z(n)&&lr(n.length)&&!!H[on(n)]}function zu(n){return typeof n=="function"?n:n==null?pn:typeof n=="object"?R(n)?Xu(n[0],n[1]):Yu(n):po(n)}function kr(n){if(!se(n))return Rs(n);var t=[];for(var e in D(n))b.call(n,e)&&e!="constructor"&&t.push(e);return t}function ma(n){if(!K(n))return ic(n);var t=se(n),e=[];for(var r in n)r=="constructor"&&(t||!b.call(n,r))||e.push(r);return e}function jr(n,t){return n<t}function Zu(n,t){var e=-1,r=hn(n)?h(n.length):[];return ot(n,function(i,f,l){r[++e]=t(i,f,l)}),r}function Yu(n){var t=pi(n);return t.length==1&&t[0][2]?Tf(t[0][0],t[0][1]):function(e){return e===n||Vr(e,n,t)}}function Xu(n,t){return di(n)&&Sf(t)?Tf(qn(n),t):function(e){var r=Ci(e,n);return r===o&&r===t?Si(e,n):fe(t,r,zn|Rt)}}function Ze(n,t,e,r,i){n!==t&&Yr(t,function(f,l){if(i||(i=new Un),K(f))Ea(n,t,l,e,Ze,r,i);else{var s=r?r(xi(n,l),f,l+"",n,t,i):o;s===o&&(s=f),zr(n,l,s)}},gn)}function Ea(n,t,e,r,i,f,l){var s=xi(n,e),c=xi(t,e),p=l.get(c);if(p){zr(n,e,p);return}var _=f?f(s,c,e+"",n,t,l):o,d=_===o;if(d){var v=R(c),w=!v&&ct(c),y=!v&&!w&&Gt(c);_=c,v||w||y?R(s)?_=s:Z(s)?_=cn(s):w?(d=!1,_=of(c,!0)):y?(d=!1,_=lf(c,!0)):_=[]:ce(c)||mt(c)?(_=s,mt(s)?_=io(s):(!K(s)||jn(s))&&(_=Cf(c))):d=!1}d&&(l.set(c,_),i(_,c,r,f,l),l.delete(c)),zr(n,e,_)}function Ju(n,t){var e=n.length;if(e)return t+=t<0?e:0,kn(t,e)?n[t]:o}function Qu(n,t,e){t.length?t=q(t,function(f){return R(f)?function(l){return wt(l,f.length===1?f[0]:f)}:f}):t=[pn];var r=-1;t=q(t,vn(A()));var i=Zu(n,function(f,l,s){var c=q(t,function(p){return p(f)});return{criteria:c,index:++r,value:f}});return Ql(i,function(f,l){return ba(f,l,e)})}function Ra(n,t){return Vu(n,t,function(e,r){return Si(n,r)})}function Vu(n,t,e){for(var r=-1,i=t.length,f={};++r<i;){var l=t[r],s=wt(n,l);e(s,l)&&oe(f,st(l,n),s)}return f}function Ia(n){return function(t){return wt(t,n)}}function ni(n,t,e,r){var i=r?Jl:Lt,f=-1,l=t.length,s=n;for(n===t&&(t=cn(t)),e&&(s=q(n,vn(e)));++f<l;)for(var c=0,p=t[f],_=e?e(p):p;(c=i(s,_,c,r))>-1;)s!==n&&be.call(s,c,1),be.call(n,c,1);return n}function ku(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==f){var f=i;kn(i)?be.call(n,i,1):ii(n,i)}}return n}function ti(n,t){return n+Ne(Bu()*(t-n+1))}function Ca(n,t,e,r){for(var i=-1,f=V(De((t-n)/(e||1)),0),l=h(f);f--;)l[r?f:++i]=n,n+=e;return l}function ei(n,t){var e="";if(!n||t<1||t>It)return e;do t%2&&(e+=n),t=Ne(t/2),t&&(n+=n);while(t);return e}function T(n,t){return wi(Lf(n,t,pn),n+"")}function Sa(n){return Pu(Ht(n))}function Ta(n,t){var e=Ht(n);return er(e,xt(t,0,e.length))}function oe(n,t,e,r){if(!K(n))return n;t=st(t,n);for(var i=-1,f=t.length,l=f-1,s=n;s!=null&&++i<f;){var c=qn(t[i]),p=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return n;if(i!=l){var _=s[c];p=r?r(_,c,s):o,p===o&&(p=K(_)?_:kn(t[i+1])?[]:{})}re(s,c,p),s=s[c]}return n}var ju=Ge?function(n,t){return Ge.set(n,t),n}:pn,La=Ue?function(n,t){return Ue(n,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:pn;function Oa(n){return er(Ht(n))}function Sn(n,t,e){var r=-1,i=n.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var f=h(i);++r<i;)f[r]=n[r+t];return f}function Wa(n,t){var e;return ot(n,function(r,i,f){return e=t(r,i,f),!e}),!!e}function Ye(n,t,e){var r=0,i=n==null?r:n.length;if(typeof t=="number"&&t===t&&i<=Mo){for(;r<i;){var f=r+i>>>1,l=n[f];l!==null&&!wn(l)&&(e?l<=t:l<t)?r=f+1:i=f}return i}return ri(n,t,pn,e)}function ri(n,t,e,r){var i=0,f=n==null?0:n.length;if(f===0)return 0;t=e(t);for(var l=t!==t,s=t===null,c=wn(t),p=t===o;i<f;){var _=Ne((i+f)/2),d=e(n[_]),v=d!==o,w=d===null,y=d===d,S=wn(d);if(l)var m=r||y;else p?m=y&&(r||v):s?m=y&&v&&(r||!w):c?m=y&&v&&!w&&(r||!S):w||S?m=!1:m=r?d<=t:d<t;m?i=_+1:f=_}return un(f,Bo)}function nf(n,t){for(var e=-1,r=n.length,i=0,f=[];++e<r;){var l=n[e],s=t?t(l):l;if(!e||!Dn(s,c)){var c=s;f[i++]=l===0?0:l}}return f}function tf(n){return typeof n=="number"?n:wn(n)?xe:+n}function xn(n){if(typeof n=="string")return n;if(R(n))return q(n,xn)+"";if(wn(n))return Mu?Mu.call(n):"";var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function lt(n,t,e){var r=-1,i=Ce,f=n.length,l=!0,s=[],c=s;if(e)l=!1,i=Br;else if(f>=U){var p=t?null:$a(n);if(p)return Te(p);l=!1,i=Vt,c=new vt}else c=t?[]:s;n:for(;++r<f;){var _=n[r],d=t?t(_):_;if(_=e||_!==0?_:0,l&&d===d){for(var v=c.length;v--;)if(c[v]===d)continue n;t&&c.push(d),s.push(_)}else i(c,d,e)||(c!==s&&c.push(d),s.push(_))}return s}function ii(n,t){return t=st(t,n),n=Of(n,t),n==null||delete n[qn(Tn(t))]}function ef(n,t,e,r){return oe(n,t,e(wt(n,t)),r)}function Xe(n,t,e,r){for(var i=n.length,f=r?i:-1;(r?f--:++f<i)&&t(n[f],f,n););return e?Sn(n,r?0:f,r?f+1:i):Sn(n,r?f+1:0,r?i:f)}function rf(n,t){var e=n;return e instanceof B&&(e=e.value()),Mr(t,function(r,i){return i.func.apply(i.thisArg,it([r],i.args))},e)}function ui(n,t,e){var r=n.length;if(r<2)return r?lt(n[0]):[];for(var i=-1,f=h(r);++i<r;)for(var l=n[i],s=-1;++s<r;)s!=i&&(f[i]=ie(f[i]||l,n[s],t,e));return lt(en(f,1),t,e)}function uf(n,t,e){for(var r=-1,i=n.length,f=t.length,l={};++r<i;){var s=r<f?t[r]:o;e(l,n[r],s)}return l}function fi(n){return Z(n)?n:[]}function oi(n){return typeof n=="function"?n:pn}function st(n,t){return R(n)?n:di(n,t)?[n]:Ff(P(n))}var Ba=T;function at(n,t,e){var r=n.length;return e=e===o?r:e,!t&&e>=r?n:Sn(n,t,e)}var ff=ws||function(n){return tn.clearTimeout(n)};function of(n,t){if(t)return n.slice();var e=n.length,r=Su?Su(e):new n.constructor(e);return n.copy(r),r}function li(n){var t=new n.constructor(n.byteLength);return new Fe(t).set(new Fe(n)),t}function Ma(n,t){var e=t?li(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}function Fa(n){var t=new n.constructor(n.source,qi.exec(n));return t.lastIndex=n.lastIndex,t}function Pa(n){return ee?D(ee.call(n)):{}}function lf(n,t){var e=t?li(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function sf(n,t){if(n!==t){var e=n!==o,r=n===null,i=n===n,f=wn(n),l=t!==o,s=t===null,c=t===t,p=wn(t);if(!s&&!p&&!f&&n>t||f&&l&&c&&!s&&!p||r&&l&&c||!e&&c||!i)return 1;if(!r&&!f&&!p&&n<t||p&&e&&i&&!r&&!f||s&&e&&i||!l&&i||!c)return-1}return 0}function ba(n,t,e){for(var r=-1,i=n.criteria,f=t.criteria,l=i.length,s=e.length;++r<l;){var c=sf(i[r],f[r]);if(c){if(r>=s)return c;var p=e[r];return c*(p=="desc"?-1:1)}}return n.index-t.index}function af(n,t,e,r){for(var i=-1,f=n.length,l=e.length,s=-1,c=t.length,p=V(f-l,0),_=h(c+p),d=!r;++s<c;)_[s]=t[s];for(;++i<l;)(d||i<f)&&(_[e[i]]=n[i]);for(;p--;)_[s++]=n[i++];return _}function cf(n,t,e,r){for(var i=-1,f=n.length,l=-1,s=e.length,c=-1,p=t.length,_=V(f-s,0),d=h(_+p),v=!r;++i<_;)d[i]=n[i];for(var w=i;++c<p;)d[w+c]=t[c];for(;++l<s;)(v||i<f)&&(d[w+e[l]]=n[i++]);return d}function cn(n,t){var e=-1,r=n.length;for(t||(t=h(r));++e<r;)t[e]=n[e];return t}function $n(n,t,e,r){var i=!e;e||(e={});for(var f=-1,l=t.length;++f<l;){var s=t[f],c=r?r(e[s],n[s],s,e,n):o;c===o&&(c=n[s]),i?Jn(e,s,c):re(e,s,c)}return e}function Ua(n,t){return $n(n,_i(n),t)}function Da(n,t){return $n(n,Rf(n),t)}function Je(n,t){return function(e,r){var i=R(e)?ql:fa,f=t?t():{};return i(e,n,A(r,2),f)}}function Ut(n){return T(function(t,e){var r=-1,i=e.length,f=i>1?e[i-1]:o,l=i>2?e[2]:o;for(f=n.length>3&&typeof f=="function"?(i--,f):o,l&&ln(e[0],e[1],l)&&(f=i<3?o:f,i=1),t=D(t);++r<i;){var s=e[r];s&&n(t,s,r,f)}return t})}function hf(n,t){return function(e,r){if(e==null)return e;if(!hn(e))return n(e,r);for(var i=e.length,f=t?i:-1,l=D(e);(t?f--:++f<i)&&r(l[f],f,l)!==!1;);return e}}function gf(n){return function(t,e,r){for(var i=-1,f=D(t),l=r(t),s=l.length;s--;){var c=l[n?s:++i];if(e(f[c],c,f)===!1)break}return t}}function Na(n,t,e){var r=t&N,i=le(n);function f(){var l=this&&this!==tn&&this instanceof f?i:n;return l.apply(r?e:this,arguments)}return f}function pf(n){return function(t){t=P(t);var e=Ot(t)?bn(t):o,r=e?e[0]:t.charAt(0),i=e?at(e,1).join(""):t.slice(1);return r[n]()+i}}function Dt(n){return function(t){return Mr(ho(co(t).replace(Ll,"")),n,"")}}function le(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=bt(n.prototype),r=n.apply(e,t);return K(r)?r:e}}function Ga(n,t,e){var r=le(n);function i(){for(var f=arguments.length,l=h(f),s=f,c=Nt(i);s--;)l[s]=arguments[s];var p=f<3&&l[0]!==c&&l[f-1]!==c?[]:ut(l,c);if(f-=p.length,f<e)return wf(n,t,Qe,i.placeholder,o,l,p,o,o,e-f);var _=this&&this!==tn&&this instanceof i?r:n;return dn(_,this,l)}return i}function _f(n){return function(t,e,r){var i=D(t);if(!hn(t)){var f=A(e,3);t=j(t),e=function(s){return f(i[s],s,i)}}var l=n(t,e,r);return l>-1?i[f?t[l]:l]:o}}function df(n){return Vn(function(t){var e=t.length,r=e,i=In.prototype.thru;for(n&&t.reverse();r--;){var f=t[r];if(typeof f!="function")throw new Rn(L);if(i&&!l&&nr(f)=="wrapper")var l=new In([],!0)}for(r=l?r:e;++r<e;){f=t[r];var s=nr(f),c=s=="wrapper"?gi(f):o;c&&vi(c[0])&&c[1]==(_n|Bn|Mn|qt)&&!c[4].length&&c[9]==1?l=l[nr(c[0])].apply(l,c[3]):l=f.length==1&&vi(f)?l[s]():l.thru(f)}return function(){var p=arguments,_=p[0];if(l&&p.length==1&&R(_))return l.plant(_).value();for(var d=0,v=e?t[d].apply(this,p):_;++d<e;)v=t[d].call(this,v);return v}})}function Qe(n,t,e,r,i,f,l,s,c,p){var _=t&_n,d=t&N,v=t&et,w=t&(Bn|gt),y=t&gr,S=v?o:le(n);function m(){for(var O=arguments.length,M=h(O),An=O;An--;)M[An]=arguments[An];if(w)var sn=Nt(m),yn=kl(M,sn);if(r&&(M=af(M,r,i,w)),f&&(M=cf(M,f,l,w)),O-=yn,w&&O<p){var Y=ut(M,sn);return wf(n,t,Qe,m.placeholder,e,M,Y,s,c,p-O)}var Nn=d?e:this,tt=v?Nn[n]:n;return O=M.length,s?M=fc(M,s):y&&O>1&&M.reverse(),_&&c<O&&(M.length=c),this&&this!==tn&&this instanceof m&&(tt=S||le(tt)),tt.apply(Nn,M)}return m}function vf(n,t){return function(e,r){return pa(e,n,t(r),{})}}function Ve(n,t){return function(e,r){var i;if(e===o&&r===o)return t;if(e!==o&&(i=e),r!==o){if(i===o)return r;typeof e=="string"||typeof r=="string"?(e=xn(e),r=xn(r)):(e=tf(e),r=tf(r)),i=n(e,r)}return i}}function si(n){return Vn(function(t){return t=q(t,vn(A())),T(function(e){var r=this;return n(t,function(i){return dn(i,r,e)})})})}function ke(n,t){t=t===o?" ":xn(t);var e=t.length;if(e<2)return e?ei(t,n):t;var r=ei(t,De(n/Wt(t)));return Ot(t)?at(bn(r),0,n).join(""):r.slice(0,n)}function Ha(n,t,e,r){var i=t&N,f=le(n);function l(){for(var s=-1,c=arguments.length,p=-1,_=r.length,d=h(_+c),v=this&&this!==tn&&this instanceof l?f:n;++p<_;)d[p]=r[p];for(;c--;)d[p++]=arguments[++s];return dn(v,i?e:this,d)}return l}function xf(n){return function(t,e,r){return r&&typeof r!="number"&&ln(t,e,r)&&(e=r=o),t=nt(t),e===o?(e=t,t=0):e=nt(e),r=r===o?t<e?1:-1:nt(r),Ca(t,e,r,n)}}function je(n){return function(t,e){return typeof t=="string"&&typeof e=="string"||(t=Ln(t),e=Ln(e)),n(t,e)}}function wf(n,t,e,r,i,f,l,s,c,p){var _=t&Bn,d=_?l:o,v=_?o:l,w=_?f:o,y=_?o:f;t|=_?Mn:J,t&=~(_?J:Mn),t&de||(t&=-4);var S=[n,t,i,w,d,y,v,s,c,p],m=e.apply(o,S);return vi(n)&&Wf(m,S),m.placeholder=r,Bf(m,n,t)}function ai(n){var t=Q[n];return function(e,r){if(e=Ln(e),r=r==null?0:un(C(r),292),r&&Wu(e)){var i=(P(e)+"e").split("e"),f=t(i[0]+"e"+(+i[1]+r));return i=(P(f)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(e)}}var $a=Ft&&1/Te(new Ft([,-0]))[1]==ve?function(n){return new Ft(n)}:Bi;function Af(n){return function(t){var e=fn(t);return e==Fn?Gr(t):e==Pn?us(t):Vl(t,n(t))}}function Qn(n,t,e,r,i,f,l,s){var c=t&et;if(!c&&typeof n!="function")throw new Rn(L);var p=r?r.length:0;if(p||(t&=-97,r=i=o),l=l===o?l:V(C(l),0),s=s===o?s:C(s),p-=i?i.length:0,t&J){var _=r,d=i;r=i=o}var v=c?o:gi(n),w=[n,t,e,r,i,_,d,f,l,s];if(v&&rc(w,v),n=w[0],t=w[1],e=w[2],r=w[3],i=w[4],s=w[9]=w[9]===o?c?0:n.length:V(w[9]-p,0),!s&&t&(Bn|gt)&&(t&=-25),!t||t==N)var y=Na(n,t,e);else t==Bn||t==gt?y=Ga(n,t,s):(t==Mn||t==(N|Mn))&&!i.length?y=Ha(n,t,e,r):y=Qe.apply(o,w);var S=v?ju:Wf;return Bf(S(y,w),n,t)}function yf(n,t,e,r){return n===o||Dn(n,Mt[e])&&!b.call(r,e)?t:n}function mf(n,t,e,r,i,f){return K(n)&&K(t)&&(f.set(t,n),Ze(n,t,o,mf,f),f.delete(t)),n}function qa(n){return ce(n)?o:n}function Ef(n,t,e,r,i,f){var l=e&zn,s=n.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var p=f.get(n),_=f.get(t);if(p&&_)return p==t&&_==n;var d=-1,v=!0,w=e&Rt?new vt:o;for(f.set(n,t),f.set(t,n);++d<s;){var y=n[d],S=t[d];if(r)var m=l?r(S,y,d,t,n,f):r(y,S,d,n,t,f);if(m!==o){if(m)continue;v=!1;break}if(w){if(!Fr(t,function(O,M){if(!Vt(w,M)&&(y===O||i(y,O,e,r,f)))return w.push(M)})){v=!1;break}}else if(!(y===S||i(y,S,e,r,f))){v=!1;break}}return f.delete(n),f.delete(t),v}function Ka(n,t,e,r,i,f,l){switch(e){case St:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case Qt:return!(n.byteLength!=t.byteLength||!f(new Fe(n),new Fe(t)));case Kt:case zt:case Zt:return Dn(+n,+t);case Ae:return n.name==t.name&&n.message==t.message;case Yt:case Xt:return n==t+"";case Fn:var s=Gr;case Pn:var c=r&zn;if(s||(s=Te),n.size!=t.size&&!c)return!1;var p=l.get(n);if(p)return p==t;r|=Rt,l.set(n,t);var _=Ef(s(n),s(t),r,i,f,l);return l.delete(n),_;case me:if(ee)return ee.call(n)==ee.call(t)}return!1}function za(n,t,e,r,i,f){var l=e&zn,s=ci(n),c=s.length,p=ci(t),_=p.length;if(c!=_&&!l)return!1;for(var d=c;d--;){var v=s[d];if(!(l?v in t:b.call(t,v)))return!1}var w=f.get(n),y=f.get(t);if(w&&y)return w==t&&y==n;var S=!0;f.set(n,t),f.set(t,n);for(var m=l;++d<c;){v=s[d];var O=n[v],M=t[v];if(r)var An=l?r(M,O,v,t,n,f):r(O,M,v,n,t,f);if(!(An===o?O===M||i(O,M,e,r,f):An)){S=!1;break}m||(m=v=="constructor")}if(S&&!m){var sn=n.constructor,yn=t.constructor;sn!=yn&&"constructor"in n&&"constructor"in t&&!(typeof sn=="function"&&sn instanceof sn&&typeof yn=="function"&&yn instanceof yn)&&(S=!1)}return f.delete(n),f.delete(t),S}function Vn(n){return wi(Lf(n,o,Df),n+"")}function ci(n){return $u(n,j,_i)}function hi(n){return $u(n,gn,Rf)}var gi=Ge?function(n){return Ge.get(n)}:Bi;function nr(n){for(var t=n.name+"",e=Pt[t],r=b.call(Pt,t)?e.length:0;r--;){var i=e[r],f=i.func;if(f==null||f==n)return i.name}return t}function Nt(n){var t=b.call(u,"placeholder")?u:n;return t.placeholder}function A(){var n=u.iteratee||Oi;return n=n===Oi?zu:n,arguments.length?n(arguments[0],arguments[1]):n}function tr(n,t){var e=n.__data__;return ja(t)?e[typeof t=="string"?"string":"hash"]:e.map}function pi(n){for(var t=j(n),e=t.length;e--;){var r=t[e],i=n[r];t[e]=[r,i,Sf(i)]}return t}function At(n,t){var e=es(n,t);return Ku(e)?e:o}function Za(n){var t=b.call(n,_t),e=n[_t];try{n[_t]=o;var r=!0}catch{}var i=Be.call(n);return r&&(t?n[_t]=e:delete n[_t]),i}var _i=$r?function(n){return n==null?[]:(n=D(n),rt($r(n),function(t){return Lu.call(n,t)}))}:Mi,Rf=$r?function(n){for(var t=[];n;)it(t,_i(n)),n=Pe(n);return t}:Mi,fn=on;(qr&&fn(new qr(new ArrayBuffer(1)))!=St||jt&&fn(new jt)!=Fn||Kr&&fn(Kr.resolve())!=Ni||Ft&&fn(new Ft)!=Pn||ne&&fn(new ne)!=Jt)&&(fn=function(n){var t=on(n),e=t==Zn?n.constructor:o,r=e?yt(e):"";if(r)switch(r){case Ts:return St;case Ls:return Fn;case Os:return Ni;case Ws:return Pn;case Bs:return Jt}return t});function Ya(n,t,e){for(var r=-1,i=e.length;++r<i;){var f=e[r],l=f.size;switch(f.type){case"drop":n+=l;break;case"dropRight":t-=l;break;case"take":t=un(t,n+l);break;case"takeRight":n=V(n,t-l);break}}return{start:n,end:t}}function Xa(n){var t=n.match(nl);return t?t[1].split(tl):[]}function If(n,t,e){t=st(t,n);for(var r=-1,i=t.length,f=!1;++r<i;){var l=qn(t[r]);if(!(f=n!=null&&e(n,l)))break;n=n[l]}return f||++r!=i?f:(i=n==null?0:n.length,!!i&&lr(i)&&kn(l,i)&&(R(n)||mt(n)))}function Ja(n){var t=n.length,e=new n.constructor(t);return t&&typeof n[0]=="string"&&b.call(n,"index")&&(e.index=n.index,e.input=n.input),e}function Cf(n){return typeof n.constructor=="function"&&!se(n)?bt(Pe(n)):{}}function Qa(n,t,e){var r=n.constructor;switch(t){case Qt:return li(n);case Kt:case zt:return new r(+n);case St:return Ma(n,e);case pr:case _r:case dr:case vr:case xr:case wr:case Ar:case yr:case mr:return lf(n,e);case Fn:return new r;case Zt:case Xt:return new r(n);case Yt:return Fa(n);case Pn:return new r;case me:return Pa(n)}}function Va(n,t){var e=t.length;if(!e)return n;var r=e-1;return t[r]=(e>1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(jo,`{
+ */var F_=ge.exports,wo;function b_(){return wo||(wo=1,function(W,I){(function(){var o,$="4.17.21",U=200,k="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",L="Expected a function",nn="Invalid `variable` option passed into `_.template`",rn="__lodash_hash_undefined__",ht=500,Wn="__lodash_placeholder__",an=1,_e=2,Kn=4,zn=1,Rt=2,N=1,et=2,de=4,Bn=8,gt=16,Mn=32,J=64,_n=128,qt=256,gr=512,Io=30,Co="...",So=800,To=16,Ui=1,Lo=2,Oo=3,ve=1/0,It=9007199254740991,Wo=17976931348623157e292,xe=NaN,Gn=4294967295,Bo=Gn-1,Mo=Gn>>>1,Fo=[["ary",_n],["bind",N],["bindKey",et],["curry",Bn],["curryRight",gt],["flip",gr],["partial",Mn],["partialRight",J],["rearg",qt]],Ct="[object Arguments]",we="[object Array]",bo="[object AsyncFunction]",Kt="[object Boolean]",zt="[object Date]",Po="[object DOMException]",Ae="[object Error]",ye="[object Function]",Di="[object GeneratorFunction]",Fn="[object Map]",Zt="[object Number]",Uo="[object Null]",Zn="[object Object]",Ni="[object Promise]",Do="[object Proxy]",Yt="[object RegExp]",bn="[object Set]",Xt="[object String]",me="[object Symbol]",No="[object Undefined]",Jt="[object WeakMap]",Go="[object WeakSet]",Qt="[object ArrayBuffer]",St="[object DataView]",pr="[object Float32Array]",_r="[object Float64Array]",dr="[object Int8Array]",vr="[object Int16Array]",xr="[object Int32Array]",wr="[object Uint8Array]",Ar="[object Uint8ClampedArray]",yr="[object Uint16Array]",mr="[object Uint32Array]",Ho=/\b__p \+= '';/g,$o=/\b(__p \+=) '' \+/g,qo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gi=/&(?:amp|lt|gt|quot|#39);/g,Hi=/[&<>"']/g,Ko=RegExp(Gi.source),zo=RegExp(Hi.source),Zo=/<%-([\s\S]+?)%>/g,Yo=/<%([\s\S]+?)%>/g,$i=/<%=([\s\S]+?)%>/g,Xo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jo=/^\w*$/,Qo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Er=/[\\^$.*+?()[\]{}|]/g,Vo=RegExp(Er.source),Rr=/^\s+/,ko=/\s/,jo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nl=/\{\n\/\* \[wrapped with (.+)\] \*/,tl=/,? & /,el=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rl=/[()=,{}\[\]\/\s]/,il=/\\(\\)?/g,ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/\w*$/,fl=/^[-+]0x[0-9a-f]+$/i,ol=/^0b[01]+$/i,ll=/^\[object .+?Constructor\]$/,sl=/^0o[0-7]+$/i,al=/^(?:0|[1-9]\d*)$/,cl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,hl=/['\n\r\u2028\u2029\\]/g,Re="\\ud800-\\udfff",gl="\\u0300-\\u036f",pl="\\ufe20-\\ufe2f",_l="\\u20d0-\\u20ff",Ki=gl+pl+_l,zi="\\u2700-\\u27bf",Zi="a-z\\xdf-\\xf6\\xf8-\\xff",dl="\\xac\\xb1\\xd7\\xf7",vl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xl="\\u2000-\\u206f",wl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yi="A-Z\\xc0-\\xd6\\xd8-\\xde",Xi="\\ufe0e\\ufe0f",Ji=dl+vl+xl+wl,Ir="['’]",Al="["+Re+"]",Qi="["+Ji+"]",Ie="["+Ki+"]",Vi="\\d+",yl="["+zi+"]",ki="["+Zi+"]",ji="[^"+Re+Ji+Vi+zi+Zi+Yi+"]",Cr="\\ud83c[\\udffb-\\udfff]",ml="(?:"+Ie+"|"+Cr+")",nu="[^"+Re+"]",Sr="(?:\\ud83c[\\udde6-\\uddff]){2}",Tr="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Yi+"]",tu="\\u200d",eu="(?:"+ki+"|"+ji+")",El="(?:"+Tt+"|"+ji+")",ru="(?:"+Ir+"(?:d|ll|m|re|s|t|ve))?",iu="(?:"+Ir+"(?:D|LL|M|RE|S|T|VE))?",uu=ml+"?",fu="["+Xi+"]?",Rl="(?:"+tu+"(?:"+[nu,Sr,Tr].join("|")+")"+fu+uu+")*",Il="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ou=fu+uu+Rl,Sl="(?:"+[yl,Sr,Tr].join("|")+")"+ou,Tl="(?:"+[nu+Ie+"?",Ie,Sr,Tr,Al].join("|")+")",Ll=RegExp(Ir,"g"),Ol=RegExp(Ie,"g"),Lr=RegExp(Cr+"(?="+Cr+")|"+Tl+ou,"g"),Wl=RegExp([Tt+"?"+ki+"+"+ru+"(?="+[Qi,Tt,"$"].join("|")+")",El+"+"+iu+"(?="+[Qi,Tt+eu,"$"].join("|")+")",Tt+"?"+eu+"+"+ru,Tt+"+"+iu,Cl,Il,Vi,Sl].join("|"),"g"),Bl=RegExp("["+tu+Re+Ki+Xi+"]"),Ml=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bl=-1,H={};H[pr]=H[_r]=H[dr]=H[vr]=H[xr]=H[wr]=H[Ar]=H[yr]=H[mr]=!0,H[Ct]=H[we]=H[Qt]=H[Kt]=H[St]=H[zt]=H[Ae]=H[ye]=H[Fn]=H[Zt]=H[Zn]=H[Yt]=H[bn]=H[Xt]=H[Jt]=!1;var G={};G[Ct]=G[we]=G[Qt]=G[St]=G[Kt]=G[zt]=G[pr]=G[_r]=G[dr]=G[vr]=G[xr]=G[Fn]=G[Zt]=G[Zn]=G[Yt]=G[bn]=G[Xt]=G[me]=G[wr]=G[Ar]=G[yr]=G[mr]=!0,G[Ae]=G[ye]=G[Jt]=!1;var Pl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ul={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Dl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Nl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gl=parseFloat,Hl=parseInt,lu=typeof cr=="object"&&cr&&cr.Object===Object&&cr,$l=typeof self=="object"&&self&&self.Object===Object&&self,tn=lu||$l||Function("return this")(),Or=I&&!I.nodeType&&I,pt=Or&&!0&&W&&!W.nodeType&&W,su=pt&&pt.exports===Or,Wr=su&&lu.process,mn=function(){try{var a=pt&&pt.require&&pt.require("util").types;return a||Wr&&Wr.binding&&Wr.binding("util")}catch{}}(),au=mn&&mn.isArrayBuffer,cu=mn&&mn.isDate,hu=mn&&mn.isMap,gu=mn&&mn.isRegExp,pu=mn&&mn.isSet,_u=mn&&mn.isTypedArray;function dn(a,g,h){switch(h.length){case 0:return a.call(g);case 1:return a.call(g,h[0]);case 2:return a.call(g,h[0],h[1]);case 3:return a.call(g,h[0],h[1],h[2])}return a.apply(g,h)}function ql(a,g,h,x){for(var E=-1,F=a==null?0:a.length;++E<F;){var Q=a[E];g(x,Q,h(Q),a)}return x}function En(a,g){for(var h=-1,x=a==null?0:a.length;++h<x&&g(a[h],h,a)!==!1;);return a}function Kl(a,g){for(var h=a==null?0:a.length;h--&&g(a[h],h,a)!==!1;);return a}function du(a,g){for(var h=-1,x=a==null?0:a.length;++h<x;)if(!g(a[h],h,a))return!1;return!0}function rt(a,g){for(var h=-1,x=a==null?0:a.length,E=0,F=[];++h<x;){var Q=a[h];g(Q,h,a)&&(F[E++]=Q)}return F}function Ce(a,g){var h=a==null?0:a.length;return!!h&&Lt(a,g,0)>-1}function Br(a,g,h){for(var x=-1,E=a==null?0:a.length;++x<E;)if(h(g,a[x]))return!0;return!1}function q(a,g){for(var h=-1,x=a==null?0:a.length,E=Array(x);++h<x;)E[h]=g(a[h],h,a);return E}function it(a,g){for(var h=-1,x=g.length,E=a.length;++h<x;)a[E+h]=g[h];return a}function Mr(a,g,h,x){var E=-1,F=a==null?0:a.length;for(x&&F&&(h=a[++E]);++E<F;)h=g(h,a[E],E,a);return h}function zl(a,g,h,x){var E=a==null?0:a.length;for(x&&E&&(h=a[--E]);E--;)h=g(h,a[E],E,a);return h}function Fr(a,g){for(var h=-1,x=a==null?0:a.length;++h<x;)if(g(a[h],h,a))return!0;return!1}var Zl=br("length");function Yl(a){return a.split("")}function Xl(a){return a.match(el)||[]}function vu(a,g,h){var x;return h(a,function(E,F,Q){if(g(E,F,Q))return x=F,!1}),x}function Se(a,g,h,x){for(var E=a.length,F=h+(x?1:-1);x?F--:++F<E;)if(g(a[F],F,a))return F;return-1}function Lt(a,g,h){return g===g?fs(a,g,h):Se(a,xu,h)}function Jl(a,g,h,x){for(var E=h-1,F=a.length;++E<F;)if(x(a[E],g))return E;return-1}function xu(a){return a!==a}function wu(a,g){var h=a==null?0:a.length;return h?Ur(a,g)/h:xe}function br(a){return function(g){return g==null?o:g[a]}}function Pr(a){return function(g){return a==null?o:a[g]}}function Au(a,g,h,x,E){return E(a,function(F,Q,D){h=x?(x=!1,F):g(h,F,Q,D)}),h}function Ql(a,g){var h=a.length;for(a.sort(g);h--;)a[h]=a[h].value;return a}function Ur(a,g){for(var h,x=-1,E=a.length;++x<E;){var F=g(a[x]);F!==o&&(h=h===o?F:h+F)}return h}function Dr(a,g){for(var h=-1,x=Array(a);++h<a;)x[h]=g(h);return x}function Vl(a,g){return q(g,function(h){return[h,a[h]]})}function yu(a){return a&&a.slice(0,Iu(a)+1).replace(Rr,"")}function vn(a){return function(g){return a(g)}}function Nr(a,g){return q(g,function(h){return a[h]})}function Vt(a,g){return a.has(g)}function mu(a,g){for(var h=-1,x=a.length;++h<x&&Lt(g,a[h],0)>-1;);return h}function Eu(a,g){for(var h=a.length;h--&&Lt(g,a[h],0)>-1;);return h}function kl(a,g){for(var h=a.length,x=0;h--;)a[h]===g&&++x;return x}var jl=Pr(Pl),ns=Pr(Ul);function ts(a){return"\\"+Nl[a]}function es(a,g){return a==null?o:a[g]}function Ot(a){return Bl.test(a)}function rs(a){return Ml.test(a)}function is(a){for(var g,h=[];!(g=a.next()).done;)h.push(g.value);return h}function Gr(a){var g=-1,h=Array(a.size);return a.forEach(function(x,E){h[++g]=[E,x]}),h}function Ru(a,g){return function(h){return a(g(h))}}function ut(a,g){for(var h=-1,x=a.length,E=0,F=[];++h<x;){var Q=a[h];(Q===g||Q===Wn)&&(a[h]=Wn,F[E++]=h)}return F}function Te(a){var g=-1,h=Array(a.size);return a.forEach(function(x){h[++g]=x}),h}function us(a){var g=-1,h=Array(a.size);return a.forEach(function(x){h[++g]=[x,x]}),h}function fs(a,g,h){for(var x=h-1,E=a.length;++x<E;)if(a[x]===g)return x;return-1}function os(a,g,h){for(var x=h+1;x--;)if(a[x]===g)return x;return x}function Wt(a){return Ot(a)?ss(a):Zl(a)}function Pn(a){return Ot(a)?as(a):Yl(a)}function Iu(a){for(var g=a.length;g--&&ko.test(a.charAt(g)););return g}var ls=Pr(Dl);function ss(a){for(var g=Lr.lastIndex=0;Lr.test(a);)++g;return g}function as(a){return a.match(Lr)||[]}function cs(a){return a.match(Wl)||[]}var hs=function a(g){g=g==null?tn:Bt.defaults(tn.Object(),g,Bt.pick(tn,Fl));var h=g.Array,x=g.Date,E=g.Error,F=g.Function,Q=g.Math,D=g.Object,Hr=g.RegExp,gs=g.String,Rn=g.TypeError,Le=h.prototype,ps=F.prototype,Mt=D.prototype,Oe=g["__core-js_shared__"],We=ps.toString,P=Mt.hasOwnProperty,_s=0,Cu=function(){var n=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Be=Mt.toString,ds=We.call(D),vs=tn._,xs=Hr("^"+We.call(P).replace(Er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=su?g.Buffer:o,ft=g.Symbol,Fe=g.Uint8Array,Su=Me?Me.allocUnsafe:o,be=Ru(D.getPrototypeOf,D),Tu=D.create,Lu=Mt.propertyIsEnumerable,Pe=Le.splice,Ou=ft?ft.isConcatSpreadable:o,kt=ft?ft.iterator:o,_t=ft?ft.toStringTag:o,Ue=function(){try{var n=At(D,"defineProperty");return n({},"",{}),n}catch{}}(),ws=g.clearTimeout!==tn.clearTimeout&&g.clearTimeout,As=x&&x.now!==tn.Date.now&&x.now,ys=g.setTimeout!==tn.setTimeout&&g.setTimeout,De=Q.ceil,Ne=Q.floor,$r=D.getOwnPropertySymbols,ms=Me?Me.isBuffer:o,Wu=g.isFinite,Es=Le.join,Rs=Ru(D.keys,D),V=Q.max,un=Q.min,Is=x.now,Cs=g.parseInt,Bu=Q.random,Ss=Le.reverse,qr=At(g,"DataView"),jt=At(g,"Map"),Kr=At(g,"Promise"),Ft=At(g,"Set"),ne=At(g,"WeakMap"),te=At(D,"create"),Ge=ne&&new ne,bt={},Ts=yt(qr),Ls=yt(jt),Os=yt(Kr),Ws=yt(Ft),Bs=yt(ne),He=ft?ft.prototype:o,ee=He?He.valueOf:o,Mu=He?He.toString:o;function u(n){if(z(n)&&!R(n)&&!(n instanceof B)){if(n instanceof In)return n;if(P.call(n,"__wrapped__"))return bf(n)}return new In(n)}var Pt=function(){function n(){}return function(t){if(!K(t))return{};if(Tu)return Tu(t);n.prototype=t;var e=new n;return n.prototype=o,e}}();function $e(){}function In(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}u.templateSettings={escape:Zo,evaluate:Yo,interpolate:$i,variable:"",imports:{_:u}},u.prototype=$e.prototype,u.prototype.constructor=u,In.prototype=Pt($e.prototype),In.prototype.constructor=In;function B(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Gn,this.__views__=[]}function Ms(){var n=new B(this.__wrapped__);return n.__actions__=cn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=cn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=cn(this.__views__),n}function Fs(){if(this.__filtered__){var n=new B(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function bs(){var n=this.__wrapped__.value(),t=this.__dir__,e=R(n),r=t<0,i=e?n.length:0,f=Ya(0,i,this.__views__),l=f.start,s=f.end,c=s-l,p=r?s:l-1,_=this.__iteratees__,d=_.length,v=0,w=un(c,this.__takeCount__);if(!e||!r&&i==c&&w==c)return rf(n,this.__actions__);var y=[];n:for(;c--&&v<w;){p+=t;for(var S=-1,m=n[p];++S<d;){var O=_[S],M=O.iteratee,An=O.type,sn=M(m);if(An==Lo)m=sn;else if(!sn){if(An==Ui)continue n;break n}}y[v++]=m}return y}B.prototype=Pt($e.prototype),B.prototype.constructor=B;function dt(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Ps(){this.__data__=te?te(null):{},this.size=0}function Us(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function Ds(n){var t=this.__data__;if(te){var e=t[n];return e===rn?o:e}return P.call(t,n)?t[n]:o}function Ns(n){var t=this.__data__;return te?t[n]!==o:P.call(t,n)}function Gs(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=te&&t===o?rn:t,this}dt.prototype.clear=Ps,dt.prototype.delete=Us,dt.prototype.get=Ds,dt.prototype.has=Ns,dt.prototype.set=Gs;function Yn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Hs(){this.__data__=[],this.size=0}function $s(n){var t=this.__data__,e=qe(t,n);if(e<0)return!1;var r=t.length-1;return e==r?t.pop():Pe.call(t,e,1),--this.size,!0}function qs(n){var t=this.__data__,e=qe(t,n);return e<0?o:t[e][1]}function Ks(n){return qe(this.__data__,n)>-1}function zs(n,t){var e=this.__data__,r=qe(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this}Yn.prototype.clear=Hs,Yn.prototype.delete=$s,Yn.prototype.get=qs,Yn.prototype.has=Ks,Yn.prototype.set=zs;function Xn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Zs(){this.size=0,this.__data__={hash:new dt,map:new(jt||Yn),string:new dt}}function Ys(n){var t=tr(this,n).delete(n);return this.size-=t?1:0,t}function Xs(n){return tr(this,n).get(n)}function Js(n){return tr(this,n).has(n)}function Qs(n,t){var e=tr(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this}Xn.prototype.clear=Zs,Xn.prototype.delete=Ys,Xn.prototype.get=Xs,Xn.prototype.has=Js,Xn.prototype.set=Qs;function vt(n){var t=-1,e=n==null?0:n.length;for(this.__data__=new Xn;++t<e;)this.add(n[t])}function Vs(n){return this.__data__.set(n,rn),this}function ks(n){return this.__data__.has(n)}vt.prototype.add=vt.prototype.push=Vs,vt.prototype.has=ks;function Un(n){var t=this.__data__=new Yn(n);this.size=t.size}function js(){this.__data__=new Yn,this.size=0}function na(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e}function ta(n){return this.__data__.get(n)}function ea(n){return this.__data__.has(n)}function ra(n,t){var e=this.__data__;if(e instanceof Yn){var r=e.__data__;if(!jt||r.length<U-1)return r.push([n,t]),this.size=++e.size,this;e=this.__data__=new Xn(r)}return e.set(n,t),this.size=e.size,this}Un.prototype.clear=js,Un.prototype.delete=na,Un.prototype.get=ta,Un.prototype.has=ea,Un.prototype.set=ra;function Fu(n,t){var e=R(n),r=!e&&mt(n),i=!e&&!r&&ct(n),f=!e&&!r&&!i&&Gt(n),l=e||r||i||f,s=l?Dr(n.length,gs):[],c=s.length;for(var p in n)(t||P.call(n,p))&&!(l&&(p=="length"||i&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||kn(p,c)))&&s.push(p);return s}function bu(n){var t=n.length;return t?n[ti(0,t-1)]:o}function ia(n,t){return er(cn(n),xt(t,0,n.length))}function ua(n){return er(cn(n))}function zr(n,t,e){(e!==o&&!Dn(n[t],e)||e===o&&!(t in n))&&Jn(n,t,e)}function re(n,t,e){var r=n[t];(!(P.call(n,t)&&Dn(r,e))||e===o&&!(t in n))&&Jn(n,t,e)}function qe(n,t){for(var e=n.length;e--;)if(Dn(n[e][0],t))return e;return-1}function fa(n,t,e,r){return ot(n,function(i,f,l){t(r,i,e(i),l)}),r}function Pu(n,t){return n&&$n(t,j(t),n)}function oa(n,t){return n&&$n(t,gn(t),n)}function Jn(n,t,e){t=="__proto__"&&Ue?Ue(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}function Zr(n,t){for(var e=-1,r=t.length,i=h(r),f=n==null;++e<r;)i[e]=f?o:Ci(n,t[e]);return i}function xt(n,t,e){return n===n&&(e!==o&&(n=n<=e?n:e),t!==o&&(n=n>=t?n:t)),n}function Cn(n,t,e,r,i,f){var l,s=t&an,c=t&_e,p=t&Kn;if(e&&(l=i?e(n,r,i,f):e(n)),l!==o)return l;if(!K(n))return n;var _=R(n);if(_){if(l=Ja(n),!s)return cn(n,l)}else{var d=fn(n),v=d==ye||d==Di;if(ct(n))return of(n,s);if(d==Zn||d==Ct||v&&!i){if(l=c||v?{}:Cf(n),!s)return c?Da(n,oa(l,n)):Ua(n,Pu(l,n))}else{if(!G[d])return i?n:{};l=Qa(n,d,s)}}f||(f=new Un);var w=f.get(n);if(w)return w;f.set(n,l),to(n)?n.forEach(function(m){l.add(Cn(m,t,e,m,n,f))}):jf(n)&&n.forEach(function(m,O){l.set(O,Cn(m,t,e,O,n,f))});var y=p?c?hi:ci:c?gn:j,S=_?o:y(n);return En(S||n,function(m,O){S&&(O=m,m=n[O]),re(l,O,Cn(m,t,e,O,n,f))}),l}function la(n){var t=j(n);return function(e){return Uu(e,n,t)}}function Uu(n,t,e){var r=e.length;if(n==null)return!r;for(n=D(n);r--;){var i=e[r],f=t[i],l=n[i];if(l===o&&!(i in n)||!f(l))return!1}return!0}function Du(n,t,e){if(typeof n!="function")throw new Rn(L);return ae(function(){n.apply(o,e)},t)}function ie(n,t,e,r){var i=-1,f=Ce,l=!0,s=n.length,c=[],p=t.length;if(!s)return c;e&&(t=q(t,vn(e))),r?(f=Br,l=!1):t.length>=U&&(f=Vt,l=!1,t=new vt(t));n:for(;++i<s;){var _=n[i],d=e==null?_:e(_);if(_=r||_!==0?_:0,l&&d===d){for(var v=p;v--;)if(t[v]===d)continue n;c.push(_)}else f(t,d,r)||c.push(_)}return c}var ot=hf(Hn),Nu=hf(Xr,!0);function sa(n,t){var e=!0;return ot(n,function(r,i,f){return e=!!t(r,i,f),e}),e}function Ke(n,t,e){for(var r=-1,i=n.length;++r<i;){var f=n[r],l=t(f);if(l!=null&&(s===o?l===l&&!wn(l):e(l,s)))var s=l,c=f}return c}function aa(n,t,e,r){var i=n.length;for(e=C(e),e<0&&(e=-e>i?0:i+e),r=r===o||r>i?i:C(r),r<0&&(r+=i),r=e>r?0:ro(r);e<r;)n[e++]=t;return n}function Gu(n,t){var e=[];return ot(n,function(r,i,f){t(r,i,f)&&e.push(r)}),e}function en(n,t,e,r,i){var f=-1,l=n.length;for(e||(e=ka),i||(i=[]);++f<l;){var s=n[f];t>0&&e(s)?t>1?en(s,t-1,e,r,i):it(i,s):r||(i[i.length]=s)}return i}var Yr=gf(),Hu=gf(!0);function Hn(n,t){return n&&Yr(n,t,j)}function Xr(n,t){return n&&Hu(n,t,j)}function ze(n,t){return rt(t,function(e){return jn(n[e])})}function wt(n,t){t=st(t,n);for(var e=0,r=t.length;n!=null&&e<r;)n=n[qn(t[e++])];return e&&e==r?n:o}function $u(n,t,e){var r=t(n);return R(n)?r:it(r,e(n))}function on(n){return n==null?n===o?No:Uo:_t&&_t in D(n)?Za(n):uc(n)}function Jr(n,t){return n>t}function ca(n,t){return n!=null&&P.call(n,t)}function ha(n,t){return n!=null&&t in D(n)}function ga(n,t,e){return n>=un(t,e)&&n<V(t,e)}function Qr(n,t,e){for(var r=e?Br:Ce,i=n[0].length,f=n.length,l=f,s=h(f),c=1/0,p=[];l--;){var _=n[l];l&&t&&(_=q(_,vn(t))),c=un(_.length,c),s[l]=!e&&(t||i>=120&&_.length>=120)?new vt(l&&_):o}_=n[0];var d=-1,v=s[0];n:for(;++d<i&&p.length<c;){var w=_[d],y=t?t(w):w;if(w=e||w!==0?w:0,!(v?Vt(v,y):r(p,y,e))){for(l=f;--l;){var S=s[l];if(!(S?Vt(S,y):r(n[l],y,e)))continue n}v&&v.push(y),p.push(w)}}return p}function pa(n,t,e,r){return Hn(n,function(i,f,l){t(r,e(i),f,l)}),r}function ue(n,t,e){t=st(t,n),n=Of(n,t);var r=n==null?n:n[qn(Tn(t))];return r==null?o:dn(r,n,e)}function qu(n){return z(n)&&on(n)==Ct}function _a(n){return z(n)&&on(n)==Qt}function da(n){return z(n)&&on(n)==zt}function fe(n,t,e,r,i){return n===t?!0:n==null||t==null||!z(n)&&!z(t)?n!==n&&t!==t:va(n,t,e,r,fe,i)}function va(n,t,e,r,i,f){var l=R(n),s=R(t),c=l?we:fn(n),p=s?we:fn(t);c=c==Ct?Zn:c,p=p==Ct?Zn:p;var _=c==Zn,d=p==Zn,v=c==p;if(v&&ct(n)){if(!ct(t))return!1;l=!0,_=!1}if(v&&!_)return f||(f=new Un),l||Gt(n)?Ef(n,t,e,r,i,f):Ka(n,t,c,e,r,i,f);if(!(e&zn)){var w=_&&P.call(n,"__wrapped__"),y=d&&P.call(t,"__wrapped__");if(w||y){var S=w?n.value():n,m=y?t.value():t;return f||(f=new Un),i(S,m,e,r,f)}}return v?(f||(f=new Un),za(n,t,e,r,i,f)):!1}function xa(n){return z(n)&&fn(n)==Fn}function Vr(n,t,e,r){var i=e.length,f=i,l=!r;if(n==null)return!f;for(n=D(n);i--;){var s=e[i];if(l&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<f;){s=e[i];var c=s[0],p=n[c],_=s[1];if(l&&s[2]){if(p===o&&!(c in n))return!1}else{var d=new Un;if(r)var v=r(p,_,c,n,t,d);if(!(v===o?fe(_,p,zn|Rt,r,d):v))return!1}}return!0}function Ku(n){if(!K(n)||nc(n))return!1;var t=jn(n)?xs:ll;return t.test(yt(n))}function wa(n){return z(n)&&on(n)==Yt}function Aa(n){return z(n)&&fn(n)==bn}function ya(n){return z(n)&&lr(n.length)&&!!H[on(n)]}function zu(n){return typeof n=="function"?n:n==null?pn:typeof n=="object"?R(n)?Xu(n[0],n[1]):Yu(n):po(n)}function kr(n){if(!se(n))return Rs(n);var t=[];for(var e in D(n))P.call(n,e)&&e!="constructor"&&t.push(e);return t}function ma(n){if(!K(n))return ic(n);var t=se(n),e=[];for(var r in n)r=="constructor"&&(t||!P.call(n,r))||e.push(r);return e}function jr(n,t){return n<t}function Zu(n,t){var e=-1,r=hn(n)?h(n.length):[];return ot(n,function(i,f,l){r[++e]=t(i,f,l)}),r}function Yu(n){var t=pi(n);return t.length==1&&t[0][2]?Tf(t[0][0],t[0][1]):function(e){return e===n||Vr(e,n,t)}}function Xu(n,t){return di(n)&&Sf(t)?Tf(qn(n),t):function(e){var r=Ci(e,n);return r===o&&r===t?Si(e,n):fe(t,r,zn|Rt)}}function Ze(n,t,e,r,i){n!==t&&Yr(t,function(f,l){if(i||(i=new Un),K(f))Ea(n,t,l,e,Ze,r,i);else{var s=r?r(xi(n,l),f,l+"",n,t,i):o;s===o&&(s=f),zr(n,l,s)}},gn)}function Ea(n,t,e,r,i,f,l){var s=xi(n,e),c=xi(t,e),p=l.get(c);if(p){zr(n,e,p);return}var _=f?f(s,c,e+"",n,t,l):o,d=_===o;if(d){var v=R(c),w=!v&&ct(c),y=!v&&!w&&Gt(c);_=c,v||w||y?R(s)?_=s:Z(s)?_=cn(s):w?(d=!1,_=of(c,!0)):y?(d=!1,_=lf(c,!0)):_=[]:ce(c)||mt(c)?(_=s,mt(s)?_=io(s):(!K(s)||jn(s))&&(_=Cf(c))):d=!1}d&&(l.set(c,_),i(_,c,r,f,l),l.delete(c)),zr(n,e,_)}function Ju(n,t){var e=n.length;if(e)return t+=t<0?e:0,kn(t,e)?n[t]:o}function Qu(n,t,e){t.length?t=q(t,function(f){return R(f)?function(l){return wt(l,f.length===1?f[0]:f)}:f}):t=[pn];var r=-1;t=q(t,vn(A()));var i=Zu(n,function(f,l,s){var c=q(t,function(p){return p(f)});return{criteria:c,index:++r,value:f}});return Ql(i,function(f,l){return Pa(f,l,e)})}function Ra(n,t){return Vu(n,t,function(e,r){return Si(n,r)})}function Vu(n,t,e){for(var r=-1,i=t.length,f={};++r<i;){var l=t[r],s=wt(n,l);e(s,l)&&oe(f,st(l,n),s)}return f}function Ia(n){return function(t){return wt(t,n)}}function ni(n,t,e,r){var i=r?Jl:Lt,f=-1,l=t.length,s=n;for(n===t&&(t=cn(t)),e&&(s=q(n,vn(e)));++f<l;)for(var c=0,p=t[f],_=e?e(p):p;(c=i(s,_,c,r))>-1;)s!==n&&Pe.call(s,c,1),Pe.call(n,c,1);return n}function ku(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==f){var f=i;kn(i)?Pe.call(n,i,1):ii(n,i)}}return n}function ti(n,t){return n+Ne(Bu()*(t-n+1))}function Ca(n,t,e,r){for(var i=-1,f=V(De((t-n)/(e||1)),0),l=h(f);f--;)l[r?f:++i]=n,n+=e;return l}function ei(n,t){var e="";if(!n||t<1||t>It)return e;do t%2&&(e+=n),t=Ne(t/2),t&&(n+=n);while(t);return e}function T(n,t){return wi(Lf(n,t,pn),n+"")}function Sa(n){return bu(Ht(n))}function Ta(n,t){var e=Ht(n);return er(e,xt(t,0,e.length))}function oe(n,t,e,r){if(!K(n))return n;t=st(t,n);for(var i=-1,f=t.length,l=f-1,s=n;s!=null&&++i<f;){var c=qn(t[i]),p=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return n;if(i!=l){var _=s[c];p=r?r(_,c,s):o,p===o&&(p=K(_)?_:kn(t[i+1])?[]:{})}re(s,c,p),s=s[c]}return n}var ju=Ge?function(n,t){return Ge.set(n,t),n}:pn,La=Ue?function(n,t){return Ue(n,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:pn;function Oa(n){return er(Ht(n))}function Sn(n,t,e){var r=-1,i=n.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var f=h(i);++r<i;)f[r]=n[r+t];return f}function Wa(n,t){var e;return ot(n,function(r,i,f){return e=t(r,i,f),!e}),!!e}function Ye(n,t,e){var r=0,i=n==null?r:n.length;if(typeof t=="number"&&t===t&&i<=Mo){for(;r<i;){var f=r+i>>>1,l=n[f];l!==null&&!wn(l)&&(e?l<=t:l<t)?r=f+1:i=f}return i}return ri(n,t,pn,e)}function ri(n,t,e,r){var i=0,f=n==null?0:n.length;if(f===0)return 0;t=e(t);for(var l=t!==t,s=t===null,c=wn(t),p=t===o;i<f;){var _=Ne((i+f)/2),d=e(n[_]),v=d!==o,w=d===null,y=d===d,S=wn(d);if(l)var m=r||y;else p?m=y&&(r||v):s?m=y&&v&&(r||!w):c?m=y&&v&&!w&&(r||!S):w||S?m=!1:m=r?d<=t:d<t;m?i=_+1:f=_}return un(f,Bo)}function nf(n,t){for(var e=-1,r=n.length,i=0,f=[];++e<r;){var l=n[e],s=t?t(l):l;if(!e||!Dn(s,c)){var c=s;f[i++]=l===0?0:l}}return f}function tf(n){return typeof n=="number"?n:wn(n)?xe:+n}function xn(n){if(typeof n=="string")return n;if(R(n))return q(n,xn)+"";if(wn(n))return Mu?Mu.call(n):"";var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function lt(n,t,e){var r=-1,i=Ce,f=n.length,l=!0,s=[],c=s;if(e)l=!1,i=Br;else if(f>=U){var p=t?null:$a(n);if(p)return Te(p);l=!1,i=Vt,c=new vt}else c=t?[]:s;n:for(;++r<f;){var _=n[r],d=t?t(_):_;if(_=e||_!==0?_:0,l&&d===d){for(var v=c.length;v--;)if(c[v]===d)continue n;t&&c.push(d),s.push(_)}else i(c,d,e)||(c!==s&&c.push(d),s.push(_))}return s}function ii(n,t){return t=st(t,n),n=Of(n,t),n==null||delete n[qn(Tn(t))]}function ef(n,t,e,r){return oe(n,t,e(wt(n,t)),r)}function Xe(n,t,e,r){for(var i=n.length,f=r?i:-1;(r?f--:++f<i)&&t(n[f],f,n););return e?Sn(n,r?0:f,r?f+1:i):Sn(n,r?f+1:0,r?i:f)}function rf(n,t){var e=n;return e instanceof B&&(e=e.value()),Mr(t,function(r,i){return i.func.apply(i.thisArg,it([r],i.args))},e)}function ui(n,t,e){var r=n.length;if(r<2)return r?lt(n[0]):[];for(var i=-1,f=h(r);++i<r;)for(var l=n[i],s=-1;++s<r;)s!=i&&(f[i]=ie(f[i]||l,n[s],t,e));return lt(en(f,1),t,e)}function uf(n,t,e){for(var r=-1,i=n.length,f=t.length,l={};++r<i;){var s=r<f?t[r]:o;e(l,n[r],s)}return l}function fi(n){return Z(n)?n:[]}function oi(n){return typeof n=="function"?n:pn}function st(n,t){return R(n)?n:di(n,t)?[n]:Ff(b(n))}var Ba=T;function at(n,t,e){var r=n.length;return e=e===o?r:e,!t&&e>=r?n:Sn(n,t,e)}var ff=ws||function(n){return tn.clearTimeout(n)};function of(n,t){if(t)return n.slice();var e=n.length,r=Su?Su(e):new n.constructor(e);return n.copy(r),r}function li(n){var t=new n.constructor(n.byteLength);return new Fe(t).set(new Fe(n)),t}function Ma(n,t){var e=t?li(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}function Fa(n){var t=new n.constructor(n.source,qi.exec(n));return t.lastIndex=n.lastIndex,t}function ba(n){return ee?D(ee.call(n)):{}}function lf(n,t){var e=t?li(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function sf(n,t){if(n!==t){var e=n!==o,r=n===null,i=n===n,f=wn(n),l=t!==o,s=t===null,c=t===t,p=wn(t);if(!s&&!p&&!f&&n>t||f&&l&&c&&!s&&!p||r&&l&&c||!e&&c||!i)return 1;if(!r&&!f&&!p&&n<t||p&&e&&i&&!r&&!f||s&&e&&i||!l&&i||!c)return-1}return 0}function Pa(n,t,e){for(var r=-1,i=n.criteria,f=t.criteria,l=i.length,s=e.length;++r<l;){var c=sf(i[r],f[r]);if(c){if(r>=s)return c;var p=e[r];return c*(p=="desc"?-1:1)}}return n.index-t.index}function af(n,t,e,r){for(var i=-1,f=n.length,l=e.length,s=-1,c=t.length,p=V(f-l,0),_=h(c+p),d=!r;++s<c;)_[s]=t[s];for(;++i<l;)(d||i<f)&&(_[e[i]]=n[i]);for(;p--;)_[s++]=n[i++];return _}function cf(n,t,e,r){for(var i=-1,f=n.length,l=-1,s=e.length,c=-1,p=t.length,_=V(f-s,0),d=h(_+p),v=!r;++i<_;)d[i]=n[i];for(var w=i;++c<p;)d[w+c]=t[c];for(;++l<s;)(v||i<f)&&(d[w+e[l]]=n[i++]);return d}function cn(n,t){var e=-1,r=n.length;for(t||(t=h(r));++e<r;)t[e]=n[e];return t}function $n(n,t,e,r){var i=!e;e||(e={});for(var f=-1,l=t.length;++f<l;){var s=t[f],c=r?r(e[s],n[s],s,e,n):o;c===o&&(c=n[s]),i?Jn(e,s,c):re(e,s,c)}return e}function Ua(n,t){return $n(n,_i(n),t)}function Da(n,t){return $n(n,Rf(n),t)}function Je(n,t){return function(e,r){var i=R(e)?ql:fa,f=t?t():{};return i(e,n,A(r,2),f)}}function Ut(n){return T(function(t,e){var r=-1,i=e.length,f=i>1?e[i-1]:o,l=i>2?e[2]:o;for(f=n.length>3&&typeof f=="function"?(i--,f):o,l&&ln(e[0],e[1],l)&&(f=i<3?o:f,i=1),t=D(t);++r<i;){var s=e[r];s&&n(t,s,r,f)}return t})}function hf(n,t){return function(e,r){if(e==null)return e;if(!hn(e))return n(e,r);for(var i=e.length,f=t?i:-1,l=D(e);(t?f--:++f<i)&&r(l[f],f,l)!==!1;);return e}}function gf(n){return function(t,e,r){for(var i=-1,f=D(t),l=r(t),s=l.length;s--;){var c=l[n?s:++i];if(e(f[c],c,f)===!1)break}return t}}function Na(n,t,e){var r=t&N,i=le(n);function f(){var l=this&&this!==tn&&this instanceof f?i:n;return l.apply(r?e:this,arguments)}return f}function pf(n){return function(t){t=b(t);var e=Ot(t)?Pn(t):o,r=e?e[0]:t.charAt(0),i=e?at(e,1).join(""):t.slice(1);return r[n]()+i}}function Dt(n){return function(t){return Mr(ho(co(t).replace(Ll,"")),n,"")}}function le(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=Pt(n.prototype),r=n.apply(e,t);return K(r)?r:e}}function Ga(n,t,e){var r=le(n);function i(){for(var f=arguments.length,l=h(f),s=f,c=Nt(i);s--;)l[s]=arguments[s];var p=f<3&&l[0]!==c&&l[f-1]!==c?[]:ut(l,c);if(f-=p.length,f<e)return wf(n,t,Qe,i.placeholder,o,l,p,o,o,e-f);var _=this&&this!==tn&&this instanceof i?r:n;return dn(_,this,l)}return i}function _f(n){return function(t,e,r){var i=D(t);if(!hn(t)){var f=A(e,3);t=j(t),e=function(s){return f(i[s],s,i)}}var l=n(t,e,r);return l>-1?i[f?t[l]:l]:o}}function df(n){return Vn(function(t){var e=t.length,r=e,i=In.prototype.thru;for(n&&t.reverse();r--;){var f=t[r];if(typeof f!="function")throw new Rn(L);if(i&&!l&&nr(f)=="wrapper")var l=new In([],!0)}for(r=l?r:e;++r<e;){f=t[r];var s=nr(f),c=s=="wrapper"?gi(f):o;c&&vi(c[0])&&c[1]==(_n|Bn|Mn|qt)&&!c[4].length&&c[9]==1?l=l[nr(c[0])].apply(l,c[3]):l=f.length==1&&vi(f)?l[s]():l.thru(f)}return function(){var p=arguments,_=p[0];if(l&&p.length==1&&R(_))return l.plant(_).value();for(var d=0,v=e?t[d].apply(this,p):_;++d<e;)v=t[d].call(this,v);return v}})}function Qe(n,t,e,r,i,f,l,s,c,p){var _=t&_n,d=t&N,v=t&et,w=t&(Bn|gt),y=t&gr,S=v?o:le(n);function m(){for(var O=arguments.length,M=h(O),An=O;An--;)M[An]=arguments[An];if(w)var sn=Nt(m),yn=kl(M,sn);if(r&&(M=af(M,r,i,w)),f&&(M=cf(M,f,l,w)),O-=yn,w&&O<p){var Y=ut(M,sn);return wf(n,t,Qe,m.placeholder,e,M,Y,s,c,p-O)}var Nn=d?e:this,tt=v?Nn[n]:n;return O=M.length,s?M=fc(M,s):y&&O>1&&M.reverse(),_&&c<O&&(M.length=c),this&&this!==tn&&this instanceof m&&(tt=S||le(tt)),tt.apply(Nn,M)}return m}function vf(n,t){return function(e,r){return pa(e,n,t(r),{})}}function Ve(n,t){return function(e,r){var i;if(e===o&&r===o)return t;if(e!==o&&(i=e),r!==o){if(i===o)return r;typeof e=="string"||typeof r=="string"?(e=xn(e),r=xn(r)):(e=tf(e),r=tf(r)),i=n(e,r)}return i}}function si(n){return Vn(function(t){return t=q(t,vn(A())),T(function(e){var r=this;return n(t,function(i){return dn(i,r,e)})})})}function ke(n,t){t=t===o?" ":xn(t);var e=t.length;if(e<2)return e?ei(t,n):t;var r=ei(t,De(n/Wt(t)));return Ot(t)?at(Pn(r),0,n).join(""):r.slice(0,n)}function Ha(n,t,e,r){var i=t&N,f=le(n);function l(){for(var s=-1,c=arguments.length,p=-1,_=r.length,d=h(_+c),v=this&&this!==tn&&this instanceof l?f:n;++p<_;)d[p]=r[p];for(;c--;)d[p++]=arguments[++s];return dn(v,i?e:this,d)}return l}function xf(n){return function(t,e,r){return r&&typeof r!="number"&&ln(t,e,r)&&(e=r=o),t=nt(t),e===o?(e=t,t=0):e=nt(e),r=r===o?t<e?1:-1:nt(r),Ca(t,e,r,n)}}function je(n){return function(t,e){return typeof t=="string"&&typeof e=="string"||(t=Ln(t),e=Ln(e)),n(t,e)}}function wf(n,t,e,r,i,f,l,s,c,p){var _=t&Bn,d=_?l:o,v=_?o:l,w=_?f:o,y=_?o:f;t|=_?Mn:J,t&=~(_?J:Mn),t&de||(t&=-4);var S=[n,t,i,w,d,y,v,s,c,p],m=e.apply(o,S);return vi(n)&&Wf(m,S),m.placeholder=r,Bf(m,n,t)}function ai(n){var t=Q[n];return function(e,r){if(e=Ln(e),r=r==null?0:un(C(r),292),r&&Wu(e)){var i=(b(e)+"e").split("e"),f=t(i[0]+"e"+(+i[1]+r));return i=(b(f)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(e)}}var $a=Ft&&1/Te(new Ft([,-0]))[1]==ve?function(n){return new Ft(n)}:Bi;function Af(n){return function(t){var e=fn(t);return e==Fn?Gr(t):e==bn?us(t):Vl(t,n(t))}}function Qn(n,t,e,r,i,f,l,s){var c=t&et;if(!c&&typeof n!="function")throw new Rn(L);var p=r?r.length:0;if(p||(t&=-97,r=i=o),l=l===o?l:V(C(l),0),s=s===o?s:C(s),p-=i?i.length:0,t&J){var _=r,d=i;r=i=o}var v=c?o:gi(n),w=[n,t,e,r,i,_,d,f,l,s];if(v&&rc(w,v),n=w[0],t=w[1],e=w[2],r=w[3],i=w[4],s=w[9]=w[9]===o?c?0:n.length:V(w[9]-p,0),!s&&t&(Bn|gt)&&(t&=-25),!t||t==N)var y=Na(n,t,e);else t==Bn||t==gt?y=Ga(n,t,s):(t==Mn||t==(N|Mn))&&!i.length?y=Ha(n,t,e,r):y=Qe.apply(o,w);var S=v?ju:Wf;return Bf(S(y,w),n,t)}function yf(n,t,e,r){return n===o||Dn(n,Mt[e])&&!P.call(r,e)?t:n}function mf(n,t,e,r,i,f){return K(n)&&K(t)&&(f.set(t,n),Ze(n,t,o,mf,f),f.delete(t)),n}function qa(n){return ce(n)?o:n}function Ef(n,t,e,r,i,f){var l=e&zn,s=n.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var p=f.get(n),_=f.get(t);if(p&&_)return p==t&&_==n;var d=-1,v=!0,w=e&Rt?new vt:o;for(f.set(n,t),f.set(t,n);++d<s;){var y=n[d],S=t[d];if(r)var m=l?r(S,y,d,t,n,f):r(y,S,d,n,t,f);if(m!==o){if(m)continue;v=!1;break}if(w){if(!Fr(t,function(O,M){if(!Vt(w,M)&&(y===O||i(y,O,e,r,f)))return w.push(M)})){v=!1;break}}else if(!(y===S||i(y,S,e,r,f))){v=!1;break}}return f.delete(n),f.delete(t),v}function Ka(n,t,e,r,i,f,l){switch(e){case St:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case Qt:return!(n.byteLength!=t.byteLength||!f(new Fe(n),new Fe(t)));case Kt:case zt:case Zt:return Dn(+n,+t);case Ae:return n.name==t.name&&n.message==t.message;case Yt:case Xt:return n==t+"";case Fn:var s=Gr;case bn:var c=r&zn;if(s||(s=Te),n.size!=t.size&&!c)return!1;var p=l.get(n);if(p)return p==t;r|=Rt,l.set(n,t);var _=Ef(s(n),s(t),r,i,f,l);return l.delete(n),_;case me:if(ee)return ee.call(n)==ee.call(t)}return!1}function za(n,t,e,r,i,f){var l=e&zn,s=ci(n),c=s.length,p=ci(t),_=p.length;if(c!=_&&!l)return!1;for(var d=c;d--;){var v=s[d];if(!(l?v in t:P.call(t,v)))return!1}var w=f.get(n),y=f.get(t);if(w&&y)return w==t&&y==n;var S=!0;f.set(n,t),f.set(t,n);for(var m=l;++d<c;){v=s[d];var O=n[v],M=t[v];if(r)var An=l?r(M,O,v,t,n,f):r(O,M,v,n,t,f);if(!(An===o?O===M||i(O,M,e,r,f):An)){S=!1;break}m||(m=v=="constructor")}if(S&&!m){var sn=n.constructor,yn=t.constructor;sn!=yn&&"constructor"in n&&"constructor"in t&&!(typeof sn=="function"&&sn instanceof sn&&typeof yn=="function"&&yn instanceof yn)&&(S=!1)}return f.delete(n),f.delete(t),S}function Vn(n){return wi(Lf(n,o,Df),n+"")}function ci(n){return $u(n,j,_i)}function hi(n){return $u(n,gn,Rf)}var gi=Ge?function(n){return Ge.get(n)}:Bi;function nr(n){for(var t=n.name+"",e=bt[t],r=P.call(bt,t)?e.length:0;r--;){var i=e[r],f=i.func;if(f==null||f==n)return i.name}return t}function Nt(n){var t=P.call(u,"placeholder")?u:n;return t.placeholder}function A(){var n=u.iteratee||Oi;return n=n===Oi?zu:n,arguments.length?n(arguments[0],arguments[1]):n}function tr(n,t){var e=n.__data__;return ja(t)?e[typeof t=="string"?"string":"hash"]:e.map}function pi(n){for(var t=j(n),e=t.length;e--;){var r=t[e],i=n[r];t[e]=[r,i,Sf(i)]}return t}function At(n,t){var e=es(n,t);return Ku(e)?e:o}function Za(n){var t=P.call(n,_t),e=n[_t];try{n[_t]=o;var r=!0}catch{}var i=Be.call(n);return r&&(t?n[_t]=e:delete n[_t]),i}var _i=$r?function(n){return n==null?[]:(n=D(n),rt($r(n),function(t){return Lu.call(n,t)}))}:Mi,Rf=$r?function(n){for(var t=[];n;)it(t,_i(n)),n=be(n);return t}:Mi,fn=on;(qr&&fn(new qr(new ArrayBuffer(1)))!=St||jt&&fn(new jt)!=Fn||Kr&&fn(Kr.resolve())!=Ni||Ft&&fn(new Ft)!=bn||ne&&fn(new ne)!=Jt)&&(fn=function(n){var t=on(n),e=t==Zn?n.constructor:o,r=e?yt(e):"";if(r)switch(r){case Ts:return St;case Ls:return Fn;case Os:return Ni;case Ws:return bn;case Bs:return Jt}return t});function Ya(n,t,e){for(var r=-1,i=e.length;++r<i;){var f=e[r],l=f.size;switch(f.type){case"drop":n+=l;break;case"dropRight":t-=l;break;case"take":t=un(t,n+l);break;case"takeRight":n=V(n,t-l);break}}return{start:n,end:t}}function Xa(n){var t=n.match(nl);return t?t[1].split(tl):[]}function If(n,t,e){t=st(t,n);for(var r=-1,i=t.length,f=!1;++r<i;){var l=qn(t[r]);if(!(f=n!=null&&e(n,l)))break;n=n[l]}return f||++r!=i?f:(i=n==null?0:n.length,!!i&&lr(i)&&kn(l,i)&&(R(n)||mt(n)))}function Ja(n){var t=n.length,e=new n.constructor(t);return t&&typeof n[0]=="string"&&P.call(n,"index")&&(e.index=n.index,e.input=n.input),e}function Cf(n){return typeof n.constructor=="function"&&!se(n)?Pt(be(n)):{}}function Qa(n,t,e){var r=n.constructor;switch(t){case Qt:return li(n);case Kt:case zt:return new r(+n);case St:return Ma(n,e);case pr:case _r:case dr:case vr:case xr:case wr:case Ar:case yr:case mr:return lf(n,e);case Fn:return new r;case Zt:case Xt:return new r(n);case Yt:return Fa(n);case bn:return new r;case me:return ba(n)}}function Va(n,t){var e=t.length;if(!e)return n;var r=e-1;return t[r]=(e>1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(jo,`{
 /* [wrapped with `+t+`] */
-`)}function ka(n){return R(n)||mt(n)||!!(Ou&&n&&n[Ou])}function kn(n,t){var e=typeof n;return t=t??It,!!t&&(e=="number"||e!="symbol"&&al.test(n))&&n>-1&&n%1==0&&n<t}function ln(n,t,e){if(!K(e))return!1;var r=typeof t;return(r=="number"?hn(e)&&kn(t,e.length):r=="string"&&t in e)?Dn(e[t],n):!1}function di(n,t){if(R(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||wn(n)?!0:Jo.test(n)||!Xo.test(n)||t!=null&&n in D(t)}function ja(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function vi(n){var t=nr(n),e=u[t];if(typeof e!="function"||!(t in B.prototype))return!1;if(n===e)return!0;var r=gi(e);return!!r&&n===r[0]}function nc(n){return!!Cu&&Cu in n}var tc=Oe?jn:Fi;function se(n){var t=n&&n.constructor,e=typeof t=="function"&&t.prototype||Mt;return n===e}function Sf(n){return n===n&&!K(n)}function Tf(n,t){return function(e){return e==null?!1:e[n]===t&&(t!==o||n in D(e))}}function ec(n){var t=fr(n,function(r){return e.size===ht&&e.clear(),r}),e=t.cache;return t}function rc(n,t){var e=n[1],r=t[1],i=e|r,f=i<(N|et|_n),l=r==_n&&e==Bn||r==_n&&e==qt&&n[7].length<=t[8]||r==(_n|qt)&&t[7].length<=t[8]&&e==Bn;if(!(f||l))return n;r&N&&(n[2]=t[2],i|=e&N?0:de);var s=t[3];if(s){var c=n[3];n[3]=c?af(c,s,t[4]):s,n[4]=c?ut(n[3],Wn):t[4]}return s=t[5],s&&(c=n[5],n[5]=c?cf(c,s,t[6]):s,n[6]=c?ut(n[5],Wn):t[6]),s=t[7],s&&(n[7]=s),r&_n&&(n[8]=n[8]==null?t[8]:un(n[8],t[8])),n[9]==null&&(n[9]=t[9]),n[0]=t[0],n[1]=i,n}function ic(n){var t=[];if(n!=null)for(var e in D(n))t.push(e);return t}function uc(n){return Be.call(n)}function Lf(n,t,e){return t=V(t===o?n.length-1:t,0),function(){for(var r=arguments,i=-1,f=V(r.length-t,0),l=h(f);++i<f;)l[i]=r[t+i];i=-1;for(var s=h(t+1);++i<t;)s[i]=r[i];return s[t]=e(l),dn(n,this,s)}}function Of(n,t){return t.length<2?n:wt(n,Sn(t,0,-1))}function fc(n,t){for(var e=n.length,r=un(t.length,e),i=cn(n);r--;){var f=t[r];n[r]=kn(f,e)?i[f]:o}return n}function xi(n,t){if(!(t==="constructor"&&typeof n[t]=="function")&&t!="__proto__")return n[t]}var Wf=Mf(ju),ae=ys||function(n,t){return tn.setTimeout(n,t)},wi=Mf(La);function Bf(n,t,e){var r=t+"";return wi(n,Va(r,oc(Xa(r),e)))}function Mf(n){var t=0,e=0;return function(){var r=Is(),i=To-(r-e);if(e=r,i>0){if(++t>=So)return arguments[0]}else t=0;return n.apply(o,arguments)}}function er(n,t){var e=-1,r=n.length,i=r-1;for(t=t===o?r:t;++e<t;){var f=ti(e,i),l=n[f];n[f]=n[e],n[e]=l}return n.length=t,n}var Ff=ec(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(Qo,function(e,r,i,f){t.push(i?f.replace(il,"$1"):r||e)}),t});function qn(n){if(typeof n=="string"||wn(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function yt(n){if(n!=null){try{return We.call(n)}catch{}try{return n+""}catch{}}return""}function oc(n,t){return En(Fo,function(e){var r="_."+e[0];t&e[1]&&!Ce(n,r)&&n.push(r)}),n.sort()}function Pf(n){if(n instanceof B)return n.clone();var t=new In(n.__wrapped__,n.__chain__);return t.__actions__=cn(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function lc(n,t,e){(e?ln(n,t,e):t===o)?t=1:t=V(C(t),0);var r=n==null?0:n.length;if(!r||t<1)return[];for(var i=0,f=0,l=h(De(r/t));i<r;)l[f++]=Sn(n,i,i+=t);return l}function sc(n){for(var t=-1,e=n==null?0:n.length,r=0,i=[];++t<e;){var f=n[t];f&&(i[r++]=f)}return i}function ac(){var n=arguments.length;if(!n)return[];for(var t=h(n-1),e=arguments[0],r=n;r--;)t[r-1]=arguments[r];return it(R(e)?cn(e):[e],en(t,1))}var cc=T(function(n,t){return Z(n)?ie(n,en(t,1,Z,!0)):[]}),hc=T(function(n,t){var e=Tn(t);return Z(e)&&(e=o),Z(n)?ie(n,en(t,1,Z,!0),A(e,2)):[]}),gc=T(function(n,t){var e=Tn(t);return Z(e)&&(e=o),Z(n)?ie(n,en(t,1,Z,!0),o,e):[]});function pc(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),Sn(n,t<0?0:t,r)):[]}function _c(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),t=r-t,Sn(n,0,t<0?0:t)):[]}function dc(n,t){return n&&n.length?Xe(n,A(t,3),!0,!0):[]}function vc(n,t){return n&&n.length?Xe(n,A(t,3),!0):[]}function xc(n,t,e,r){var i=n==null?0:n.length;return i?(e&&typeof e!="number"&&ln(n,t,e)&&(e=0,r=i),aa(n,t,e,r)):[]}function bf(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:C(e);return i<0&&(i=V(r+i,0)),Se(n,A(t,3),i)}function Uf(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r-1;return e!==o&&(i=C(e),i=e<0?V(r+i,0):un(i,r-1)),Se(n,A(t,3),i,!0)}function Df(n){var t=n==null?0:n.length;return t?en(n,1):[]}function wc(n){var t=n==null?0:n.length;return t?en(n,ve):[]}function Ac(n,t){var e=n==null?0:n.length;return e?(t=t===o?1:C(t),en(n,t)):[]}function yc(n){for(var t=-1,e=n==null?0:n.length,r={};++t<e;){var i=n[t];r[i[0]]=i[1]}return r}function Nf(n){return n&&n.length?n[0]:o}function mc(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:C(e);return i<0&&(i=V(r+i,0)),Lt(n,t,i)}function Ec(n){var t=n==null?0:n.length;return t?Sn(n,0,-1):[]}var Rc=T(function(n){var t=q(n,fi);return t.length&&t[0]===n[0]?Qr(t):[]}),Ic=T(function(n){var t=Tn(n),e=q(n,fi);return t===Tn(e)?t=o:e.pop(),e.length&&e[0]===n[0]?Qr(e,A(t,2)):[]}),Cc=T(function(n){var t=Tn(n),e=q(n,fi);return t=typeof t=="function"?t:o,t&&e.pop(),e.length&&e[0]===n[0]?Qr(e,o,t):[]});function Sc(n,t){return n==null?"":Es.call(n,t)}function Tn(n){var t=n==null?0:n.length;return t?n[t-1]:o}function Tc(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r;return e!==o&&(i=C(e),i=i<0?V(r+i,0):un(i,r-1)),t===t?os(n,t,i):Se(n,xu,i,!0)}function Lc(n,t){return n&&n.length?Ju(n,C(t)):o}var Oc=T(Gf);function Gf(n,t){return n&&n.length&&t&&t.length?ni(n,t):n}function Wc(n,t,e){return n&&n.length&&t&&t.length?ni(n,t,A(e,2)):n}function Bc(n,t,e){return n&&n.length&&t&&t.length?ni(n,t,o,e):n}var Mc=Vn(function(n,t){var e=n==null?0:n.length,r=Zr(n,t);return ku(n,q(t,function(i){return kn(i,e)?+i:i}).sort(sf)),r});function Fc(n,t){var e=[];if(!(n&&n.length))return e;var r=-1,i=[],f=n.length;for(t=A(t,3);++r<f;){var l=n[r];t(l,r,n)&&(e.push(l),i.push(r))}return ku(n,i),e}function Ai(n){return n==null?n:Ss.call(n)}function Pc(n,t,e){var r=n==null?0:n.length;return r?(e&&typeof e!="number"&&ln(n,t,e)?(t=0,e=r):(t=t==null?0:C(t),e=e===o?r:C(e)),Sn(n,t,e)):[]}function bc(n,t){return Ye(n,t)}function Uc(n,t,e){return ri(n,t,A(e,2))}function Dc(n,t){var e=n==null?0:n.length;if(e){var r=Ye(n,t);if(r<e&&Dn(n[r],t))return r}return-1}function Nc(n,t){return Ye(n,t,!0)}function Gc(n,t,e){return ri(n,t,A(e,2),!0)}function Hc(n,t){var e=n==null?0:n.length;if(e){var r=Ye(n,t,!0)-1;if(Dn(n[r],t))return r}return-1}function $c(n){return n&&n.length?nf(n):[]}function qc(n,t){return n&&n.length?nf(n,A(t,2)):[]}function Kc(n){var t=n==null?0:n.length;return t?Sn(n,1,t):[]}function zc(n,t,e){return n&&n.length?(t=e||t===o?1:C(t),Sn(n,0,t<0?0:t)):[]}function Zc(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),t=r-t,Sn(n,t<0?0:t,r)):[]}function Yc(n,t){return n&&n.length?Xe(n,A(t,3),!1,!0):[]}function Xc(n,t){return n&&n.length?Xe(n,A(t,3)):[]}var Jc=T(function(n){return lt(en(n,1,Z,!0))}),Qc=T(function(n){var t=Tn(n);return Z(t)&&(t=o),lt(en(n,1,Z,!0),A(t,2))}),Vc=T(function(n){var t=Tn(n);return t=typeof t=="function"?t:o,lt(en(n,1,Z,!0),o,t)});function kc(n){return n&&n.length?lt(n):[]}function jc(n,t){return n&&n.length?lt(n,A(t,2)):[]}function nh(n,t){return t=typeof t=="function"?t:o,n&&n.length?lt(n,o,t):[]}function yi(n){if(!(n&&n.length))return[];var t=0;return n=rt(n,function(e){if(Z(e))return t=V(e.length,t),!0}),Dr(t,function(e){return q(n,Pr(e))})}function Hf(n,t){if(!(n&&n.length))return[];var e=yi(n);return t==null?e:q(e,function(r){return dn(t,o,r)})}var th=T(function(n,t){return Z(n)?ie(n,t):[]}),eh=T(function(n){return ui(rt(n,Z))}),rh=T(function(n){var t=Tn(n);return Z(t)&&(t=o),ui(rt(n,Z),A(t,2))}),ih=T(function(n){var t=Tn(n);return t=typeof t=="function"?t:o,ui(rt(n,Z),o,t)}),uh=T(yi);function fh(n,t){return uf(n||[],t||[],re)}function oh(n,t){return uf(n||[],t||[],oe)}var lh=T(function(n){var t=n.length,e=t>1?n[t-1]:o;return e=typeof e=="function"?(n.pop(),e):o,Hf(n,e)});function $f(n){var t=u(n);return t.__chain__=!0,t}function sh(n,t){return t(n),n}function rr(n,t){return t(n)}var ah=Vn(function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,i=function(f){return Zr(f,n)};return t>1||this.__actions__.length||!(r instanceof B)||!kn(e)?this.thru(i):(r=r.slice(e,+e+(t?1:0)),r.__actions__.push({func:rr,args:[i],thisArg:o}),new In(r,this.__chain__).thru(function(f){return t&&!f.length&&f.push(o),f}))});function ch(){return $f(this)}function hh(){return new In(this.value(),this.__chain__)}function gh(){this.__values__===o&&(this.__values__=eo(this.value()));var n=this.__index__>=this.__values__.length,t=n?o:this.__values__[this.__index__++];return{done:n,value:t}}function ph(){return this}function _h(n){for(var t,e=this;e instanceof $e;){var r=Pf(e);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;e=e.__wrapped__}return i.__wrapped__=n,t}function dh(){var n=this.__wrapped__;if(n instanceof B){var t=n;return this.__actions__.length&&(t=new B(this)),t=t.reverse(),t.__actions__.push({func:rr,args:[Ai],thisArg:o}),new In(t,this.__chain__)}return this.thru(Ai)}function vh(){return rf(this.__wrapped__,this.__actions__)}var xh=Je(function(n,t,e){b.call(n,e)?++n[e]:Jn(n,e,1)});function wh(n,t,e){var r=R(n)?du:sa;return e&&ln(n,t,e)&&(t=o),r(n,A(t,3))}function Ah(n,t){var e=R(n)?rt:Gu;return e(n,A(t,3))}var yh=_f(bf),mh=_f(Uf);function Eh(n,t){return en(ir(n,t),1)}function Rh(n,t){return en(ir(n,t),ve)}function Ih(n,t,e){return e=e===o?1:C(e),en(ir(n,t),e)}function qf(n,t){var e=R(n)?En:ot;return e(n,A(t,3))}function Kf(n,t){var e=R(n)?Kl:Nu;return e(n,A(t,3))}var Ch=Je(function(n,t,e){b.call(n,e)?n[e].push(t):Jn(n,e,[t])});function Sh(n,t,e,r){n=hn(n)?n:Ht(n),e=e&&!r?C(e):0;var i=n.length;return e<0&&(e=V(i+e,0)),sr(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&Lt(n,t,e)>-1}var Th=T(function(n,t,e){var r=-1,i=typeof t=="function",f=hn(n)?h(n.length):[];return ot(n,function(l){f[++r]=i?dn(t,l,e):ue(l,t,e)}),f}),Lh=Je(function(n,t,e){Jn(n,e,t)});function ir(n,t){var e=R(n)?q:Zu;return e(n,A(t,3))}function Oh(n,t,e,r){return n==null?[]:(R(t)||(t=t==null?[]:[t]),e=r?o:e,R(e)||(e=e==null?[]:[e]),Qu(n,t,e))}var Wh=Je(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});function Bh(n,t,e){var r=R(n)?Mr:Au,i=arguments.length<3;return r(n,A(t,4),e,i,ot)}function Mh(n,t,e){var r=R(n)?zl:Au,i=arguments.length<3;return r(n,A(t,4),e,i,Nu)}function Fh(n,t){var e=R(n)?rt:Gu;return e(n,or(A(t,3)))}function Ph(n){var t=R(n)?Pu:Sa;return t(n)}function bh(n,t,e){(e?ln(n,t,e):t===o)?t=1:t=C(t);var r=R(n)?ia:Ta;return r(n,t)}function Uh(n){var t=R(n)?ua:Oa;return t(n)}function Dh(n){if(n==null)return 0;if(hn(n))return sr(n)?Wt(n):n.length;var t=fn(n);return t==Fn||t==Pn?n.size:kr(n).length}function Nh(n,t,e){var r=R(n)?Fr:Wa;return e&&ln(n,t,e)&&(t=o),r(n,A(t,3))}var Gh=T(function(n,t){if(n==null)return[];var e=t.length;return e>1&&ln(n,t[0],t[1])?t=[]:e>2&&ln(t[0],t[1],t[2])&&(t=[t[0]]),Qu(n,en(t,1),[])}),ur=As||function(){return tn.Date.now()};function Hh(n,t){if(typeof t!="function")throw new Rn(L);return n=C(n),function(){if(--n<1)return t.apply(this,arguments)}}function zf(n,t,e){return t=e?o:t,t=n&&t==null?n.length:t,Qn(n,_n,o,o,o,o,t)}function Zf(n,t){var e;if(typeof t!="function")throw new Rn(L);return n=C(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=o),e}}var mi=T(function(n,t,e){var r=N;if(e.length){var i=ut(e,Nt(mi));r|=Mn}return Qn(n,r,t,e,i)}),Yf=T(function(n,t,e){var r=N|et;if(e.length){var i=ut(e,Nt(Yf));r|=Mn}return Qn(t,r,n,e,i)});function Xf(n,t,e){t=e?o:t;var r=Qn(n,Bn,o,o,o,o,o,t);return r.placeholder=Xf.placeholder,r}function Jf(n,t,e){t=e?o:t;var r=Qn(n,gt,o,o,o,o,o,t);return r.placeholder=Jf.placeholder,r}function Qf(n,t,e){var r,i,f,l,s,c,p=0,_=!1,d=!1,v=!0;if(typeof n!="function")throw new Rn(L);t=Ln(t)||0,K(e)&&(_=!!e.leading,d="maxWait"in e,f=d?V(Ln(e.maxWait)||0,t):f,v="trailing"in e?!!e.trailing:v);function w(Y){var Nn=r,tt=i;return r=i=o,p=Y,l=n.apply(tt,Nn),l}function y(Y){return p=Y,s=ae(O,t),_?w(Y):l}function S(Y){var Nn=Y-c,tt=Y-p,_o=t-Nn;return d?un(_o,f-tt):_o}function m(Y){var Nn=Y-c,tt=Y-p;return c===o||Nn>=t||Nn<0||d&&tt>=f}function O(){var Y=ur();if(m(Y))return M(Y);s=ae(O,S(Y))}function M(Y){return s=o,v&&r?w(Y):(r=i=o,l)}function An(){s!==o&&ff(s),p=0,r=c=i=s=o}function sn(){return s===o?l:M(ur())}function yn(){var Y=ur(),Nn=m(Y);if(r=arguments,i=this,c=Y,Nn){if(s===o)return y(c);if(d)return ff(s),s=ae(O,t),w(c)}return s===o&&(s=ae(O,t)),l}return yn.cancel=An,yn.flush=sn,yn}var $h=T(function(n,t){return Du(n,1,t)}),qh=T(function(n,t,e){return Du(n,Ln(t)||0,e)});function Kh(n){return Qn(n,gr)}function fr(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new Rn(L);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],f=e.cache;if(f.has(i))return f.get(i);var l=n.apply(this,r);return e.cache=f.set(i,l)||f,l};return e.cache=new(fr.Cache||Xn),e}fr.Cache=Xn;function or(n){if(typeof n!="function")throw new Rn(L);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function zh(n){return Zf(2,n)}var Zh=Ba(function(n,t){t=t.length==1&&R(t[0])?q(t[0],vn(A())):q(en(t,1),vn(A()));var e=t.length;return T(function(r){for(var i=-1,f=un(r.length,e);++i<f;)r[i]=t[i].call(this,r[i]);return dn(n,this,r)})}),Ei=T(function(n,t){var e=ut(t,Nt(Ei));return Qn(n,Mn,o,t,e)}),Vf=T(function(n,t){var e=ut(t,Nt(Vf));return Qn(n,J,o,t,e)}),Yh=Vn(function(n,t){return Qn(n,qt,o,o,o,t)});function Xh(n,t){if(typeof n!="function")throw new Rn(L);return t=t===o?t:C(t),T(n,t)}function Jh(n,t){if(typeof n!="function")throw new Rn(L);return t=t==null?0:V(C(t),0),T(function(e){var r=e[t],i=at(e,0,t);return r&&it(i,r),dn(n,this,i)})}function Qh(n,t,e){var r=!0,i=!0;if(typeof n!="function")throw new Rn(L);return K(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Qf(n,t,{leading:r,maxWait:t,trailing:i})}function Vh(n){return zf(n,1)}function kh(n,t){return Ei(oi(t),n)}function jh(){if(!arguments.length)return[];var n=arguments[0];return R(n)?n:[n]}function ng(n){return Cn(n,Kn)}function tg(n,t){return t=typeof t=="function"?t:o,Cn(n,Kn,t)}function eg(n){return Cn(n,an|Kn)}function rg(n,t){return t=typeof t=="function"?t:o,Cn(n,an|Kn,t)}function ig(n,t){return t==null||Uu(n,t,j(t))}function Dn(n,t){return n===t||n!==n&&t!==t}var ug=je(Jr),fg=je(function(n,t){return n>=t}),mt=qu(function(){return arguments}())?qu:function(n){return z(n)&&b.call(n,"callee")&&!Lu.call(n,"callee")},R=h.isArray,og=au?vn(au):_a;function hn(n){return n!=null&&lr(n.length)&&!jn(n)}function Z(n){return z(n)&&hn(n)}function lg(n){return n===!0||n===!1||z(n)&&on(n)==Kt}var ct=ms||Fi,sg=cu?vn(cu):da;function ag(n){return z(n)&&n.nodeType===1&&!ce(n)}function cg(n){if(n==null)return!0;if(hn(n)&&(R(n)||typeof n=="string"||typeof n.splice=="function"||ct(n)||Gt(n)||mt(n)))return!n.length;var t=fn(n);if(t==Fn||t==Pn)return!n.size;if(se(n))return!kr(n).length;for(var e in n)if(b.call(n,e))return!1;return!0}function hg(n,t){return fe(n,t)}function gg(n,t,e){e=typeof e=="function"?e:o;var r=e?e(n,t):o;return r===o?fe(n,t,o,e):!!r}function Ri(n){if(!z(n))return!1;var t=on(n);return t==Ae||t==bo||typeof n.message=="string"&&typeof n.name=="string"&&!ce(n)}function pg(n){return typeof n=="number"&&Wu(n)}function jn(n){if(!K(n))return!1;var t=on(n);return t==ye||t==Di||t==Po||t==Do}function kf(n){return typeof n=="number"&&n==C(n)}function lr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=It}function K(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function z(n){return n!=null&&typeof n=="object"}var jf=hu?vn(hu):xa;function _g(n,t){return n===t||Vr(n,t,pi(t))}function dg(n,t,e){return e=typeof e=="function"?e:o,Vr(n,t,pi(t),e)}function vg(n){return no(n)&&n!=+n}function xg(n){if(tc(n))throw new E(k);return Ku(n)}function wg(n){return n===null}function Ag(n){return n==null}function no(n){return typeof n=="number"||z(n)&&on(n)==Zt}function ce(n){if(!z(n)||on(n)!=Zn)return!1;var t=Pe(n);if(t===null)return!0;var e=b.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&We.call(e)==ds}var Ii=gu?vn(gu):wa;function yg(n){return kf(n)&&n>=-9007199254740991&&n<=It}var to=pu?vn(pu):Aa;function sr(n){return typeof n=="string"||!R(n)&&z(n)&&on(n)==Xt}function wn(n){return typeof n=="symbol"||z(n)&&on(n)==me}var Gt=_u?vn(_u):ya;function mg(n){return n===o}function Eg(n){return z(n)&&fn(n)==Jt}function Rg(n){return z(n)&&on(n)==Go}var Ig=je(jr),Cg=je(function(n,t){return n<=t});function eo(n){if(!n)return[];if(hn(n))return sr(n)?bn(n):cn(n);if(kt&&n[kt])return is(n[kt]());var t=fn(n),e=t==Fn?Gr:t==Pn?Te:Ht;return e(n)}function nt(n){if(!n)return n===0?n:0;if(n=Ln(n),n===ve||n===-1/0){var t=n<0?-1:1;return t*Wo}return n===n?n:0}function C(n){var t=nt(n),e=t%1;return t===t?e?t-e:t:0}function ro(n){return n?xt(C(n),0,Gn):0}function Ln(n){if(typeof n=="number")return n;if(wn(n))return xe;if(K(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=K(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=yu(n);var e=ol.test(n);return e||sl.test(n)?Hl(n.slice(2),e?2:8):fl.test(n)?xe:+n}function io(n){return $n(n,gn(n))}function Sg(n){return n?xt(C(n),-9007199254740991,It):n===0?n:0}function P(n){return n==null?"":xn(n)}var Tg=Ut(function(n,t){if(se(t)||hn(t)){$n(t,j(t),n);return}for(var e in t)b.call(t,e)&&re(n,e,t[e])}),uo=Ut(function(n,t){$n(t,gn(t),n)}),ar=Ut(function(n,t,e,r){$n(t,gn(t),n,r)}),Lg=Ut(function(n,t,e,r){$n(t,j(t),n,r)}),Og=Vn(Zr);function Wg(n,t){var e=bt(n);return t==null?e:bu(e,t)}var Bg=T(function(n,t){n=D(n);var e=-1,r=t.length,i=r>2?t[2]:o;for(i&&ln(t[0],t[1],i)&&(r=1);++e<r;)for(var f=t[e],l=gn(f),s=-1,c=l.length;++s<c;){var p=l[s],_=n[p];(_===o||Dn(_,Mt[p])&&!b.call(n,p))&&(n[p]=f[p])}return n}),Mg=T(function(n){return n.push(o,mf),dn(fo,o,n)});function Fg(n,t){return vu(n,A(t,3),Hn)}function Pg(n,t){return vu(n,A(t,3),Xr)}function bg(n,t){return n==null?n:Yr(n,A(t,3),gn)}function Ug(n,t){return n==null?n:Hu(n,A(t,3),gn)}function Dg(n,t){return n&&Hn(n,A(t,3))}function Ng(n,t){return n&&Xr(n,A(t,3))}function Gg(n){return n==null?[]:ze(n,j(n))}function Hg(n){return n==null?[]:ze(n,gn(n))}function Ci(n,t,e){var r=n==null?o:wt(n,t);return r===o?e:r}function $g(n,t){return n!=null&&If(n,t,ca)}function Si(n,t){return n!=null&&If(n,t,ha)}var qg=vf(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Be.call(t)),n[t]=e},Li(pn)),Kg=vf(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Be.call(t)),b.call(n,t)?n[t].push(e):n[t]=[e]},A),zg=T(ue);function j(n){return hn(n)?Fu(n):kr(n)}function gn(n){return hn(n)?Fu(n,!0):ma(n)}function Zg(n,t){var e={};return t=A(t,3),Hn(n,function(r,i,f){Jn(e,t(r,i,f),r)}),e}function Yg(n,t){var e={};return t=A(t,3),Hn(n,function(r,i,f){Jn(e,i,t(r,i,f))}),e}var Xg=Ut(function(n,t,e){Ze(n,t,e)}),fo=Ut(function(n,t,e,r){Ze(n,t,e,r)}),Jg=Vn(function(n,t){var e={};if(n==null)return e;var r=!1;t=q(t,function(f){return f=st(f,n),r||(r=f.length>1),f}),$n(n,hi(n),e),r&&(e=Cn(e,an|_e|Kn,qa));for(var i=t.length;i--;)ii(e,t[i]);return e});function Qg(n,t){return oo(n,or(A(t)))}var Vg=Vn(function(n,t){return n==null?{}:Ra(n,t)});function oo(n,t){if(n==null)return{};var e=q(hi(n),function(r){return[r]});return t=A(t),Vu(n,e,function(r,i){return t(r,i[0])})}function kg(n,t,e){t=st(t,n);var r=-1,i=t.length;for(i||(i=1,n=o);++r<i;){var f=n==null?o:n[qn(t[r])];f===o&&(r=i,f=e),n=jn(f)?f.call(n):f}return n}function jg(n,t,e){return n==null?n:oe(n,t,e)}function np(n,t,e,r){return r=typeof r=="function"?r:o,n==null?n:oe(n,t,e,r)}var lo=Af(j),so=Af(gn);function tp(n,t,e){var r=R(n),i=r||ct(n)||Gt(n);if(t=A(t,4),e==null){var f=n&&n.constructor;i?e=r?new f:[]:K(n)?e=jn(f)?bt(Pe(n)):{}:e={}}return(i?En:Hn)(n,function(l,s,c){return t(e,l,s,c)}),e}function ep(n,t){return n==null?!0:ii(n,t)}function rp(n,t,e){return n==null?n:ef(n,t,oi(e))}function ip(n,t,e,r){return r=typeof r=="function"?r:o,n==null?n:ef(n,t,oi(e),r)}function Ht(n){return n==null?[]:Nr(n,j(n))}function up(n){return n==null?[]:Nr(n,gn(n))}function fp(n,t,e){return e===o&&(e=t,t=o),e!==o&&(e=Ln(e),e=e===e?e:0),t!==o&&(t=Ln(t),t=t===t?t:0),xt(Ln(n),t,e)}function op(n,t,e){return t=nt(t),e===o?(e=t,t=0):e=nt(e),n=Ln(n),ga(n,t,e)}function lp(n,t,e){if(e&&typeof e!="boolean"&&ln(n,t,e)&&(t=e=o),e===o&&(typeof t=="boolean"?(e=t,t=o):typeof n=="boolean"&&(e=n,n=o)),n===o&&t===o?(n=0,t=1):(n=nt(n),t===o?(t=n,n=0):t=nt(t)),n>t){var r=n;n=t,t=r}if(e||n%1||t%1){var i=Bu();return un(n+i*(t-n+Gl("1e-"+((i+"").length-1))),t)}return ti(n,t)}var sp=Dt(function(n,t,e){return t=t.toLowerCase(),n+(e?ao(t):t)});function ao(n){return Ti(P(n).toLowerCase())}function co(n){return n=P(n),n&&n.replace(cl,jl).replace(Ol,"")}function ap(n,t,e){n=P(n),t=xn(t);var r=n.length;e=e===o?r:xt(C(e),0,r);var i=e;return e-=t.length,e>=0&&n.slice(e,i)==t}function cp(n){return n=P(n),n&&zo.test(n)?n.replace(Hi,ns):n}function hp(n){return n=P(n),n&&Vo.test(n)?n.replace(Er,"\\$&"):n}var gp=Dt(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),pp=Dt(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),_p=pf("toLowerCase");function dp(n,t,e){n=P(n),t=C(t);var r=t?Wt(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return ke(Ne(i),e)+n+ke(De(i),e)}function vp(n,t,e){n=P(n),t=C(t);var r=t?Wt(n):0;return t&&r<t?n+ke(t-r,e):n}function xp(n,t,e){n=P(n),t=C(t);var r=t?Wt(n):0;return t&&r<t?ke(t-r,e)+n:n}function wp(n,t,e){return e||t==null?t=0:t&&(t=+t),Cs(P(n).replace(Rr,""),t||0)}function Ap(n,t,e){return(e?ln(n,t,e):t===o)?t=1:t=C(t),ei(P(n),t)}function yp(){var n=arguments,t=P(n[0]);return n.length<3?t:t.replace(n[1],n[2])}var mp=Dt(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()});function Ep(n,t,e){return e&&typeof e!="number"&&ln(n,t,e)&&(t=e=o),e=e===o?Gn:e>>>0,e?(n=P(n),n&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=xn(t),!t&&Ot(n))?at(bn(n),0,e):n.split(t,e)):[]}var Rp=Dt(function(n,t,e){return n+(e?" ":"")+Ti(t)});function Ip(n,t,e){return n=P(n),e=e==null?0:xt(C(e),0,n.length),t=xn(t),n.slice(e,e+t.length)==t}function Cp(n,t,e){var r=u.templateSettings;e&&ln(n,t,e)&&(t=o),n=P(n),t=ar({},t,r,yf);var i=ar({},t.imports,r.imports,yf),f=j(i),l=Nr(i,f),s,c,p=0,_=t.interpolate||Ee,d="__p += '",v=Hr((t.escape||Ee).source+"|"+_.source+"|"+(_===$i?ul:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),w="//# sourceURL="+(b.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pl+"]")+`
+`)}function ka(n){return R(n)||mt(n)||!!(Ou&&n&&n[Ou])}function kn(n,t){var e=typeof n;return t=t??It,!!t&&(e=="number"||e!="symbol"&&al.test(n))&&n>-1&&n%1==0&&n<t}function ln(n,t,e){if(!K(e))return!1;var r=typeof t;return(r=="number"?hn(e)&&kn(t,e.length):r=="string"&&t in e)?Dn(e[t],n):!1}function di(n,t){if(R(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||wn(n)?!0:Jo.test(n)||!Xo.test(n)||t!=null&&n in D(t)}function ja(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function vi(n){var t=nr(n),e=u[t];if(typeof e!="function"||!(t in B.prototype))return!1;if(n===e)return!0;var r=gi(e);return!!r&&n===r[0]}function nc(n){return!!Cu&&Cu in n}var tc=Oe?jn:Fi;function se(n){var t=n&&n.constructor,e=typeof t=="function"&&t.prototype||Mt;return n===e}function Sf(n){return n===n&&!K(n)}function Tf(n,t){return function(e){return e==null?!1:e[n]===t&&(t!==o||n in D(e))}}function ec(n){var t=fr(n,function(r){return e.size===ht&&e.clear(),r}),e=t.cache;return t}function rc(n,t){var e=n[1],r=t[1],i=e|r,f=i<(N|et|_n),l=r==_n&&e==Bn||r==_n&&e==qt&&n[7].length<=t[8]||r==(_n|qt)&&t[7].length<=t[8]&&e==Bn;if(!(f||l))return n;r&N&&(n[2]=t[2],i|=e&N?0:de);var s=t[3];if(s){var c=n[3];n[3]=c?af(c,s,t[4]):s,n[4]=c?ut(n[3],Wn):t[4]}return s=t[5],s&&(c=n[5],n[5]=c?cf(c,s,t[6]):s,n[6]=c?ut(n[5],Wn):t[6]),s=t[7],s&&(n[7]=s),r&_n&&(n[8]=n[8]==null?t[8]:un(n[8],t[8])),n[9]==null&&(n[9]=t[9]),n[0]=t[0],n[1]=i,n}function ic(n){var t=[];if(n!=null)for(var e in D(n))t.push(e);return t}function uc(n){return Be.call(n)}function Lf(n,t,e){return t=V(t===o?n.length-1:t,0),function(){for(var r=arguments,i=-1,f=V(r.length-t,0),l=h(f);++i<f;)l[i]=r[t+i];i=-1;for(var s=h(t+1);++i<t;)s[i]=r[i];return s[t]=e(l),dn(n,this,s)}}function Of(n,t){return t.length<2?n:wt(n,Sn(t,0,-1))}function fc(n,t){for(var e=n.length,r=un(t.length,e),i=cn(n);r--;){var f=t[r];n[r]=kn(f,e)?i[f]:o}return n}function xi(n,t){if(!(t==="constructor"&&typeof n[t]=="function")&&t!="__proto__")return n[t]}var Wf=Mf(ju),ae=ys||function(n,t){return tn.setTimeout(n,t)},wi=Mf(La);function Bf(n,t,e){var r=t+"";return wi(n,Va(r,oc(Xa(r),e)))}function Mf(n){var t=0,e=0;return function(){var r=Is(),i=To-(r-e);if(e=r,i>0){if(++t>=So)return arguments[0]}else t=0;return n.apply(o,arguments)}}function er(n,t){var e=-1,r=n.length,i=r-1;for(t=t===o?r:t;++e<t;){var f=ti(e,i),l=n[f];n[f]=n[e],n[e]=l}return n.length=t,n}var Ff=ec(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(Qo,function(e,r,i,f){t.push(i?f.replace(il,"$1"):r||e)}),t});function qn(n){if(typeof n=="string"||wn(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function yt(n){if(n!=null){try{return We.call(n)}catch{}try{return n+""}catch{}}return""}function oc(n,t){return En(Fo,function(e){var r="_."+e[0];t&e[1]&&!Ce(n,r)&&n.push(r)}),n.sort()}function bf(n){if(n instanceof B)return n.clone();var t=new In(n.__wrapped__,n.__chain__);return t.__actions__=cn(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function lc(n,t,e){(e?ln(n,t,e):t===o)?t=1:t=V(C(t),0);var r=n==null?0:n.length;if(!r||t<1)return[];for(var i=0,f=0,l=h(De(r/t));i<r;)l[f++]=Sn(n,i,i+=t);return l}function sc(n){for(var t=-1,e=n==null?0:n.length,r=0,i=[];++t<e;){var f=n[t];f&&(i[r++]=f)}return i}function ac(){var n=arguments.length;if(!n)return[];for(var t=h(n-1),e=arguments[0],r=n;r--;)t[r-1]=arguments[r];return it(R(e)?cn(e):[e],en(t,1))}var cc=T(function(n,t){return Z(n)?ie(n,en(t,1,Z,!0)):[]}),hc=T(function(n,t){var e=Tn(t);return Z(e)&&(e=o),Z(n)?ie(n,en(t,1,Z,!0),A(e,2)):[]}),gc=T(function(n,t){var e=Tn(t);return Z(e)&&(e=o),Z(n)?ie(n,en(t,1,Z,!0),o,e):[]});function pc(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),Sn(n,t<0?0:t,r)):[]}function _c(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),t=r-t,Sn(n,0,t<0?0:t)):[]}function dc(n,t){return n&&n.length?Xe(n,A(t,3),!0,!0):[]}function vc(n,t){return n&&n.length?Xe(n,A(t,3),!0):[]}function xc(n,t,e,r){var i=n==null?0:n.length;return i?(e&&typeof e!="number"&&ln(n,t,e)&&(e=0,r=i),aa(n,t,e,r)):[]}function Pf(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:C(e);return i<0&&(i=V(r+i,0)),Se(n,A(t,3),i)}function Uf(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r-1;return e!==o&&(i=C(e),i=e<0?V(r+i,0):un(i,r-1)),Se(n,A(t,3),i,!0)}function Df(n){var t=n==null?0:n.length;return t?en(n,1):[]}function wc(n){var t=n==null?0:n.length;return t?en(n,ve):[]}function Ac(n,t){var e=n==null?0:n.length;return e?(t=t===o?1:C(t),en(n,t)):[]}function yc(n){for(var t=-1,e=n==null?0:n.length,r={};++t<e;){var i=n[t];r[i[0]]=i[1]}return r}function Nf(n){return n&&n.length?n[0]:o}function mc(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:C(e);return i<0&&(i=V(r+i,0)),Lt(n,t,i)}function Ec(n){var t=n==null?0:n.length;return t?Sn(n,0,-1):[]}var Rc=T(function(n){var t=q(n,fi);return t.length&&t[0]===n[0]?Qr(t):[]}),Ic=T(function(n){var t=Tn(n),e=q(n,fi);return t===Tn(e)?t=o:e.pop(),e.length&&e[0]===n[0]?Qr(e,A(t,2)):[]}),Cc=T(function(n){var t=Tn(n),e=q(n,fi);return t=typeof t=="function"?t:o,t&&e.pop(),e.length&&e[0]===n[0]?Qr(e,o,t):[]});function Sc(n,t){return n==null?"":Es.call(n,t)}function Tn(n){var t=n==null?0:n.length;return t?n[t-1]:o}function Tc(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r;return e!==o&&(i=C(e),i=i<0?V(r+i,0):un(i,r-1)),t===t?os(n,t,i):Se(n,xu,i,!0)}function Lc(n,t){return n&&n.length?Ju(n,C(t)):o}var Oc=T(Gf);function Gf(n,t){return n&&n.length&&t&&t.length?ni(n,t):n}function Wc(n,t,e){return n&&n.length&&t&&t.length?ni(n,t,A(e,2)):n}function Bc(n,t,e){return n&&n.length&&t&&t.length?ni(n,t,o,e):n}var Mc=Vn(function(n,t){var e=n==null?0:n.length,r=Zr(n,t);return ku(n,q(t,function(i){return kn(i,e)?+i:i}).sort(sf)),r});function Fc(n,t){var e=[];if(!(n&&n.length))return e;var r=-1,i=[],f=n.length;for(t=A(t,3);++r<f;){var l=n[r];t(l,r,n)&&(e.push(l),i.push(r))}return ku(n,i),e}function Ai(n){return n==null?n:Ss.call(n)}function bc(n,t,e){var r=n==null?0:n.length;return r?(e&&typeof e!="number"&&ln(n,t,e)?(t=0,e=r):(t=t==null?0:C(t),e=e===o?r:C(e)),Sn(n,t,e)):[]}function Pc(n,t){return Ye(n,t)}function Uc(n,t,e){return ri(n,t,A(e,2))}function Dc(n,t){var e=n==null?0:n.length;if(e){var r=Ye(n,t);if(r<e&&Dn(n[r],t))return r}return-1}function Nc(n,t){return Ye(n,t,!0)}function Gc(n,t,e){return ri(n,t,A(e,2),!0)}function Hc(n,t){var e=n==null?0:n.length;if(e){var r=Ye(n,t,!0)-1;if(Dn(n[r],t))return r}return-1}function $c(n){return n&&n.length?nf(n):[]}function qc(n,t){return n&&n.length?nf(n,A(t,2)):[]}function Kc(n){var t=n==null?0:n.length;return t?Sn(n,1,t):[]}function zc(n,t,e){return n&&n.length?(t=e||t===o?1:C(t),Sn(n,0,t<0?0:t)):[]}function Zc(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),t=r-t,Sn(n,t<0?0:t,r)):[]}function Yc(n,t){return n&&n.length?Xe(n,A(t,3),!1,!0):[]}function Xc(n,t){return n&&n.length?Xe(n,A(t,3)):[]}var Jc=T(function(n){return lt(en(n,1,Z,!0))}),Qc=T(function(n){var t=Tn(n);return Z(t)&&(t=o),lt(en(n,1,Z,!0),A(t,2))}),Vc=T(function(n){var t=Tn(n);return t=typeof t=="function"?t:o,lt(en(n,1,Z,!0),o,t)});function kc(n){return n&&n.length?lt(n):[]}function jc(n,t){return n&&n.length?lt(n,A(t,2)):[]}function nh(n,t){return t=typeof t=="function"?t:o,n&&n.length?lt(n,o,t):[]}function yi(n){if(!(n&&n.length))return[];var t=0;return n=rt(n,function(e){if(Z(e))return t=V(e.length,t),!0}),Dr(t,function(e){return q(n,br(e))})}function Hf(n,t){if(!(n&&n.length))return[];var e=yi(n);return t==null?e:q(e,function(r){return dn(t,o,r)})}var th=T(function(n,t){return Z(n)?ie(n,t):[]}),eh=T(function(n){return ui(rt(n,Z))}),rh=T(function(n){var t=Tn(n);return Z(t)&&(t=o),ui(rt(n,Z),A(t,2))}),ih=T(function(n){var t=Tn(n);return t=typeof t=="function"?t:o,ui(rt(n,Z),o,t)}),uh=T(yi);function fh(n,t){return uf(n||[],t||[],re)}function oh(n,t){return uf(n||[],t||[],oe)}var lh=T(function(n){var t=n.length,e=t>1?n[t-1]:o;return e=typeof e=="function"?(n.pop(),e):o,Hf(n,e)});function $f(n){var t=u(n);return t.__chain__=!0,t}function sh(n,t){return t(n),n}function rr(n,t){return t(n)}var ah=Vn(function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,i=function(f){return Zr(f,n)};return t>1||this.__actions__.length||!(r instanceof B)||!kn(e)?this.thru(i):(r=r.slice(e,+e+(t?1:0)),r.__actions__.push({func:rr,args:[i],thisArg:o}),new In(r,this.__chain__).thru(function(f){return t&&!f.length&&f.push(o),f}))});function ch(){return $f(this)}function hh(){return new In(this.value(),this.__chain__)}function gh(){this.__values__===o&&(this.__values__=eo(this.value()));var n=this.__index__>=this.__values__.length,t=n?o:this.__values__[this.__index__++];return{done:n,value:t}}function ph(){return this}function _h(n){for(var t,e=this;e instanceof $e;){var r=bf(e);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;e=e.__wrapped__}return i.__wrapped__=n,t}function dh(){var n=this.__wrapped__;if(n instanceof B){var t=n;return this.__actions__.length&&(t=new B(this)),t=t.reverse(),t.__actions__.push({func:rr,args:[Ai],thisArg:o}),new In(t,this.__chain__)}return this.thru(Ai)}function vh(){return rf(this.__wrapped__,this.__actions__)}var xh=Je(function(n,t,e){P.call(n,e)?++n[e]:Jn(n,e,1)});function wh(n,t,e){var r=R(n)?du:sa;return e&&ln(n,t,e)&&(t=o),r(n,A(t,3))}function Ah(n,t){var e=R(n)?rt:Gu;return e(n,A(t,3))}var yh=_f(Pf),mh=_f(Uf);function Eh(n,t){return en(ir(n,t),1)}function Rh(n,t){return en(ir(n,t),ve)}function Ih(n,t,e){return e=e===o?1:C(e),en(ir(n,t),e)}function qf(n,t){var e=R(n)?En:ot;return e(n,A(t,3))}function Kf(n,t){var e=R(n)?Kl:Nu;return e(n,A(t,3))}var Ch=Je(function(n,t,e){P.call(n,e)?n[e].push(t):Jn(n,e,[t])});function Sh(n,t,e,r){n=hn(n)?n:Ht(n),e=e&&!r?C(e):0;var i=n.length;return e<0&&(e=V(i+e,0)),sr(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&Lt(n,t,e)>-1}var Th=T(function(n,t,e){var r=-1,i=typeof t=="function",f=hn(n)?h(n.length):[];return ot(n,function(l){f[++r]=i?dn(t,l,e):ue(l,t,e)}),f}),Lh=Je(function(n,t,e){Jn(n,e,t)});function ir(n,t){var e=R(n)?q:Zu;return e(n,A(t,3))}function Oh(n,t,e,r){return n==null?[]:(R(t)||(t=t==null?[]:[t]),e=r?o:e,R(e)||(e=e==null?[]:[e]),Qu(n,t,e))}var Wh=Je(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});function Bh(n,t,e){var r=R(n)?Mr:Au,i=arguments.length<3;return r(n,A(t,4),e,i,ot)}function Mh(n,t,e){var r=R(n)?zl:Au,i=arguments.length<3;return r(n,A(t,4),e,i,Nu)}function Fh(n,t){var e=R(n)?rt:Gu;return e(n,or(A(t,3)))}function bh(n){var t=R(n)?bu:Sa;return t(n)}function Ph(n,t,e){(e?ln(n,t,e):t===o)?t=1:t=C(t);var r=R(n)?ia:Ta;return r(n,t)}function Uh(n){var t=R(n)?ua:Oa;return t(n)}function Dh(n){if(n==null)return 0;if(hn(n))return sr(n)?Wt(n):n.length;var t=fn(n);return t==Fn||t==bn?n.size:kr(n).length}function Nh(n,t,e){var r=R(n)?Fr:Wa;return e&&ln(n,t,e)&&(t=o),r(n,A(t,3))}var Gh=T(function(n,t){if(n==null)return[];var e=t.length;return e>1&&ln(n,t[0],t[1])?t=[]:e>2&&ln(t[0],t[1],t[2])&&(t=[t[0]]),Qu(n,en(t,1),[])}),ur=As||function(){return tn.Date.now()};function Hh(n,t){if(typeof t!="function")throw new Rn(L);return n=C(n),function(){if(--n<1)return t.apply(this,arguments)}}function zf(n,t,e){return t=e?o:t,t=n&&t==null?n.length:t,Qn(n,_n,o,o,o,o,t)}function Zf(n,t){var e;if(typeof t!="function")throw new Rn(L);return n=C(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=o),e}}var mi=T(function(n,t,e){var r=N;if(e.length){var i=ut(e,Nt(mi));r|=Mn}return Qn(n,r,t,e,i)}),Yf=T(function(n,t,e){var r=N|et;if(e.length){var i=ut(e,Nt(Yf));r|=Mn}return Qn(t,r,n,e,i)});function Xf(n,t,e){t=e?o:t;var r=Qn(n,Bn,o,o,o,o,o,t);return r.placeholder=Xf.placeholder,r}function Jf(n,t,e){t=e?o:t;var r=Qn(n,gt,o,o,o,o,o,t);return r.placeholder=Jf.placeholder,r}function Qf(n,t,e){var r,i,f,l,s,c,p=0,_=!1,d=!1,v=!0;if(typeof n!="function")throw new Rn(L);t=Ln(t)||0,K(e)&&(_=!!e.leading,d="maxWait"in e,f=d?V(Ln(e.maxWait)||0,t):f,v="trailing"in e?!!e.trailing:v);function w(Y){var Nn=r,tt=i;return r=i=o,p=Y,l=n.apply(tt,Nn),l}function y(Y){return p=Y,s=ae(O,t),_?w(Y):l}function S(Y){var Nn=Y-c,tt=Y-p,_o=t-Nn;return d?un(_o,f-tt):_o}function m(Y){var Nn=Y-c,tt=Y-p;return c===o||Nn>=t||Nn<0||d&&tt>=f}function O(){var Y=ur();if(m(Y))return M(Y);s=ae(O,S(Y))}function M(Y){return s=o,v&&r?w(Y):(r=i=o,l)}function An(){s!==o&&ff(s),p=0,r=c=i=s=o}function sn(){return s===o?l:M(ur())}function yn(){var Y=ur(),Nn=m(Y);if(r=arguments,i=this,c=Y,Nn){if(s===o)return y(c);if(d)return ff(s),s=ae(O,t),w(c)}return s===o&&(s=ae(O,t)),l}return yn.cancel=An,yn.flush=sn,yn}var $h=T(function(n,t){return Du(n,1,t)}),qh=T(function(n,t,e){return Du(n,Ln(t)||0,e)});function Kh(n){return Qn(n,gr)}function fr(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new Rn(L);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],f=e.cache;if(f.has(i))return f.get(i);var l=n.apply(this,r);return e.cache=f.set(i,l)||f,l};return e.cache=new(fr.Cache||Xn),e}fr.Cache=Xn;function or(n){if(typeof n!="function")throw new Rn(L);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function zh(n){return Zf(2,n)}var Zh=Ba(function(n,t){t=t.length==1&&R(t[0])?q(t[0],vn(A())):q(en(t,1),vn(A()));var e=t.length;return T(function(r){for(var i=-1,f=un(r.length,e);++i<f;)r[i]=t[i].call(this,r[i]);return dn(n,this,r)})}),Ei=T(function(n,t){var e=ut(t,Nt(Ei));return Qn(n,Mn,o,t,e)}),Vf=T(function(n,t){var e=ut(t,Nt(Vf));return Qn(n,J,o,t,e)}),Yh=Vn(function(n,t){return Qn(n,qt,o,o,o,t)});function Xh(n,t){if(typeof n!="function")throw new Rn(L);return t=t===o?t:C(t),T(n,t)}function Jh(n,t){if(typeof n!="function")throw new Rn(L);return t=t==null?0:V(C(t),0),T(function(e){var r=e[t],i=at(e,0,t);return r&&it(i,r),dn(n,this,i)})}function Qh(n,t,e){var r=!0,i=!0;if(typeof n!="function")throw new Rn(L);return K(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Qf(n,t,{leading:r,maxWait:t,trailing:i})}function Vh(n){return zf(n,1)}function kh(n,t){return Ei(oi(t),n)}function jh(){if(!arguments.length)return[];var n=arguments[0];return R(n)?n:[n]}function ng(n){return Cn(n,Kn)}function tg(n,t){return t=typeof t=="function"?t:o,Cn(n,Kn,t)}function eg(n){return Cn(n,an|Kn)}function rg(n,t){return t=typeof t=="function"?t:o,Cn(n,an|Kn,t)}function ig(n,t){return t==null||Uu(n,t,j(t))}function Dn(n,t){return n===t||n!==n&&t!==t}var ug=je(Jr),fg=je(function(n,t){return n>=t}),mt=qu(function(){return arguments}())?qu:function(n){return z(n)&&P.call(n,"callee")&&!Lu.call(n,"callee")},R=h.isArray,og=au?vn(au):_a;function hn(n){return n!=null&&lr(n.length)&&!jn(n)}function Z(n){return z(n)&&hn(n)}function lg(n){return n===!0||n===!1||z(n)&&on(n)==Kt}var ct=ms||Fi,sg=cu?vn(cu):da;function ag(n){return z(n)&&n.nodeType===1&&!ce(n)}function cg(n){if(n==null)return!0;if(hn(n)&&(R(n)||typeof n=="string"||typeof n.splice=="function"||ct(n)||Gt(n)||mt(n)))return!n.length;var t=fn(n);if(t==Fn||t==bn)return!n.size;if(se(n))return!kr(n).length;for(var e in n)if(P.call(n,e))return!1;return!0}function hg(n,t){return fe(n,t)}function gg(n,t,e){e=typeof e=="function"?e:o;var r=e?e(n,t):o;return r===o?fe(n,t,o,e):!!r}function Ri(n){if(!z(n))return!1;var t=on(n);return t==Ae||t==Po||typeof n.message=="string"&&typeof n.name=="string"&&!ce(n)}function pg(n){return typeof n=="number"&&Wu(n)}function jn(n){if(!K(n))return!1;var t=on(n);return t==ye||t==Di||t==bo||t==Do}function kf(n){return typeof n=="number"&&n==C(n)}function lr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=It}function K(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function z(n){return n!=null&&typeof n=="object"}var jf=hu?vn(hu):xa;function _g(n,t){return n===t||Vr(n,t,pi(t))}function dg(n,t,e){return e=typeof e=="function"?e:o,Vr(n,t,pi(t),e)}function vg(n){return no(n)&&n!=+n}function xg(n){if(tc(n))throw new E(k);return Ku(n)}function wg(n){return n===null}function Ag(n){return n==null}function no(n){return typeof n=="number"||z(n)&&on(n)==Zt}function ce(n){if(!z(n)||on(n)!=Zn)return!1;var t=be(n);if(t===null)return!0;var e=P.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&We.call(e)==ds}var Ii=gu?vn(gu):wa;function yg(n){return kf(n)&&n>=-9007199254740991&&n<=It}var to=pu?vn(pu):Aa;function sr(n){return typeof n=="string"||!R(n)&&z(n)&&on(n)==Xt}function wn(n){return typeof n=="symbol"||z(n)&&on(n)==me}var Gt=_u?vn(_u):ya;function mg(n){return n===o}function Eg(n){return z(n)&&fn(n)==Jt}function Rg(n){return z(n)&&on(n)==Go}var Ig=je(jr),Cg=je(function(n,t){return n<=t});function eo(n){if(!n)return[];if(hn(n))return sr(n)?Pn(n):cn(n);if(kt&&n[kt])return is(n[kt]());var t=fn(n),e=t==Fn?Gr:t==bn?Te:Ht;return e(n)}function nt(n){if(!n)return n===0?n:0;if(n=Ln(n),n===ve||n===-1/0){var t=n<0?-1:1;return t*Wo}return n===n?n:0}function C(n){var t=nt(n),e=t%1;return t===t?e?t-e:t:0}function ro(n){return n?xt(C(n),0,Gn):0}function Ln(n){if(typeof n=="number")return n;if(wn(n))return xe;if(K(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=K(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=yu(n);var e=ol.test(n);return e||sl.test(n)?Hl(n.slice(2),e?2:8):fl.test(n)?xe:+n}function io(n){return $n(n,gn(n))}function Sg(n){return n?xt(C(n),-9007199254740991,It):n===0?n:0}function b(n){return n==null?"":xn(n)}var Tg=Ut(function(n,t){if(se(t)||hn(t)){$n(t,j(t),n);return}for(var e in t)P.call(t,e)&&re(n,e,t[e])}),uo=Ut(function(n,t){$n(t,gn(t),n)}),ar=Ut(function(n,t,e,r){$n(t,gn(t),n,r)}),Lg=Ut(function(n,t,e,r){$n(t,j(t),n,r)}),Og=Vn(Zr);function Wg(n,t){var e=Pt(n);return t==null?e:Pu(e,t)}var Bg=T(function(n,t){n=D(n);var e=-1,r=t.length,i=r>2?t[2]:o;for(i&&ln(t[0],t[1],i)&&(r=1);++e<r;)for(var f=t[e],l=gn(f),s=-1,c=l.length;++s<c;){var p=l[s],_=n[p];(_===o||Dn(_,Mt[p])&&!P.call(n,p))&&(n[p]=f[p])}return n}),Mg=T(function(n){return n.push(o,mf),dn(fo,o,n)});function Fg(n,t){return vu(n,A(t,3),Hn)}function bg(n,t){return vu(n,A(t,3),Xr)}function Pg(n,t){return n==null?n:Yr(n,A(t,3),gn)}function Ug(n,t){return n==null?n:Hu(n,A(t,3),gn)}function Dg(n,t){return n&&Hn(n,A(t,3))}function Ng(n,t){return n&&Xr(n,A(t,3))}function Gg(n){return n==null?[]:ze(n,j(n))}function Hg(n){return n==null?[]:ze(n,gn(n))}function Ci(n,t,e){var r=n==null?o:wt(n,t);return r===o?e:r}function $g(n,t){return n!=null&&If(n,t,ca)}function Si(n,t){return n!=null&&If(n,t,ha)}var qg=vf(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Be.call(t)),n[t]=e},Li(pn)),Kg=vf(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Be.call(t)),P.call(n,t)?n[t].push(e):n[t]=[e]},A),zg=T(ue);function j(n){return hn(n)?Fu(n):kr(n)}function gn(n){return hn(n)?Fu(n,!0):ma(n)}function Zg(n,t){var e={};return t=A(t,3),Hn(n,function(r,i,f){Jn(e,t(r,i,f),r)}),e}function Yg(n,t){var e={};return t=A(t,3),Hn(n,function(r,i,f){Jn(e,i,t(r,i,f))}),e}var Xg=Ut(function(n,t,e){Ze(n,t,e)}),fo=Ut(function(n,t,e,r){Ze(n,t,e,r)}),Jg=Vn(function(n,t){var e={};if(n==null)return e;var r=!1;t=q(t,function(f){return f=st(f,n),r||(r=f.length>1),f}),$n(n,hi(n),e),r&&(e=Cn(e,an|_e|Kn,qa));for(var i=t.length;i--;)ii(e,t[i]);return e});function Qg(n,t){return oo(n,or(A(t)))}var Vg=Vn(function(n,t){return n==null?{}:Ra(n,t)});function oo(n,t){if(n==null)return{};var e=q(hi(n),function(r){return[r]});return t=A(t),Vu(n,e,function(r,i){return t(r,i[0])})}function kg(n,t,e){t=st(t,n);var r=-1,i=t.length;for(i||(i=1,n=o);++r<i;){var f=n==null?o:n[qn(t[r])];f===o&&(r=i,f=e),n=jn(f)?f.call(n):f}return n}function jg(n,t,e){return n==null?n:oe(n,t,e)}function np(n,t,e,r){return r=typeof r=="function"?r:o,n==null?n:oe(n,t,e,r)}var lo=Af(j),so=Af(gn);function tp(n,t,e){var r=R(n),i=r||ct(n)||Gt(n);if(t=A(t,4),e==null){var f=n&&n.constructor;i?e=r?new f:[]:K(n)?e=jn(f)?Pt(be(n)):{}:e={}}return(i?En:Hn)(n,function(l,s,c){return t(e,l,s,c)}),e}function ep(n,t){return n==null?!0:ii(n,t)}function rp(n,t,e){return n==null?n:ef(n,t,oi(e))}function ip(n,t,e,r){return r=typeof r=="function"?r:o,n==null?n:ef(n,t,oi(e),r)}function Ht(n){return n==null?[]:Nr(n,j(n))}function up(n){return n==null?[]:Nr(n,gn(n))}function fp(n,t,e){return e===o&&(e=t,t=o),e!==o&&(e=Ln(e),e=e===e?e:0),t!==o&&(t=Ln(t),t=t===t?t:0),xt(Ln(n),t,e)}function op(n,t,e){return t=nt(t),e===o?(e=t,t=0):e=nt(e),n=Ln(n),ga(n,t,e)}function lp(n,t,e){if(e&&typeof e!="boolean"&&ln(n,t,e)&&(t=e=o),e===o&&(typeof t=="boolean"?(e=t,t=o):typeof n=="boolean"&&(e=n,n=o)),n===o&&t===o?(n=0,t=1):(n=nt(n),t===o?(t=n,n=0):t=nt(t)),n>t){var r=n;n=t,t=r}if(e||n%1||t%1){var i=Bu();return un(n+i*(t-n+Gl("1e-"+((i+"").length-1))),t)}return ti(n,t)}var sp=Dt(function(n,t,e){return t=t.toLowerCase(),n+(e?ao(t):t)});function ao(n){return Ti(b(n).toLowerCase())}function co(n){return n=b(n),n&&n.replace(cl,jl).replace(Ol,"")}function ap(n,t,e){n=b(n),t=xn(t);var r=n.length;e=e===o?r:xt(C(e),0,r);var i=e;return e-=t.length,e>=0&&n.slice(e,i)==t}function cp(n){return n=b(n),n&&zo.test(n)?n.replace(Hi,ns):n}function hp(n){return n=b(n),n&&Vo.test(n)?n.replace(Er,"\\$&"):n}var gp=Dt(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),pp=Dt(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),_p=pf("toLowerCase");function dp(n,t,e){n=b(n),t=C(t);var r=t?Wt(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return ke(Ne(i),e)+n+ke(De(i),e)}function vp(n,t,e){n=b(n),t=C(t);var r=t?Wt(n):0;return t&&r<t?n+ke(t-r,e):n}function xp(n,t,e){n=b(n),t=C(t);var r=t?Wt(n):0;return t&&r<t?ke(t-r,e)+n:n}function wp(n,t,e){return e||t==null?t=0:t&&(t=+t),Cs(b(n).replace(Rr,""),t||0)}function Ap(n,t,e){return(e?ln(n,t,e):t===o)?t=1:t=C(t),ei(b(n),t)}function yp(){var n=arguments,t=b(n[0]);return n.length<3?t:t.replace(n[1],n[2])}var mp=Dt(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()});function Ep(n,t,e){return e&&typeof e!="number"&&ln(n,t,e)&&(t=e=o),e=e===o?Gn:e>>>0,e?(n=b(n),n&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=xn(t),!t&&Ot(n))?at(Pn(n),0,e):n.split(t,e)):[]}var Rp=Dt(function(n,t,e){return n+(e?" ":"")+Ti(t)});function Ip(n,t,e){return n=b(n),e=e==null?0:xt(C(e),0,n.length),t=xn(t),n.slice(e,e+t.length)==t}function Cp(n,t,e){var r=u.templateSettings;e&&ln(n,t,e)&&(t=o),n=b(n),t=ar({},t,r,yf);var i=ar({},t.imports,r.imports,yf),f=j(i),l=Nr(i,f),s,c,p=0,_=t.interpolate||Ee,d="__p += '",v=Hr((t.escape||Ee).source+"|"+_.source+"|"+(_===$i?ul:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),w="//# sourceURL="+(P.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bl+"]")+`
 `;n.replace(v,function(m,O,M,An,sn,yn){return M||(M=An),d+=n.slice(p,yn).replace(hl,ts),O&&(s=!0,d+=`' +
 __e(`+O+`) +
 '`),sn&&(c=!0,d+=`';
@@ -15,7 +15,7 @@ __e(`+O+`) +
 __p += '`),M&&(d+=`' +
 ((__t = (`+M+`)) == null ? '' : __t) +
 '`),p=yn+m.length,m}),d+=`';
-`;var y=b.call(t,"variable")&&t.variable;if(!y)d=`with (obj) {
+`;var y=P.call(t,"variable")&&t.variable;if(!y)d=`with (obj) {
 `+d+`
 }
 `;else if(rl.test(y))throw new E(nn);d=(c?d.replace(Ho,""):d).replace($o,"$1").replace(qo,"$1;"),d="function("+(y||"obj")+`) {
@@ -24,4 +24,4 @@ __p += '`),M&&(d+=`' +
 function print() { __p += __j.call(arguments, '') }
 `:`;
 `)+d+`return __p
-}`;var S=go(function(){return F(f,w+"return "+d).apply(o,l)});if(S.source=d,Ri(S))throw S;return S}function Sp(n){return P(n).toLowerCase()}function Tp(n){return P(n).toUpperCase()}function Lp(n,t,e){if(n=P(n),n&&(e||t===o))return yu(n);if(!n||!(t=xn(t)))return n;var r=bn(n),i=bn(t),f=mu(r,i),l=Eu(r,i)+1;return at(r,f,l).join("")}function Op(n,t,e){if(n=P(n),n&&(e||t===o))return n.slice(0,Iu(n)+1);if(!n||!(t=xn(t)))return n;var r=bn(n),i=Eu(r,bn(t))+1;return at(r,0,i).join("")}function Wp(n,t,e){if(n=P(n),n&&(e||t===o))return n.replace(Rr,"");if(!n||!(t=xn(t)))return n;var r=bn(n),i=mu(r,bn(t));return at(r,i).join("")}function Bp(n,t){var e=Io,r=Co;if(K(t)){var i="separator"in t?t.separator:i;e="length"in t?C(t.length):e,r="omission"in t?xn(t.omission):r}n=P(n);var f=n.length;if(Ot(n)){var l=bn(n);f=l.length}if(e>=f)return n;var s=e-Wt(r);if(s<1)return r;var c=l?at(l,0,s).join(""):n.slice(0,s);if(i===o)return c+r;if(l&&(s+=c.length-s),Ii(i)){if(n.slice(s).search(i)){var p,_=c;for(i.global||(i=Hr(i.source,P(qi.exec(i))+"g")),i.lastIndex=0;p=i.exec(_);)var d=p.index;c=c.slice(0,d===o?s:d)}}else if(n.indexOf(xn(i),s)!=s){var v=c.lastIndexOf(i);v>-1&&(c=c.slice(0,v))}return c+r}function Mp(n){return n=P(n),n&&Ko.test(n)?n.replace(Gi,ls):n}var Fp=Dt(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),Ti=pf("toUpperCase");function ho(n,t,e){return n=P(n),t=e?o:t,t===o?rs(n)?cs(n):Xl(n):n.match(t)||[]}var go=T(function(n,t){try{return dn(n,o,t)}catch(e){return Ri(e)?e:new E(e)}}),Pp=Vn(function(n,t){return En(t,function(e){e=qn(e),Jn(n,e,mi(n[e],n))}),n});function bp(n){var t=n==null?0:n.length,e=A();return n=t?q(n,function(r){if(typeof r[1]!="function")throw new Rn(L);return[e(r[0]),r[1]]}):[],T(function(r){for(var i=-1;++i<t;){var f=n[i];if(dn(f[0],this,r))return dn(f[1],this,r)}})}function Up(n){return la(Cn(n,an))}function Li(n){return function(){return n}}function Dp(n,t){return n==null||n!==n?t:n}var Np=df(),Gp=df(!0);function pn(n){return n}function Oi(n){return zu(typeof n=="function"?n:Cn(n,an))}function Hp(n){return Yu(Cn(n,an))}function $p(n,t){return Xu(n,Cn(t,an))}var qp=T(function(n,t){return function(e){return ue(e,n,t)}}),Kp=T(function(n,t){return function(e){return ue(n,e,t)}});function Wi(n,t,e){var r=j(t),i=ze(t,r);e==null&&!(K(t)&&(i.length||!r.length))&&(e=t,t=n,n=this,i=ze(t,j(t)));var f=!(K(e)&&"chain"in e)||!!e.chain,l=jn(n);return En(i,function(s){var c=t[s];n[s]=c,l&&(n.prototype[s]=function(){var p=this.__chain__;if(f||p){var _=n(this.__wrapped__),d=_.__actions__=cn(this.__actions__);return d.push({func:c,args:arguments,thisArg:n}),_.__chain__=p,_}return c.apply(n,it([this.value()],arguments))})}),n}function zp(){return tn._===this&&(tn._=vs),this}function Bi(){}function Zp(n){return n=C(n),T(function(t){return Ju(t,n)})}var Yp=si(q),Xp=si(du),Jp=si(Fr);function po(n){return di(n)?Pr(qn(n)):Ia(n)}function Qp(n){return function(t){return n==null?o:wt(n,t)}}var Vp=xf(),kp=xf(!0);function Mi(){return[]}function Fi(){return!1}function jp(){return{}}function n_(){return""}function t_(){return!0}function e_(n,t){if(n=C(n),n<1||n>It)return[];var e=Gn,r=un(n,Gn);t=A(t),n-=Gn;for(var i=Dr(r,t);++e<n;)t(e);return i}function r_(n){return R(n)?q(n,qn):wn(n)?[n]:cn(Ff(P(n)))}function i_(n){var t=++_s;return P(n)+t}var u_=Ve(function(n,t){return n+t},0),f_=ai("ceil"),o_=Ve(function(n,t){return n/t},1),l_=ai("floor");function s_(n){return n&&n.length?Ke(n,pn,Jr):o}function a_(n,t){return n&&n.length?Ke(n,A(t,2),Jr):o}function c_(n){return wu(n,pn)}function h_(n,t){return wu(n,A(t,2))}function g_(n){return n&&n.length?Ke(n,pn,jr):o}function p_(n,t){return n&&n.length?Ke(n,A(t,2),jr):o}var __=Ve(function(n,t){return n*t},1),d_=ai("round"),v_=Ve(function(n,t){return n-t},0);function x_(n){return n&&n.length?Ur(n,pn):0}function w_(n,t){return n&&n.length?Ur(n,A(t,2)):0}return u.after=Hh,u.ary=zf,u.assign=Tg,u.assignIn=uo,u.assignInWith=ar,u.assignWith=Lg,u.at=Og,u.before=Zf,u.bind=mi,u.bindAll=Pp,u.bindKey=Yf,u.castArray=jh,u.chain=$f,u.chunk=lc,u.compact=sc,u.concat=ac,u.cond=bp,u.conforms=Up,u.constant=Li,u.countBy=xh,u.create=Wg,u.curry=Xf,u.curryRight=Jf,u.debounce=Qf,u.defaults=Bg,u.defaultsDeep=Mg,u.defer=$h,u.delay=qh,u.difference=cc,u.differenceBy=hc,u.differenceWith=gc,u.drop=pc,u.dropRight=_c,u.dropRightWhile=dc,u.dropWhile=vc,u.fill=xc,u.filter=Ah,u.flatMap=Eh,u.flatMapDeep=Rh,u.flatMapDepth=Ih,u.flatten=Df,u.flattenDeep=wc,u.flattenDepth=Ac,u.flip=Kh,u.flow=Np,u.flowRight=Gp,u.fromPairs=yc,u.functions=Gg,u.functionsIn=Hg,u.groupBy=Ch,u.initial=Ec,u.intersection=Rc,u.intersectionBy=Ic,u.intersectionWith=Cc,u.invert=qg,u.invertBy=Kg,u.invokeMap=Th,u.iteratee=Oi,u.keyBy=Lh,u.keys=j,u.keysIn=gn,u.map=ir,u.mapKeys=Zg,u.mapValues=Yg,u.matches=Hp,u.matchesProperty=$p,u.memoize=fr,u.merge=Xg,u.mergeWith=fo,u.method=qp,u.methodOf=Kp,u.mixin=Wi,u.negate=or,u.nthArg=Zp,u.omit=Jg,u.omitBy=Qg,u.once=zh,u.orderBy=Oh,u.over=Yp,u.overArgs=Zh,u.overEvery=Xp,u.overSome=Jp,u.partial=Ei,u.partialRight=Vf,u.partition=Wh,u.pick=Vg,u.pickBy=oo,u.property=po,u.propertyOf=Qp,u.pull=Oc,u.pullAll=Gf,u.pullAllBy=Wc,u.pullAllWith=Bc,u.pullAt=Mc,u.range=Vp,u.rangeRight=kp,u.rearg=Yh,u.reject=Fh,u.remove=Fc,u.rest=Xh,u.reverse=Ai,u.sampleSize=bh,u.set=jg,u.setWith=np,u.shuffle=Uh,u.slice=Pc,u.sortBy=Gh,u.sortedUniq=$c,u.sortedUniqBy=qc,u.split=Ep,u.spread=Jh,u.tail=Kc,u.take=zc,u.takeRight=Zc,u.takeRightWhile=Yc,u.takeWhile=Xc,u.tap=sh,u.throttle=Qh,u.thru=rr,u.toArray=eo,u.toPairs=lo,u.toPairsIn=so,u.toPath=r_,u.toPlainObject=io,u.transform=tp,u.unary=Vh,u.union=Jc,u.unionBy=Qc,u.unionWith=Vc,u.uniq=kc,u.uniqBy=jc,u.uniqWith=nh,u.unset=ep,u.unzip=yi,u.unzipWith=Hf,u.update=rp,u.updateWith=ip,u.values=Ht,u.valuesIn=up,u.without=th,u.words=ho,u.wrap=kh,u.xor=eh,u.xorBy=rh,u.xorWith=ih,u.zip=uh,u.zipObject=fh,u.zipObjectDeep=oh,u.zipWith=lh,u.entries=lo,u.entriesIn=so,u.extend=uo,u.extendWith=ar,Wi(u,u),u.add=u_,u.attempt=go,u.camelCase=sp,u.capitalize=ao,u.ceil=f_,u.clamp=fp,u.clone=ng,u.cloneDeep=eg,u.cloneDeepWith=rg,u.cloneWith=tg,u.conformsTo=ig,u.deburr=co,u.defaultTo=Dp,u.divide=o_,u.endsWith=ap,u.eq=Dn,u.escape=cp,u.escapeRegExp=hp,u.every=wh,u.find=yh,u.findIndex=bf,u.findKey=Fg,u.findLast=mh,u.findLastIndex=Uf,u.findLastKey=Pg,u.floor=l_,u.forEach=qf,u.forEachRight=Kf,u.forIn=bg,u.forInRight=Ug,u.forOwn=Dg,u.forOwnRight=Ng,u.get=Ci,u.gt=ug,u.gte=fg,u.has=$g,u.hasIn=Si,u.head=Nf,u.identity=pn,u.includes=Sh,u.indexOf=mc,u.inRange=op,u.invoke=zg,u.isArguments=mt,u.isArray=R,u.isArrayBuffer=og,u.isArrayLike=hn,u.isArrayLikeObject=Z,u.isBoolean=lg,u.isBuffer=ct,u.isDate=sg,u.isElement=ag,u.isEmpty=cg,u.isEqual=hg,u.isEqualWith=gg,u.isError=Ri,u.isFinite=pg,u.isFunction=jn,u.isInteger=kf,u.isLength=lr,u.isMap=jf,u.isMatch=_g,u.isMatchWith=dg,u.isNaN=vg,u.isNative=xg,u.isNil=Ag,u.isNull=wg,u.isNumber=no,u.isObject=K,u.isObjectLike=z,u.isPlainObject=ce,u.isRegExp=Ii,u.isSafeInteger=yg,u.isSet=to,u.isString=sr,u.isSymbol=wn,u.isTypedArray=Gt,u.isUndefined=mg,u.isWeakMap=Eg,u.isWeakSet=Rg,u.join=Sc,u.kebabCase=gp,u.last=Tn,u.lastIndexOf=Tc,u.lowerCase=pp,u.lowerFirst=_p,u.lt=Ig,u.lte=Cg,u.max=s_,u.maxBy=a_,u.mean=c_,u.meanBy=h_,u.min=g_,u.minBy=p_,u.stubArray=Mi,u.stubFalse=Fi,u.stubObject=jp,u.stubString=n_,u.stubTrue=t_,u.multiply=__,u.nth=Lc,u.noConflict=zp,u.noop=Bi,u.now=ur,u.pad=dp,u.padEnd=vp,u.padStart=xp,u.parseInt=wp,u.random=lp,u.reduce=Bh,u.reduceRight=Mh,u.repeat=Ap,u.replace=yp,u.result=kg,u.round=d_,u.runInContext=a,u.sample=Ph,u.size=Dh,u.snakeCase=mp,u.some=Nh,u.sortedIndex=bc,u.sortedIndexBy=Uc,u.sortedIndexOf=Dc,u.sortedLastIndex=Nc,u.sortedLastIndexBy=Gc,u.sortedLastIndexOf=Hc,u.startCase=Rp,u.startsWith=Ip,u.subtract=v_,u.sum=x_,u.sumBy=w_,u.template=Cp,u.times=e_,u.toFinite=nt,u.toInteger=C,u.toLength=ro,u.toLower=Sp,u.toNumber=Ln,u.toSafeInteger=Sg,u.toString=P,u.toUpper=Tp,u.trim=Lp,u.trimEnd=Op,u.trimStart=Wp,u.truncate=Bp,u.unescape=Mp,u.uniqueId=i_,u.upperCase=Fp,u.upperFirst=Ti,u.each=qf,u.eachRight=Kf,u.first=Nf,Wi(u,function(){var n={};return Hn(u,function(t,e){b.call(u.prototype,e)||(n[e]=t)}),n}(),{chain:!1}),u.VERSION=$,En(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),En(["drop","take"],function(n,t){B.prototype[n]=function(e){e=e===o?1:V(C(e),0);var r=this.__filtered__&&!t?new B(this):this.clone();return r.__filtered__?r.__takeCount__=un(e,r.__takeCount__):r.__views__.push({size:un(e,Gn),type:n+(r.__dir__<0?"Right":"")}),r},B.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),En(["filter","map","takeWhile"],function(n,t){var e=t+1,r=e==Ui||e==Oo;B.prototype[n]=function(i){var f=this.clone();return f.__iteratees__.push({iteratee:A(i,3),type:e}),f.__filtered__=f.__filtered__||r,f}}),En(["head","last"],function(n,t){var e="take"+(t?"Right":"");B.prototype[n]=function(){return this[e](1).value()[0]}}),En(["initial","tail"],function(n,t){var e="drop"+(t?"":"Right");B.prototype[n]=function(){return this.__filtered__?new B(this):this[e](1)}}),B.prototype.compact=function(){return this.filter(pn)},B.prototype.find=function(n){return this.filter(n).head()},B.prototype.findLast=function(n){return this.reverse().find(n)},B.prototype.invokeMap=T(function(n,t){return typeof n=="function"?new B(this):this.map(function(e){return ue(e,n,t)})}),B.prototype.reject=function(n){return this.filter(or(A(n)))},B.prototype.slice=function(n,t){n=C(n);var e=this;return e.__filtered__&&(n>0||t<0)?new B(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==o&&(t=C(t),e=t<0?e.dropRight(-t):e.take(t-n)),e)},B.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},B.prototype.toArray=function(){return this.take(Gn)},Hn(B.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=u[r?"take"+(t=="last"?"Right":""):t],f=r||/^find/.test(t);i&&(u.prototype[t]=function(){var l=this.__wrapped__,s=r?[1]:arguments,c=l instanceof B,p=s[0],_=c||R(l),d=function(O){var M=i.apply(u,it([O],s));return r&&v?M[0]:M};_&&e&&typeof p=="function"&&p.length!=1&&(c=_=!1);var v=this.__chain__,w=!!this.__actions__.length,y=f&&!v,S=c&&!w;if(!f&&_){l=S?l:new B(this);var m=n.apply(l,s);return m.__actions__.push({func:rr,args:[d],thisArg:o}),new In(m,v)}return y&&S?n.apply(this,s):(m=this.thru(d),y?r?m.value()[0]:m.value():m)})}),En(["pop","push","shift","sort","splice","unshift"],function(n){var t=Le[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var f=this.value();return t.apply(R(f)?f:[],i)}return this[e](function(l){return t.apply(R(l)?l:[],i)})}}),Hn(B.prototype,function(n,t){var e=u[t];if(e){var r=e.name+"";b.call(Pt,r)||(Pt[r]=[]),Pt[r].push({name:t,func:e})}}),Pt[Qe(o,et).name]=[{name:"wrapper",func:o}],B.prototype.clone=Ms,B.prototype.reverse=Fs,B.prototype.value=Ps,u.prototype.at=ah,u.prototype.chain=ch,u.prototype.commit=hh,u.prototype.next=gh,u.prototype.plant=_h,u.prototype.reverse=dh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=vh,u.prototype.first=u.prototype.head,kt&&(u.prototype[kt]=ph),u},Bt=hs();pt?((pt.exports=Bt)._=Bt,Or._=Bt):tn._=Bt}).call(F_)}(ge,ge.exports)),ge.exports}var N_=P_();export{D_ as A,N_ as l};
+}`;var S=go(function(){return F(f,w+"return "+d).apply(o,l)});if(S.source=d,Ri(S))throw S;return S}function Sp(n){return b(n).toLowerCase()}function Tp(n){return b(n).toUpperCase()}function Lp(n,t,e){if(n=b(n),n&&(e||t===o))return yu(n);if(!n||!(t=xn(t)))return n;var r=Pn(n),i=Pn(t),f=mu(r,i),l=Eu(r,i)+1;return at(r,f,l).join("")}function Op(n,t,e){if(n=b(n),n&&(e||t===o))return n.slice(0,Iu(n)+1);if(!n||!(t=xn(t)))return n;var r=Pn(n),i=Eu(r,Pn(t))+1;return at(r,0,i).join("")}function Wp(n,t,e){if(n=b(n),n&&(e||t===o))return n.replace(Rr,"");if(!n||!(t=xn(t)))return n;var r=Pn(n),i=mu(r,Pn(t));return at(r,i).join("")}function Bp(n,t){var e=Io,r=Co;if(K(t)){var i="separator"in t?t.separator:i;e="length"in t?C(t.length):e,r="omission"in t?xn(t.omission):r}n=b(n);var f=n.length;if(Ot(n)){var l=Pn(n);f=l.length}if(e>=f)return n;var s=e-Wt(r);if(s<1)return r;var c=l?at(l,0,s).join(""):n.slice(0,s);if(i===o)return c+r;if(l&&(s+=c.length-s),Ii(i)){if(n.slice(s).search(i)){var p,_=c;for(i.global||(i=Hr(i.source,b(qi.exec(i))+"g")),i.lastIndex=0;p=i.exec(_);)var d=p.index;c=c.slice(0,d===o?s:d)}}else if(n.indexOf(xn(i),s)!=s){var v=c.lastIndexOf(i);v>-1&&(c=c.slice(0,v))}return c+r}function Mp(n){return n=b(n),n&&Ko.test(n)?n.replace(Gi,ls):n}var Fp=Dt(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),Ti=pf("toUpperCase");function ho(n,t,e){return n=b(n),t=e?o:t,t===o?rs(n)?cs(n):Xl(n):n.match(t)||[]}var go=T(function(n,t){try{return dn(n,o,t)}catch(e){return Ri(e)?e:new E(e)}}),bp=Vn(function(n,t){return En(t,function(e){e=qn(e),Jn(n,e,mi(n[e],n))}),n});function Pp(n){var t=n==null?0:n.length,e=A();return n=t?q(n,function(r){if(typeof r[1]!="function")throw new Rn(L);return[e(r[0]),r[1]]}):[],T(function(r){for(var i=-1;++i<t;){var f=n[i];if(dn(f[0],this,r))return dn(f[1],this,r)}})}function Up(n){return la(Cn(n,an))}function Li(n){return function(){return n}}function Dp(n,t){return n==null||n!==n?t:n}var Np=df(),Gp=df(!0);function pn(n){return n}function Oi(n){return zu(typeof n=="function"?n:Cn(n,an))}function Hp(n){return Yu(Cn(n,an))}function $p(n,t){return Xu(n,Cn(t,an))}var qp=T(function(n,t){return function(e){return ue(e,n,t)}}),Kp=T(function(n,t){return function(e){return ue(n,e,t)}});function Wi(n,t,e){var r=j(t),i=ze(t,r);e==null&&!(K(t)&&(i.length||!r.length))&&(e=t,t=n,n=this,i=ze(t,j(t)));var f=!(K(e)&&"chain"in e)||!!e.chain,l=jn(n);return En(i,function(s){var c=t[s];n[s]=c,l&&(n.prototype[s]=function(){var p=this.__chain__;if(f||p){var _=n(this.__wrapped__),d=_.__actions__=cn(this.__actions__);return d.push({func:c,args:arguments,thisArg:n}),_.__chain__=p,_}return c.apply(n,it([this.value()],arguments))})}),n}function zp(){return tn._===this&&(tn._=vs),this}function Bi(){}function Zp(n){return n=C(n),T(function(t){return Ju(t,n)})}var Yp=si(q),Xp=si(du),Jp=si(Fr);function po(n){return di(n)?br(qn(n)):Ia(n)}function Qp(n){return function(t){return n==null?o:wt(n,t)}}var Vp=xf(),kp=xf(!0);function Mi(){return[]}function Fi(){return!1}function jp(){return{}}function n_(){return""}function t_(){return!0}function e_(n,t){if(n=C(n),n<1||n>It)return[];var e=Gn,r=un(n,Gn);t=A(t),n-=Gn;for(var i=Dr(r,t);++e<n;)t(e);return i}function r_(n){return R(n)?q(n,qn):wn(n)?[n]:cn(Ff(b(n)))}function i_(n){var t=++_s;return b(n)+t}var u_=Ve(function(n,t){return n+t},0),f_=ai("ceil"),o_=Ve(function(n,t){return n/t},1),l_=ai("floor");function s_(n){return n&&n.length?Ke(n,pn,Jr):o}function a_(n,t){return n&&n.length?Ke(n,A(t,2),Jr):o}function c_(n){return wu(n,pn)}function h_(n,t){return wu(n,A(t,2))}function g_(n){return n&&n.length?Ke(n,pn,jr):o}function p_(n,t){return n&&n.length?Ke(n,A(t,2),jr):o}var __=Ve(function(n,t){return n*t},1),d_=ai("round"),v_=Ve(function(n,t){return n-t},0);function x_(n){return n&&n.length?Ur(n,pn):0}function w_(n,t){return n&&n.length?Ur(n,A(t,2)):0}return u.after=Hh,u.ary=zf,u.assign=Tg,u.assignIn=uo,u.assignInWith=ar,u.assignWith=Lg,u.at=Og,u.before=Zf,u.bind=mi,u.bindAll=bp,u.bindKey=Yf,u.castArray=jh,u.chain=$f,u.chunk=lc,u.compact=sc,u.concat=ac,u.cond=Pp,u.conforms=Up,u.constant=Li,u.countBy=xh,u.create=Wg,u.curry=Xf,u.curryRight=Jf,u.debounce=Qf,u.defaults=Bg,u.defaultsDeep=Mg,u.defer=$h,u.delay=qh,u.difference=cc,u.differenceBy=hc,u.differenceWith=gc,u.drop=pc,u.dropRight=_c,u.dropRightWhile=dc,u.dropWhile=vc,u.fill=xc,u.filter=Ah,u.flatMap=Eh,u.flatMapDeep=Rh,u.flatMapDepth=Ih,u.flatten=Df,u.flattenDeep=wc,u.flattenDepth=Ac,u.flip=Kh,u.flow=Np,u.flowRight=Gp,u.fromPairs=yc,u.functions=Gg,u.functionsIn=Hg,u.groupBy=Ch,u.initial=Ec,u.intersection=Rc,u.intersectionBy=Ic,u.intersectionWith=Cc,u.invert=qg,u.invertBy=Kg,u.invokeMap=Th,u.iteratee=Oi,u.keyBy=Lh,u.keys=j,u.keysIn=gn,u.map=ir,u.mapKeys=Zg,u.mapValues=Yg,u.matches=Hp,u.matchesProperty=$p,u.memoize=fr,u.merge=Xg,u.mergeWith=fo,u.method=qp,u.methodOf=Kp,u.mixin=Wi,u.negate=or,u.nthArg=Zp,u.omit=Jg,u.omitBy=Qg,u.once=zh,u.orderBy=Oh,u.over=Yp,u.overArgs=Zh,u.overEvery=Xp,u.overSome=Jp,u.partial=Ei,u.partialRight=Vf,u.partition=Wh,u.pick=Vg,u.pickBy=oo,u.property=po,u.propertyOf=Qp,u.pull=Oc,u.pullAll=Gf,u.pullAllBy=Wc,u.pullAllWith=Bc,u.pullAt=Mc,u.range=Vp,u.rangeRight=kp,u.rearg=Yh,u.reject=Fh,u.remove=Fc,u.rest=Xh,u.reverse=Ai,u.sampleSize=Ph,u.set=jg,u.setWith=np,u.shuffle=Uh,u.slice=bc,u.sortBy=Gh,u.sortedUniq=$c,u.sortedUniqBy=qc,u.split=Ep,u.spread=Jh,u.tail=Kc,u.take=zc,u.takeRight=Zc,u.takeRightWhile=Yc,u.takeWhile=Xc,u.tap=sh,u.throttle=Qh,u.thru=rr,u.toArray=eo,u.toPairs=lo,u.toPairsIn=so,u.toPath=r_,u.toPlainObject=io,u.transform=tp,u.unary=Vh,u.union=Jc,u.unionBy=Qc,u.unionWith=Vc,u.uniq=kc,u.uniqBy=jc,u.uniqWith=nh,u.unset=ep,u.unzip=yi,u.unzipWith=Hf,u.update=rp,u.updateWith=ip,u.values=Ht,u.valuesIn=up,u.without=th,u.words=ho,u.wrap=kh,u.xor=eh,u.xorBy=rh,u.xorWith=ih,u.zip=uh,u.zipObject=fh,u.zipObjectDeep=oh,u.zipWith=lh,u.entries=lo,u.entriesIn=so,u.extend=uo,u.extendWith=ar,Wi(u,u),u.add=u_,u.attempt=go,u.camelCase=sp,u.capitalize=ao,u.ceil=f_,u.clamp=fp,u.clone=ng,u.cloneDeep=eg,u.cloneDeepWith=rg,u.cloneWith=tg,u.conformsTo=ig,u.deburr=co,u.defaultTo=Dp,u.divide=o_,u.endsWith=ap,u.eq=Dn,u.escape=cp,u.escapeRegExp=hp,u.every=wh,u.find=yh,u.findIndex=Pf,u.findKey=Fg,u.findLast=mh,u.findLastIndex=Uf,u.findLastKey=bg,u.floor=l_,u.forEach=qf,u.forEachRight=Kf,u.forIn=Pg,u.forInRight=Ug,u.forOwn=Dg,u.forOwnRight=Ng,u.get=Ci,u.gt=ug,u.gte=fg,u.has=$g,u.hasIn=Si,u.head=Nf,u.identity=pn,u.includes=Sh,u.indexOf=mc,u.inRange=op,u.invoke=zg,u.isArguments=mt,u.isArray=R,u.isArrayBuffer=og,u.isArrayLike=hn,u.isArrayLikeObject=Z,u.isBoolean=lg,u.isBuffer=ct,u.isDate=sg,u.isElement=ag,u.isEmpty=cg,u.isEqual=hg,u.isEqualWith=gg,u.isError=Ri,u.isFinite=pg,u.isFunction=jn,u.isInteger=kf,u.isLength=lr,u.isMap=jf,u.isMatch=_g,u.isMatchWith=dg,u.isNaN=vg,u.isNative=xg,u.isNil=Ag,u.isNull=wg,u.isNumber=no,u.isObject=K,u.isObjectLike=z,u.isPlainObject=ce,u.isRegExp=Ii,u.isSafeInteger=yg,u.isSet=to,u.isString=sr,u.isSymbol=wn,u.isTypedArray=Gt,u.isUndefined=mg,u.isWeakMap=Eg,u.isWeakSet=Rg,u.join=Sc,u.kebabCase=gp,u.last=Tn,u.lastIndexOf=Tc,u.lowerCase=pp,u.lowerFirst=_p,u.lt=Ig,u.lte=Cg,u.max=s_,u.maxBy=a_,u.mean=c_,u.meanBy=h_,u.min=g_,u.minBy=p_,u.stubArray=Mi,u.stubFalse=Fi,u.stubObject=jp,u.stubString=n_,u.stubTrue=t_,u.multiply=__,u.nth=Lc,u.noConflict=zp,u.noop=Bi,u.now=ur,u.pad=dp,u.padEnd=vp,u.padStart=xp,u.parseInt=wp,u.random=lp,u.reduce=Bh,u.reduceRight=Mh,u.repeat=Ap,u.replace=yp,u.result=kg,u.round=d_,u.runInContext=a,u.sample=bh,u.size=Dh,u.snakeCase=mp,u.some=Nh,u.sortedIndex=Pc,u.sortedIndexBy=Uc,u.sortedIndexOf=Dc,u.sortedLastIndex=Nc,u.sortedLastIndexBy=Gc,u.sortedLastIndexOf=Hc,u.startCase=Rp,u.startsWith=Ip,u.subtract=v_,u.sum=x_,u.sumBy=w_,u.template=Cp,u.times=e_,u.toFinite=nt,u.toInteger=C,u.toLength=ro,u.toLower=Sp,u.toNumber=Ln,u.toSafeInteger=Sg,u.toString=b,u.toUpper=Tp,u.trim=Lp,u.trimEnd=Op,u.trimStart=Wp,u.truncate=Bp,u.unescape=Mp,u.uniqueId=i_,u.upperCase=Fp,u.upperFirst=Ti,u.each=qf,u.eachRight=Kf,u.first=Nf,Wi(u,function(){var n={};return Hn(u,function(t,e){P.call(u.prototype,e)||(n[e]=t)}),n}(),{chain:!1}),u.VERSION=$,En(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),En(["drop","take"],function(n,t){B.prototype[n]=function(e){e=e===o?1:V(C(e),0);var r=this.__filtered__&&!t?new B(this):this.clone();return r.__filtered__?r.__takeCount__=un(e,r.__takeCount__):r.__views__.push({size:un(e,Gn),type:n+(r.__dir__<0?"Right":"")}),r},B.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),En(["filter","map","takeWhile"],function(n,t){var e=t+1,r=e==Ui||e==Oo;B.prototype[n]=function(i){var f=this.clone();return f.__iteratees__.push({iteratee:A(i,3),type:e}),f.__filtered__=f.__filtered__||r,f}}),En(["head","last"],function(n,t){var e="take"+(t?"Right":"");B.prototype[n]=function(){return this[e](1).value()[0]}}),En(["initial","tail"],function(n,t){var e="drop"+(t?"":"Right");B.prototype[n]=function(){return this.__filtered__?new B(this):this[e](1)}}),B.prototype.compact=function(){return this.filter(pn)},B.prototype.find=function(n){return this.filter(n).head()},B.prototype.findLast=function(n){return this.reverse().find(n)},B.prototype.invokeMap=T(function(n,t){return typeof n=="function"?new B(this):this.map(function(e){return ue(e,n,t)})}),B.prototype.reject=function(n){return this.filter(or(A(n)))},B.prototype.slice=function(n,t){n=C(n);var e=this;return e.__filtered__&&(n>0||t<0)?new B(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==o&&(t=C(t),e=t<0?e.dropRight(-t):e.take(t-n)),e)},B.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},B.prototype.toArray=function(){return this.take(Gn)},Hn(B.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=u[r?"take"+(t=="last"?"Right":""):t],f=r||/^find/.test(t);i&&(u.prototype[t]=function(){var l=this.__wrapped__,s=r?[1]:arguments,c=l instanceof B,p=s[0],_=c||R(l),d=function(O){var M=i.apply(u,it([O],s));return r&&v?M[0]:M};_&&e&&typeof p=="function"&&p.length!=1&&(c=_=!1);var v=this.__chain__,w=!!this.__actions__.length,y=f&&!v,S=c&&!w;if(!f&&_){l=S?l:new B(this);var m=n.apply(l,s);return m.__actions__.push({func:rr,args:[d],thisArg:o}),new In(m,v)}return y&&S?n.apply(this,s):(m=this.thru(d),y?r?m.value()[0]:m.value():m)})}),En(["pop","push","shift","sort","splice","unshift"],function(n){var t=Le[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var f=this.value();return t.apply(R(f)?f:[],i)}return this[e](function(l){return t.apply(R(l)?l:[],i)})}}),Hn(B.prototype,function(n,t){var e=u[t];if(e){var r=e.name+"";P.call(bt,r)||(bt[r]=[]),bt[r].push({name:t,func:e})}}),bt[Qe(o,et).name]=[{name:"wrapper",func:o}],B.prototype.clone=Ms,B.prototype.reverse=Fs,B.prototype.value=bs,u.prototype.at=ah,u.prototype.chain=ch,u.prototype.commit=hh,u.prototype.next=gh,u.prototype.plant=_h,u.prototype.reverse=dh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=vh,u.prototype.first=u.prototype.head,kt&&(u.prototype[kt]=ph),u},Bt=hs();pt?((pt.exports=Bt)._=Bt,Or._=Bt):tn._=Bt}).call(F_)}(ge,ge.exports)),ge.exports}var N_=b_();export{D_ as A,N_ as l};
diff --git a/compendium_v2/static/main-BIBsTO5W.js b/compendium_v2/static/main-BIBsTO5W.js
deleted file mode 100644
index 3c7e2fa7dfadb7845b6e4d7acdcde7d7d9505cff..0000000000000000000000000000000000000000
--- a/compendium_v2/static/main-BIBsTO5W.js
+++ /dev/null
@@ -1,82 +0,0 @@
-var gp=Object.defineProperty;var pp=(l,u,c)=>u in l?gp(l,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):l[u]=c;var vm=(l,u,c)=>pp(l,typeof u!="symbol"?u+"":u,c);(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))f(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const h of s.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&f(h)}).observe(document,{childList:!0,subtree:!0});function c(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function f(o){if(o.ep)return;o.ep=!0;const s=c(o);fetch(o.href,s)}})();var Yb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wu(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Vf={exports:{}},Xu={};/**
- * @license React
- * react-jsx-runtime.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var gm;function Ep(){if(gm)return Xu;gm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(f,o,s){var h=null;if(s!==void 0&&(h=""+s),o.key!==void 0&&(h=""+o.key),"key"in o){s={};for(var y in o)y!=="key"&&(s[y]=o[y])}else s=o;return o=s.ref,{$$typeof:l,type:f,key:h,ref:o!==void 0?o:null,props:s}}return Xu.Fragment=u,Xu.jsx=c,Xu.jsxs=c,Xu}var pm;function bp(){return pm||(pm=1,Vf.exports=Ep()),Vf.exports}var j=bp(),Qf={exports:{}},Re={};/**
- * @license React
- * react.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Em;function Sp(){if(Em)return Re;Em=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),M=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=M&&R[M]||R["@@iterator"],typeof R=="function"?R:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,q={};function V(R,G,te){this.props=R,this.context=G,this.refs=q,this.updater=te||D}V.prototype.isReactComponent={},V.prototype.setState=function(R,G){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,G,"setState")},V.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function U(){}U.prototype=V.prototype;function Z(R,G,te){this.props=R,this.context=G,this.refs=q,this.updater=te||D}var K=Z.prototype=new U;K.constructor=Z,N(K,V.prototype),K.isPureReactComponent=!0;var le=Array.isArray,x={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function he(R,G,te,I,J,ve){return te=ve.ref,{$$typeof:l,type:R,key:G,ref:te!==void 0?te:null,props:ve}}function oe(R,G){return he(R.type,G,void 0,void 0,void 0,R.props)}function $(R){return typeof R=="object"&&R!==null&&R.$$typeof===l}function ie(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(te){return G[te]})}var He=/\/+/g;function ut(R,G){return typeof R=="object"&&R!==null&&R.key!=null?ie(""+R.key):G.toString(36)}function Je(){}function dt(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Je,Je):(R.status="pending",R.then(function(G){R.status==="pending"&&(R.status="fulfilled",R.value=G)},function(G){R.status==="pending"&&(R.status="rejected",R.reason=G)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Me(R,G,te,I,J){var ve=typeof R;(ve==="undefined"||ve==="boolean")&&(R=null);var pe=!1;if(R===null)pe=!0;else switch(ve){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(R.$$typeof){case l:case u:pe=!0;break;case b:return pe=R._init,Me(pe(R._payload),G,te,I,J)}}if(pe)return J=J(R),pe=I===""?"."+ut(R,0):I,le(J)?(te="",pe!=null&&(te=pe.replace(He,"$&/")+"/"),Me(J,G,te,"",function(Se){return Se})):J!=null&&($(J)&&(J=oe(J,te+(J.key==null||R&&R.key===J.key?"":(""+J.key).replace(He,"$&/")+"/")+pe)),G.push(J)),1;pe=0;var Ie=I===""?".":I+":";if(le(R))for(var _e=0;_e<R.length;_e++)I=R[_e],ve=Ie+ut(I,_e),pe+=Me(I,G,te,ve,J);else if(_e=S(R),typeof _e=="function")for(R=_e.call(R),_e=0;!(I=R.next()).done;)I=I.value,ve=Ie+ut(I,_e++),pe+=Me(I,G,te,ve,J);else if(ve==="object"){if(typeof R.then=="function")return Me(dt(R),G,te,I,J);throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return pe}function k(R,G,te){if(R==null)return R;var I=[],J=0;return Me(R,I,"","",function(ve){return G.call(te,ve,J++)}),I}function se(R){if(R._status===-1){var G=R._result;G=G(),G.then(function(te){(R._status===0||R._status===-1)&&(R._status=1,R._result=te)},function(te){(R._status===0||R._status===-1)&&(R._status=2,R._result=te)}),R._status===-1&&(R._status=0,R._result=G)}if(R._status===1)return R._result.default;throw R._result}var W=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function Te(){}return Re.Children={map:k,forEach:function(R,G,te){k(R,function(){G.apply(this,arguments)},te)},count:function(R){var G=0;return k(R,function(){G++}),G},toArray:function(R){return k(R,function(G){return G})||[]},only:function(R){if(!$(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Re.Component=V,Re.Fragment=c,Re.Profiler=o,Re.PureComponent=Z,Re.StrictMode=f,Re.Suspense=v,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,Re.act=function(){throw Error("act(...) is not supported in production builds of React.")},Re.cache=function(R){return function(){return R.apply(null,arguments)}},Re.cloneElement=function(R,G,te){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var I=N({},R.props),J=R.key,ve=void 0;if(G!=null)for(pe in G.ref!==void 0&&(ve=void 0),G.key!==void 0&&(J=""+G.key),G)!P.call(G,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&G.ref===void 0||(I[pe]=G[pe]);var pe=arguments.length-2;if(pe===1)I.children=te;else if(1<pe){for(var Ie=Array(pe),_e=0;_e<pe;_e++)Ie[_e]=arguments[_e+2];I.children=Ie}return he(R.type,J,void 0,void 0,ve,I)},Re.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:s,_context:R},R},Re.createElement=function(R,G,te){var I,J={},ve=null;if(G!=null)for(I in G.key!==void 0&&(ve=""+G.key),G)P.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(J[I]=G[I]);var pe=arguments.length-2;if(pe===1)J.children=te;else if(1<pe){for(var Ie=Array(pe),_e=0;_e<pe;_e++)Ie[_e]=arguments[_e+2];J.children=Ie}if(R&&R.defaultProps)for(I in pe=R.defaultProps,pe)J[I]===void 0&&(J[I]=pe[I]);return he(R,ve,void 0,void 0,null,J)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(R){return{$$typeof:y,render:R}},Re.isValidElement=$,Re.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:se}},Re.memo=function(R,G){return{$$typeof:m,type:R,compare:G===void 0?null:G}},Re.startTransition=function(R){var G=x.T,te={};x.T=te;try{var I=R(),J=x.S;J!==null&&J(te,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(Te,W)}catch(ve){W(ve)}finally{x.T=G}},Re.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},Re.use=function(R){return x.H.use(R)},Re.useActionState=function(R,G,te){return x.H.useActionState(R,G,te)},Re.useCallback=function(R,G){return x.H.useCallback(R,G)},Re.useContext=function(R){return x.H.useContext(R)},Re.useDebugValue=function(){},Re.useDeferredValue=function(R,G){return x.H.useDeferredValue(R,G)},Re.useEffect=function(R,G){return x.H.useEffect(R,G)},Re.useId=function(){return x.H.useId()},Re.useImperativeHandle=function(R,G,te){return x.H.useImperativeHandle(R,G,te)},Re.useInsertionEffect=function(R,G){return x.H.useInsertionEffect(R,G)},Re.useLayoutEffect=function(R,G){return x.H.useLayoutEffect(R,G)},Re.useMemo=function(R,G){return x.H.useMemo(R,G)},Re.useOptimistic=function(R,G){return x.H.useOptimistic(R,G)},Re.useReducer=function(R,G,te){return x.H.useReducer(R,G,te)},Re.useRef=function(R){return x.H.useRef(R)},Re.useState=function(R){return x.H.useState(R)},Re.useSyncExternalStore=function(R,G,te){return x.H.useSyncExternalStore(R,G,te)},Re.useTransition=function(){return x.H.useTransition()},Re.version="19.0.0",Re}var bm;function Ar(){return bm||(bm=1,Qf.exports=Sp()),Qf.exports}var p=Ar();const Ht=Wu(p);var Zf={exports:{}},Vu={},Kf={exports:{}},kf={};/**
- * @license React
- * scheduler.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Sm;function Rp(){return Sm||(Sm=1,function(l){function u(k,se){var W=k.length;k.push(se);e:for(;0<W;){var Te=W-1>>>1,R=k[Te];if(0<o(R,se))k[Te]=se,k[W]=R,W=Te;else break e}}function c(k){return k.length===0?null:k[0]}function f(k){if(k.length===0)return null;var se=k[0],W=k.pop();if(W!==se){k[0]=W;e:for(var Te=0,R=k.length,G=R>>>1;Te<G;){var te=2*(Te+1)-1,I=k[te],J=te+1,ve=k[J];if(0>o(I,W))J<R&&0>o(ve,I)?(k[Te]=ve,k[J]=W,Te=J):(k[Te]=I,k[te]=W,Te=te);else if(J<R&&0>o(ve,W))k[Te]=ve,k[J]=W,Te=J;else break e}}return se}function o(k,se){var W=k.sortIndex-se.sortIndex;return W!==0?W:k.id-se.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;l.unstable_now=function(){return s.now()}}else{var h=Date,y=h.now();l.unstable_now=function(){return h.now()-y}}var v=[],m=[],b=1,M=null,S=3,D=!1,N=!1,q=!1,V=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function K(k){for(var se=c(m);se!==null;){if(se.callback===null)f(m);else if(se.startTime<=k)f(m),se.sortIndex=se.expirationTime,u(v,se);else break;se=c(m)}}function le(k){if(q=!1,K(k),!N)if(c(v)!==null)N=!0,dt();else{var se=c(m);se!==null&&Me(le,se.startTime-k)}}var x=!1,P=-1,he=5,oe=-1;function $(){return!(l.unstable_now()-oe<he)}function ie(){if(x){var k=l.unstable_now();oe=k;var se=!0;try{e:{N=!1,q&&(q=!1,U(P),P=-1),D=!0;var W=S;try{t:{for(K(k),M=c(v);M!==null&&!(M.expirationTime>k&&$());){var Te=M.callback;if(typeof Te=="function"){M.callback=null,S=M.priorityLevel;var R=Te(M.expirationTime<=k);if(k=l.unstable_now(),typeof R=="function"){M.callback=R,K(k),se=!0;break t}M===c(v)&&f(v),K(k)}else f(v);M=c(v)}if(M!==null)se=!0;else{var G=c(m);G!==null&&Me(le,G.startTime-k),se=!1}}break e}finally{M=null,S=W,D=!1}se=void 0}}finally{se?He():x=!1}}}var He;if(typeof Z=="function")He=function(){Z(ie)};else if(typeof MessageChannel<"u"){var ut=new MessageChannel,Je=ut.port2;ut.port1.onmessage=ie,He=function(){Je.postMessage(null)}}else He=function(){V(ie,0)};function dt(){x||(x=!0,He())}function Me(k,se){P=V(function(){k(l.unstable_now())},se)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(k){k.callback=null},l.unstable_continueExecution=function(){N||D||(N=!0,dt())},l.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<k?Math.floor(1e3/k):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_getFirstCallbackNode=function(){return c(v)},l.unstable_next=function(k){switch(S){case 1:case 2:case 3:var se=3;break;default:se=S}var W=S;S=se;try{return k()}finally{S=W}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(k,se){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var W=S;S=k;try{return se()}finally{S=W}},l.unstable_scheduleCallback=function(k,se,W){var Te=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Te+W:Te):W=Te,k){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=W+R,k={id:b++,callback:se,priorityLevel:k,startTime:W,expirationTime:R,sortIndex:-1},W>Te?(k.sortIndex=W,u(m,k),c(v)===null&&k===c(m)&&(q?(U(P),P=-1):q=!0,Me(le,W-Te))):(k.sortIndex=R,u(v,k),N||D||(N=!0,dt())),k},l.unstable_shouldYield=$,l.unstable_wrapCallback=function(k){var se=S;return function(){var W=S;S=se;try{return k.apply(this,arguments)}finally{S=W}}}}(kf)),kf}var Rm;function Tp(){return Rm||(Rm=1,Kf.exports=Rp()),Kf.exports}var $f={exports:{}},Ct={};/**
- * @license React
- * react-dom.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Tm;function xp(){if(Tm)return Ct;Tm=1;var l=Ar();function u(v){var m="https://react.dev/errors/"+v;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var f={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(v,m,b){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:M==null?null:""+M,children:v,containerInfo:m,implementation:b}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,m){if(v==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Ct.createPortal=function(v,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(u(299));return s(v,m,null,b)},Ct.flushSync=function(v){var m=h.T,b=f.p;try{if(h.T=null,f.p=2,v)return v()}finally{h.T=m,f.p=b,f.d.f()}},Ct.preconnect=function(v,m){typeof v=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,f.d.C(v,m))},Ct.prefetchDNS=function(v){typeof v=="string"&&f.d.D(v)},Ct.preinit=function(v,m){if(typeof v=="string"&&m&&typeof m.as=="string"){var b=m.as,M=y(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,D=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?f.d.S(v,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:M,integrity:S,fetchPriority:D}):b==="script"&&f.d.X(v,{crossOrigin:M,integrity:S,fetchPriority:D,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ct.preinitModule=function(v,m){if(typeof v=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);f.d.M(v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&f.d.M(v)},Ct.preload=function(v,m){if(typeof v=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,M=y(b,m.crossOrigin);f.d.L(v,b,{crossOrigin:M,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ct.preloadModule=function(v,m){if(typeof v=="string")if(m){var b=y(m.as,m.crossOrigin);f.d.m(v,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else f.d.m(v)},Ct.requestFormReset=function(v){f.d.r(v)},Ct.unstable_batchedUpdates=function(v,m){return v(m)},Ct.useFormState=function(v,m,b){return h.H.useFormState(v,m,b)},Ct.useFormStatus=function(){return h.H.useHostTransitionStatus()},Ct.version="19.0.0",Ct}var xm;function my(){if(xm)return $f.exports;xm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),$f.exports=xp(),$f.exports}/**
- * @license React
- * react-dom-client.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Om;function Op(){if(Om)return Vu;Om=1;var l=Tp(),u=Ar(),c=my();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var s=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),D=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),le=Symbol.for("react.memo_cache_sentinel"),x=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=x&&e[x]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case y:return"Portal";case b:return"Profiler";case m:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case D:return(e.displayName||"Context")+".Provider";case S:return(e._context.displayName||"Context")+".Consumer";case N:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var $=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=Object.assign,He,ut;function Je(e){if(He===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);He=t&&t[1]||"",ut=-1<n.stack.indexOf(`
-    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
-`+He+e+ut}var dt=!1;function Me(e,t){if(!e||dt)return"";dt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(H){var z=H}Reflect.construct(e,[],X)}else{try{X.call()}catch(H){z=H}e.call(X.prototype)}}else{try{throw Error()}catch(H){z=H}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(H){if(H&&z&&typeof H.stack=="string")return[H.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),d=r[0],g=r[1];if(d&&g){var E=d.split(`
-`),C=g.split(`
-`);for(i=a=0;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(a===E.length||i===C.length)for(a=E.length-1,i=C.length-1;1<=a&&0<=i&&E[a]!==C[i];)i--;for(;1<=a&&0<=i;a--,i--)if(E[a]!==C[i]){if(a!==1||i!==1)do if(a--,i--,0>i||E[a]!==C[i]){var B=`
-`+E[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=i);break}}}finally{dt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Je(n):""}function k(e){switch(e.tag){case 26:case 27:case 5:return Je(e.type);case 16:return Je("Lazy");case 13:return Je("Suspense");case 19:return Je("SuspenseList");case 0:case 15:return e=Me(e.type,!1),e;case 11:return e=Me(e.type.render,!1),e;case 1:return e=Me(e.type,!0),e;default:return""}}function se(e){try{var t="";do t+=k(e),e=e.return;while(e);return t}catch(n){return`
-Error generating stack: `+n.message+`
-`+n.stack}}function W(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Te(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function R(e){if(W(e)!==e)throw Error(f(188))}function G(e){var t=e.alternate;if(!t){if(t=W(e),t===null)throw Error(f(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var r=i.alternate;if(r===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return R(i),e;if(r===a)return R(i),t;r=r.sibling}throw Error(f(188))}if(n.return!==a.return)n=i,a=r;else{for(var d=!1,g=i.child;g;){if(g===n){d=!0,n=i,a=r;break}if(g===a){d=!0,a=i,n=r;break}g=g.sibling}if(!d){for(g=r.child;g;){if(g===n){d=!0,n=r,a=i;break}if(g===a){d=!0,a=r,n=i;break}g=g.sibling}if(!d)throw Error(f(189))}}if(n.alternate!==a)throw Error(f(190))}if(n.tag!==3)throw Error(f(188));return n.stateNode.current===n?e:t}function te(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=te(e),t!==null)return t;e=e.sibling}return null}var I=Array.isArray,J=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},pe=[],Ie=-1;function _e(e){return{current:e}}function Se(e){0>Ie||(e.current=pe[Ie],pe[Ie]=null,Ie--)}function De(e,t){Ie++,pe[Ie]=e.current,e.current=t}var yt=_e(null),Nt=_e(null),et=_e(null),qt=_e(null);function Le(e,t){switch(De(et,t),De(Nt,e),De(yt,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Zh(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=Zh(e),t=Kh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Se(yt),De(yt,t)}function zt(){Se(yt),Se(Nt),Se(et)}function hn(e){e.memoizedState!==null&&De(qt,e);var t=yt.current,n=Kh(t,e.type);t!==n&&(De(Nt,e),De(yt,n))}function aa(e){Nt.current===e&&(Se(yt),Se(Nt)),qt.current===e&&(Se(qt),Hu._currentValue=ve)}var wa=Object.prototype.hasOwnProperty,Na=l.unstable_scheduleCallback,Yt=l.unstable_cancelCallback,zn=l.unstable_shouldYield,cl=l.unstable_requestPaint,St=l.unstable_now,Ft=l.unstable_getCurrentPriorityLevel,be=l.unstable_ImmediatePriority,Wt=l.unstable_UserBlockingPriority,mn=l.unstable_NormalPriority,Lr=l.unstable_LowPriority,yn=l.unstable_IdlePriority,ti=l.log,ni=l.unstable_setDisableYieldValue,la=null,Mt=null;function ai(e){if(Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(la,e,void 0,(e.current.flags&128)===128)}catch{}}function Gt(e){if(typeof ti=="function"&&ni(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(la,e)}catch{}}var Ot=Math.clz32?Math.clz32:li,Jl=Math.log,Hr=Math.LN2;function li(e){return e>>>=0,e===0?32:31-(Jl(e)/Hr|0)|0}var fl=128,za=4194304;function Pt(e){var t=e&42;if(t!==0)return t;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:return 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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Un(e,t){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,r=e.pingedLanes,d=e.warmLanes;e=e.finishedLanes!==0;var g=n&134217727;return g!==0?(n=g&~i,n!==0?a=Pt(n):(r&=g,r!==0?a=Pt(r):e||(d=g&~d,d!==0&&(a=Pt(d))))):(g=n&~i,g!==0?a=Pt(g):r!==0?a=Pt(r):e||(d=n&~d,d!==0&&(a=Pt(d)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,d=t&-t,i>=d||i===32&&(d&4194176)!==0)?t:a}function Ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Br(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function T(){var e=fl;return fl<<=1,!(fl&4194176)&&(fl=128),e}function _(){var e=za;return za<<=1,!(za&62914560)&&(za=4194304),e}function L(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Q(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ee(e,t,n,a,i,r){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,E=e.expirationTimes,C=e.hiddenUpdates;for(n=d&~n;0<n;){var B=31-Ot(n),X=1<<B;g[B]=0,E[B]=-1;var z=C[B];if(z!==null)for(C[B]=null,B=0;B<z.length;B++){var H=z[B];H!==null&&(H.lane&=-536870913)}n&=~X}a!==0&&ce(e,a,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function ce(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ot(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194218}function ge(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ot(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function ne(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ue(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:om(e.type))}function F(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var me=Math.random().toString(36).slice(2),de="__reactFiber$"+me,xe="__reactProps$"+me,ke="__reactContainer$"+me,Xe="__reactEvents$"+me,Ve="__reactListeners$"+me,it="__reactHandles$"+me,jn="__reactResources$"+me,vn="__reactMarker$"+me;function Xt(e){delete e[de],delete e[xe],delete e[Xe],delete e[Ve],delete e[it]}function vt(e){var t=e[de];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ke]||n[de]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jh(e);e!==null;){if(n=e[de])return n;e=Jh(e)}return t}e=n,n=e.parentNode}return null}function On(e){if(e=e[de]||e[ke]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function gn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function Ut(e){var t=e[jn];return t||(t=e[jn]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[vn]=!0}var ja=new Set,Be={};function $e(e,t){pn(e,t),pn(e+"Capture",t)}function pn(e,t){for(Be[e]=t,e=0;e<t.length;e++)ja.add(t[e])}var At=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ln={},Fl={};function qr(e){return wa.call(Fl,e)?!0:wa.call(Ln,e)?!1:tt.test(e)?Fl[e]=!0:(Ln[e]=!0,!1)}function ui(e,t,n){if(qr(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ii(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Hn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function It(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $o(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dv(e){var t=$o(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ri(e){e._valueTracker||(e._valueTracker=dv(e))}function Jo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=$o(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ci(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hv=/[\n"\\]/g;function en(e){return e.replace(hv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yr(e,t,n,a,i,r,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+It(t)):e.value!==""+It(t)&&(e.value=""+It(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Gr(e,d,It(t)):n!=null?Gr(e,d,It(n)):a!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+It(g):e.removeAttribute("name")}function Fo(e,t,n,a,i,r,d,g){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null))return;n=n!=null?""+It(n):"",t=t!=null?""+It(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=g?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d)}function Gr(e,t,n){t==="number"&&ci(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ol(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+It(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wo(e,t,n){if(t!=null&&(t=""+It(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+It(n):""}function Po(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(f(92));if(I(a)){if(1<a.length)throw Error(f(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=It(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function sl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Io(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||mv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function es(e,t,n){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Io(e,i,a)}else for(var r in t)t.hasOwnProperty(r)&&Io(e,r,t[r])}function Xr(e){if(e.indexOf("-")===-1)return!1;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 yv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),vv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fi(e){return vv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Vr=null;function Qr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dl=null,hl=null;function ts(e){var t=On(e);if(t&&(e=t.stateNode)){var n=e[xe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Yr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+en(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[xe]||null;if(!i)throw Error(f(90));Yr(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Jo(a)}break e;case"textarea":Wo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ol(e,!!n.multiple,t,!1)}}}var Zr=!1;function ns(e,t,n){if(Zr)return e(t,n);Zr=!0;try{var a=e(t);return a}finally{if(Zr=!1,(dl!==null||hl!==null)&&(Ki(),dl&&(t=dl,e=hl,hl=dl=null,ts(t),e)))for(t=0;t<e.length;t++)ts(e[t])}}function Wl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[xe]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(f(231,t,typeof n));return n}var Kr=!1;if(At)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){Kr=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{Kr=!1}var ua=null,kr=null,oi=null;function as(){if(oi)return oi;var e,t=kr,n=t.length,a,i="value"in ua?ua.value:ua.textContent,r=i.length;for(e=0;e<n&&t[e]===i[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===i[r-a];a++);return oi=i.slice(e,1<a?1-a:void 0)}function si(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function di(){return!0}function ls(){return!1}function jt(e){function t(n,a,i,r,d){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(r):r[g]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?di:ls,this.isPropagationStopped=ls,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}var La={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hi=jt(La),Il=ie({},La,{view:0,detail:0}),gv=jt(Il),$r,Jr,eu,mi=ie({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==eu&&(eu&&e.type==="mousemove"?($r=e.screenX-eu.screenX,Jr=e.screenY-eu.screenY):Jr=$r=0,eu=e),$r)},movementY:function(e){return"movementY"in e?e.movementY:Jr}}),us=jt(mi),pv=ie({},mi,{dataTransfer:0}),Ev=jt(pv),bv=ie({},Il,{relatedTarget:0}),Fr=jt(bv),Sv=ie({},La,{animationName:0,elapsedTime:0,pseudoElement:0}),Rv=jt(Sv),Tv=ie({},La,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xv=jt(Tv),Ov=ie({},La,{data:0}),is=jt(Ov),Dv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Av(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mv[e])?!!t[e]:!1}function Wr(){return Av}var _v=ie({},Il,{key:function(e){if(e.key){var t=Dv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wr,charCode:function(e){return e.type==="keypress"?si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wv=jt(_v),Nv=ie({},mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rs=jt(Nv),zv=ie({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wr}),Uv=jt(zv),jv=ie({},La,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lv=jt(jv),Hv=ie({},mi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bv=jt(Hv),qv=ie({},La,{newState:0,oldState:0}),Yv=jt(qv),Gv=[9,13,27,32],Pr=At&&"CompositionEvent"in window,tu=null;At&&"documentMode"in document&&(tu=document.documentMode);var Xv=At&&"TextEvent"in window&&!tu,cs=At&&(!Pr||tu&&8<tu&&11>=tu),fs=" ",os=!1;function ss(e,t){switch(e){case"keyup":return Gv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ds(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ml=!1;function Vv(e,t){switch(e){case"compositionend":return ds(t);case"keypress":return t.which!==32?null:(os=!0,fs);case"textInput":return e=t.data,e===fs&&os?null:e;default:return null}}function Qv(e,t){if(ml)return e==="compositionend"||!Pr&&ss(e,t)?(e=as(),oi=kr=ua=null,ml=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cs&&t.locale!=="ko"?null:t.data;default:return null}}var Zv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zv[e.type]:t==="textarea"}function ms(e,t,n,a){dl?hl?hl.push(a):hl=[a]:dl=a,t=Wi(t,"onChange"),0<t.length&&(n=new hi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var nu=null,au=null;function Kv(e){Yh(e,0)}function yi(e){var t=gn(e);if(Jo(t))return e}function ys(e,t){if(e==="change")return t}var vs=!1;if(At){var Ir;if(At){var ec="oninput"in document;if(!ec){var gs=document.createElement("div");gs.setAttribute("oninput","return;"),ec=typeof gs.oninput=="function"}Ir=ec}else Ir=!1;vs=Ir&&(!document.documentMode||9<document.documentMode)}function ps(){nu&&(nu.detachEvent("onpropertychange",Es),au=nu=null)}function Es(e){if(e.propertyName==="value"&&yi(au)){var t=[];ms(t,au,e,Qr(e)),ns(Kv,t)}}function kv(e,t,n){e==="focusin"?(ps(),nu=t,au=n,nu.attachEvent("onpropertychange",Es)):e==="focusout"&&ps()}function $v(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(au)}function Jv(e,t){if(e==="click")return yi(t)}function Fv(e,t){if(e==="input"||e==="change")return yi(t)}function Wv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:Wv;function lu(e,t){if(Vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!wa.call(t,i)||!Vt(e[i],t[i]))return!1}return!0}function bs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ss(e,t){var n=bs(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bs(n)}}function Rs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ts(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ci(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ci(e.document)}return t}function tc(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 Pv(e,t){var n=Ts(t);t=e.focusedElem;var a=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Rs(t.ownerDocument.documentElement,t)){if(a!==null&&tc(t)){if(e=a.start,n=a.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var i=t.textContent.length,r=Math.min(a.start,i);a=a.end===void 0?r:Math.min(a.end,i),!n.extend&&r>a&&(i=a,a=r,r=i),i=Ss(t,r);var d=Ss(t,a);i&&d&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==d.node||n.focusOffset!==d.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),n.removeAllRanges(),r>a?(n.addRange(e),n.extend(d.node,d.offset)):(e.setEnd(d.node,d.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)n=e[t],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var Iv=At&&"documentMode"in document&&11>=document.documentMode,yl=null,nc=null,uu=null,ac=!1;function xs(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ac||yl==null||yl!==ci(a)||(a=yl,"selectionStart"in a&&tc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),uu&&lu(uu,a)||(uu=a,a=Wi(nc,"onSelect"),0<a.length&&(t=new hi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=yl)))}function Ha(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vl={animationend:Ha("Animation","AnimationEnd"),animationiteration:Ha("Animation","AnimationIteration"),animationstart:Ha("Animation","AnimationStart"),transitionrun:Ha("Transition","TransitionRun"),transitionstart:Ha("Transition","TransitionStart"),transitioncancel:Ha("Transition","TransitionCancel"),transitionend:Ha("Transition","TransitionEnd")},lc={},Os={};At&&(Os=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function Ba(e){if(lc[e])return lc[e];if(!vl[e])return e;var t=vl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Os)return lc[e]=t[n];return e}var Ds=Ba("animationend"),Cs=Ba("animationiteration"),Ms=Ba("animationstart"),eg=Ba("transitionrun"),tg=Ba("transitionstart"),ng=Ba("transitioncancel"),As=Ba("transitionend"),_s=new Map,ws="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function En(e,t){_s.set(e,t),$e(t,[e])}var tn=[],gl=0,uc=0;function vi(){for(var e=gl,t=uc=gl=0;t<e;){var n=tn[t];tn[t++]=null;var a=tn[t];tn[t++]=null;var i=tn[t];tn[t++]=null;var r=tn[t];if(tn[t++]=null,a!==null&&i!==null){var d=a.pending;d===null?i.next=i:(i.next=d.next,d.next=i),a.pending=i}r!==0&&Ns(n,i,r)}}function gi(e,t,n,a){tn[gl++]=e,tn[gl++]=t,tn[gl++]=n,tn[gl++]=a,uc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ic(e,t,n,a){return gi(e,t,n,a),pi(e)}function ia(e,t){return gi(e,null,null,t),pi(e)}function Ns(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,r=e.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;i&&t!==null&&e.tag===3&&(r=e.stateNode,i=31-Ot(n),r=r.hiddenUpdates,e=r[i],e===null?r[i]=[t]:e.push(t),t.lane=n|536870912)}function pi(e){if(50<_u)throw _u=0,hf=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pl={},zs=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var n=zs.get(e);return n!==void 0?n:(t={value:e,source:t,stack:se(t)},zs.set(e,t),t)}return{value:e,source:t,stack:se(t)}}var El=[],bl=0,Ei=null,bi=0,an=[],ln=0,qa=null,Bn=1,qn="";function Ya(e,t){El[bl++]=bi,El[bl++]=Ei,Ei=e,bi=t}function Us(e,t,n){an[ln++]=Bn,an[ln++]=qn,an[ln++]=qa,qa=e;var a=Bn;e=qn;var i=32-Ot(a)-1;a&=~(1<<i),n+=1;var r=32-Ot(t)+i;if(30<r){var d=i-i%5;r=(a&(1<<d)-1).toString(32),a>>=d,i-=d,Bn=1<<32-Ot(t)+i|n<<i|a,qn=r+e}else Bn=1<<r|n<<i|a,qn=e}function rc(e){e.return!==null&&(Ya(e,1),Us(e,1,0))}function cc(e){for(;e===Ei;)Ei=El[--bl],El[bl]=null,bi=El[--bl],El[bl]=null;for(;e===qa;)qa=an[--ln],an[ln]=null,qn=an[--ln],an[ln]=null,Bn=an[--ln],an[ln]=null}var _t=null,Rt=null,Ue=!1,bn=null,Dn=!1,fc=Error(f(519));function Ga(e){var t=Error(f(418,""));throw cu(nn(t,e)),fc}function js(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[de]=e,t[xe]=a,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Nu.length;n++)we(Nu[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Fo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),ri(t);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Po(t,a.value,a.defaultValue,a.children),ri(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Qh(t.textContent,n)?(a.popover!=null&&(we("beforetoggle",t),we("toggle",t)),a.onScroll!=null&&we("scroll",t),a.onScrollEnd!=null&&we("scrollend",t),a.onClick!=null&&(t.onclick=Pi),t=!0):t=!1,t||Ga(e)}function Ls(e){for(_t=e.return;_t;)switch(_t.tag){case 3:case 27:Dn=!0;return;case 5:case 13:Dn=!1;return;default:_t=_t.return}}function iu(e){if(e!==_t)return!1;if(!Ue)return Ls(e),Ue=!0,!1;var t=!1,n;if((n=e.tag!==3&&e.tag!==27)&&((n=e.tag===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||_f(e.type,e.memoizedProps)),n=!n),n&&(t=!0),t&&Rt&&Ga(e),Ls(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Rt=Rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Rt=null}}else Rt=_t?Rn(e.stateNode.nextSibling):null;return!0}function ru(){Rt=_t=null,Ue=!1}function cu(e){bn===null?bn=[e]:bn.push(e)}var fu=Error(f(460)),Hs=Error(f(474)),oc={then:function(){}};function Bs(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Si(){}function qs(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Si,Si),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===fu?Error(f(483)):e;default:if(typeof t.status=="string")t.then(Si,Si);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===fu?Error(f(483)):e}throw ou=t,fu}}var ou=null;function Ys(){if(ou===null)throw Error(f(459));var e=ou;return ou=null,e}var Sl=null,su=0;function Ri(e){var t=su;return su+=1,Sl===null&&(Sl=[]),qs(Sl,e,t)}function du(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ti(e,t){throw t.$$typeof===s?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gs(e){var t=e._init;return t(e._payload)}function Xs(e){function t(A,O){if(e){var w=A.deletions;w===null?(A.deletions=[O],A.flags|=16):w.push(O)}}function n(A,O){if(!e)return null;for(;O!==null;)t(A,O),O=O.sibling;return null}function a(A){for(var O=new Map;A!==null;)A.key!==null?O.set(A.key,A):O.set(A.index,A),A=A.sibling;return O}function i(A,O){return A=pa(A,O),A.index=0,A.sibling=null,A}function r(A,O,w){return A.index=w,e?(w=A.alternate,w!==null?(w=w.index,w<O?(A.flags|=33554434,O):w):(A.flags|=33554434,O)):(A.flags|=1048576,O)}function d(A){return e&&A.alternate===null&&(A.flags|=33554434),A}function g(A,O,w,Y){return O===null||O.tag!==6?(O=lf(w,A.mode,Y),O.return=A,O):(O=i(O,w),O.return=A,O)}function E(A,O,w,Y){var ae=w.type;return ae===v?B(A,O,w.props.children,Y,w.key):O!==null&&(O.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Z&&Gs(ae)===O.type)?(O=i(O,w.props),du(O,w),O.return=A,O):(O=Gi(w.type,w.key,w.props,null,A.mode,Y),du(O,w),O.return=A,O)}function C(A,O,w,Y){return O===null||O.tag!==4||O.stateNode.containerInfo!==w.containerInfo||O.stateNode.implementation!==w.implementation?(O=uf(w,A.mode,Y),O.return=A,O):(O=i(O,w.children||[]),O.return=A,O)}function B(A,O,w,Y,ae){return O===null||O.tag!==7?(O=Wa(w,A.mode,Y,ae),O.return=A,O):(O=i(O,w),O.return=A,O)}function X(A,O,w){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=lf(""+O,A.mode,w),O.return=A,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case h:return w=Gi(O.type,O.key,O.props,null,A.mode,w),du(w,O),w.return=A,w;case y:return O=uf(O,A.mode,w),O.return=A,O;case Z:var Y=O._init;return O=Y(O._payload),X(A,O,w)}if(I(O)||P(O))return O=Wa(O,A.mode,w,null),O.return=A,O;if(typeof O.then=="function")return X(A,Ri(O),w);if(O.$$typeof===D)return X(A,Bi(A,O),w);Ti(A,O)}return null}function z(A,O,w,Y){var ae=O!==null?O.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return ae!==null?null:g(A,O,""+w,Y);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case h:return w.key===ae?E(A,O,w,Y):null;case y:return w.key===ae?C(A,O,w,Y):null;case Z:return ae=w._init,w=ae(w._payload),z(A,O,w,Y)}if(I(w)||P(w))return ae!==null?null:B(A,O,w,Y,null);if(typeof w.then=="function")return z(A,O,Ri(w),Y);if(w.$$typeof===D)return z(A,O,Bi(A,w),Y);Ti(A,w)}return null}function H(A,O,w,Y,ae){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return A=A.get(w)||null,g(O,A,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case h:return A=A.get(Y.key===null?w:Y.key)||null,E(O,A,Y,ae);case y:return A=A.get(Y.key===null?w:Y.key)||null,C(O,A,Y,ae);case Z:var Ce=Y._init;return Y=Ce(Y._payload),H(A,O,w,Y,ae)}if(I(Y)||P(Y))return A=A.get(w)||null,B(O,A,Y,ae,null);if(typeof Y.then=="function")return H(A,O,w,Ri(Y),ae);if(Y.$$typeof===D)return H(A,O,w,Bi(O,Y),ae);Ti(O,Y)}return null}function re(A,O,w,Y){for(var ae=null,Ce=null,fe=O,ye=O=0,Et=null;fe!==null&&ye<w.length;ye++){fe.index>ye?(Et=fe,fe=null):Et=fe.sibling;var je=z(A,fe,w[ye],Y);if(je===null){fe===null&&(fe=Et);break}e&&fe&&je.alternate===null&&t(A,fe),O=r(je,O,ye),Ce===null?ae=je:Ce.sibling=je,Ce=je,fe=Et}if(ye===w.length)return n(A,fe),Ue&&Ya(A,ye),ae;if(fe===null){for(;ye<w.length;ye++)fe=X(A,w[ye],Y),fe!==null&&(O=r(fe,O,ye),Ce===null?ae=fe:Ce.sibling=fe,Ce=fe);return Ue&&Ya(A,ye),ae}for(fe=a(fe);ye<w.length;ye++)Et=H(fe,A,ye,w[ye],Y),Et!==null&&(e&&Et.alternate!==null&&fe.delete(Et.key===null?ye:Et.key),O=r(Et,O,ye),Ce===null?ae=Et:Ce.sibling=Et,Ce=Et);return e&&fe.forEach(function(Oa){return t(A,Oa)}),Ue&&Ya(A,ye),ae}function Ee(A,O,w,Y){if(w==null)throw Error(f(151));for(var ae=null,Ce=null,fe=O,ye=O=0,Et=null,je=w.next();fe!==null&&!je.done;ye++,je=w.next()){fe.index>ye?(Et=fe,fe=null):Et=fe.sibling;var Oa=z(A,fe,je.value,Y);if(Oa===null){fe===null&&(fe=Et);break}e&&fe&&Oa.alternate===null&&t(A,fe),O=r(Oa,O,ye),Ce===null?ae=Oa:Ce.sibling=Oa,Ce=Oa,fe=Et}if(je.done)return n(A,fe),Ue&&Ya(A,ye),ae;if(fe===null){for(;!je.done;ye++,je=w.next())je=X(A,je.value,Y),je!==null&&(O=r(je,O,ye),Ce===null?ae=je:Ce.sibling=je,Ce=je);return Ue&&Ya(A,ye),ae}for(fe=a(fe);!je.done;ye++,je=w.next())je=H(fe,A,ye,je.value,Y),je!==null&&(e&&je.alternate!==null&&fe.delete(je.key===null?ye:je.key),O=r(je,O,ye),Ce===null?ae=je:Ce.sibling=je,Ce=je);return e&&fe.forEach(function(vp){return t(A,vp)}),Ue&&Ya(A,ye),ae}function lt(A,O,w,Y){if(typeof w=="object"&&w!==null&&w.type===v&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case h:e:{for(var ae=w.key;O!==null;){if(O.key===ae){if(ae=w.type,ae===v){if(O.tag===7){n(A,O.sibling),Y=i(O,w.props.children),Y.return=A,A=Y;break e}}else if(O.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Z&&Gs(ae)===O.type){n(A,O.sibling),Y=i(O,w.props),du(Y,w),Y.return=A,A=Y;break e}n(A,O);break}else t(A,O);O=O.sibling}w.type===v?(Y=Wa(w.props.children,A.mode,Y,w.key),Y.return=A,A=Y):(Y=Gi(w.type,w.key,w.props,null,A.mode,Y),du(Y,w),Y.return=A,A=Y)}return d(A);case y:e:{for(ae=w.key;O!==null;){if(O.key===ae)if(O.tag===4&&O.stateNode.containerInfo===w.containerInfo&&O.stateNode.implementation===w.implementation){n(A,O.sibling),Y=i(O,w.children||[]),Y.return=A,A=Y;break e}else{n(A,O);break}else t(A,O);O=O.sibling}Y=uf(w,A.mode,Y),Y.return=A,A=Y}return d(A);case Z:return ae=w._init,w=ae(w._payload),lt(A,O,w,Y)}if(I(w))return re(A,O,w,Y);if(P(w)){if(ae=P(w),typeof ae!="function")throw Error(f(150));return w=ae.call(w),Ee(A,O,w,Y)}if(typeof w.then=="function")return lt(A,O,Ri(w),Y);if(w.$$typeof===D)return lt(A,O,Bi(A,w),Y);Ti(A,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,O!==null&&O.tag===6?(n(A,O.sibling),Y=i(O,w),Y.return=A,A=Y):(n(A,O),Y=lf(w,A.mode,Y),Y.return=A,A=Y),d(A)):n(A,O)}return function(A,O,w,Y){try{su=0;var ae=lt(A,O,w,Y);return Sl=null,ae}catch(fe){if(fe===fu)throw fe;var Ce=fn(29,fe,null,A.mode);return Ce.lanes=Y,Ce.return=A,Ce}finally{}}}var Xa=Xs(!0),Vs=Xs(!1),Rl=_e(null),xi=_e(0);function Qs(e,t){e=Fn,De(xi,e),De(Rl,t),Fn=e|t.baseLanes}function sc(){De(xi,Fn),De(Rl,Rl.current)}function dc(){Fn=xi.current,Se(Rl),Se(xi)}var un=_e(null),Cn=null;function ra(e){var t=e.alternate;De(ht,ht.current&1),De(un,e),Cn===null&&(t===null||Rl.current!==null||t.memoizedState!==null)&&(Cn=e)}function Zs(e){if(e.tag===22){if(De(ht,ht.current),De(un,e),Cn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Cn=e)}}else ca()}function ca(){De(ht,ht.current),De(un,un.current)}function Yn(e){Se(un),Cn===e&&(Cn=null),Se(ht)}var ht=_e(0);function Oi(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 ag=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},lg=l.unstable_scheduleCallback,ug=l.unstable_NormalPriority,mt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new ag,data:new Map,refCount:0}}function hu(e){e.refCount--,e.refCount===0&&lg(ug,function(){e.controller.abort()})}var mu=null,mc=0,Tl=0,xl=null;function ig(e,t){if(mu===null){var n=mu=[];mc=0,Tl=Sf(),xl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return mc++,t.then(Ks,Ks),t}function Ks(){if(--mc===0&&mu!==null){xl!==null&&(xl.status="fulfilled");var e=mu;mu=null,Tl=0,xl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rg(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var ks=$.S;$.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&ig(e,t),ks!==null&&ks(e,t)};var Va=_e(null);function yc(){var e=Va.current;return e!==null?e:Ze.pooledCache}function Di(e,t){t===null?De(Va,Va.current):De(Va,t.pool)}function $s(){var e=yc();return e===null?null:{parent:mt._currentValue,pool:e}}var fa=0,Oe=null,qe=null,ft=null,Ci=!1,Ol=!1,Qa=!1,Mi=0,yu=0,Dl=null,cg=0;function rt(){throw Error(f(321))}function vc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vt(e[n],t[n]))return!1;return!0}function gc(e,t,n,a,i,r){return fa=r,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e===null||e.memoizedState===null?Za:oa,Qa=!1,r=n(a,i),Qa=!1,Ol&&(r=Fs(t,n,a,i)),Js(e),r}function Js(e){$.H=Mn;var t=qe!==null&&qe.next!==null;if(fa=0,ft=qe=Oe=null,Ci=!1,yu=0,Dl=null,t)throw Error(f(300));e===null||gt||(e=e.dependencies,e!==null&&Hi(e)&&(gt=!0))}function Fs(e,t,n,a){Oe=e;var i=0;do{if(Ol&&(Dl=null),yu=0,Ol=!1,25<=i)throw Error(f(301));if(i+=1,ft=qe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}$.H=Ka,r=t(n,a)}while(Ol);return r}function fg(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?vu(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Oe.flags|=1024),t}function pc(){var e=Mi!==0;return Mi=0,e}function Ec(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function bc(e){if(Ci){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ci=!1}fa=0,ft=qe=Oe=null,Ol=!1,yu=Mi=0,Dl=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Oe.memoizedState=ft=e:ft=ft.next=e,ft}function ot(){if(qe===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=ft===null?Oe.memoizedState:ft.next;if(t!==null)ft=t,qe=e;else{if(e===null)throw Oe.alternate===null?Error(f(467)):Error(f(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},ft===null?Oe.memoizedState=ft=e:ft=ft.next=e}return ft}var Ai;Ai=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function vu(e){var t=yu;return yu+=1,Dl===null&&(Dl=[]),e=qs(Dl,e,t),t=Oe,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,$.H=t===null||t.memoizedState===null?Za:oa),e}function _i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vu(e);if(e.$$typeof===D)return Dt(e)}throw Error(f(438,String(e)))}function Sc(e){var t=null,n=Oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Oe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ai(),Oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=le;return t.index++,n}function Gn(e,t){return typeof t=="function"?t(e):t}function wi(e){var t=ot();return Rc(t,qe,e)}function Rc(e,t,n){var a=e.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=n;var i=e.baseQueue,r=a.pending;if(r!==null){if(i!==null){var d=i.next;i.next=r.next,r.next=d}t.baseQueue=i=r,a.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var g=d=null,E=null,C=t,B=!1;do{var X=C.lane&-536870913;if(X!==C.lane?(ze&X)===X:(fa&X)===X){var z=C.revertLane;if(z===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),X===Tl&&(B=!0);else if((fa&z)===z){C=C.next,z===Tl&&(B=!0);continue}else X={lane:0,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(g=E=X,d=r):E=E.next=X,Oe.lanes|=z,Ea|=z;X=C.action,Qa&&n(r,X),r=C.hasEagerState?C.eagerState:n(r,X)}else z={lane:X,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(g=E=z,d=r):E=E.next=z,Oe.lanes|=X,Ea|=X;C=C.next}while(C!==null&&C!==t);if(E===null?d=r:E.next=g,!Vt(r,e.memoizedState)&&(gt=!0,B&&(n=xl,n!==null)))throw n;e.memoizedState=r,e.baseState=d,e.baseQueue=E,a.lastRenderedState=r}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Tc(e){var t=ot(),n=t.queue;if(n===null)throw Error(f(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,r=t.memoizedState;if(i!==null){n.pending=null;var d=i=i.next;do r=e(r,d.action),d=d.next;while(d!==i);Vt(r,t.memoizedState)||(gt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,a]}function Ws(e,t,n){var a=Oe,i=ot(),r=Ue;if(r){if(n===void 0)throw Error(f(407));n=n()}else n=t();var d=!Vt((qe||i).memoizedState,n);if(d&&(i.memoizedState=n,gt=!0),i=i.queue,Dc(ed.bind(null,a,i,e),[e]),i.getSnapshot!==t||d||ft!==null&&ft.memoizedState.tag&1){if(a.flags|=2048,Cl(9,Is.bind(null,a,i,n,t),{destroy:void 0},null),Ze===null)throw Error(f(349));r||fa&60||Ps(a,t,n)}return n}function Ps(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t=Ai(),Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Is(e,t,n,a){t.value=n,t.getSnapshot=a,td(t)&&nd(e)}function ed(e,t,n){return n(function(){td(t)&&nd(e)})}function td(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vt(e,n)}catch{return!0}}function nd(e){var t=ia(e,2);t!==null&&wt(t,e,2)}function xc(e){var t=Lt();if(typeof e=="function"){var n=e;if(e=n(),Qa){Gt(!0);try{n()}finally{Gt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function ad(e,t,n,a){return e.baseState=n,Rc(e,qe,typeof a=="function"?a:Gn)}function og(e,t,n,a,i){if(Ui(e))throw Error(f(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};$.T!==null?n(!0):r.isTransition=!1,a(r),n=t.pending,n===null?(r.next=t.pending=r,ld(t,r)):(r.next=n.next,t.pending=n.next=r)}}function ld(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var r=$.T,d={};$.T=d;try{var g=n(i,a),E=$.S;E!==null&&E(d,g),ud(e,t,g)}catch(C){Oc(e,t,C)}finally{$.T=r}}else try{r=n(i,a),ud(e,t,r)}catch(C){Oc(e,t,C)}}function ud(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){id(e,t,a)},function(a){return Oc(e,t,a)}):id(e,t,n)}function id(e,t,n){t.status="fulfilled",t.value=n,rd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ld(e,n)))}function Oc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,rd(t),t=t.next;while(t!==a)}e.action=null}function rd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cd(e,t){return t}function fd(e,t){if(Ue){var n=Ze.formState;if(n!==null){e:{var a=Oe;if(Ue){if(Rt){t:{for(var i=Rt,r=Dn;i.nodeType!==8;){if(!r){i=null;break t}if(i=Rn(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Rt=Rn(i.nextSibling),a=i.data==="F!";break e}}Ga(a)}a=!1}a&&(t=n[0])}}return n=Lt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cd,lastRenderedState:t},n.queue=a,n=Cd.bind(null,Oe,a),a.dispatch=n,a=xc(!1),r=wc.bind(null,Oe,!1,a.queue),a=Lt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=og.bind(null,Oe,i,r,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function od(e){var t=ot();return sd(t,qe,e)}function sd(e,t,n){t=Rc(e,t,cd)[0],e=wi(Gn)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?vu(t):t;var a=ot(),i=a.queue,r=i.dispatch;return n!==a.memoizedState&&(Oe.flags|=2048,Cl(9,sg.bind(null,i,n),{destroy:void 0},null)),[t,r,e]}function sg(e,t){e.action=t}function dd(e){var t=ot(),n=qe;if(n!==null)return sd(t,n,e);ot(),t=t.memoizedState,n=ot();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Cl(e,t,n,a){return e={tag:e,create:t,inst:n,deps:a,next:null},t=Oe.updateQueue,t===null&&(t=Ai(),Oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function hd(){return ot().memoizedState}function Ni(e,t,n,a){var i=Lt();Oe.flags|=e,i.memoizedState=Cl(1|t,n,{destroy:void 0},a===void 0?null:a)}function zi(e,t,n,a){var i=ot();a=a===void 0?null:a;var r=i.memoizedState.inst;qe!==null&&a!==null&&vc(a,qe.memoizedState.deps)?i.memoizedState=Cl(t,n,r,a):(Oe.flags|=e,i.memoizedState=Cl(1|t,n,r,a))}function md(e,t){Ni(8390656,8,e,t)}function Dc(e,t){zi(2048,8,e,t)}function yd(e,t){return zi(4,2,e,t)}function vd(e,t){return zi(4,4,e,t)}function gd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pd(e,t,n){n=n!=null?n.concat([e]):null,zi(4,4,gd.bind(null,t,e),n)}function Cc(){}function Ed(e,t){var n=ot();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&vc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function bd(e,t){var n=ot();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&vc(t,a[1]))return a[0];if(a=e(),Qa){Gt(!0);try{e()}finally{Gt(!1)}}return n.memoizedState=[a,t],a}function Mc(e,t,n){return n===void 0||fa&1073741824?e.memoizedState=t:(e.memoizedState=n,e=Rh(),Oe.lanes|=e,Ea|=e,n)}function Sd(e,t,n,a){return Vt(n,t)?n:Rl.current!==null?(e=Mc(e,n,a),Vt(e,t)||(gt=!0),e):fa&42?(e=Rh(),Oe.lanes|=e,Ea|=e,t):(gt=!0,e.memoizedState=n)}function Rd(e,t,n,a,i){var r=J.p;J.p=r!==0&&8>r?r:8;var d=$.T,g={};$.T=g,wc(e,!1,t,n);try{var E=i(),C=$.S;if(C!==null&&C(g,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var B=rg(E,a);gu(e,t,B,kt(e))}else gu(e,t,a,kt(e))}catch(X){gu(e,t,{then:function(){},status:"rejected",reason:X},kt())}finally{J.p=r,$.T=d}}function dg(){}function Ac(e,t,n,a){if(e.tag!==5)throw Error(f(476));var i=Td(e).queue;Rd(e,i,t,ve,n===null?dg:function(){return xd(e),n(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:ve},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xd(e){var t=Td(e).next.queue;gu(e,t,{},kt())}function _c(){return Dt(Hu)}function Od(){return ot().memoizedState}function Dd(){return ot().memoizedState}function hg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kt();e=ha(n);var a=ma(t,e,n);a!==null&&(wt(a,t,n),bu(a,t,n)),t={cache:hc()},e.payload=t;return}t=t.return}}function mg(e,t,n){var a=kt();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ui(e)?Md(t,n):(n=ic(e,t,n,a),n!==null&&(wt(n,e,a),Ad(n,t,a)))}function Cd(e,t,n){var a=kt();gu(e,t,n,a)}function gu(e,t,n,a){var i={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))Md(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,g=r(d,n);if(i.hasEagerState=!0,i.eagerState=g,Vt(g,d))return gi(e,t,i,0),Ze===null&&vi(),!1}catch{}finally{}if(n=ic(e,t,i,a),n!==null)return wt(n,e,a),Ad(n,t,a),!0}return!1}function wc(e,t,n,a){if(a={lane:2,revertLane:Sf(),action:a,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(f(479))}else t=ic(e,n,a,2),t!==null&&wt(t,e,2)}function Ui(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function Md(e,t){Ol=Ci=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ad(e,t,n){if(n&4194176){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ge(e,n)}}var Mn={readContext:Dt,use:_i,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt};Mn.useCacheRefresh=rt,Mn.useMemoCache=rt,Mn.useHostTransitionStatus=rt,Mn.useFormState=rt,Mn.useActionState=rt,Mn.useOptimistic=rt;var Za={readContext:Dt,use:_i,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:md,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ni(4194308,4,gd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var n=Lt();t=t===void 0?null:t;var a=e();if(Qa){Gt(!0);try{e()}finally{Gt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Lt();if(n!==void 0){var i=n(t);if(Qa){Gt(!0);try{n(t)}finally{Gt(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=mg.bind(null,Oe,e),[a.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=xc(e);var t=e.queue,n=Cd.bind(null,Oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cc,useDeferredValue:function(e,t){var n=Lt();return Mc(n,e,t)},useTransition:function(){var e=xc(!1);return e=Rd.bind(null,Oe,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Oe,i=Lt();if(Ue){if(n===void 0)throw Error(f(407));n=n()}else{if(n=t(),Ze===null)throw Error(f(349));ze&60||Ps(a,t,n)}i.memoizedState=n;var r={value:n,getSnapshot:t};return i.queue=r,md(ed.bind(null,a,r,e),[e]),a.flags|=2048,Cl(9,Is.bind(null,a,r,n,t),{destroy:void 0},null),n},useId:function(){var e=Lt(),t=Ze.identifierPrefix;if(Ue){var n=qn,a=Bn;n=(a&~(1<<32-Ot(a)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=cg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return Lt().memoizedState=hg.bind(null,Oe)}};Za.useMemoCache=Sc,Za.useHostTransitionStatus=_c,Za.useFormState=fd,Za.useActionState=fd,Za.useOptimistic=function(e){var t=Lt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=wc.bind(null,Oe,!0,n),n.dispatch=t,[e,t]};var oa={readContext:Dt,use:_i,useCallback:Ed,useContext:Dt,useEffect:Dc,useImperativeHandle:pd,useInsertionEffect:yd,useLayoutEffect:vd,useMemo:bd,useReducer:wi,useRef:hd,useState:function(){return wi(Gn)},useDebugValue:Cc,useDeferredValue:function(e,t){var n=ot();return Sd(n,qe.memoizedState,e,t)},useTransition:function(){var e=wi(Gn)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:vu(e),t]},useSyncExternalStore:Ws,useId:Od};oa.useCacheRefresh=Dd,oa.useMemoCache=Sc,oa.useHostTransitionStatus=_c,oa.useFormState=od,oa.useActionState=od,oa.useOptimistic=function(e,t){var n=ot();return ad(n,qe,e,t)};var Ka={readContext:Dt,use:_i,useCallback:Ed,useContext:Dt,useEffect:Dc,useImperativeHandle:pd,useInsertionEffect:yd,useLayoutEffect:vd,useMemo:bd,useReducer:Tc,useRef:hd,useState:function(){return Tc(Gn)},useDebugValue:Cc,useDeferredValue:function(e,t){var n=ot();return qe===null?Mc(n,e,t):Sd(n,qe.memoizedState,e,t)},useTransition:function(){var e=Tc(Gn)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:vu(e),t]},useSyncExternalStore:Ws,useId:Od};Ka.useCacheRefresh=Dd,Ka.useMemoCache=Sc,Ka.useHostTransitionStatus=_c,Ka.useFormState=dd,Ka.useActionState=dd,Ka.useOptimistic=function(e,t){var n=ot();return qe!==null?ad(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])};function Nc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zc={isMounted:function(e){return(e=e._reactInternals)?W(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=kt(),i=ha(a);i.payload=t,n!=null&&(i.callback=n),t=ma(e,i,a),t!==null&&(wt(t,e,a),bu(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=kt(),i=ha(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ma(e,i,a),t!==null&&(wt(t,e,a),bu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kt(),a=ha(n);a.tag=2,t!=null&&(a.callback=t),t=ma(e,a,n),t!==null&&(wt(t,e,n),bu(t,e,n))}};function _d(e,t,n,a,i,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,d):t.prototype&&t.prototype.isPureReactComponent?!lu(n,a)||!lu(i,r):!0}function wd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&zc.enqueueReplaceState(t,t.state,null)}function ka(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=ie({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}var ji=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Nd(e){ji(e)}function zd(e){console.error(e)}function Ud(e){ji(e)}function Li(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function jd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Uc(e,t,n){return n=ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Li(e,t)},n}function Ld(e){return e=ha(e),e.tag=3,e}function Hd(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=a.value;e.payload=function(){return i(r)},e.callback=function(){jd(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){jd(t,n,a),typeof i!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var g=a.stack;this.componentDidCatch(a.value,{componentStack:g!==null?g:""})})}function yg(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Eu(t,n,i,!0),n=un.current,n!==null){switch(n.tag){case 13:return Cn===null?vf():n.alternate===null&&at===0&&(at=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===oc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),pf(e,a,i)),!1;case 22:return n.flags|=65536,a===oc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),pf(e,a,i)),!1}throw Error(f(435,n.tag))}return pf(e,a,i),vf(),!1}if(Ue)return t=un.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==fc&&(e=Error(f(422),{cause:a}),cu(nn(e,n)))):(a!==fc&&(t=Error(f(423),{cause:a}),cu(nn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=nn(a,n),i=Uc(e.stateNode,a,i),Jc(e,i),at!==4&&(at=2)),!1;var r=Error(f(520),{cause:a});if(r=nn(r,n),Mu===null?Mu=[r]:Mu.push(r),at!==4&&(at=2),t===null)return!0;a=nn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Uc(n.stateNode,a,e),Jc(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(ba===null||!ba.has(r))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Ld(i),Hd(i,e,n,a),Jc(n,i),!1}n=n.return}while(n!==null);return!1}var Bd=Error(f(461)),gt=!1;function Tt(e,t,n,a){t.child=e===null?Vs(t,null,n,a):Xa(t,e.child,n,a)}function qd(e,t,n,a,i){n=n.render;var r=t.ref;if("ref"in a){var d={};for(var g in a)g!=="ref"&&(d[g]=a[g])}else d=a;return Ja(t),a=gc(e,t,n,d,r,i),g=pc(),e!==null&&!gt?(Ec(e,t,i),Xn(e,t,i)):(Ue&&g&&rc(t),t.flags|=1,Tt(e,t,a,i),t.child)}function Yd(e,t,n,a,i){if(e===null){var r=n.type;return typeof r=="function"&&!af(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,Gd(e,t,r,a,i)):(e=Gi(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Vc(e,i)){var d=r.memoizedProps;if(n=n.compare,n=n!==null?n:lu,n(d,a)&&e.ref===t.ref)return Xn(e,t,i)}return t.flags|=1,e=pa(r,a),e.ref=t.ref,e.return=t,t.child=e}function Gd(e,t,n,a,i){if(e!==null){var r=e.memoizedProps;if(lu(r,a)&&e.ref===t.ref)if(gt=!1,t.pendingProps=a=r,Vc(e,i))e.flags&131072&&(gt=!0);else return t.lanes=e.lanes,Xn(e,t,i)}return jc(e,t,n,a,i)}function Xd(e,t,n){var a=t.pendingProps,i=a.children,r=(t.stateNode._pendingVisibility&2)!==0,d=e!==null?e.memoizedState:null;if(pu(e,t),a.mode==="hidden"||r){if(t.flags&128){if(a=d!==null?d.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;t.childLanes=r&~a}else t.childLanes=0,t.child=null;return Vd(e,t,a,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Di(t,d!==null?d.cachePool:null),d!==null?Qs(t,d):sc(),Zs(t);else return t.lanes=t.childLanes=536870912,Vd(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(Di(t,d.cachePool),Qs(t,d),ca(),t.memoizedState=null):(e!==null&&Di(t,null),sc(),ca());return Tt(e,t,i,n),t.child}function Vd(e,t,n,a){var i=yc();return i=i===null?null:{parent:mt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Di(t,null),sc(),Zs(t),e!==null&&Eu(e,t,a,!0),null}function pu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof n!="function"&&typeof n!="object")throw Error(f(284));(e===null||e.ref!==n)&&(t.flags|=2097664)}}function jc(e,t,n,a,i){return Ja(t),n=gc(e,t,n,a,void 0,i),a=pc(),e!==null&&!gt?(Ec(e,t,i),Xn(e,t,i)):(Ue&&a&&rc(t),t.flags|=1,Tt(e,t,n,i),t.child)}function Qd(e,t,n,a,i,r){return Ja(t),t.updateQueue=null,n=Fs(t,a,n,i),Js(e),a=pc(),e!==null&&!gt?(Ec(e,t,r),Xn(e,t,r)):(Ue&&a&&rc(t),t.flags|=1,Tt(e,t,n,r),t.child)}function Zd(e,t,n,a,i){if(Ja(t),t.stateNode===null){var r=pl,d=n.contextType;typeof d=="object"&&d!==null&&(r=Dt(d)),r=new n(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=zc,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},kc(t),d=n.contextType,r.context=typeof d=="object"&&d!==null?Dt(d):pl,r.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Nc(t,n,d,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&zc.enqueueReplaceState(r,r.state,null),Ru(t,a,r,i),Su(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var g=t.memoizedProps,E=ka(n,g);r.props=E;var C=r.context,B=n.contextType;d=pl,typeof B=="object"&&B!==null&&(d=Dt(B));var X=n.getDerivedStateFromProps;B=typeof X=="function"||typeof r.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,B||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g||C!==d)&&wd(t,r,a,d),da=!1;var z=t.memoizedState;r.state=z,Ru(t,a,r,i),Su(),C=t.memoizedState,g||z!==C||da?(typeof X=="function"&&(Nc(t,n,X,a),C=t.memoizedState),(E=da||_d(t,n,E,a,z,C,d))?(B||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),r.props=a,r.state=C,r.context=d,a=E):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,$c(e,t),d=t.memoizedProps,B=ka(n,d),r.props=B,X=t.pendingProps,z=r.context,C=n.contextType,E=pl,typeof C=="object"&&C!==null&&(E=Dt(C)),g=n.getDerivedStateFromProps,(C=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==X||z!==E)&&wd(t,r,a,E),da=!1,z=t.memoizedState,r.state=z,Ru(t,a,r,i),Su();var H=t.memoizedState;d!==X||z!==H||da||e!==null&&e.dependencies!==null&&Hi(e.dependencies)?(typeof g=="function"&&(Nc(t,n,g,a),H=t.memoizedState),(B=da||_d(t,n,B,a,z,H,E)||e!==null&&e.dependencies!==null&&Hi(e.dependencies))?(C||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,H,E),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,H,E)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=H),r.props=a,r.state=H,r.context=E,a=B):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,pu(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=Xa(t,e.child,null,i),t.child=Xa(t,null,n,i)):Tt(e,t,n,i),t.memoizedState=r.state,e=t.child):e=Xn(e,t,i),e}function Kd(e,t,n,a){return ru(),t.flags|=256,Tt(e,t,n,a),t.child}var Lc={dehydrated:null,treeContext:null,retryLane:0};function Hc(e){return{baseLanes:e,cachePool:$s()}}function Bc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=on),e}function kd(e,t,n){var a=t.pendingProps,i=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(i?ra(t):ca(),Ue){var g=Rt,E;if(E=g){e:{for(E=g,g=Dn;E.nodeType!==8;){if(!g){g=null;break e}if(E=Rn(E.nextSibling),E===null){g=null;break e}}g=E}g!==null?(t.memoizedState={dehydrated:g,treeContext:qa!==null?{id:Bn,overflow:qn}:null,retryLane:536870912},E=fn(18,null,null,0),E.stateNode=g,E.return=t,t.child=E,_t=t,Rt=null,E=!0):E=!1}E||Ga(t)}if(g=t.memoizedState,g!==null&&(g=g.dehydrated,g!==null))return g.data==="$!"?t.lanes=16:t.lanes=536870912,null;Yn(t)}return g=a.children,a=a.fallback,i?(ca(),i=t.mode,g=Yc({mode:"hidden",children:g},i),a=Wa(a,i,n,null),g.return=t,a.return=t,g.sibling=a,t.child=g,i=t.child,i.memoizedState=Hc(n),i.childLanes=Bc(e,d,n),t.memoizedState=Lc,a):(ra(t),qc(t,g))}if(E=e.memoizedState,E!==null&&(g=E.dehydrated,g!==null)){if(r)t.flags&256?(ra(t),t.flags&=-257,t=Gc(e,t,n)):t.memoizedState!==null?(ca(),t.child=e.child,t.flags|=128,t=null):(ca(),i=a.fallback,g=t.mode,a=Yc({mode:"visible",children:a.children},g),i=Wa(i,g,n,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,Xa(t,e.child,null,n),a=t.child,a.memoizedState=Hc(n),a.childLanes=Bc(e,d,n),t.memoizedState=Lc,t=i);else if(ra(t),g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var C=d.dgst;d=C,a=Error(f(419)),a.stack="",a.digest=d,cu({value:a,source:null,stack:null}),t=Gc(e,t,n)}else if(gt||Eu(e,t,n,!1),d=(n&e.childLanes)!==0,gt||d){if(d=Ze,d!==null){if(a=n&-n,a&42)a=1;else switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:a=64;break;case 268435456:a=134217728;break;default:a=0}if(a=a&(d.suspendedLanes|n)?0:a,a!==0&&a!==E.retryLane)throw E.retryLane=a,ia(e,a),wt(d,e,a),Bd}g.data==="$?"||vf(),t=Gc(e,t,n)}else g.data==="$?"?(t.flags|=128,t.child=e.child,t=_g.bind(null,e),g._reactRetry=t,t=null):(e=E.treeContext,Rt=Rn(g.nextSibling),_t=t,Ue=!0,bn=null,Dn=!1,e!==null&&(an[ln++]=Bn,an[ln++]=qn,an[ln++]=qa,Bn=e.id,qn=e.overflow,qa=t),t=qc(t,a.children),t.flags|=4096);return t}return i?(ca(),i=a.fallback,g=t.mode,E=e.child,C=E.sibling,a=pa(E,{mode:"hidden",children:a.children}),a.subtreeFlags=E.subtreeFlags&31457280,C!==null?i=pa(C,i):(i=Wa(i,g,n,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,g=e.child.memoizedState,g===null?g=Hc(n):(E=g.cachePool,E!==null?(C=mt._currentValue,E=E.parent!==C?{parent:C,pool:C}:E):E=$s(),g={baseLanes:g.baseLanes|n,cachePool:E}),i.memoizedState=g,i.childLanes=Bc(e,d,n),t.memoizedState=Lc,a):(ra(t),n=e.child,e=n.sibling,n=pa(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function qc(e,t){return t=Yc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yc(e,t){return Eh(e,t,0,null)}function Gc(e,t,n){return Xa(t,e.child,null,n),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $d(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Zc(e.return,t,n)}function Xc(e,t,n,a,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=i)}function Jd(e,t,n){var a=t.pendingProps,i=a.revealOrder,r=a.tail;if(Tt(e,t,a.children,n),a=ht.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$d(e,n,t);else if(e.tag===19)$d(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(De(ht,a),i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Oi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xc(t,!1,i,n,r);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Oi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xc(t,!0,n,null,r);break;case"together":Xc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ea|=t.lanes,!(n&t.childLanes))if(e!==null){if(Eu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,n=pa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vc(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Hi(e)))}function vg(e,t,n){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),sa(t,mt,e.memoizedState.cache),ru();break;case 27:case 5:hn(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:sa(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ra(t),t.flags|=128,null):n&t.child.childLanes?kd(e,t,n):(ra(t),e=Xn(e,t,n),e!==null?e.sibling:null);ra(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Eu(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Jd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),De(ht,ht.current),a)break;return null;case 22:case 23:return t.lanes=0,Xd(e,t,n);case 24:sa(t,mt,e.memoizedState.cache)}return Xn(e,t,n)}function Fd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)gt=!0;else{if(!Vc(e,n)&&!(t.flags&128))return gt=!1,vg(e,t,n);gt=!!(e.flags&131072)}else gt=!1,Ue&&t.flags&1048576&&Us(t,bi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,i=a._init;if(a=i(a._payload),t.type=a,typeof a=="function")af(a)?(e=ka(a,e),t.tag=1,t=Zd(null,t,a,e,n)):(t.tag=0,t=jc(null,t,a,e,n));else{if(a!=null){if(i=a.$$typeof,i===N){t.tag=11,t=qd(null,t,a,e,n);break e}else if(i===U){t.tag=14,t=Yd(null,t,a,e,n);break e}}throw t=oe(a)||a,Error(f(306,t,""))}}return t;case 0:return jc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=ka(a,t.pendingProps),Zd(e,t,a,i,n);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(f(387));var r=t.pendingProps;i=t.memoizedState,a=i.element,$c(e,t),Ru(t,r,null,n);var d=t.memoizedState;if(r=d.cache,sa(t,mt,r),r!==i.cache&&Kc(t,[mt],n,!0),Su(),r=d.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Kd(e,t,r,n);break e}else if(r!==a){a=nn(Error(f(424)),t),cu(a),t=Kd(e,t,r,n);break e}else for(Rt=Rn(t.stateNode.containerInfo.firstChild),_t=t,Ue=!0,bn=null,Dn=!0,n=Vs(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ru(),r===a){t=Xn(e,t,n);break e}Tt(e,t,r,n)}t=t.child}return t;case 26:return pu(e,t),e===null?(n=Ih(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ue||(n=t.type,e=t.pendingProps,a=Ii(et.current).createElement(n),a[de]=t,a[xe]=e,xt(a,n,e),Fe(a),t.stateNode=a):t.memoizedState=Ih(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return hn(t),e===null&&Ue&&(a=t.stateNode=Fh(t.type,t.pendingProps,et.current),_t=t,Dn=!0,Rt=Rn(a.firstChild)),a=t.pendingProps.children,e!==null||Ue?Tt(e,t,a,n):t.child=Xa(t,null,a,n),pu(e,t),t.child;case 5:return e===null&&Ue&&((i=a=Rt)&&(a=Kg(a,t.type,t.pendingProps,Dn),a!==null?(t.stateNode=a,_t=t,Rt=Rn(a.firstChild),Dn=!1,i=!0):i=!1),i||Ga(t)),hn(t),i=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,a=r.children,_f(i,r)?a=null:d!==null&&_f(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=gc(e,t,fg,null,null,n),Hu._currentValue=i),pu(e,t),Tt(e,t,a,n),t.child;case 6:return e===null&&Ue&&((e=n=Rt)&&(n=kg(n,t.pendingProps,Dn),n!==null?(t.stateNode=n,_t=t,Rt=null,e=!0):e=!1),e||Ga(t)),null;case 13:return kd(e,t,n);case 4:return Le(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Xa(t,null,a,n):Tt(e,t,a,n),t.child;case 11:return qd(e,t,t.type,t.pendingProps,n);case 7:return Tt(e,t,t.pendingProps,n),t.child;case 8:return Tt(e,t,t.pendingProps.children,n),t.child;case 12:return Tt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,sa(t,t.type,a.value),Tt(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Ja(t),i=Dt(i),a=a(i),t.flags|=1,Tt(e,t,a,n),t.child;case 14:return Yd(e,t,t.type,t.pendingProps,n);case 15:return Gd(e,t,t.type,t.pendingProps,n);case 19:return Jd(e,t,n);case 22:return Xd(e,t,n);case 24:return Ja(t),a=Dt(mt),e===null?(i=yc(),i===null&&(i=Ze,r=hc(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=n),i=r),t.memoizedState={parent:a,cache:i},kc(t),sa(t,mt,i)):(e.lanes&n&&($c(e,t),Ru(t,null,null,n),Su()),i=e.memoizedState,r=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),sa(t,mt,a)):(a=r.cache,sa(t,mt,a),a!==i.cache&&Kc(t,[mt],n,!0))),Tt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}var Qc=_e(null),$a=null,Vn=null;function sa(e,t,n){De(Qc,t._currentValue),t._currentValue=n}function Qn(e){e._currentValue=Qc.current,Se(Qc)}function Zc(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Kc(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var d=i.child;r=r.firstContext;e:for(;r!==null;){var g=r;r=i;for(var E=0;E<t.length;E++)if(g.context===t[E]){r.lanes|=n,g=r.alternate,g!==null&&(g.lanes|=n),Zc(r.return,n,e),a||(d=null);break e}r=g.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(f(341));d.lanes|=n,r=d.alternate,r!==null&&(r.lanes|=n),Zc(d,n,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function Eu(e,t,n,a){e=null;for(var i=t,r=!1;i!==null;){if(!r){if(i.flags&524288)r=!0;else if(i.flags&262144)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(f(387));if(d=d.memoizedProps,d!==null){var g=i.type;Vt(i.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(i===qt.current){if(d=i.alternate,d===null)throw Error(f(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Hu):e=[Hu])}i=i.return}e!==null&&Kc(t,e,n,a),t.flags|=262144}function Hi(e){for(e=e.firstContext;e!==null;){if(!Vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ja(e){$a=e,Vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return Wd($a,e)}function Bi(e,t){return $a===null&&Ja(e),Wd(e,t)}function Wd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vn===null){if(e===null)throw Error(f(308));Vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vn=Vn.next=t;return n}var da=!1;function kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ma(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Pe&2){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=pi(e),Ns(e,null,n),t}return gi(e,a,t,n),pi(e)}function bu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194176)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ge(e,n)}}function Jc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?i=r=d:r=r.next=d,n=n.next}while(n!==null);r===null?i=r=t:r=r.next=t}else i=r=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fc=!1;function Su(){if(Fc){var e=xl;if(e!==null)throw e}}function Ru(e,t,n,a){Fc=!1;var i=e.updateQueue;da=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var E=g,C=E.next;E.next=null,d===null?r=C:d.next=C,d=E;var B=e.alternate;B!==null&&(B=B.updateQueue,g=B.lastBaseUpdate,g!==d&&(g===null?B.firstBaseUpdate=C:g.next=C,B.lastBaseUpdate=E))}if(r!==null){var X=i.baseState;d=0,B=C=E=null,g=r;do{var z=g.lane&-536870913,H=z!==g.lane;if(H?(ze&z)===z:(a&z)===z){z!==0&&z===Tl&&(Fc=!0),B!==null&&(B=B.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var re=e,Ee=g;z=t;var lt=n;switch(Ee.tag){case 1:if(re=Ee.payload,typeof re=="function"){X=re.call(lt,X,z);break e}X=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=Ee.payload,z=typeof re=="function"?re.call(lt,X,z):re,z==null)break e;X=ie({},X,z);break e;case 2:da=!0}}z=g.callback,z!==null&&(e.flags|=64,H&&(e.flags|=8192),H=i.callbacks,H===null?i.callbacks=[z]:H.push(z))}else H={lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},B===null?(C=B=H,E=X):B=B.next=H,d|=z;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;H=g,g=H.next,H.next=null,i.lastBaseUpdate=H,i.shared.pending=null}}while(!0);B===null&&(E=X),i.baseState=E,i.firstBaseUpdate=C,i.lastBaseUpdate=B,r===null&&(i.shared.lanes=0),Ea|=d,e.lanes=d,e.memoizedState=X}}function Pd(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Id(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Pd(n[e],t)}function Tu(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var r=n.create,d=n.inst;a=r(),d.destroy=a}n=n.next}while(n!==i)}}catch(g){Qe(t,t.return,g)}}function ya(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){var d=a.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,i=t;var E=n;try{g()}catch(C){Qe(i,E,C)}}}a=a.next}while(a!==r)}}catch(C){Qe(t,t.return,C)}}function eh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Id(t,n)}catch(a){Qe(e,e.return,a)}}}function th(e,t,n){n.props=ka(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Qe(e,t,a)}}function Fa(e,t){try{var n=e.ref;if(n!==null){var a=e.stateNode;switch(e.tag){case 26:case 27:case 5:var i=a;break;default:i=a}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Qe(e,t,r)}}function Qt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Qe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Qe(e,t,i)}else n.current=null}function nh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Qe(e,e.return,i)}}function ah(e,t,n){try{var a=e.stateNode;Gg(a,e.type,n,t),a[xe]=t}catch(i){Qe(e,e.return,i)}}function lh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&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 Pc(e,t,n){var a=e.tag;if(a===5||a===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=Pi));else if(a!==4&&a!==27&&(e=e.child,e!==null))for(Pc(e,t,n),e=e.sibling;e!==null;)Pc(e,t,n),e=e.sibling}function qi(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&a!==27&&(e=e.child,e!==null))for(qi(e,t,n),e=e.sibling;e!==null;)qi(e,t,n),e=e.sibling}var Zn=!1,nt=!1,Ic=!1,uh=typeof WeakSet=="function"?WeakSet:Set,pt=null,ih=!1;function gg(e,t){if(e=e.containerInfo,Mf=ur,e=Ts(e),tc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var d=0,g=-1,E=-1,C=0,B=0,X=e,z=null;t:for(;;){for(var H;X!==n||i!==0&&X.nodeType!==3||(g=d+i),X!==r||a!==0&&X.nodeType!==3||(E=d+a),X.nodeType===3&&(d+=X.nodeValue.length),(H=X.firstChild)!==null;)z=X,X=H;for(;;){if(X===e)break t;if(z===n&&++C===i&&(g=d),z===r&&++B===a&&(E=d),(H=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=H}n=g===-1||E===-1?null:{start:g,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Af={focusedElem:e,selectionRange:n},ur=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,r=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&r!==null){e=void 0,n=t,i=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var re=ka(n.type,i,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(re,r),a.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){Qe(n,n.return,Ee)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)zf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(f(163))}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return re=ih,ih=!1,re}function rh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n),a&4&&Tu(5,n);break;case 1:if(kn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Qe(n,n.return,g)}else{var i=ka(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Qe(n,n.return,g)}}a&64&&eh(n),a&512&&Fa(n,n.return);break;case 3:if(kn(e,n),a&64&&(a=n.updateQueue,a!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Id(a,e)}catch(g){Qe(n,n.return,g)}}break;case 26:kn(e,n),a&512&&Fa(n,n.return);break;case 27:case 5:kn(e,n),t===null&&a&4&&nh(n),a&512&&Fa(n,n.return);break;case 12:kn(e,n);break;case 13:kn(e,n),a&4&&oh(e,n);break;case 22:if(i=n.memoizedState!==null||Zn,!i){t=t!==null&&t.memoizedState!==null||nt;var r=Zn,d=nt;Zn=i,(nt=t)&&!d?va(e,n,(n.subtreeFlags&8772)!==0):kn(e,n),Zn=r,nt=d}a&512&&(n.memoizedProps.mode==="manual"?Fa(n,n.return):Qt(n,n.return));break;default:kn(e,n)}}function ch(e){var t=e.alternate;t!==null&&(e.alternate=null,ch(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var st=null,Zt=!1;function Kn(e,t,n){for(n=n.child;n!==null;)fh(e,t,n),n=n.sibling}function fh(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(la,n)}catch{}switch(n.tag){case 26:nt||Qt(n,t),Kn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nt||Qt(n,t);var a=st,i=Zt;for(st=n.stateNode,Kn(e,t,n),n=n.stateNode,t=n.attributes;t.length;)n.removeAttributeNode(t[0]);Xt(n),st=a,Zt=i;break;case 5:nt||Qt(n,t);case 6:i=st;var r=Zt;if(st=null,Kn(e,t,n),st=i,Zt=r,st!==null)if(Zt)try{e=st,a=n.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)}catch(d){Qe(n,t,d)}else try{st.removeChild(n.stateNode)}catch(d){Qe(n,t,d)}break;case 18:st!==null&&(Zt?(t=st,n=n.stateNode,t.nodeType===8?Nf(t.parentNode,n):t.nodeType===1&&Nf(t,n),Gu(t)):Nf(st,n.stateNode));break;case 4:a=st,i=Zt,st=n.stateNode.containerInfo,Zt=!0,Kn(e,t,n),st=a,Zt=i;break;case 0:case 11:case 14:case 15:nt||ya(2,n,t),nt||ya(4,n,t),Kn(e,t,n);break;case 1:nt||(Qt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&th(n,t,a)),Kn(e,t,n);break;case 21:Kn(e,t,n);break;case 22:nt||Qt(n,t),nt=(a=nt)||n.memoizedState!==null,Kn(e,t,n),nt=a;break;default:Kn(e,t,n)}}function oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gu(e)}catch(n){Qe(t,t.return,n)}}function pg(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uh),t;default:throw Error(f(435,e.tag))}}function ef(e,t){var n=pg(e);t.forEach(function(a){var i=wg.bind(null,e,a);n.has(a)||(n.add(a),a.then(i,i))})}function rn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],r=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:case 5:st=g.stateNode,Zt=!1;break e;case 3:st=g.stateNode.containerInfo,Zt=!0;break e;case 4:st=g.stateNode.containerInfo,Zt=!0;break e}g=g.return}if(st===null)throw Error(f(160));fh(r,d,i),st=null,Zt=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)sh(t,e),t=t.sibling}var Sn=null;function sh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),cn(e),a&4&&(ya(3,e,e.return),Tu(3,e),ya(5,e,e.return));break;case 1:rn(t,e),cn(e),a&512&&(nt||n===null||Qt(n,n.return)),a&64&&Zn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Sn;if(rn(t,e),cn(e),a&512&&(nt||n===null||Qt(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":r=i.getElementsByTagName("title")[0],(!r||r[vn]||r[de]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(a),i.head.insertBefore(r,i.querySelector("head > title"))),xt(r,a,n),r[de]=e,Fe(r),a=r;break e;case"link":var d=nm("link","href",i).get(a+(n.href||""));if(d){for(var g=0;g<d.length;g++)if(r=d[g],r.getAttribute("href")===(n.href==null?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(g,1);break t}}r=i.createElement(a),xt(r,a,n),i.head.appendChild(r);break;case"meta":if(d=nm("meta","content",i).get(a+(n.content||""))){for(g=0;g<d.length;g++)if(r=d[g],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(g,1);break t}}r=i.createElement(a),xt(r,a,n),i.head.appendChild(r);break;default:throw Error(f(468,a))}r[de]=e,Fe(r),a=r}e.stateNode=a}else am(i,e.type,e.stateNode);else e.stateNode=tm(i,a,e.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?am(i,e.type,e.stateNode):tm(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ah(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(a&4&&e.alternate===null){i=e.stateNode,r=e.memoizedProps;try{for(var E=i.firstChild;E;){var C=E.nextSibling,B=E.nodeName;E[vn]||B==="HEAD"||B==="BODY"||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&E.rel.toLowerCase()==="stylesheet"||i.removeChild(E),E=C}for(var X=e.type,z=i.attributes;z.length;)i.removeAttributeNode(z[0]);xt(i,X,r),i[de]=e,i[xe]=r}catch(re){Qe(e,e.return,re)}}case 5:if(rn(t,e),cn(e),a&512&&(nt||n===null||Qt(n,n.return)),e.flags&32){i=e.stateNode;try{sl(i,"")}catch(re){Qe(e,e.return,re)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,ah(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Ic=!0);break;case 6:if(rn(t,e),cn(e),a&4){if(e.stateNode===null)throw Error(f(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(re){Qe(e,e.return,re)}}break;case 3:if(nr=null,i=Sn,Sn=er(t.containerInfo),rn(t,e),Sn=i,cn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Gu(t.containerInfo)}catch(re){Qe(e,e.return,re)}Ic&&(Ic=!1,dh(e));break;case 4:a=Sn,Sn=er(e.stateNode.containerInfo),rn(t,e),cn(e),Sn=a;break;case 12:rn(t,e),cn(e);break;case 13:rn(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(of=St()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ef(e,a)));break;case 22:if(a&512&&(nt||n===null||Qt(n,n.return)),E=e.memoizedState!==null,C=n!==null&&n.memoizedState!==null,B=Zn,X=nt,Zn=B||E,nt=X||C,rn(t,e),nt=X,Zn=B,cn(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,a&8192&&(t._visibility=E?t._visibility&-2:t._visibility|1,E&&(t=Zn||nt,n===null||C||t||Ml(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(n=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(n===null){C=n=t;try{if(i=C.stateNode,E)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=C.stateNode,g=C.memoizedProps.style;var H=g!=null&&g.hasOwnProperty("display")?g.display:null;d.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(re){Qe(C,C.return,re)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=E?"":C.memoizedProps}catch(re){Qe(C,C.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ef(e,n))));break;case 19:rn(t,e),cn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ef(e,a)));break;case 21:break;default:rn(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var n=e.return;n!==null;){if(lh(n)){var a=n;break e}n=n.return}throw Error(f(160))}switch(a.tag){case 27:var i=a.stateNode,r=Wc(e);qi(e,r,i);break;case 5:var d=a.stateNode;a.flags&32&&(sl(d,""),a.flags&=-33);var g=Wc(e);qi(e,g,d);break;case 3:case 4:var E=a.stateNode.containerInfo,C=Wc(e);Pc(e,C,E);break;default:throw Error(f(161))}}}catch(B){Qe(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rh(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ya(4,t,t.return),Ml(t);break;case 1:Qt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&th(t,t.return,n),Ml(t);break;case 26:case 27:case 5:Qt(t,t.return),Ml(t);break;case 22:Qt(t,t.return),t.memoizedState===null&&Ml(t);break;default:Ml(t)}e=e.sibling}}function va(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:va(i,r,n),Tu(4,r);break;case 1:if(va(i,r,n),a=r,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Qe(a,a.return,C)}if(a=r,i=a.updateQueue,i!==null){var g=a.stateNode;try{var E=i.shared.hiddenCallbacks;if(E!==null)for(i.shared.hiddenCallbacks=null,i=0;i<E.length;i++)Pd(E[i],g)}catch(C){Qe(a,a.return,C)}}n&&d&64&&eh(r),Fa(r,r.return);break;case 26:case 27:case 5:va(i,r,n),n&&a===null&&d&4&&nh(r),Fa(r,r.return);break;case 12:va(i,r,n);break;case 13:va(i,r,n),n&&d&4&&oh(i,r);break;case 22:r.memoizedState===null&&va(i,r,n),Fa(r,r.return);break;default:va(i,r,n)}t=t.sibling}}function tf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&hu(n))}function nf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hu(e))}function ga(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hh(e,t,n,a),t=t.sibling}function hh(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:ga(e,t,n,a),i&2048&&Tu(9,t);break;case 3:ga(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hu(e)));break;case 12:if(i&2048){ga(e,t,n,a),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,g=r.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Qe(t,t.return,E)}}else ga(e,t,n,a);break;case 23:break;case 22:r=t.stateNode,t.memoizedState!==null?r._visibility&4?ga(e,t,n,a):xu(e,t):r._visibility&4?ga(e,t,n,a):(r._visibility|=4,Al(e,t,n,a,(t.subtreeFlags&10256)!==0)),i&2048&&tf(t.alternate,t);break;case 24:ga(e,t,n,a),i&2048&&nf(t.alternate,t);break;default:ga(e,t,n,a)}}function Al(e,t,n,a,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var r=e,d=t,g=n,E=a,C=d.flags;switch(d.tag){case 0:case 11:case 15:Al(r,d,g,E,i),Tu(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&4?Al(r,d,g,E,i):xu(r,d):(B._visibility|=4,Al(r,d,g,E,i)),i&&C&2048&&tf(d.alternate,d);break;case 24:Al(r,d,g,E,i),i&&C&2048&&nf(d.alternate,d);break;default:Al(r,d,g,E,i)}t=t.sibling}}function xu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:xu(n,a),i&2048&&tf(a.alternate,a);break;case 24:xu(n,a),i&2048&&nf(a.alternate,a);break;default:xu(n,a)}t=t.sibling}}var Ou=8192;function _l(e){if(e.subtreeFlags&Ou)for(e=e.child;e!==null;)mh(e),e=e.sibling}function mh(e){switch(e.tag){case 26:_l(e),e.flags&Ou&&e.memoizedState!==null&&ip(Sn,e.memoizedState,e.memoizedProps);break;case 5:_l(e);break;case 3:case 4:var t=Sn;Sn=er(e.stateNode.containerInfo),_l(e),Sn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ou,Ou=16777216,_l(e),Ou=t):_l(e));break;default:_l(e)}}function yh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Du(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];pt=a,gh(a,e)}yh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vh(e),e=e.sibling}function vh(e){switch(e.tag){case 0:case 11:case 15:Du(e),e.flags&2048&&ya(9,e,e.return);break;case 3:Du(e);break;case 12:Du(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,Yi(e)):Du(e);break;default:Du(e)}}function Yi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];pt=a,gh(a,e)}yh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ya(8,t,t.return),Yi(t);break;case 22:n=t.stateNode,n._visibility&4&&(n._visibility&=-5,Yi(t));break;default:Yi(t)}e=e.sibling}}function gh(e,t){for(;pt!==null;){var n=pt;switch(n.tag){case 0:case 11:case 15:ya(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:hu(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,pt=a;else e:for(n=e;pt!==null;){a=pt;var i=a.sibling,r=a.return;if(ch(a),a===n){pt=null;break e}if(i!==null){i.return=r,pt=i;break e}pt=r}}}function Eg(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(e,t,n,a){return new Eg(e,t,n,a)}function af(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,t){var n=e.alternate;return n===null?(n=fn(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&31457280,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.refCleanup=e.refCleanup,n}function ph(e,t){e.flags&=31457282;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gi(e,t,n,a,i,r){var d=0;if(a=e,typeof e=="function")af(e)&&(d=1);else if(typeof e=="string")d=lp(e,n,yt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case v:return Wa(n.children,i,r,t);case m:d=8,i|=24;break;case b:return e=fn(12,n,t,i|2),e.elementType=b,e.lanes=r,e;case q:return e=fn(13,n,t,i),e.elementType=q,e.lanes=r,e;case V:return e=fn(19,n,t,i),e.elementType=V,e.lanes=r,e;case K:return Eh(n,i,r,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:case D:d=10;break e;case S:d=9;break e;case N:d=11;break e;case U:d=14;break e;case Z:d=16,a=null;break e}d=29,n=Error(f(130,e===null?"null":typeof e,"")),a=null}return t=fn(d,n,t,i),t.elementType=e,t.type=a,t.lanes=r,t}function Wa(e,t,n,a){return e=fn(7,e,a,t),e.lanes=n,e}function Eh(e,t,n,a){e=fn(22,e,a,t),e.elementType=K,e.lanes=n;var i={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var r=i._current;if(r===null)throw Error(f(456));if(!(i._pendingVisibility&2)){var d=ia(r,2);d!==null&&(i._pendingVisibility|=2,wt(d,r,2))}},attach:function(){var r=i._current;if(r===null)throw Error(f(456));if(i._pendingVisibility&2){var d=ia(r,2);d!==null&&(i._pendingVisibility&=-3,wt(d,r,2))}}};return e.stateNode=i,e}function lf(e,t,n){return e=fn(6,e,null,t),e.lanes=n,e}function uf(e,t,n){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $n(e){e.flags|=4}function bh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!lm(t)){if(t=un.current,t!==null&&((ze&4194176)===ze?Cn!==null:(ze&62914560)!==ze&&!(ze&536870912)||t!==Cn))throw ou=oc,Hs;e.flags|=8192}}function Xi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_():536870912,e.lanes|=t,Nl|=t)}function Cu(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&31457280,a|=i.flags&31457280,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function bg(e,t,n){var a=t.pendingProps;switch(cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Qn(mt),zt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(iu(t)?$n(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bn!==null&&(mf(bn),bn=null))),We(t),null;case 26:return n=t.memoizedState,e===null?($n(t),n!==null?(We(t),bh(t,n)):(We(t),t.flags&=-16777217)):n?n!==e.memoizedState?($n(t),We(t),bh(t,n)):(We(t),t.flags&=-16777217):(e.memoizedProps!==a&&$n(t),We(t),t.flags&=-16777217),null;case 27:aa(t),n=et.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return We(t),null}e=yt.current,iu(t)?js(t):(e=Fh(i,a,n),t.stateNode=e,$n(t))}return We(t),null;case 5:if(aa(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return We(t),null}if(e=yt.current,iu(t))js(t);else{switch(i=Ii(et.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}e[de]=t,e[xe]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(xt(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&$n(t)}}return We(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(f(166));if(e=et.current,iu(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=_t,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[de]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Qh(e.nodeValue,n)),e||Ga(t)}else e=Ii(e).createTextNode(a),e[de]=t,t.stateNode=e}return We(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=iu(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(f(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(f(317));i[de]=t}else ru(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else bn!==null&&(mf(bn),bn=null),i=!0;if(!i)return t.flags&256?(Yn(t),t):(Yn(t),null)}if(Yn(t),t.flags&128)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool);var r=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==i&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Xi(t,t.updateQueue),We(t),null;case 4:return zt(),e===null&&Of(t.stateNode.containerInfo),We(t),null;case 10:return Qn(t.type),We(t),null;case 19:if(Se(ht),i=t.memoizedState,i===null)return We(t),null;if(a=(t.flags&128)!==0,r=i.rendering,r===null)if(a)Cu(i,!1);else{if(at!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=Oi(e),r!==null){for(t.flags|=128,Cu(i,!1),e=r.updateQueue,t.updateQueue=e,Xi(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ph(n,e),n=n.sibling;return De(ht,ht.current&1|2),t.child}e=e.sibling}i.tail!==null&&St()>Vi&&(t.flags|=128,a=!0,Cu(i,!1),t.lanes=4194304)}else{if(!a)if(e=Oi(r),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Xi(t,e),Cu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!r.alternate&&!Ue)return We(t),null}else 2*St()-i.renderingStartTime>Vi&&n!==536870912&&(t.flags|=128,a=!0,Cu(i,!1),t.lanes=4194304);i.isBackwards?(r.sibling=t.child,t.child=r):(e=i.last,e!==null?e.sibling=r:t.child=r,i.last=r)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=St(),t.sibling=null,e=ht.current,De(ht,a?e&1|2:e&1),t):(We(t),null);case 22:case 23:return Yn(t),dc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),n=t.updateQueue,n!==null&&Xi(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Se(Va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qn(mt),We(t),null;case 25:return null}throw Error(f(156,t.tag))}function Sg(e,t){switch(cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(mt),zt(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return aa(t),null;case 13:if(Yn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));ru()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(ht),null;case 4:return zt(),null;case 10:return Qn(t.type),null;case 22:case 23:return Yn(t),dc(),e!==null&&Se(Va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qn(mt),null;case 25:return null;default:return null}}function Sh(e,t){switch(cc(t),t.tag){case 3:Qn(mt),zt();break;case 26:case 27:case 5:aa(t);break;case 4:zt();break;case 13:Yn(t);break;case 19:Se(ht);break;case 10:Qn(t.type);break;case 22:case 23:Yn(t),dc(),e!==null&&Se(Va);break;case 24:Qn(mt)}}var Rg={getCacheForType:function(e){var t=Dt(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Tg=typeof WeakMap=="function"?WeakMap:Map,Pe=0,Ze=null,Ae=null,ze=0,Ke=0,Kt=null,Jn=!1,wl=!1,rf=!1,Fn=0,at=0,Ea=0,Pa=0,cf=0,on=0,Nl=0,Mu=null,An=null,ff=!1,of=0,Vi=1/0,Qi=null,ba=null,Zi=!1,Ia=null,Au=0,sf=0,df=null,_u=0,hf=null;function kt(){if(Pe&2&&ze!==0)return ze&-ze;if($.T!==null){var e=Tl;return e!==0?e:Sf()}return ue()}function Rh(){on===0&&(on=!(ze&536870912)||Ue?T():536870912);var e=un.current;return e!==null&&(e.flags|=32),on}function wt(e,t,n){(e===Ze&&Ke===2||e.cancelPendingCommit!==null)&&(zl(e,0),Wn(e,ze,on,!1)),Q(e,n),(!(Pe&2)||e!==Ze)&&(e===Ze&&(!(Pe&2)&&(Pa|=n),at===4&&Wn(e,ze,on,!1)),_n(e))}function Th(e,t,n){if(Pe&6)throw Error(f(327));var a=!n&&(t&60)===0&&(t&e.expiredLanes)===0||Ua(e,t),i=a?Dg(e,t):gf(e,t,!0),r=a;do{if(i===0){wl&&!a&&Wn(e,t,0,!1);break}else if(i===6)Wn(e,t,0,!Jn);else{if(n=e.current.alternate,r&&!xg(n)){i=gf(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;i=Mu;var E=g.current.memoizedState.isDehydrated;if(E&&(zl(g,d).flags|=256),d=gf(g,d,!1),d!==2){if(rf&&!E){g.errorRecoveryDisabledLanes|=r,Pa|=r,i=4;break e}r=An,An=i,r!==null&&mf(r)}i=d}if(r=!1,i!==2)continue}}if(i===1){zl(e,0),Wn(e,t,0,!0);break}e:{switch(a=e,i){case 0:case 1:throw Error(f(345));case 4:if((t&4194176)===t){Wn(a,t,on,!Jn);break e}break;case 2:An=null;break;case 3:case 5:break;default:throw Error(f(329))}if(a.finishedWork=n,a.finishedLanes=t,(t&62914560)===t&&(r=of+300-St(),10<r)){if(Wn(a,t,on,!Jn),Un(a,0)!==0)break e;a.timeoutHandle=kh(xh.bind(null,a,n,An,Qi,ff,t,on,Pa,Nl,Jn,2,-0,0),r);break e}xh(a,n,An,Qi,ff,t,on,Pa,Nl,Jn,0,-0,0)}}break}while(!0);_n(e)}function mf(e){An===null?An=e:An.push.apply(An,e)}function xh(e,t,n,a,i,r,d,g,E,C,B,X,z){var H=t.subtreeFlags;if((H&8192||(H&16785408)===16785408)&&(Lu={stylesheets:null,count:0,unsuspend:up},mh(t),t=rp(),t!==null)){e.cancelPendingCommit=t(wh.bind(null,e,n,a,i,d,g,E,1,X,z)),Wn(e,r,d,!C);return}wh(e,n,a,i,d,g,E,B,X,z)}function xg(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],r=i.getSnapshot;i=i.value;try{if(!Vt(r(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wn(e,t,n,a){t&=~cf,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var r=31-Ot(i),d=1<<r;a[r]=-1,i&=~d}n!==0&&ce(e,n,t)}function Ki(){return Pe&6?!0:(wu(0),!1)}function yf(){if(Ae!==null){if(Ke===0)var e=Ae.return;else e=Ae,Vn=$a=null,bc(e),Sl=null,su=0,e=Ae;for(;e!==null;)Sh(e.alternate,e),e=e.return;Ae=null}}function zl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Vg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yf(),Ze=e,Ae=n=pa(e.current,null),ze=t,Ke=0,Kt=null,Jn=!1,wl=Ua(e,t),rf=!1,Nl=on=cf=Pa=Ea=at=0,An=Mu=null,ff=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Ot(a),r=1<<i;t|=e[i],a&=~r}return Fn=t,vi(),n}function Oh(e,t){Oe=null,$.H=Mn,t===fu?(t=Ys(),Ke=3):t===Hs?(t=Ys(),Ke=4):Ke=t===Bd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,Ae===null&&(at=1,Li(e,nn(t,e.current)))}function Dh(){var e=$.H;return $.H=Mn,e===null?Mn:e}function Ch(){var e=$.A;return $.A=Rg,e}function vf(){at=4,Jn||(ze&4194176)!==ze&&un.current!==null||(wl=!0),!(Ea&134217727)&&!(Pa&134217727)||Ze===null||Wn(Ze,ze,on,!1)}function gf(e,t,n){var a=Pe;Pe|=2;var i=Dh(),r=Ch();(Ze!==e||ze!==t)&&(Qi=null,zl(e,t)),t=!1;var d=at;e:do try{if(Ke!==0&&Ae!==null){var g=Ae,E=Kt;switch(Ke){case 8:yf(),d=6;break e;case 3:case 2:case 6:un.current===null&&(t=!0);var C=Ke;if(Ke=0,Kt=null,Ul(e,g,E,C),n&&wl){d=0;break e}break;default:C=Ke,Ke=0,Kt=null,Ul(e,g,E,C)}}Og(),d=at;break}catch(B){Oh(e,B)}while(!0);return t&&e.shellSuspendCounter++,Vn=$a=null,Pe=a,$.H=i,$.A=r,Ae===null&&(Ze=null,ze=0,vi()),d}function Og(){for(;Ae!==null;)Mh(Ae)}function Dg(e,t){var n=Pe;Pe|=2;var a=Dh(),i=Ch();Ze!==e||ze!==t?(Qi=null,Vi=St()+500,zl(e,t)):wl=Ua(e,t);e:do try{if(Ke!==0&&Ae!==null){t=Ae;var r=Kt;t:switch(Ke){case 1:Ke=0,Kt=null,Ul(e,t,r,1);break;case 2:if(Bs(r)){Ke=0,Kt=null,Ah(t);break}t=function(){Ke===2&&Ze===e&&(Ke=7),_n(e)},r.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Bs(r)?(Ke=0,Kt=null,Ah(t)):(Ke=0,Kt=null,Ul(e,t,r,7));break;case 5:var d=null;switch(Ae.tag){case 26:d=Ae.memoizedState;case 5:case 27:var g=Ae;if(!d||lm(d)){Ke=0,Kt=null;var E=g.sibling;if(E!==null)Ae=E;else{var C=g.return;C!==null?(Ae=C,ki(C)):Ae=null}break t}}Ke=0,Kt=null,Ul(e,t,r,5);break;case 6:Ke=0,Kt=null,Ul(e,t,r,6);break;case 8:yf(),at=6;break e;default:throw Error(f(462))}}Cg();break}catch(B){Oh(e,B)}while(!0);return Vn=$a=null,$.H=a,$.A=i,Pe=n,Ae!==null?0:(Ze=null,ze=0,vi(),at)}function Cg(){for(;Ae!==null&&!zn();)Mh(Ae)}function Mh(e){var t=Fd(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?ki(e):Ae=t}function Ah(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qd(n,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Qd(n,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:bc(t);default:Sh(n,t),t=Ae=ph(t,Fn),t=Fd(n,t,Fn)}e.memoizedProps=e.pendingProps,t===null?ki(e):Ae=t}function Ul(e,t,n,a){Vn=$a=null,bc(t),Sl=null,su=0;var i=t.return;try{if(yg(e,i,t,n,ze)){at=1,Li(e,nn(n,e.current)),Ae=null;return}}catch(r){if(i!==null)throw Ae=i,r;at=1,Li(e,nn(n,e.current)),Ae=null;return}t.flags&32768?(Ue||a===1?e=!0:wl||ze&536870912?e=!1:(Jn=e=!0,(a===2||a===3||a===6)&&(a=un.current,a!==null&&a.tag===13&&(a.flags|=16384))),_h(t,e)):ki(t)}function ki(e){var t=e;do{if(t.flags&32768){_h(t,Jn);return}e=t.return;var n=bg(t.alternate,t,Fn);if(n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);at===0&&(at=5)}function _h(e,t){do{var n=Sg(e.alternate,e);if(n!==null){n.flags&=32767,Ae=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=n}while(e!==null);at=6,Ae=null}function wh(e,t,n,a,i,r,d,g,E,C){var B=$.T,X=J.p;try{J.p=2,$.T=null,Mg(e,t,n,a,X,i,r,d,g,E,C)}finally{$.T=B,J.p=X}}function Mg(e,t,n,a,i,r,d,g){do jl();while(Ia!==null);if(Pe&6)throw Error(f(327));var E=e.finishedWork;if(a=e.finishedLanes,E===null)return null;if(e.finishedWork=null,e.finishedLanes=0,E===e.current)throw Error(f(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var C=E.lanes|E.childLanes;if(C|=uc,ee(e,a,C,r,d,g),e===Ze&&(Ae=Ze=null,ze=0),!(E.subtreeFlags&10256)&&!(E.flags&10256)||Zi||(Zi=!0,sf=C,df=n,Ng(mn,function(){return jl(),null})),n=(E.flags&15990)!==0,E.subtreeFlags&15990||n?(n=$.T,$.T=null,r=J.p,J.p=2,d=Pe,Pe|=4,gg(e,E),sh(E,e),Pv(Af,e.containerInfo),ur=!!Mf,Af=Mf=null,e.current=E,rh(e,E.alternate,E),cl(),Pe=d,J.p=r,$.T=n):e.current=E,Zi?(Zi=!1,Ia=e,Au=a):Nh(e,C),C=e.pendingLanes,C===0&&(ba=null),ai(E.stateNode),_n(e),t!==null)for(i=e.onRecoverableError,E=0;E<t.length;E++)C=t[E],i(C.value,{componentStack:C.stack});return Au&3&&jl(),C=e.pendingLanes,a&4194218&&C&42?e===hf?_u++:(_u=0,hf=e):_u=0,wu(0),null}function Nh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hu(t)))}function jl(){if(Ia!==null){var e=Ia,t=sf;sf=0;var n=ne(Au),a=$.T,i=J.p;try{if(J.p=32>n?32:n,$.T=null,Ia===null)var r=!1;else{n=df,df=null;var d=Ia,g=Au;if(Ia=null,Au=0,Pe&6)throw Error(f(331));var E=Pe;if(Pe|=4,vh(d.current),hh(d,d.current,g,n),Pe=E,wu(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(la,d)}catch{}r=!0}return r}finally{J.p=i,$.T=a,Nh(e,t)}}return!1}function zh(e,t,n){t=nn(n,t),t=Uc(e.stateNode,t,2),e=ma(e,t,2),e!==null&&(Q(e,2),_n(e))}function Qe(e,t,n){if(e.tag===3)zh(e,e,n);else for(;t!==null;){if(t.tag===3){zh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ba===null||!ba.has(a))){e=nn(n,e),n=Ld(2),a=ma(t,n,2),a!==null&&(Hd(n,a,t,e),Q(a,2),_n(a));break}}t=t.return}}function pf(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(rf=!0,i.add(n),e=Ag.bind(null,e,t,n),t.then(e,e))}function Ag(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(ze&n)===n&&(at===4||at===3&&(ze&62914560)===ze&&300>St()-of?!(Pe&2)&&zl(e,0):cf|=n,Nl===ze&&(Nl=0)),_n(e)}function Uh(e,t){t===0&&(t=_()),e=ia(e,t),e!==null&&(Q(e,t),_n(e))}function _g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uh(e,n)}function wg(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(t),Uh(e,n)}function Ng(e,t){return Na(e,t)}var $i=null,Ll=null,Ef=!1,Ji=!1,bf=!1,el=0;function _n(e){e!==Ll&&e.next===null&&(Ll===null?$i=Ll=e:Ll=Ll.next=e),Ji=!0,Ef||(Ef=!0,Ug(zg))}function wu(e,t){if(!bf&&Ji){bf=!0;do for(var n=!1,a=$i;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var r=0;else{var d=a.suspendedLanes,g=a.pingedLanes;r=(1<<31-Ot(42|e)+1)-1,r&=i&~(d&~g),r=r&201326677?r&201326677|1:r?r|2:0}r!==0&&(n=!0,Hh(a,r))}else r=ze,r=Un(a,a===Ze?r:0),!(r&3)||Ua(a,r)||(n=!0,Hh(a,r));a=a.next}while(n);bf=!1}}function zg(){Ji=Ef=!1;var e=0;el!==0&&(Xg()&&(e=el),el=0);for(var t=St(),n=null,a=$i;a!==null;){var i=a.next,r=jh(a,t);r===0?(a.next=null,n===null?$i=i:n.next=i,i===null&&(Ll=n)):(n=a,(e!==0||r&3)&&(Ji=!0)),a=i}wu(e)}function jh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-Ot(r),g=1<<d,E=i[d];E===-1?(!(g&n)||g&a)&&(i[d]=Br(g,t)):E<=t&&(e.expiredLanes|=g),r&=~g}if(t=Ze,n=ze,n=Un(e,e===t?n:0),a=e.callbackNode,n===0||e===t&&Ke===2||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Yt(a),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ua(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Yt(a),ne(n)){case 2:case 8:n=Wt;break;case 32:n=mn;break;case 268435456:n=yn;break;default:n=mn}return a=Lh.bind(null,e),n=Na(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Yt(a),e.callbackPriority=2,e.callbackNode=null,2}function Lh(e,t){var n=e.callbackNode;if(jl()&&e.callbackNode!==n)return null;var a=ze;return a=Un(e,e===Ze?a:0),a===0?null:(Th(e,a,t),jh(e,St()),e.callbackNode!=null&&e.callbackNode===n?Lh.bind(null,e):null)}function Hh(e,t){if(jl())return null;Th(e,t,!0)}function Ug(e){Qg(function(){Pe&6?Na(be,e):e()})}function Sf(){return el===0&&(el=T()),el}function Bh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fi(""+e)}function qh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function jg(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var r=Bh((i[xe]||null).action),d=a.submitter;d&&(t=(t=d[xe]||null)?Bh(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var g=new hi("action","action",null,a,i);e.push({event:g,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(el!==0){var E=d?qh(i,d):new FormData(i);Ac(n,{pending:!0,data:E,method:i.method,action:r},null,E)}}else typeof r=="function"&&(g.preventDefault(),E=d?qh(i,d):new FormData(i),Ac(n,{pending:!0,data:E,method:i.method,action:r},r,E))},currentTarget:i}]})}}for(var Rf=0;Rf<ws.length;Rf++){var Tf=ws[Rf],Lg=Tf.toLowerCase(),Hg=Tf[0].toUpperCase()+Tf.slice(1);En(Lg,"on"+Hg)}En(Ds,"onAnimationEnd"),En(Cs,"onAnimationIteration"),En(Ms,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(eg,"onTransitionRun"),En(tg,"onTransitionStart"),En(ng,"onTransitionCancel"),En(As,"onTransitionEnd"),pn("onMouseEnter",["mouseout","mouseover"]),pn("onMouseLeave",["mouseout","mouseover"]),pn("onPointerEnter",["pointerout","pointerover"]),pn("onPointerLeave",["pointerout","pointerover"]),$e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$e("onBeforeInput",["compositionend","keypress","textInput","paste"]),$e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function Yh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var d=a.length-1;0<=d;d--){var g=a[d],E=g.instance,C=g.currentTarget;if(g=g.listener,E!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=C;try{r(i)}catch(B){ji(B)}i.currentTarget=null,r=E}else for(d=0;d<a.length;d++){if(g=a[d],E=g.instance,C=g.currentTarget,g=g.listener,E!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=C;try{r(i)}catch(B){ji(B)}i.currentTarget=null,r=E}}}}function we(e,t){var n=t[Xe];n===void 0&&(n=t[Xe]=new Set);var a=e+"__bubble";n.has(a)||(Gh(t,e,2,!1),n.add(a))}function xf(e,t,n){var a=0;t&&(a|=4),Gh(n,e,a,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function Of(e){if(!e[Fi]){e[Fi]=!0,ja.forEach(function(n){n!=="selectionchange"&&(Bg.has(n)||xf(n,!1,e),xf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,xf("selectionchange",!1,t))}}function Gh(e,t,n,a){switch(om(t)){case 2:var i=op;break;case 8:i=sp;break;default:i=Bf}n=i.bind(null,t,n,e),i=void 0,!Kr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Df(e,t,n,a,i){var r=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var g=a.stateNode.containerInfo;if(g===i||g.nodeType===8&&g.parentNode===i)break;if(d===4)for(d=a.return;d!==null;){var E=d.tag;if((E===3||E===4)&&(E=d.stateNode.containerInfo,E===i||E.nodeType===8&&E.parentNode===i))return;d=d.return}for(;g!==null;){if(d=vt(g),d===null)return;if(E=d.tag,E===5||E===6||E===26||E===27){a=r=d;continue e}g=g.parentNode}}a=a.return}ns(function(){var C=r,B=Qr(n),X=[];e:{var z=_s.get(e);if(z!==void 0){var H=hi,re=e;switch(e){case"keypress":if(si(n)===0)break e;case"keydown":case"keyup":H=wv;break;case"focusin":re="focus",H=Fr;break;case"focusout":re="blur",H=Fr;break;case"beforeblur":case"afterblur":H=Fr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=us;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Uv;break;case Ds:case Cs:case Ms:H=Rv;break;case As:H=Lv;break;case"scroll":case"scrollend":H=gv;break;case"wheel":H=Bv;break;case"copy":case"cut":case"paste":H=xv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=rs;break;case"toggle":case"beforetoggle":H=Yv}var Ee=(t&4)!==0,lt=!Ee&&(e==="scroll"||e==="scrollend"),A=Ee?z!==null?z+"Capture":null:z;Ee=[];for(var O=C,w;O!==null;){var Y=O;if(w=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||w===null||A===null||(Y=Wl(O,A),Y!=null&&Ee.push(zu(O,Y,w))),lt)break;O=O.return}0<Ee.length&&(z=new H(z,re,null,n,B),X.push({event:z,listeners:Ee}))}}if(!(t&7)){e:{if(z=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",z&&n!==Vr&&(re=n.relatedTarget||n.fromElement)&&(vt(re)||re[ke]))break e;if((H||z)&&(z=B.window===B?B:(z=B.ownerDocument)?z.defaultView||z.parentWindow:window,H?(re=n.relatedTarget||n.toElement,H=C,re=re?vt(re):null,re!==null&&(lt=W(re),Ee=re.tag,re!==lt||Ee!==5&&Ee!==27&&Ee!==6)&&(re=null)):(H=null,re=C),H!==re)){if(Ee=us,Y="onMouseLeave",A="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=rs,Y="onPointerLeave",A="onPointerEnter",O="pointer"),lt=H==null?z:gn(H),w=re==null?z:gn(re),z=new Ee(Y,O+"leave",H,n,B),z.target=lt,z.relatedTarget=w,Y=null,vt(B)===C&&(Ee=new Ee(A,O+"enter",re,n,B),Ee.target=w,Ee.relatedTarget=lt,Y=Ee),lt=Y,H&&re)t:{for(Ee=H,A=re,O=0,w=Ee;w;w=Hl(w))O++;for(w=0,Y=A;Y;Y=Hl(Y))w++;for(;0<O-w;)Ee=Hl(Ee),O--;for(;0<w-O;)A=Hl(A),w--;for(;O--;){if(Ee===A||A!==null&&Ee===A.alternate)break t;Ee=Hl(Ee),A=Hl(A)}Ee=null}else Ee=null;H!==null&&Xh(X,z,H,Ee,!1),re!==null&&lt!==null&&Xh(X,lt,re,Ee,!0)}}e:{if(z=C?gn(C):window,H=z.nodeName&&z.nodeName.toLowerCase(),H==="select"||H==="input"&&z.type==="file")var ae=ys;else if(hs(z))if(vs)ae=Fv;else{ae=$v;var Ce=kv}else H=z.nodeName,!H||H.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Xr(C.elementType)&&(ae=ys):ae=Jv;if(ae&&(ae=ae(e,C))){ms(X,ae,n,B);break e}Ce&&Ce(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&Gr(z,"number",z.value)}switch(Ce=C?gn(C):window,e){case"focusin":(hs(Ce)||Ce.contentEditable==="true")&&(yl=Ce,nc=C,uu=null);break;case"focusout":uu=nc=yl=null;break;case"mousedown":ac=!0;break;case"contextmenu":case"mouseup":case"dragend":ac=!1,xs(X,n,B);break;case"selectionchange":if(Iv)break;case"keydown":case"keyup":xs(X,n,B)}var fe;if(Pr)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ml?ss(e,n)&&(ye="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ye="onCompositionStart");ye&&(cs&&n.locale!=="ko"&&(ml||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ml&&(fe=as()):(ua=B,kr="value"in ua?ua.value:ua.textContent,ml=!0)),Ce=Wi(C,ye),0<Ce.length&&(ye=new is(ye,e,null,n,B),X.push({event:ye,listeners:Ce}),fe?ye.data=fe:(fe=ds(n),fe!==null&&(ye.data=fe)))),(fe=Xv?Vv(e,n):Qv(e,n))&&(ye=Wi(C,"onBeforeInput"),0<ye.length&&(Ce=new is("onBeforeInput","beforeinput",null,n,B),X.push({event:Ce,listeners:ye}),Ce.data=fe)),jg(X,e,C,n,B)}Yh(X,t)})}function zu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wi(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,r=i.stateNode;i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=Wl(e,n),i!=null&&a.unshift(zu(e,i,r)),i=Wl(e,t),i!=null&&a.push(zu(e,i,r))),e=e.return}return a}function Hl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xh(e,t,n,a,i){for(var r=t._reactName,d=[];n!==null&&n!==a;){var g=n,E=g.alternate,C=g.stateNode;if(g=g.tag,E!==null&&E===a)break;g!==5&&g!==26&&g!==27||C===null||(E=C,i?(C=Wl(n,r),C!=null&&d.unshift(zu(n,C,E))):i||(C=Wl(n,r),C!=null&&d.push(zu(n,C,E)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var qg=/\r\n?/g,Yg=/\u0000|\uFFFD/g;function Vh(e){return(typeof e=="string"?e:""+e).replace(qg,`
-`).replace(Yg,"")}function Qh(e,t){return t=Vh(t),Vh(e)===t}function Pi(){}function Ye(e,t,n,a,i,r){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||sl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&sl(e,""+a);break;case"className":ii(e,"class",a);break;case"tabIndex":ii(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,n,a);break;case"style":es(e,a,r);break;case"data":if(t!=="object"){ii(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=fi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&Ye(e,t,"name",i.name,i,null),Ye(e,t,"formEncType",i.formEncType,i,null),Ye(e,t,"formMethod",i.formMethod,i,null),Ye(e,t,"formTarget",i.formTarget,i,null)):(Ye(e,t,"encType",i.encType,i,null),Ye(e,t,"method",i.method,i,null),Ye(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=fi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Pi);break;case"onScroll":a!=null&&we("scroll",e);break;case"onScrollEnd":a!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(f(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=fi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":we("beforetoggle",e),we("toggle",e),ui(e,"popover",a);break;case"xlinkActuate":Hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Hn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Hn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Hn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Hn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ui(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=yv.get(n)||n,ui(e,n,a))}}function Cf(e,t,n,a,i,r){switch(n){case"style":es(e,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(f(60));e.innerHTML=n}}break;case"children":typeof a=="string"?sl(e,a):(typeof a=="number"||typeof a=="bigint")&&sl(e,""+a);break;case"onScroll":a!=null&&we("scroll",e);break;case"onScrollEnd":a!=null&&we("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Pi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Be.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),r=e[xe]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof a=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):ui(e,n,a)}}}function xt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var a=!1,i=!1,r;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:Ye(e,t,r,d,n,null)}}i&&Ye(e,t,"srcSet",n.srcSet,n,null),a&&Ye(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var g=r=d=i=null,E=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var B=n[a];if(B!=null)switch(a){case"name":i=B;break;case"type":d=B;break;case"checked":E=B;break;case"defaultChecked":C=B;break;case"value":r=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(f(137,t));break;default:Ye(e,t,a,B,n,null)}}Fo(e,r,g,E,C,d,i,!1),ri(e);return;case"select":we("invalid",e),a=d=r=null;for(i in n)if(n.hasOwnProperty(i)&&(g=n[i],g!=null))switch(i){case"value":r=g;break;case"defaultValue":d=g;break;case"multiple":a=g;default:Ye(e,t,i,g,n,null)}t=r,n=d,e.multiple=!!a,t!=null?ol(e,!!a,t,!1):n!=null&&ol(e,!!a,n,!0);return;case"textarea":we("invalid",e),r=i=a=null;for(d in n)if(n.hasOwnProperty(d)&&(g=n[d],g!=null))switch(d){case"value":a=g;break;case"defaultValue":i=g;break;case"children":r=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(f(91));break;default:Ye(e,t,d,g,n,null)}Po(e,a,i,r),ri(e);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(a=n[E],a!=null))switch(E){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ye(e,t,E,a,n,null)}return;case"dialog":we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(a=0;a<Nu.length;a++)we(Nu[a],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:Ye(e,t,C,a,n,null)}return;default:if(Xr(t)){for(B in n)n.hasOwnProperty(B)&&(a=n[B],a!==void 0&&Cf(e,t,B,a,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(a=n[g],a!=null&&Ye(e,t,g,a,n,null))}function Gg(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,d=null,g=null,E=null,C=null,B=null;for(H in n){var X=n[H];if(n.hasOwnProperty(H)&&X!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":E=X;default:a.hasOwnProperty(H)||Ye(e,t,H,null,a,X)}}for(var z in a){var H=a[z];if(X=n[z],a.hasOwnProperty(z)&&(H!=null||X!=null))switch(z){case"type":r=H;break;case"name":i=H;break;case"checked":C=H;break;case"defaultChecked":B=H;break;case"value":d=H;break;case"defaultValue":g=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(f(137,t));break;default:H!==X&&Ye(e,t,z,H,a,X)}}Yr(e,d,g,E,C,B,r,i);return;case"select":H=d=g=z=null;for(r in n)if(E=n[r],n.hasOwnProperty(r)&&E!=null)switch(r){case"value":break;case"multiple":H=E;default:a.hasOwnProperty(r)||Ye(e,t,r,null,a,E)}for(i in a)if(r=a[i],E=n[i],a.hasOwnProperty(i)&&(r!=null||E!=null))switch(i){case"value":z=r;break;case"defaultValue":g=r;break;case"multiple":d=r;default:r!==E&&Ye(e,t,i,r,a,E)}t=g,n=d,a=H,z!=null?ol(e,!!n,z,!1):!!a!=!!n&&(t!=null?ol(e,!!n,t,!0):ol(e,!!n,n?[]:"",!1));return;case"textarea":H=z=null;for(g in n)if(i=n[g],n.hasOwnProperty(g)&&i!=null&&!a.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ye(e,t,g,null,a,i)}for(d in a)if(i=a[d],r=n[d],a.hasOwnProperty(d)&&(i!=null||r!=null))switch(d){case"value":z=i;break;case"defaultValue":H=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(f(91));break;default:i!==r&&Ye(e,t,d,i,a,r)}Wo(e,z,H);return;case"option":for(var re in n)if(z=n[re],n.hasOwnProperty(re)&&z!=null&&!a.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Ye(e,t,re,null,a,z)}for(E in a)if(z=a[E],H=n[E],a.hasOwnProperty(E)&&z!==H&&(z!=null||H!=null))switch(E){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ye(e,t,E,z,a,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in n)z=n[Ee],n.hasOwnProperty(Ee)&&z!=null&&!a.hasOwnProperty(Ee)&&Ye(e,t,Ee,null,a,z);for(C in a)if(z=a[C],H=n[C],a.hasOwnProperty(C)&&z!==H&&(z!=null||H!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(137,t));break;default:Ye(e,t,C,z,a,H)}return;default:if(Xr(t)){for(var lt in n)z=n[lt],n.hasOwnProperty(lt)&&z!==void 0&&!a.hasOwnProperty(lt)&&Cf(e,t,lt,void 0,a,z);for(B in a)z=a[B],H=n[B],!a.hasOwnProperty(B)||z===H||z===void 0&&H===void 0||Cf(e,t,B,z,a,H);return}}for(var A in n)z=n[A],n.hasOwnProperty(A)&&z!=null&&!a.hasOwnProperty(A)&&Ye(e,t,A,null,a,z);for(X in a)z=a[X],H=n[X],!a.hasOwnProperty(X)||z===H||z==null&&H==null||Ye(e,t,X,z,a,H)}var Mf=null,Af=null;function Ii(e){return e.nodeType===9?e:e.ownerDocument}function Zh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function _f(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wf=null;function Xg(){var e=window.event;return e&&e.type==="popstate"?e===wf?!1:(wf=e,!0):(wf=null,!1)}var kh=typeof setTimeout=="function"?setTimeout:void 0,Vg=typeof clearTimeout=="function"?clearTimeout:void 0,$h=typeof Promise=="function"?Promise:void 0,Qg=typeof queueMicrotask=="function"?queueMicrotask:typeof $h<"u"?function(e){return $h.resolve(null).then(e).catch(Zg)}:kh;function Zg(e){setTimeout(function(){throw e})}function Nf(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(a===0){e.removeChild(i),Gu(t);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=i}while(n);Gu(t)}function zf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":zf(n),Xt(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Kg(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[vn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Rn(e.nextSibling),e===null)break}return null}function kg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Rn(e.nextSibling),e===null))return null;return e}function Rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function Jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Fh(e,t,n){switch(t=Ii(n),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}var sn=new Map,Wh=new Set;function er(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Pn=J.d;J.d={f:$g,r:Jg,D:Fg,C:Wg,L:Pg,m:Ig,X:tp,S:ep,M:np};function $g(){var e=Pn.f(),t=Ki();return e||t}function Jg(e){var t=On(e);t!==null&&t.tag===5&&t.type==="form"?xd(t):Pn.r(e)}var Bl=typeof document>"u"?null:document;function Ph(e,t,n){var a=Bl;if(a&&typeof t=="string"&&t){var i=en(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Wh.has(i)||(Wh.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),xt(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Fg(e){Pn.D(e),Ph("dns-prefetch",e,null)}function Wg(e,t){Pn.C(e,t),Ph("preconnect",e,t)}function Pg(e,t,n){Pn.L(e,t,n);var a=Bl;if(a&&e&&t){var i='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+en(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+en(n.imageSizes)+'"]')):i+='[href="'+en(e)+'"]';var r=i;switch(t){case"style":r=ql(e);break;case"script":r=Yl(e)}sn.has(r)||(e=ie({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),sn.set(r,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Uu(r))||t==="script"&&a.querySelector(ju(r))||(t=a.createElement("link"),xt(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Ig(e,t){Pn.m(e,t);var n=Bl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+en(a)+'"][href="'+en(e)+'"]',r=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Yl(e)}if(!sn.has(r)&&(e=ie({rel:"modulepreload",href:e},t),sn.set(r,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ju(r)))return}a=n.createElement("link"),xt(a,"link",e),Fe(a),n.head.appendChild(a)}}}function ep(e,t,n){Pn.S(e,t,n);var a=Bl;if(a&&e){var i=Ut(a).hoistableStyles,r=ql(e);t=t||"default";var d=i.get(r);if(!d){var g={loading:0,preload:null};if(d=a.querySelector(Uu(r)))g.loading=5;else{e=ie({rel:"stylesheet",href:e,"data-precedence":t},n),(n=sn.get(r))&&Uf(e,n);var E=d=a.createElement("link");Fe(E),xt(E,"link",e),E._p=new Promise(function(C,B){E.onload=C,E.onerror=B}),E.addEventListener("load",function(){g.loading|=1}),E.addEventListener("error",function(){g.loading|=2}),g.loading|=4,tr(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:g},i.set(r,d)}}}function tp(e,t){Pn.X(e,t);var n=Bl;if(n&&e){var a=Ut(n).hoistableScripts,i=Yl(e),r=a.get(i);r||(r=n.querySelector(ju(i)),r||(e=ie({src:e,async:!0},t),(t=sn.get(i))&&jf(e,t),r=n.createElement("script"),Fe(r),xt(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function np(e,t){Pn.M(e,t);var n=Bl;if(n&&e){var a=Ut(n).hoistableScripts,i=Yl(e),r=a.get(i);r||(r=n.querySelector(ju(i)),r||(e=ie({src:e,async:!0,type:"module"},t),(t=sn.get(i))&&jf(e,t),r=n.createElement("script"),Fe(r),xt(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function Ih(e,t,n,a){var i=(i=et.current)?er(i):null;if(!i)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ql(n.href),n=Ut(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ql(n.href);var r=Ut(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector(Uu(e)))&&!r._p&&(d.instance=r,d.state.loading=5),sn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},sn.set(e,n),r||ap(i,e,n,d.state))),t&&a===null)throw Error(f(528,""));return d}if(t&&a!==null)throw Error(f(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yl(n),n=Ut(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function ql(e){return'href="'+en(e)+'"'}function Uu(e){return'link[rel="stylesheet"]['+e+"]"}function em(e){return ie({},e,{"data-precedence":e.precedence,precedence:null})}function ap(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),xt(t,"link",n),Fe(t),e.head.appendChild(t))}function Yl(e){return'[src="'+en(e)+'"]'}function ju(e){return"script[async]"+e}function tm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+en(n.href)+'"]');if(a)return t.instance=a,Fe(a),a;var i=ie({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Fe(a),xt(a,"style",i),tr(a,n.precedence,e),t.instance=a;case"stylesheet":i=ql(n.href);var r=e.querySelector(Uu(i));if(r)return t.state.loading|=4,t.instance=r,Fe(r),r;a=em(n),(i=sn.get(i))&&Uf(a,i),r=(e.ownerDocument||e).createElement("link"),Fe(r);var d=r;return d._p=new Promise(function(g,E){d.onload=g,d.onerror=E}),xt(r,"link",a),t.state.loading|=4,tr(r,n.precedence,e),t.instance=r;case"script":return r=Yl(n.src),(i=e.querySelector(ju(r)))?(t.instance=i,Fe(i),i):(a=n,(i=sn.get(r))&&(a=ie({},n),jf(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Fe(i),xt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,tr(a,n.precedence,e));return t.instance}function tr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,r=i,d=0;d<a.length;d++){var g=a[d];if(g.dataset.precedence===t)r=g;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nr=null;function nm(e,t,n){if(nr===null){var a=new Map,i=nr=new Map;i.set(n,a)}else i=nr,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var r=n[i];if(!(r[vn]||r[de]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var g=a.get(d);g?g.push(r):a.set(d,[r])}}return a}function am(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function lp(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lm(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Lu=null;function up(){}function ip(e,t,n){if(Lu===null)throw Error(f(475));var a=Lu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=ql(n.href),r=e.querySelector(Uu(i));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=ar.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=r,Fe(r);return}r=e.ownerDocument||e,n=em(n),(i=sn.get(i))&&Uf(n,i),r=r.createElement("link"),Fe(r);var d=r;d._p=new Promise(function(g,E){d.onload=g,d.onerror=E}),xt(r,"link",n),t.instance=r}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(a.count++,t=ar.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function rp(){if(Lu===null)throw Error(f(475));var e=Lu;return e.stylesheets&&e.count===0&&Lf(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Lf(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function ar(){if(this.count--,this.count===0){if(this.stylesheets)Lf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function Lf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(cp,e),lr=null,ar.call(e))}function cp(e,t){if(!(t.state.loading&4)){var n=lr.get(e);if(n)var a=n.get(null);else{n=new Map,lr.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var d=i[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}i=t.instance,d=i.getAttribute("data-precedence"),r=n.get(d)||a,r===a&&n.set(null,i),n.set(d,i),this.count++,a=ar.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Hu={$$typeof:D,Provider:null,Consumer:null,_currentValue:ve,_currentValue2:ve,_threadCount:0};function fp(e,t,n,a,i,r,d,g){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=L(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=L(0),this.hiddenUpdates=L(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function um(e,t,n,a,i,r,d,g,E,C,B,X){return e=new fp(e,t,n,d,g,E,C,X),t=1,r===!0&&(t|=24),r=fn(3,null,null,t),e.current=r,r.stateNode=e,t=hc(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:t},kc(r),e}function im(e){return e?(e=pl,e):pl}function rm(e,t,n,a,i,r){i=im(i),a.context===null?a.context=i:a.pendingContext=i,a=ha(t),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=ma(e,a,t),n!==null&&(wt(n,e,t),bu(n,e,t))}function cm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hf(e,t){cm(e,t),(e=e.alternate)&&cm(e,t)}function fm(e){if(e.tag===13){var t=ia(e,67108864);t!==null&&wt(t,e,67108864),Hf(e,67108864)}}var ur=!0;function op(e,t,n,a){var i=$.T;$.T=null;var r=J.p;try{J.p=2,Bf(e,t,n,a)}finally{J.p=r,$.T=i}}function sp(e,t,n,a){var i=$.T;$.T=null;var r=J.p;try{J.p=8,Bf(e,t,n,a)}finally{J.p=r,$.T=i}}function Bf(e,t,n,a){if(ur){var i=qf(a);if(i===null)Df(e,t,a,ir,n),sm(e,a);else if(hp(i,e,t,n,a))a.stopPropagation();else if(sm(e,a),t&4&&-1<dp.indexOf(e)){for(;i!==null;){var r=On(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=Pt(r.pendingLanes);if(d!==0){var g=r;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var E=1<<31-Ot(d);g.entanglements[1]|=E,d&=~E}_n(r),!(Pe&6)&&(Vi=St()+500,wu(0))}}break;case 13:g=ia(r,2),g!==null&&wt(g,r,2),Ki(),Hf(r,2)}if(r=qf(a),r===null&&Df(e,t,a,ir,n),r===i)break;i=r}i!==null&&a.stopPropagation()}else Df(e,t,a,null,n)}}function qf(e){return e=Qr(e),Yf(e)}var ir=null;function Yf(e){if(ir=null,e=vt(e),e!==null){var t=W(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Te(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ir=e,null}function om(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ft()){case be:return 2;case Wt:return 8;case mn:case Lr:return 32;case yn:return 268435456;default:return 32}default:return 32}}var Gf=!1,Sa=null,Ra=null,Ta=null,Bu=new Map,qu=new Map,xa=[],dp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sm(e,t){switch(e){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":Ra=null;break;case"mouseover":case"mouseout":Ta=null;break;case"pointerover":case"pointerout":Bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qu.delete(t.pointerId)}}function Yu(e,t,n,a,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[i]},t!==null&&(t=On(t),t!==null&&fm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hp(e,t,n,a,i){switch(t){case"focusin":return Sa=Yu(Sa,e,t,n,a,i),!0;case"dragenter":return Ra=Yu(Ra,e,t,n,a,i),!0;case"mouseover":return Ta=Yu(Ta,e,t,n,a,i),!0;case"pointerover":var r=i.pointerId;return Bu.set(r,Yu(Bu.get(r)||null,e,t,n,a,i)),!0;case"gotpointercapture":return r=i.pointerId,qu.set(r,Yu(qu.get(r)||null,e,t,n,a,i)),!0}return!1}function dm(e){var t=vt(e.target);if(t!==null){var n=W(t);if(n!==null){if(t=n.tag,t===13){if(t=Te(n),t!==null){e.blockedOn=t,F(e.priority,function(){if(n.tag===13){var a=kt(),i=ia(n,a);i!==null&&wt(i,n,a),Hf(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qf(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Vr=a,n.target.dispatchEvent(a),Vr=null}else return t=On(n),t!==null&&fm(t),e.blockedOn=n,!1;t.shift()}return!0}function hm(e,t,n){rr(e)&&n.delete(t)}function mp(){Gf=!1,Sa!==null&&rr(Sa)&&(Sa=null),Ra!==null&&rr(Ra)&&(Ra=null),Ta!==null&&rr(Ta)&&(Ta=null),Bu.forEach(hm),qu.forEach(hm)}function cr(e,t){e.blockedOn===t&&(e.blockedOn=null,Gf||(Gf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,mp)))}var fr=null;function mm(e){fr!==e&&(fr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){fr===e&&(fr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Yf(a||n)===null)continue;break}var r=On(n);r!==null&&(e.splice(t,3),t-=3,Ac(r,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function Gu(e){function t(E){return cr(E,e)}Sa!==null&&cr(Sa,e),Ra!==null&&cr(Ra,e),Ta!==null&&cr(Ta,e),Bu.forEach(t),qu.forEach(t);for(var n=0;n<xa.length;n++){var a=xa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<xa.length&&(n=xa[0],n.blockedOn===null);)dm(n),n.blockedOn===null&&xa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],r=n[a+1],d=i[xe]||null;if(typeof r=="function")d||mm(n);else if(d){var g=null;if(r&&r.hasAttribute("formAction")){if(i=r,d=r[xe]||null)g=d.formAction;else if(Yf(i)!==null)continue}else g=d.action;typeof g=="function"?n[a+1]=g:(n.splice(a,3),a-=3),mm(n)}}}function Xf(e){this._internalRoot=e}or.prototype.render=Xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var n=t.current,a=kt();rm(n,a,e,t,null,null)},or.prototype.unmount=Xf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&jl(),rm(e.current,2,null,e,null,null),Ki(),t[ke]=null}};function or(e){this._internalRoot=e}or.prototype.unstable_scheduleHydration=function(e){if(e){var t=ue();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xa.length&&t!==0&&t<xa[n].priority;n++);xa.splice(n,0,e),n===0&&dm(e)}};var ym=u.version;if(ym!=="19.0.0")throw Error(f(527,ym,"19.0.0"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=G(t),e=e!==null?te(e):null,e=e===null?null:e.stateNode,e};var yp={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:$,findFiberByHostInstance:vt,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sr.isDisabled&&sr.supportsFiber)try{la=sr.inject(yp),Mt=sr}catch{}}return Vu.createRoot=function(e,t){if(!o(e))throw Error(f(299));var n=!1,a="",i=Nd,r=zd,d=Ud,g=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(g=t.unstable_transitionCallbacks)),t=um(e,1,!1,null,null,n,a,i,r,d,g,null),e[ke]=t.current,Of(e.nodeType===8?e.parentNode:e),new Xf(t)},Vu.hydrateRoot=function(e,t,n){if(!o(e))throw Error(f(299));var a=!1,i="",r=Nd,d=zd,g=Ud,E=null,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(E=n.unstable_transitionCallbacks),n.formState!==void 0&&(C=n.formState)),t=um(e,1,!0,t,n??null,a,i,r,d,g,E,C),t.context=im(null),n=t.current,a=kt(),i=ha(a),i.callback=null,ma(n,i,a),t.current.lanes=a,Q(t,a),_n(t),e[ke]=t.current,Of(e),new or(t)},Vu.version="19.0.0",Vu}var Dm;function Dp(){if(Dm)return Zf.exports;Dm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Zf.exports=Op(),Zf.exports}var Gb=Dp();const Cp="modulepreload",Mp=function(l){return"/static/"+l},Cm={},Xb=function(u,c,f){let o=Promise.resolve();if(c&&c.length>0){document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));o=Promise.allSettled(c.map(v=>{if(v=Mp(v),v in Cm)return;Cm[v]=!0;const m=v.endsWith(".css"),b=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${b}`))return;const M=document.createElement("link");if(M.rel=m?"stylesheet":Cp,m||(M.as="script"),M.crossOrigin="",M.href=v,y&&M.setAttribute("nonce",y),document.head.appendChild(M),m)return new Promise((S,D)=>{M.addEventListener("load",S),M.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${v}`)))})}))}function s(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return o.then(h=>{for(const y of h||[])y.status==="rejected"&&s(y.reason);return u().catch(s)})};var Jf={exports:{}},Ff={};/**
- * @license React
- * react-compiler-runtime.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Mm;function Ap(){if(Mm)return Ff;Mm=1;var l=Ar().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Ff.c=function(u){return l.H.useMemoCache(u)},Ff}var Am;function _p(){return Am||(Am=1,Jf.exports=Ap()),Jf.exports}var Bt=_p(),Qu={},_m;function wp(){if(_m)return Qu;_m=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.parse=h,Qu.serialize=m;const l=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,u=/^[\u0021-\u003A\u003C-\u007E]*$/,c=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,f=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,s=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function h(S,D){const N=new s,q=S.length;if(q<2)return N;const V=(D==null?void 0:D.decode)||b;let U=0;do{const Z=S.indexOf("=",U);if(Z===-1)break;const K=S.indexOf(";",U),le=K===-1?q:K;if(Z>le){U=S.lastIndexOf(";",Z-1)+1;continue}const x=y(S,U,Z),P=v(S,Z,x),he=S.slice(x,P);if(N[he]===void 0){let oe=y(S,Z+1,le),$=v(S,le,oe);const ie=V(S.slice(oe,$));N[he]=ie}U=le+1}while(U<q);return N}function y(S,D,N){do{const q=S.charCodeAt(D);if(q!==32&&q!==9)return D}while(++D<N);return N}function v(S,D,N){for(;D>N;){const q=S.charCodeAt(--D);if(q!==32&&q!==9)return D+1}return N}function m(S,D,N){const q=(N==null?void 0:N.encode)||encodeURIComponent;if(!l.test(S))throw new TypeError(`argument name is invalid: ${S}`);const V=q(D);if(!u.test(V))throw new TypeError(`argument val is invalid: ${D}`);let U=S+"="+V;if(!N)return U;if(N.maxAge!==void 0){if(!Number.isInteger(N.maxAge))throw new TypeError(`option maxAge is invalid: ${N.maxAge}`);U+="; Max-Age="+N.maxAge}if(N.domain){if(!c.test(N.domain))throw new TypeError(`option domain is invalid: ${N.domain}`);U+="; Domain="+N.domain}if(N.path){if(!f.test(N.path))throw new TypeError(`option path is invalid: ${N.path}`);U+="; Path="+N.path}if(N.expires){if(!M(N.expires)||!Number.isFinite(N.expires.valueOf()))throw new TypeError(`option expires is invalid: ${N.expires}`);U+="; Expires="+N.expires.toUTCString()}if(N.httpOnly&&(U+="; HttpOnly"),N.secure&&(U+="; Secure"),N.partitioned&&(U+="; Partitioned"),N.priority)switch(typeof N.priority=="string"?N.priority.toLowerCase():void 0){case"low":U+="; Priority=Low";break;case"medium":U+="; Priority=Medium";break;case"high":U+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${N.priority}`)}if(N.sameSite)switch(typeof N.sameSite=="string"?N.sameSite.toLowerCase():N.sameSite){case!0:case"strict":U+="; SameSite=Strict";break;case"lax":U+="; SameSite=Lax";break;case"none":U+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${N.sameSite}`)}return U}function b(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function M(S){return o.call(S)==="[object Date]"}return Qu}wp();/**
- * react-router v7.1.3
- *
- * Copyright (c) Remix Software Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE.md file in the root directory of this source tree.
- *
- * @license MIT
- */var wm="popstate";function Np(l={}){function u(f,o){let{pathname:s,search:h,hash:y}=f.location;return Fu("",{pathname:s,search:h,hash:y},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function c(f,o){return typeof o=="string"?o:Aa(o)}return Up(u,c,null,l)}function Ne(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function bt(l,u){if(!l){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function zp(){return Math.random().toString(36).substring(2,10)}function Nm(l,u){return{usr:l.state,key:l.key,idx:u}}function Fu(l,u,c=null,f){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof u=="string"?_a(u):u,state:c,key:u&&u.key||f||zp()}}function Aa({pathname:l="/",search:u="",hash:c=""}){return u&&u!=="?"&&(l+=u.charAt(0)==="?"?u:"?"+u),c&&c!=="#"&&(l+=c.charAt(0)==="#"?c:"#"+c),l}function _a(l){let u={};if(l){let c=l.indexOf("#");c>=0&&(u.hash=l.substring(c),l=l.substring(0,c));let f=l.indexOf("?");f>=0&&(u.search=l.substring(f),l=l.substring(0,f)),l&&(u.pathname=l)}return u}function Up(l,u,c,f={}){let{window:o=document.defaultView,v5Compat:s=!1}=f,h=o.history,y="POP",v=null,m=b();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function b(){return(h.state||{idx:null}).idx}function M(){y="POP";let V=b(),U=V==null?null:V-m;m=V,v&&v({action:y,location:q.location,delta:U})}function S(V,U){y="PUSH";let Z=Fu(q.location,V,U);m=b()+1;let K=Nm(Z,m),le=q.createHref(Z);try{h.pushState(K,"",le)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(le)}s&&v&&v({action:y,location:q.location,delta:1})}function D(V,U){y="REPLACE";let Z=Fu(q.location,V,U);m=b();let K=Nm(Z,m),le=q.createHref(Z);h.replaceState(K,"",le),s&&v&&v({action:y,location:q.location,delta:0})}function N(V){let U=o.location.origin!=="null"?o.location.origin:o.location.href,Z=typeof V=="string"?V:Aa(V);return Z=Z.replace(/ $/,"%20"),Ne(U,`No window.location.(origin|href) available to create URL for href: ${Z}`),new URL(Z,U)}let q={get action(){return y},get location(){return l(o,h)},listen(V){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(wm,M),v=V,()=>{o.removeEventListener(wm,M),v=null}},createHref(V){return u(o,V)},createURL:N,encodeLocation(V){let U=N(V);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:S,replace:D,go(V){return h.go(V)}};return q}var jp=new Set(["lazy","caseSensitive","path","id","index","children"]);function Lp(l){return l.index===!0}function br(l,u,c=[],f={}){return l.map((o,s)=>{let h=[...c,String(s)],y=typeof o.id=="string"?o.id:h.join("-");if(Ne(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ne(!f[y],`Found a route id collision on id "${y}".  Route id's must be globally unique within Data Router usages`),Lp(o)){let v={...o,...u(o),id:y};return f[y]=v,v}else{let v={...o,...u(o),id:y,children:void 0};return f[y]=v,o.children&&(v.children=br(o.children,u,h,f)),v}})}function Ma(l,u,c="/"){return gr(l,u,c,!1)}function gr(l,u,c,f){let o=typeof u=="string"?_a(u):u,s=Jt(o.pathname||"/",c);if(s==null)return null;let h=yy(l);Bp(h);let y=null;for(let v=0;y==null&&v<h.length;++v){let m=Jp(s);y=kp(h[v],m,f)}return y}function Hp(l,u){let{route:c,pathname:f,params:o}=l;return{id:c.id,pathname:f,params:o,data:u[c.id],handle:c.handle}}function yy(l,u=[],c=[],f=""){let o=(s,h,y)=>{let v={relativePath:y===void 0?s.path||"":y,caseSensitive:s.caseSensitive===!0,childrenIndex:h,route:s};v.relativePath.startsWith("/")&&(Ne(v.relativePath.startsWith(f),`Absolute route path "${v.relativePath}" nested under path "${f}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(f.length));let m=wn([f,v.relativePath]),b=c.concat(v);s.children&&s.children.length>0&&(Ne(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),yy(s.children,u,b,m)),!(s.path==null&&!s.index)&&u.push({path:m,score:Zp(m,s.index),routesMeta:b})};return l.forEach((s,h)=>{var y;if(s.path===""||!((y=s.path)!=null&&y.includes("?")))o(s,h);else for(let v of vy(s.path))o(s,h,v)}),u}function vy(l){let u=l.split("/");if(u.length===0)return[];let[c,...f]=u,o=c.endsWith("?"),s=c.replace(/\?$/,"");if(f.length===0)return o?[s,""]:[s];let h=vy(f.join("/")),y=[];return y.push(...h.map(v=>v===""?s:[s,v].join("/"))),o&&y.push(...h),y.map(v=>l.startsWith("/")&&v===""?"/":v)}function Bp(l){l.sort((u,c)=>u.score!==c.score?c.score-u.score:Kp(u.routesMeta.map(f=>f.childrenIndex),c.routesMeta.map(f=>f.childrenIndex)))}var qp=/^:[\w-]+$/,Yp=3,Gp=2,Xp=1,Vp=10,Qp=-2,zm=l=>l==="*";function Zp(l,u){let c=l.split("/"),f=c.length;return c.some(zm)&&(f+=Qp),u&&(f+=Gp),c.filter(o=>!zm(o)).reduce((o,s)=>o+(qp.test(s)?Yp:s===""?Xp:Vp),f)}function Kp(l,u){return l.length===u.length&&l.slice(0,-1).every((f,o)=>f===u[o])?l[l.length-1]-u[u.length-1]:0}function kp(l,u,c=!1){let{routesMeta:f}=l,o={},s="/",h=[];for(let y=0;y<f.length;++y){let v=f[y],m=y===f.length-1,b=s==="/"?u:u.slice(s.length)||"/",M=Sr({path:v.relativePath,caseSensitive:v.caseSensitive,end:m},b),S=v.route;if(!M&&m&&c&&!f[f.length-1].route.index&&(M=Sr({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!M)return null;Object.assign(o,M.params),h.push({params:o,pathname:wn([s,M.pathname]),pathnameBase:Pp(wn([s,M.pathnameBase])),route:S}),M.pathnameBase!=="/"&&(s=wn([s,M.pathnameBase]))}return h}function Sr(l,u){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[c,f]=$p(l.path,l.caseSensitive,l.end),o=u.match(c);if(!o)return null;let s=o[0],h=s.replace(/(.)\/+$/,"$1"),y=o.slice(1);return{params:f.reduce((m,{paramName:b,isOptional:M},S)=>{if(b==="*"){let N=y[S]||"";h=s.slice(0,s.length-N.length).replace(/(.)\/+$/,"$1")}const D=y[S];return M&&!D?m[b]=void 0:m[b]=(D||"").replace(/%2F/g,"/"),m},{}),pathname:s,pathnameBase:h,pattern:l}}function $p(l,u=!1,c=!0){bt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let f=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,y,v)=>(f.push({paramName:y,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(f.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,u?void 0:"i"),f]}function Jp(l){try{return l.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return bt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),l}}function Jt(l,u){if(u==="/")return l;if(!l.toLowerCase().startsWith(u.toLowerCase()))return null;let c=u.endsWith("/")?u.length-1:u.length,f=l.charAt(c);return f&&f!=="/"?null:l.slice(c)||"/"}function Fp(l,u="/"){let{pathname:c,search:f="",hash:o=""}=typeof l=="string"?_a(l):l;return{pathname:c?c.startsWith("/")?c:Wp(c,u):u,search:Ip(f),hash:e0(o)}}function Wp(l,u){let c=u.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function Wf(l,u,c,f){return`Cannot include a '${l}' character in a manually specified \`to.${u}\` field [${JSON.stringify(f)}].  Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gy(l){return l.filter((u,c)=>c===0||u.route.path&&u.route.path.length>0)}function Do(l){let u=gy(l);return u.map((c,f)=>f===u.length-1?c.pathname:c.pathnameBase)}function Co(l,u,c,f=!1){let o;typeof l=="string"?o=_a(l):(o={...l},Ne(!o.pathname||!o.pathname.includes("?"),Wf("?","pathname","search",o)),Ne(!o.pathname||!o.pathname.includes("#"),Wf("#","pathname","hash",o)),Ne(!o.search||!o.search.includes("#"),Wf("#","search","hash",o)));let s=l===""||o.pathname==="",h=s?"/":o.pathname,y;if(h==null)y=c;else{let M=u.length-1;if(!f&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),M-=1;o.pathname=S.join("/")}y=M>=0?u[M]:"/"}let v=Fp(o,y),m=h&&h!=="/"&&h.endsWith("/"),b=(s||h===".")&&c.endsWith("/");return!v.pathname.endsWith("/")&&(m||b)&&(v.pathname+="/"),v}var wn=l=>l.join("/").replace(/\/\/+/g,"/"),Pp=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Ip=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,e0=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Rr=class{constructor(l,u,c,f=!1){this.status=l,this.statusText=u||"",this.internal=f,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function _r(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var py=["POST","PUT","PATCH","DELETE"],t0=new Set(py),n0=["GET",...py],a0=new Set(n0),l0=new Set([301,302,303,307,308]),u0=new Set([307,308]),Pf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},i0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Mo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,r0=l=>({hasErrorBoundary:!!l.hasErrorBoundary}),Ey="remix-router-transitions",by=Symbol("ResetLoaderData");function c0(l){const u=l.window?l.window:typeof window<"u"?window:void 0,c=typeof u<"u"&&typeof u.document<"u"&&typeof u.document.createElement<"u";Ne(l.routes.length>0,"You must provide a non-empty routes array to createRouter");let f=l.mapRouteProperties||r0,o={},s=br(l.routes,f,void 0,o),h,y=l.basename||"/",v=l.dataStrategy||h0,m=l.patchRoutesOnNavigation,b={...l.future},M=null,S=new Set,D=null,N=null,q=null,V=l.hydrationData!=null,U=Ma(s,l.history.location,y),Z=null;if(U==null&&!m){let T=dn(404,{pathname:l.history.location.pathname}),{matches:_,route:L}=Qm(s);U=_,Z={[L.id]:T}}U&&!l.hydrationData&&Pt(U,s,l.history.location.pathname).active&&(U=null);let K;if(U)if(U.some(T=>T.route.lazy))K=!1;else if(!U.some(T=>T.route.loader))K=!0;else{let T=l.hydrationData?l.hydrationData.loaderData:null,_=l.hydrationData?l.hydrationData.errors:null;if(_){let L=U.findIndex(Q=>_[Q.route.id]!==void 0);K=U.slice(0,L+1).every(Q=>!yo(Q.route,T,_))}else K=U.every(L=>!yo(L.route,T,_))}else{K=!1,U=[];let T=Pt(null,s,l.history.location.pathname);T.active&&T.matches&&(U=T.matches)}let le,x={historyAction:l.history.action,location:l.history.location,matches:U,initialized:K,navigation:Pf,restoreScrollPosition:l.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:l.hydrationData&&l.hydrationData.loaderData||{},actionData:l.hydrationData&&l.hydrationData.actionData||null,errors:l.hydrationData&&l.hydrationData.errors||Z,fetchers:new Map,blockers:new Map},P="POP",he=!1,oe,$=!1,ie=new Map,He=null,ut=!1,Je=!1,dt=new Set,Me=new Map,k=0,se=-1,W=new Map,Te=new Set,R=new Map,G=new Map,te=new Set,I=new Map,J,ve=null;function pe(){if(M=l.history.listen(({action:T,location:_,delta:L})=>{if(J){J(),J=void 0;return}bt(I.size===0||L!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=Ot({currentLocation:x.location,nextLocation:_,historyAction:T});if(Q&&L!=null){let ee=new Promise(ce=>{J=ce});l.history.go(L*-1),Gt(Q,{state:"blocked",location:_,proceed(){Gt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),ee.then(()=>l.history.go(L))},reset(){let ce=new Map(x.blockers);ce.set(Q,Zl),Se({blockers:ce})}});return}return et(T,_)}),c){x0(u,ie);let T=()=>O0(u,ie);u.addEventListener("pagehide",T),He=()=>u.removeEventListener("pagehide",T)}return x.initialized||et("POP",x.location,{initialHydration:!0}),le}function Ie(){M&&M(),He&&He(),S.clear(),oe&&oe.abort(),x.fetchers.forEach((T,_)=>mn(_)),x.blockers.forEach((T,_)=>ai(_))}function _e(T){return S.add(T),()=>S.delete(T)}function Se(T,_={}){x={...x,...T};let L=[],Q=[];x.fetchers.forEach((ee,ce)=>{ee.state==="idle"&&(te.has(ce)?L.push(ce):Q.push(ce))}),te.forEach(ee=>{!x.fetchers.has(ee)&&!Me.has(ee)&&L.push(ee)}),[...S].forEach(ee=>ee(x,{deletedFetchers:L,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),L.forEach(ee=>mn(ee)),Q.forEach(ee=>x.fetchers.delete(ee))}function De(T,_,{flushSync:L}={}){var F,me;let Q=x.actionData!=null&&x.navigation.formMethod!=null&&Tn(x.navigation.formMethod)&&x.navigation.state==="loading"&&((F=T.state)==null?void 0:F._isRedirect)!==!0,ee;_.actionData?Object.keys(_.actionData).length>0?ee=_.actionData:ee=null:Q?ee=x.actionData:ee=null;let ce=_.loaderData?Xm(x.loaderData,_.loaderData,_.matches||[],_.errors):x.loaderData,ge=x.blockers;ge.size>0&&(ge=new Map(ge),ge.forEach((de,xe)=>ge.set(xe,Zl)));let ne=he===!0||x.navigation.formMethod!=null&&Tn(x.navigation.formMethod)&&((me=T.state)==null?void 0:me._isRedirect)!==!0;h&&(s=h,h=void 0),ut||P==="POP"||(P==="PUSH"?l.history.push(T,T.state):P==="REPLACE"&&l.history.replace(T,T.state));let ue;if(P==="POP"){let de=ie.get(x.location.pathname);de&&de.has(T.pathname)?ue={currentLocation:x.location,nextLocation:T}:ie.has(T.pathname)&&(ue={currentLocation:T,nextLocation:x.location})}else if($){let de=ie.get(x.location.pathname);de?de.add(T.pathname):(de=new Set([T.pathname]),ie.set(x.location.pathname,de)),ue={currentLocation:x.location,nextLocation:T}}Se({..._,actionData:ee,loaderData:ce,historyAction:P,location:T,initialized:!0,navigation:Pf,revalidation:"idle",restoreScrollPosition:za(T,_.matches||x.matches),preventScrollReset:ne,blockers:ge},{viewTransitionOpts:ue,flushSync:L===!0}),P="POP",he=!1,$=!1,ut=!1,Je=!1,ve==null||ve.resolve(),ve=null}async function yt(T,_){if(typeof T=="number"){l.history.go(T);return}let L=mo(x.location,x.matches,y,T,_==null?void 0:_.fromRouteId,_==null?void 0:_.relative),{path:Q,submission:ee,error:ce}=Um(!1,L,_),ge=x.location,ne=Fu(x.location,Q,_&&_.state);ne={...ne,...l.history.encodeLocation(ne)};let ue=_&&_.replace!=null?_.replace:void 0,F="PUSH";ue===!0?F="REPLACE":ue===!1||ee!=null&&Tn(ee.formMethod)&&ee.formAction===x.location.pathname+x.location.search&&(F="REPLACE");let me=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,de=(_&&_.flushSync)===!0,xe=Ot({currentLocation:ge,nextLocation:ne,historyAction:F});if(xe){Gt(xe,{state:"blocked",location:ne,proceed(){Gt(xe,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),yt(T,_)},reset(){let ke=new Map(x.blockers);ke.set(xe,Zl),Se({blockers:ke})}});return}await et(F,ne,{submission:ee,pendingError:ce,preventScrollReset:me,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:de})}function Nt(){ve||(ve=D0()),St(),Se({revalidation:"loading"});let T=ve.promise;return x.navigation.state==="submitting"?T:x.navigation.state==="idle"?(et(x.historyAction,x.location,{startUninterruptedRevalidation:!0}),T):(et(P||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation,enableViewTransition:$===!0}),T)}async function et(T,_,L){oe&&oe.abort(),oe=null,P=T,ut=(L&&L.startUninterruptedRevalidation)===!0,fl(x.location,x.matches),he=(L&&L.preventScrollReset)===!0,$=(L&&L.enableViewTransition)===!0;let Q=h||s,ee=L&&L.overrideNavigation,ce=Ma(Q,_,y),ge=(L&&L.flushSync)===!0,ne=Pt(ce,Q,_.pathname);if(ne.active&&ne.matches&&(ce=ne.matches),!ce){let{error:Xe,notFoundMatches:Ve,route:it}=Jl(_.pathname);De(_,{matches:Ve,loaderData:{},errors:{[it.id]:Xe}},{flushSync:ge});return}if(x.initialized&&!Je&&E0(x.location,_)&&!(L&&L.submission&&Tn(L.submission.formMethod))){De(_,{matches:ce},{flushSync:ge});return}oe=new AbortController;let ue=Gl(l.history,_,oe.signal,L&&L.submission),F;if(L&&L.pendingError)F=[nl(ce).route.id,{type:"error",error:L.pendingError}];else if(L&&L.submission&&Tn(L.submission.formMethod)){let Xe=await qt(ue,_,L.submission,ce,ne.active,{replace:L.replace,flushSync:ge});if(Xe.shortCircuited)return;if(Xe.pendingActionResult){let[Ve,it]=Xe.pendingActionResult;if($t(it)&&_r(it.error)&&it.error.status===404){oe=null,De(_,{matches:Xe.matches,loaderData:{},errors:{[Ve]:it.error}});return}}ce=Xe.matches||ce,F=Xe.pendingActionResult,ee=If(_,L.submission),ge=!1,ne.active=!1,ue=Gl(l.history,ue.url,ue.signal)}let{shortCircuited:me,matches:de,loaderData:xe,errors:ke}=await Le(ue,_,ce,ne.active,ee,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,ge,F);me||(oe=null,De(_,{matches:de||ce,...Vm(F),loaderData:xe,errors:ke}))}async function qt(T,_,L,Q,ee,ce={}){St();let ge=R0(_,L);if(Se({navigation:ge},{flushSync:ce.flushSync===!0}),ee){let F=await Un(Q,_.pathname,T.signal);if(F.type==="aborted")return{shortCircuited:!0};if(F.type==="error"){let me=nl(F.partialMatches).route.id;return{matches:F.partialMatches,pendingActionResult:[me,{type:"error",error:F.error}]}}else if(F.matches)Q=F.matches;else{let{notFoundMatches:me,error:de,route:xe}=Jl(_.pathname);return{matches:me,pendingActionResult:[xe.id,{type:"error",error:de}]}}}let ne,ue=$u(Q,_);if(!ue.route.action&&!ue.route.lazy)ne={type:"error",error:dn(405,{method:T.method,pathname:_.pathname,routeId:ue.route.id})};else if(ne=(await zn("action",x,T,[ue],Q,null))[ue.route.id],T.signal.aborted)return{shortCircuited:!0};if(ul(ne)){let F;return ce&&ce.replace!=null?F=ce.replace:F=qm(ne.response.headers.get("Location"),new URL(T.url),y)===x.location.pathname+x.location.search,await Yt(T,ne,!0,{submission:L,replace:F}),{shortCircuited:!0}}if($t(ne)){let F=nl(Q,ue.route.id);return(ce&&ce.replace)!==!0&&(P="PUSH"),{matches:Q,pendingActionResult:[F.route.id,ne]}}return{matches:Q,pendingActionResult:[ue.route.id,ne]}}async function Le(T,_,L,Q,ee,ce,ge,ne,ue,F,me){let de=ee||If(_,ce),xe=ce||ge||Km(de),ke=!ut&&!ue;if(Q){if(ke){let $e=zt(me);Se({navigation:de,...$e!==void 0?{actionData:$e}:{}},{flushSync:F})}let Be=await Un(L,_.pathname,T.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let $e=nl(Be.partialMatches).route.id;return{matches:Be.partialMatches,loaderData:{},errors:{[$e]:Be.error}}}else if(Be.matches)L=Be.matches;else{let{error:$e,notFoundMatches:pn,route:At}=Jl(_.pathname);return{matches:pn,loaderData:{},errors:{[At.id]:$e}}}}let Xe=h||s,[Ve,it]=Lm(l.history,x,L,xe,_,ue===!0,Je,dt,te,R,Te,Xe,y,me);if(se=++k,Ve.length===0&&it.length===0){let Be=ni();return De(_,{matches:L,loaderData:{},errors:me&&$t(me[1])?{[me[0]]:me[1].error}:null,...Vm(me),...Be?{fetchers:new Map(x.fetchers)}:{}},{flushSync:F}),{shortCircuited:!0}}if(ke){let Be={};if(!Q){Be.navigation=de;let $e=zt(me);$e!==void 0&&(Be.actionData=$e)}it.length>0&&(Be.fetchers=hn(it)),Se(Be,{flushSync:F})}it.forEach(Be=>{yn(Be.key),Be.controller&&Me.set(Be.key,Be.controller)});let jn=()=>it.forEach(Be=>yn(Be.key));oe&&oe.signal.addEventListener("abort",jn);let{loaderResults:vn,fetcherResults:Xt}=await cl(x,L,Ve,it,T);if(T.signal.aborted)return{shortCircuited:!0};oe&&oe.signal.removeEventListener("abort",jn),it.forEach(Be=>Me.delete(Be.key));let vt=dr(vn);if(vt)return await Yt(T,vt.result,!0,{replace:ne}),{shortCircuited:!0};if(vt=dr(Xt),vt)return Te.add(vt.key),await Yt(T,vt.result,!0,{replace:ne}),{shortCircuited:!0};let{loaderData:On,errors:gn}=Gm(x,L,vn,me,it,Xt);ue&&x.errors&&(gn={...x.errors,...gn});let Ut=ni(),Fe=la(se),ja=Ut||Fe||it.length>0;return{matches:L,loaderData:On,errors:gn,...ja?{fetchers:new Map(x.fetchers)}:{}}}function zt(T){if(T&&!$t(T[1]))return{[T[0]]:T[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function hn(T){return T.forEach(_=>{let L=x.fetchers.get(_.key),Q=Zu(void 0,L?L.data:void 0);x.fetchers.set(_.key,Q)}),new Map(x.fetchers)}async function aa(T,_,L,Q){yn(T);let ee=(Q&&Q.flushSync)===!0,ce=h||s,ge=mo(x.location,x.matches,y,L,_,Q==null?void 0:Q.relative),ne=Ma(ce,ge,y),ue=Pt(ne,ce,ge);if(ue.active&&ue.matches&&(ne=ue.matches),!ne){be(T,_,dn(404,{pathname:ge}),{flushSync:ee});return}let{path:F,submission:me,error:de}=Um(!0,ge,Q);if(de){be(T,_,de,{flushSync:ee});return}let xe=$u(ne,F),ke=(Q&&Q.preventScrollReset)===!0;if(me&&Tn(me.formMethod)){await wa(T,_,F,xe,ne,ue.active,ee,ke,me);return}R.set(T,{routeId:_,path:F}),await Na(T,_,F,xe,ne,ue.active,ee,ke,me)}async function wa(T,_,L,Q,ee,ce,ge,ne,ue){St(),R.delete(T);function F(tt){if(!tt.route.action&&!tt.route.lazy){let Ln=dn(405,{method:ue.formMethod,pathname:L,routeId:_});return be(T,_,Ln,{flushSync:ge}),!0}return!1}if(!ce&&F(Q))return;let me=x.fetchers.get(T);Ft(T,T0(ue,me),{flushSync:ge});let de=new AbortController,xe=Gl(l.history,L,de.signal,ue);if(ce){let tt=await Un(ee,L,xe.signal);if(tt.type==="aborted")return;if(tt.type==="error"){be(T,_,tt.error,{flushSync:ge});return}else if(tt.matches){if(ee=tt.matches,Q=$u(ee,L),F(Q))return}else{be(T,_,dn(404,{pathname:L}),{flushSync:ge});return}}Me.set(T,de);let ke=k,Ve=(await zn("action",x,xe,[Q],ee,T))[Q.route.id];if(xe.signal.aborted){Me.get(T)===de&&Me.delete(T);return}if(te.has(T)){if(ul(Ve)||$t(Ve)){Ft(T,Da(void 0));return}}else{if(ul(Ve))if(Me.delete(T),se>ke){Ft(T,Da(void 0));return}else return Te.add(T),Ft(T,Zu(ue)),Yt(xe,Ve,!1,{fetcherSubmission:ue,preventScrollReset:ne});if($t(Ve)){be(T,_,Ve.error);return}}let it=x.navigation.location||x.location,jn=Gl(l.history,it,de.signal),vn=h||s,Xt=x.navigation.state!=="idle"?Ma(vn,x.navigation.location,y):x.matches;Ne(Xt,"Didn't find any matches after fetcher action");let vt=++k;W.set(T,vt);let On=Zu(ue,Ve.data);x.fetchers.set(T,On);let[gn,Ut]=Lm(l.history,x,Xt,ue,it,!1,Je,dt,te,R,Te,vn,y,[Q.route.id,Ve]);Ut.filter(tt=>tt.key!==T).forEach(tt=>{let Ln=tt.key,Fl=x.fetchers.get(Ln),qr=Zu(void 0,Fl?Fl.data:void 0);x.fetchers.set(Ln,qr),yn(Ln),tt.controller&&Me.set(Ln,tt.controller)}),Se({fetchers:new Map(x.fetchers)});let Fe=()=>Ut.forEach(tt=>yn(tt.key));de.signal.addEventListener("abort",Fe);let{loaderResults:ja,fetcherResults:Be}=await cl(x,Xt,gn,Ut,jn);if(de.signal.aborted)return;de.signal.removeEventListener("abort",Fe),W.delete(T),Me.delete(T),Ut.forEach(tt=>Me.delete(tt.key));let $e=dr(ja);if($e)return Yt(jn,$e.result,!1,{preventScrollReset:ne});if($e=dr(Be),$e)return Te.add($e.key),Yt(jn,$e.result,!1,{preventScrollReset:ne});let{loaderData:pn,errors:At}=Gm(x,Xt,ja,void 0,Ut,Be);if(x.fetchers.has(T)){let tt=Da(Ve.data);x.fetchers.set(T,tt)}la(vt),x.navigation.state==="loading"&&vt>se?(Ne(P,"Expected pending action"),oe&&oe.abort(),De(x.navigation.location,{matches:Xt,loaderData:pn,errors:At,fetchers:new Map(x.fetchers)})):(Se({errors:At,loaderData:Xm(x.loaderData,pn,Xt,At),fetchers:new Map(x.fetchers)}),Je=!1)}async function Na(T,_,L,Q,ee,ce,ge,ne,ue){let F=x.fetchers.get(T);Ft(T,Zu(ue,F?F.data:void 0),{flushSync:ge});let me=new AbortController,de=Gl(l.history,L,me.signal);if(ce){let Ve=await Un(ee,L,de.signal);if(Ve.type==="aborted")return;if(Ve.type==="error"){be(T,_,Ve.error,{flushSync:ge});return}else if(Ve.matches)ee=Ve.matches,Q=$u(ee,L);else{be(T,_,dn(404,{pathname:L}),{flushSync:ge});return}}Me.set(T,me);let xe=k,Xe=(await zn("loader",x,de,[Q],ee,T))[Q.route.id];if(Me.get(T)===me&&Me.delete(T),!de.signal.aborted){if(te.has(T)){Ft(T,Da(void 0));return}if(ul(Xe))if(se>xe){Ft(T,Da(void 0));return}else{Te.add(T),await Yt(de,Xe,!1,{preventScrollReset:ne});return}if($t(Xe)){be(T,_,Xe.error);return}Ft(T,Da(Xe.data))}}async function Yt(T,_,L,{submission:Q,fetcherSubmission:ee,preventScrollReset:ce,replace:ge}={}){_.response.headers.has("X-Remix-Revalidate")&&(Je=!0);let ne=_.response.headers.get("Location");Ne(ne,"Expected a Location header on the redirect Response"),ne=qm(ne,new URL(T.url),y);let ue=Fu(x.location,ne,{_isRedirect:!0});if(c){let Xe=!1;if(_.response.headers.has("X-Remix-Reload-Document"))Xe=!0;else if(Mo.test(ne)){const Ve=l.history.createURL(ne);Xe=Ve.origin!==u.location.origin||Jt(Ve.pathname,y)==null}if(Xe){ge?u.location.replace(ne):u.location.assign(ne);return}}oe=null;let F=ge===!0||_.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:me,formAction:de,formEncType:xe}=x.navigation;!Q&&!ee&&me&&de&&xe&&(Q=Km(x.navigation));let ke=Q||ee;if(u0.has(_.response.status)&&ke&&Tn(ke.formMethod))await et(F,ue,{submission:{...ke,formAction:ne},preventScrollReset:ce||he,enableViewTransition:L?$:void 0});else{let Xe=If(ue,Q);await et(F,ue,{overrideNavigation:Xe,fetcherSubmission:ee,preventScrollReset:ce||he,enableViewTransition:L?$:void 0})}}async function zn(T,_,L,Q,ee,ce){let ge,ne={};try{ge=await m0(v,T,_,L,Q,ee,ce,o,f)}catch(ue){return Q.forEach(F=>{ne[F.route.id]={type:"error",error:ue}}),ne}for(let[ue,F]of Object.entries(ge))if(b0(F)){let me=F.result;ne[ue]={type:"redirect",response:g0(me,L,ue,ee,y)}}else ne[ue]=await v0(F);return ne}async function cl(T,_,L,Q,ee){let ce=zn("loader",T,ee,L,_,null),ge=Promise.all(Q.map(async F=>{if(F.matches&&F.match&&F.controller){let de=(await zn("loader",T,Gl(l.history,F.path,F.controller.signal),[F.match],F.matches,F.key))[F.match.route.id];return{[F.key]:de}}else return Promise.resolve({[F.key]:{type:"error",error:dn(404,{pathname:F.path})}})})),ne=await ce,ue=(await ge).reduce((F,me)=>Object.assign(F,me),{});return{loaderResults:ne,fetcherResults:ue}}function St(){Je=!0,R.forEach((T,_)=>{Me.has(_)&&dt.add(_),yn(_)})}function Ft(T,_,L={}){x.fetchers.set(T,_),Se({fetchers:new Map(x.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function be(T,_,L,Q={}){let ee=nl(x.matches,_);mn(T),Se({errors:{[ee.route.id]:L},fetchers:new Map(x.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function Wt(T){return G.set(T,(G.get(T)||0)+1),te.has(T)&&te.delete(T),x.fetchers.get(T)||i0}function mn(T){let _=x.fetchers.get(T);Me.has(T)&&!(_&&_.state==="loading"&&W.has(T))&&yn(T),R.delete(T),W.delete(T),Te.delete(T),te.delete(T),dt.delete(T),x.fetchers.delete(T)}function Lr(T){let _=(G.get(T)||0)-1;_<=0?(G.delete(T),te.add(T)):G.set(T,_),Se({fetchers:new Map(x.fetchers)})}function yn(T){let _=Me.get(T);_&&(_.abort(),Me.delete(T))}function ti(T){for(let _ of T){let L=Wt(_),Q=Da(L.data);x.fetchers.set(_,Q)}}function ni(){let T=[],_=!1;for(let L of Te){let Q=x.fetchers.get(L);Ne(Q,`Expected fetcher: ${L}`),Q.state==="loading"&&(Te.delete(L),T.push(L),_=!0)}return ti(T),_}function la(T){let _=[];for(let[L,Q]of W)if(Q<T){let ee=x.fetchers.get(L);Ne(ee,`Expected fetcher: ${L}`),ee.state==="loading"&&(yn(L),W.delete(L),_.push(L))}return ti(_),_.length>0}function Mt(T,_){let L=x.blockers.get(T)||Zl;return I.get(T)!==_&&I.set(T,_),L}function ai(T){x.blockers.delete(T),I.delete(T)}function Gt(T,_){let L=x.blockers.get(T)||Zl;Ne(L.state==="unblocked"&&_.state==="blocked"||L.state==="blocked"&&_.state==="blocked"||L.state==="blocked"&&_.state==="proceeding"||L.state==="blocked"&&_.state==="unblocked"||L.state==="proceeding"&&_.state==="unblocked",`Invalid blocker state transition: ${L.state} -> ${_.state}`);let Q=new Map(x.blockers);Q.set(T,_),Se({blockers:Q})}function Ot({currentLocation:T,nextLocation:_,historyAction:L}){if(I.size===0)return;I.size>1&&bt(!1,"A router only supports one blocker at a time");let Q=Array.from(I.entries()),[ee,ce]=Q[Q.length-1],ge=x.blockers.get(ee);if(!(ge&&ge.state==="proceeding")&&ce({currentLocation:T,nextLocation:_,historyAction:L}))return ee}function Jl(T){let _=dn(404,{pathname:T}),L=h||s,{matches:Q,route:ee}=Qm(L);return{notFoundMatches:Q,route:ee,error:_}}function Hr(T,_,L){if(D=T,q=_,N=L||null,!V&&x.navigation===Pf){V=!0;let Q=za(x.location,x.matches);Q!=null&&Se({restoreScrollPosition:Q})}return()=>{D=null,q=null,N=null}}function li(T,_){return N&&N(T,_.map(Q=>Hp(Q,x.loaderData)))||T.key}function fl(T,_){if(D&&q){let L=li(T,_);D[L]=q()}}function za(T,_){if(D){let L=li(T,_),Q=D[L];if(typeof Q=="number")return Q}return null}function Pt(T,_,L){if(m)if(T){if(Object.keys(T[0].params).length>0)return{active:!0,matches:gr(_,L,y,!0)}}else return{active:!0,matches:gr(_,L,y,!0)||[]};return{active:!1,matches:null}}async function Un(T,_,L){if(!m)return{type:"success",matches:T};let Q=T;for(;;){let ee=h==null,ce=h||s,ge=o;try{await m({path:_,matches:Q,patch:(F,me)=>{L.aborted||Bm(F,me,ce,ge,f)}})}catch(F){return{type:"error",error:F,partialMatches:Q}}finally{ee&&!L.aborted&&(s=[...s])}if(L.aborted)return{type:"aborted"};let ne=Ma(ce,_,y);if(ne)return{type:"success",matches:ne};let ue=gr(ce,_,y,!0);if(!ue||Q.length===ue.length&&Q.every((F,me)=>F.route.id===ue[me].route.id))return{type:"success",matches:null};Q=ue}}function Ua(T){o={},h=br(T,f,void 0,o)}function Br(T,_){let L=h==null;Bm(T,_,h||s,o,f),L&&(s=[...s],Se({}))}return le={get basename(){return y},get future(){return b},get state(){return x},get routes(){return s},get window(){return u},initialize:pe,subscribe:_e,enableScrollRestoration:Hr,navigate:yt,fetch:aa,revalidate:Nt,createHref:T=>l.history.createHref(T),encodeLocation:T=>l.history.encodeLocation(T),getFetcher:Wt,deleteFetcher:Lr,dispose:Ie,getBlocker:Mt,deleteBlocker:ai,patchRoutes:Br,_internalFetchControllers:Me,_internalSetRoutes:Ua},le}function f0(l){return l!=null&&("formData"in l&&l.formData!=null||"body"in l&&l.body!==void 0)}function mo(l,u,c,f,o,s){let h,y;if(o){h=[];for(let m of u)if(h.push(m),m.route.id===o){y=m;break}}else h=u,y=u[u.length-1];let v=Co(f||".",Do(h),Jt(l.pathname,c)||l.pathname,s==="path");if(f==null&&(v.search=l.search,v.hash=l.hash),(f==null||f===""||f===".")&&y){let m=Ao(v.search);if(y.route.index&&!m)v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&m){let b=new URLSearchParams(v.search),M=b.getAll("index");b.delete("index"),M.filter(D=>D).forEach(D=>b.append("index",D));let S=b.toString();v.search=S?`?${S}`:""}}return c!=="/"&&(v.pathname=v.pathname==="/"?c:wn([c,v.pathname])),Aa(v)}function Um(l,u,c){if(!c||!f0(c))return{path:u};if(c.formMethod&&!S0(c.formMethod))return{path:u,error:dn(405,{method:c.formMethod})};let f=()=>({path:u,error:dn(400,{type:"invalid-body"})}),s=(c.formMethod||"get").toUpperCase(),h=Ry(u);if(c.body!==void 0){if(c.formEncType==="text/plain"){if(!Tn(s))return f();let M=typeof c.body=="string"?c.body:c.body instanceof FormData||c.body instanceof URLSearchParams?Array.from(c.body.entries()).reduce((S,[D,N])=>`${S}${D}=${N}
-`,""):String(c.body);return{path:u,submission:{formMethod:s,formAction:h,formEncType:c.formEncType,formData:void 0,json:void 0,text:M}}}else if(c.formEncType==="application/json"){if(!Tn(s))return f();try{let M=typeof c.body=="string"?JSON.parse(c.body):c.body;return{path:u,submission:{formMethod:s,formAction:h,formEncType:c.formEncType,formData:void 0,json:M,text:void 0}}}catch{return f()}}}Ne(typeof FormData=="function","FormData is not available in this environment");let y,v;if(c.formData)y=vo(c.formData),v=c.formData;else if(c.body instanceof FormData)y=vo(c.body),v=c.body;else if(c.body instanceof URLSearchParams)y=c.body,v=Ym(y);else if(c.body==null)y=new URLSearchParams,v=new FormData;else try{y=new URLSearchParams(c.body),v=Ym(y)}catch{return f()}let m={formMethod:s,formAction:h,formEncType:c&&c.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(Tn(m.formMethod))return{path:u,submission:m};let b=_a(u);return l&&b.search&&Ao(b.search)&&y.append("index",""),b.search=`?${y}`,{path:Aa(b),submission:m}}function jm(l,u,c=!1){let f=l.findIndex(o=>o.route.id===u);return f>=0?l.slice(0,c?f+1:f):l}function Lm(l,u,c,f,o,s,h,y,v,m,b,M,S,D){let N=D?$t(D[1])?D[1].error:D[1].data:void 0,q=l.createURL(u.location),V=l.createURL(o),U=c;s&&u.errors?U=jm(c,Object.keys(u.errors)[0],!0):D&&$t(D[1])&&(U=jm(c,D[0]));let Z=D?D[1].statusCode:void 0,K=Z&&Z>=400,le=U.filter((P,he)=>{let{route:oe}=P;if(oe.lazy)return!0;if(oe.loader==null)return!1;if(s)return yo(oe,u.loaderData,u.errors);if(o0(u.loaderData,u.matches[he],P))return!0;let $=u.matches[he],ie=P;return Hm(P,{currentUrl:q,currentParams:$.params,nextUrl:V,nextParams:ie.params,...f,actionResult:N,actionStatus:Z,defaultShouldRevalidate:K?!1:h||q.pathname+q.search===V.pathname+V.search||q.search!==V.search||s0($,ie)})}),x=[];return m.forEach((P,he)=>{if(s||!c.some(ut=>ut.route.id===P.routeId)||v.has(he))return;let oe=Ma(M,P.path,S);if(!oe){x.push({key:he,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let $=u.fetchers.get(he),ie=$u(oe,P.path),He=!1;b.has(he)?He=!1:y.has(he)?(y.delete(he),He=!0):$&&$.state!=="idle"&&$.data===void 0?He=h:He=Hm(ie,{currentUrl:q,currentParams:u.matches[u.matches.length-1].params,nextUrl:V,nextParams:c[c.length-1].params,...f,actionResult:N,actionStatus:Z,defaultShouldRevalidate:K?!1:h}),He&&x.push({key:he,routeId:P.routeId,path:P.path,matches:oe,match:ie,controller:new AbortController})}),[le,x]}function yo(l,u,c){if(l.lazy)return!0;if(!l.loader)return!1;let f=u!=null&&u[l.id]!==void 0,o=c!=null&&c[l.id]!==void 0;return!f&&o?!1:typeof l.loader=="function"&&l.loader.hydrate===!0?!0:!f&&!o}function o0(l,u,c){let f=!u||c.route.id!==u.route.id,o=!l.hasOwnProperty(c.route.id);return f||o}function s0(l,u){let c=l.route.path;return l.pathname!==u.pathname||c!=null&&c.endsWith("*")&&l.params["*"]!==u.params["*"]}function Hm(l,u){if(l.route.shouldRevalidate){let c=l.route.shouldRevalidate(u);if(typeof c=="boolean")return c}return u.defaultShouldRevalidate}function Bm(l,u,c,f,o){let s;if(l){let v=f[l];Ne(v,`No route found to patch children into: routeId = ${l}`),v.children||(v.children=[]),s=v.children}else s=c;let h=u.filter(v=>!s.some(m=>Sy(v,m))),y=br(h,o,[l||"_","patch",String((s==null?void 0:s.length)||"0")],f);s.push(...y)}function Sy(l,u){return"id"in l&&"id"in u&&l.id===u.id?!0:l.index===u.index&&l.path===u.path&&l.caseSensitive===u.caseSensitive?(!l.children||l.children.length===0)&&(!u.children||u.children.length===0)?!0:l.children.every((c,f)=>{var o;return(o=u.children)==null?void 0:o.some(s=>Sy(c,s))}):!1}async function d0(l,u,c){if(!l.lazy)return;let f=await l.lazy();if(!l.lazy)return;let o=c[l.id];Ne(o,"No route found in manifest");let s={};for(let h in f){let v=o[h]!==void 0&&h!=="hasErrorBoundary";bt(!v,`Route "${o.id}" has a static property "${h}" defined but its lazy function is also returning a value for this property. The lazy route property "${h}" will be ignored.`),!v&&!jp.has(h)&&(s[h]=f[h])}Object.assign(o,s),Object.assign(o,{...u(o),lazy:void 0})}async function h0({matches:l}){let u=l.filter(f=>f.shouldLoad);return(await Promise.all(u.map(f=>f.resolve()))).reduce((f,o,s)=>Object.assign(f,{[u[s].route.id]:o}),{})}async function m0(l,u,c,f,o,s,h,y,v,m){let b=s.map(D=>D.route.lazy?d0(D.route,v,y):void 0),M=s.map((D,N)=>{let q=b[N],V=o.some(Z=>Z.route.id===D.route.id);return{...D,shouldLoad:V,resolve:async Z=>(Z&&f.method==="GET"&&(D.route.lazy||D.route.loader)&&(V=!0),V?y0(u,f,D,q,Z,m):Promise.resolve({type:"data",result:void 0}))}}),S=await l({matches:M,request:f,params:s[0].params,fetcherKey:h,context:m});try{await Promise.all(b)}catch{}return S}async function y0(l,u,c,f,o,s){let h,y,v=m=>{let b,M=new Promise((N,q)=>b=q);y=()=>b(),u.signal.addEventListener("abort",y);let S=N=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${c.route.id}]`)):m({request:u,params:c.params,context:s},...N!==void 0?[N]:[]),D=(async()=>{try{return{type:"data",result:await(o?o(q=>S(q)):S())}}catch(N){return{type:"error",result:N}}})();return Promise.race([D,M])};try{let m=c.route[l];if(f)if(m){let b,[M]=await Promise.all([v(m).catch(S=>{b=S}),f]);if(b!==void 0)throw b;h=M}else if(await f,m=c.route[l],m)h=await v(m);else if(l==="action"){let b=new URL(u.url),M=b.pathname+b.search;throw dn(405,{method:u.method,pathname:M,routeId:c.route.id})}else return{type:"data",result:void 0};else if(m)h=await v(m);else{let b=new URL(u.url),M=b.pathname+b.search;throw dn(404,{pathname:M})}}catch(m){return{type:"error",result:m}}finally{y&&u.signal.removeEventListener("abort",y)}return h}async function v0(l){var f,o,s,h;let{result:u,type:c}=l;if(Ty(u)){let y;try{let v=u.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?u.body==null?y=null:y=await u.json():y=await u.text()}catch(v){return{type:"error",error:v}}return c==="error"?{type:"error",error:new Rr(u.status,u.statusText,y),statusCode:u.status,headers:u.headers}:{type:"data",data:y,statusCode:u.status,headers:u.headers}}if(c==="error"){if(Zm(u)){if(u.data instanceof Error)return{type:"error",error:u.data,statusCode:(f=u.init)==null?void 0:f.status};u=new Rr(((o=u.init)==null?void 0:o.status)||500,void 0,u.data)}return{type:"error",error:u,statusCode:_r(u)?u.status:void 0}}return Zm(u)?{type:"data",data:u.data,statusCode:(s=u.init)==null?void 0:s.status,headers:(h=u.init)!=null&&h.headers?new Headers(u.init.headers):void 0}:{type:"data",data:u}}function g0(l,u,c,f,o){let s=l.headers.get("Location");if(Ne(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Mo.test(s)){let h=f.slice(0,f.findIndex(y=>y.route.id===c)+1);s=mo(new URL(u.url),h,o,s),l.headers.set("Location",s)}return l}function qm(l,u,c){if(Mo.test(l)){let f=l,o=f.startsWith("//")?new URL(u.protocol+f):new URL(f),s=Jt(o.pathname,c)!=null;if(o.origin===u.origin&&s)return o.pathname+o.search+o.hash}return l}function Gl(l,u,c,f){let o=l.createURL(Ry(u)).toString(),s={signal:c};if(f&&Tn(f.formMethod)){let{formMethod:h,formEncType:y}=f;s.method=h.toUpperCase(),y==="application/json"?(s.headers=new Headers({"Content-Type":y}),s.body=JSON.stringify(f.json)):y==="text/plain"?s.body=f.text:y==="application/x-www-form-urlencoded"&&f.formData?s.body=vo(f.formData):s.body=f.formData}return new Request(o,s)}function vo(l){let u=new URLSearchParams;for(let[c,f]of l.entries())u.append(c,typeof f=="string"?f:f.name);return u}function Ym(l){let u=new FormData;for(let[c,f]of l.entries())u.append(c,f);return u}function p0(l,u,c,f=!1,o=!1){let s={},h=null,y,v=!1,m={},b=c&&$t(c[1])?c[1].error:void 0;return l.forEach(M=>{if(!(M.route.id in u))return;let S=M.route.id,D=u[S];if(Ne(!ul(D),"Cannot handle redirect results in processLoaderData"),$t(D)){let N=D.error;if(b!==void 0&&(N=b,b=void 0),h=h||{},o)h[S]=N;else{let q=nl(l,S);h[q.route.id]==null&&(h[q.route.id]=N)}f||(s[S]=by),v||(v=!0,y=_r(D.error)?D.error.status:500),D.headers&&(m[S]=D.headers)}else s[S]=D.data,D.statusCode&&D.statusCode!==200&&!v&&(y=D.statusCode),D.headers&&(m[S]=D.headers)}),b!==void 0&&c&&(h={[c[0]]:b},s[c[0]]=void 0),{loaderData:s,errors:h,statusCode:y||200,loaderHeaders:m}}function Gm(l,u,c,f,o,s){let{loaderData:h,errors:y}=p0(u,c,f);return o.forEach(v=>{let{key:m,match:b,controller:M}=v,S=s[m];if(Ne(S,"Did not find corresponding fetcher result"),!(M&&M.signal.aborted))if($t(S)){let D=nl(l.matches,b==null?void 0:b.route.id);y&&y[D.route.id]||(y={...y,[D.route.id]:S.error}),l.fetchers.delete(m)}else if(ul(S))Ne(!1,"Unhandled fetcher revalidation redirect");else{let D=Da(S.data);l.fetchers.set(m,D)}}),{loaderData:h,errors:y}}function Xm(l,u,c,f){let o=Object.entries(u).filter(([,s])=>s!==by).reduce((s,[h,y])=>(s[h]=y,s),{});for(let s of c){let h=s.route.id;if(!u.hasOwnProperty(h)&&l.hasOwnProperty(h)&&s.route.loader&&(o[h]=l[h]),f&&f.hasOwnProperty(h))break}return o}function Vm(l){return l?$t(l[1])?{actionData:{}}:{actionData:{[l[0]]:l[1].data}}:{}}function nl(l,u){return(u?l.slice(0,l.findIndex(f=>f.route.id===u)+1):[...l]).reverse().find(f=>f.route.hasErrorBoundary===!0)||l[0]}function Qm(l){let u=l.length===1?l[0]:l.find(c=>c.index||!c.path||c.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:u}],route:u}}function dn(l,{pathname:u,routeId:c,method:f,type:o,message:s}={}){let h="Unknown Server Error",y="Unknown @remix-run/router error";return l===400?(h="Bad Request",f&&u&&c?y=`You made a ${f} request to "${u}" but did not provide a \`loader\` for route "${c}", so there is no way to handle the request.`:o==="invalid-body"&&(y="Unable to encode submission body")):l===403?(h="Forbidden",y=`Route "${c}" does not match URL "${u}"`):l===404?(h="Not Found",y=`No route matches URL "${u}"`):l===405&&(h="Method Not Allowed",f&&u&&c?y=`You made a ${f.toUpperCase()} request to "${u}" but did not provide an \`action\` for route "${c}", so there is no way to handle the request.`:f&&(y=`Invalid request method "${f.toUpperCase()}"`)),new Rr(l||500,h,new Error(y),!0)}function dr(l){let u=Object.entries(l);for(let c=u.length-1;c>=0;c--){let[f,o]=u[c];if(ul(o))return{key:f,result:o}}}function Ry(l){let u=typeof l=="string"?_a(l):l;return Aa({...u,hash:""})}function E0(l,u){return l.pathname!==u.pathname||l.search!==u.search?!1:l.hash===""?u.hash!=="":l.hash===u.hash?!0:u.hash!==""}function b0(l){return Ty(l.result)&&l0.has(l.result.status)}function $t(l){return l.type==="error"}function ul(l){return(l&&l.type)==="redirect"}function Zm(l){return typeof l=="object"&&l!=null&&"type"in l&&"data"in l&&"init"in l&&l.type==="DataWithResponseInit"}function Ty(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.headers=="object"&&typeof l.body<"u"}function S0(l){return a0.has(l.toUpperCase())}function Tn(l){return t0.has(l.toUpperCase())}function Ao(l){return new URLSearchParams(l).getAll("index").some(u=>u==="")}function $u(l,u){let c=typeof u=="string"?_a(u).search:u.search;if(l[l.length-1].route.index&&Ao(c||""))return l[l.length-1];let f=gy(l);return f[f.length-1]}function Km(l){let{formMethod:u,formAction:c,formEncType:f,text:o,formData:s,json:h}=l;if(!(!u||!c||!f)){if(o!=null)return{formMethod:u,formAction:c,formEncType:f,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:u,formAction:c,formEncType:f,formData:s,json:void 0,text:void 0};if(h!==void 0)return{formMethod:u,formAction:c,formEncType:f,formData:void 0,json:h,text:void 0}}}function If(l,u){return u?{state:"loading",location:l,formMethod:u.formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}:{state:"loading",location:l,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function R0(l,u){return{state:"submitting",location:l,formMethod:u.formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}}function Zu(l,u){return l?{state:"loading",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:u}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:u}}function T0(l,u){return{state:"submitting",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:u?u.data:void 0}}function Da(l){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:l}}function x0(l,u){try{let c=l.sessionStorage.getItem(Ey);if(c){let f=JSON.parse(c);for(let[o,s]of Object.entries(f||{}))s&&Array.isArray(s)&&u.set(o,new Set(s||[]))}}catch{}}function O0(l,u){if(u.size>0){let c={};for(let[f,o]of u)c[f]=[...o];try{l.sessionStorage.setItem(Ey,JSON.stringify(c))}catch(f){bt(!1,`Failed to save applied view transitions in sessionStorage (${f}).`)}}}function D0(){let l,u,c=new Promise((f,o)=>{l=async s=>{f(s);try{await c}catch{}},u=async s=>{o(s);try{await c}catch{}}});return{promise:c,resolve:l,reject:u}}var rl=p.createContext(null);rl.displayName="DataRouter";var Pu=p.createContext(null);Pu.displayName="DataRouterState";var _o=p.createContext({isTransitioning:!1});_o.displayName="ViewTransition";var xy=p.createContext(new Map);xy.displayName="Fetchers";var C0=p.createContext(null);C0.displayName="Await";var Nn=p.createContext(null);Nn.displayName="Navigation";var wr=p.createContext(null);wr.displayName="Location";var xn=p.createContext({outlet:null,matches:[],isDataRoute:!1});xn.displayName="Route";var wo=p.createContext(null);wo.displayName="RouteError";function M0(l,{relative:u}={}){Ne(Iu(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:f}=p.useContext(Nn),{hash:o,pathname:s,search:h}=ei(l,{relative:u}),y=s;return c!=="/"&&(y=s==="/"?c:wn([c,s])),f.createHref({pathname:y,search:h,hash:o})}function Iu(){return p.useContext(wr)!=null}function ta(){return Ne(Iu(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(wr).location}var Oy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dy(l){p.useContext(Nn).static||p.useLayoutEffect(l)}function Cy(){let{isDataRoute:l}=p.useContext(xn);return l?X0():A0()}function A0(){Ne(Iu(),"useNavigate() may be used only in the context of a <Router> component.");let l=p.useContext(rl),{basename:u,navigator:c}=p.useContext(Nn),{matches:f}=p.useContext(xn),{pathname:o}=ta(),s=JSON.stringify(Do(f)),h=p.useRef(!1);return Dy(()=>{h.current=!0}),p.useCallback((v,m={})=>{if(bt(h.current,Oy),!h.current)return;if(typeof v=="number"){c.go(v);return}let b=Co(v,JSON.parse(s),o,m.relative==="path");l==null&&u!=="/"&&(b.pathname=b.pathname==="/"?u:wn([u,b.pathname])),(m.replace?c.replace:c.push)(b,m.state,m)},[u,c,s,o,l])}var _0=p.createContext(null);function w0(l){let u=p.useContext(xn).outlet;return u&&p.createElement(_0.Provider,{value:l},u)}function Vb(){let{matches:l}=p.useContext(xn),u=l[l.length-1];return u?u.params:{}}function ei(l,{relative:u}={}){let{matches:c}=p.useContext(xn),{pathname:f}=ta(),o=JSON.stringify(Do(c));return p.useMemo(()=>Co(l,JSON.parse(o),f,u==="path"),[l,o,f,u])}function N0(l,u,c,f){Ne(Iu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=p.useContext(Nn),{matches:s}=p.useContext(xn),h=s[s.length-1],y=h?h.params:{},v=h?h.pathname:"/",m=h?h.pathnameBase:"/",b=h&&h.route;{let U=b&&b.path||"";_y(v,!b||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${U}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
-
-Please change the parent <Route path="${U}"> to <Route path="${U==="/"?"*":`${U}/*`}">.`)}let M=ta(),S;S=M;let D=S.pathname||"/",N=D;if(m!=="/"){let U=m.replace(/^\//,"").split("/");N="/"+D.replace(/^\//,"").split("/").slice(U.length).join("/")}let q=Ma(l,{pathname:N});return bt(b||q!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),bt(q==null||q[q.length-1].route.element!==void 0||q[q.length-1].route.Component!==void 0||q[q.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),H0(q&&q.map(U=>Object.assign({},U,{params:Object.assign({},y,U.params),pathname:wn([m,o.encodeLocation?o.encodeLocation(U.pathname).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?m:wn([m,o.encodeLocation?o.encodeLocation(U.pathnameBase).pathname:U.pathnameBase])})),s,c,f)}function z0(){let l=Y0(),u=_r(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),c=l instanceof Error?l.stack:null,f="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:f},s={padding:"2px 4px",backgroundColor:f},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:s},"ErrorBoundary")," or"," ",p.createElement("code",{style:s},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},u),c?p.createElement("pre",{style:o},c):null,h)}var U0=p.createElement(z0,null),j0=class extends p.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,u){return u.location!==l.location||u.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:u.error,location:u.location,revalidation:l.revalidation||u.revalidation}}componentDidCatch(l,u){console.error("React Router caught the following error during render",l,u)}render(){return this.state.error!==void 0?p.createElement(xn.Provider,{value:this.props.routeContext},p.createElement(wo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function L0({routeContext:l,match:u,children:c}){let f=p.useContext(rl);return f&&f.static&&f.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=u.route.id),p.createElement(xn.Provider,{value:l},c)}function H0(l,u=[],c=null,f=null){if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(u.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let o=l,s=c==null?void 0:c.errors;if(s!=null){let v=o.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);Ne(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,v+1))}let h=!1,y=-1;if(c)for(let v=0;v<o.length;v++){let m=o[v];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(y=v),m.route.id){let{loaderData:b,errors:M}=c,S=m.route.loader&&!b.hasOwnProperty(m.route.id)&&(!M||M[m.route.id]===void 0);if(m.route.lazy||S){h=!0,y>=0?o=o.slice(0,y+1):o=[o[0]];break}}}return o.reduceRight((v,m,b)=>{let M,S=!1,D=null,N=null;c&&(M=s&&m.route.id?s[m.route.id]:void 0,D=m.route.errorElement||U0,h&&(y<0&&b===0?(_y("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,N=null):y===b&&(S=!0,N=m.route.hydrateFallbackElement||null)));let q=u.concat(o.slice(0,b+1)),V=()=>{let U;return M?U=D:S?U=N:m.route.Component?U=p.createElement(m.route.Component,null):m.route.element?U=m.route.element:U=v,p.createElement(L0,{match:m,routeContext:{outlet:v,matches:q,isDataRoute:c!=null},children:U})};return c&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?p.createElement(j0,{location:c.location,revalidation:c.revalidation,component:D,error:M,children:V(),routeContext:{outlet:null,matches:q,isDataRoute:!0}}):V()},null)}function No(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function My(l){let u=p.useContext(rl);return Ne(u,No(l)),u}function Ay(l){let u=p.useContext(Pu);return Ne(u,No(l)),u}function B0(l){let u=p.useContext(xn);return Ne(u,No(l)),u}function zo(l){let u=B0(l),c=u.matches[u.matches.length-1];return Ne(c.route.id,`${l} can only be used on routes that contain a unique "id"`),c.route.id}function q0(){return zo("useRouteId")}function Y0(){var f;let l=p.useContext(wo),u=Ay("useRouteError"),c=zo("useRouteError");return l!==void 0?l:(f=u.errors)==null?void 0:f[c]}var G0=0;function Qb(l){let{router:u,basename:c}=My("useBlocker"),f=Ay("useBlocker"),[o,s]=p.useState(""),h=p.useCallback(y=>{if(typeof l!="function")return!!l;if(c==="/")return l(y);let{currentLocation:v,nextLocation:m,historyAction:b}=y;return l({currentLocation:{...v,pathname:Jt(v.pathname,c)||v.pathname},nextLocation:{...m,pathname:Jt(m.pathname,c)||m.pathname},historyAction:b})},[c,l]);return p.useEffect(()=>{let y=String(++G0);return s(y),()=>u.deleteBlocker(y)},[u]),p.useEffect(()=>{o!==""&&u.getBlocker(o,h)},[u,o,h]),o&&f.blockers.has(o)?f.blockers.get(o):Zl}function X0(){let{router:l}=My("useNavigate"),u=zo("useNavigate"),c=p.useRef(!1);return Dy(()=>{c.current=!0}),p.useCallback(async(o,s={})=>{bt(c.current,Oy),c.current&&(typeof o=="number"?l.navigate(o):await l.navigate(o,{fromRouteId:u,...s}))},[l,u])}var km={};function _y(l,u,c){!u&&!km[l]&&(km[l]=!0,bt(!1,c))}var $m={};function Jm(l,u){!l&&!$m[u]&&($m[u]=!0,console.warn(u))}function V0(l){let u={hasErrorBoundary:l.hasErrorBoundary||l.ErrorBoundary!=null||l.errorElement!=null};return l.Component&&(l.element&&bt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(u,{element:p.createElement(l.Component),Component:void 0})),l.HydrateFallback&&(l.hydrateFallbackElement&&bt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(u,{hydrateFallbackElement:p.createElement(l.HydrateFallback),HydrateFallback:void 0})),l.ErrorBoundary&&(l.errorElement&&bt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(u,{errorElement:p.createElement(l.ErrorBoundary),ErrorBoundary:void 0})),u}var Q0=class{constructor(){this.status="pending",this.promise=new Promise((l,u)=>{this.resolve=c=>{this.status==="pending"&&(this.status="resolved",l(c))},this.reject=c=>{this.status==="pending"&&(this.status="rejected",u(c))}})}};function Z0({router:l,flushSync:u}){let[c,f]=p.useState(l.state),[o,s]=p.useState(),[h,y]=p.useState({isTransitioning:!1}),[v,m]=p.useState(),[b,M]=p.useState(),[S,D]=p.useState(),N=p.useRef(new Map),q=p.useCallback((K,{deletedFetchers:le,flushSync:x,viewTransitionOpts:P})=>{K.fetchers.forEach((oe,$)=>{oe.data!==void 0&&N.current.set($,oe.data)}),le.forEach(oe=>N.current.delete(oe)),Jm(x===!1||u!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let he=l.window!=null&&l.window.document!=null&&typeof l.window.document.startViewTransition=="function";if(Jm(P==null||he,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!P||!he){u&&x?u(()=>f(K)):p.startTransition(()=>f(K));return}if(u&&x){u(()=>{b&&(v&&v.resolve(),b.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let oe=l.window.document.startViewTransition(()=>{u(()=>f(K))});oe.finished.finally(()=>{u(()=>{m(void 0),M(void 0),s(void 0),y({isTransitioning:!1})})}),u(()=>M(oe));return}b?(v&&v.resolve(),b.skipTransition(),D({state:K,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(s(K),y({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[l.window,u,b,v]);p.useLayoutEffect(()=>l.subscribe(q),[l,q]),p.useEffect(()=>{h.isTransitioning&&!h.flushSync&&m(new Q0)},[h]),p.useEffect(()=>{if(v&&o&&l.window){let K=o,le=v.promise,x=l.window.document.startViewTransition(async()=>{p.startTransition(()=>f(K)),await le});x.finished.finally(()=>{m(void 0),M(void 0),s(void 0),y({isTransitioning:!1})}),M(x)}},[o,v,l.window]),p.useEffect(()=>{v&&o&&c.location.key===o.location.key&&v.resolve()},[v,b,c.location,o]),p.useEffect(()=>{!h.isTransitioning&&S&&(s(S.state),y({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),D(void 0))},[h.isTransitioning,S]);let V=p.useMemo(()=>({createHref:l.createHref,encodeLocation:l.encodeLocation,go:K=>l.navigate(K),push:(K,le,x)=>l.navigate(K,{state:le,preventScrollReset:x==null?void 0:x.preventScrollReset}),replace:(K,le,x)=>l.navigate(K,{replace:!0,state:le,preventScrollReset:x==null?void 0:x.preventScrollReset})}),[l]),U=l.basename||"/",Z=p.useMemo(()=>({router:l,navigator:V,static:!1,basename:U}),[l,V,U]);return p.createElement(p.Fragment,null,p.createElement(rl.Provider,{value:Z},p.createElement(Pu.Provider,{value:c},p.createElement(xy.Provider,{value:N.current},p.createElement(_o.Provider,{value:h},p.createElement($0,{basename:U,location:c.location,navigationType:c.historyAction,navigator:V},p.createElement(K0,{routes:l.routes,future:l.future,state:c})))))),null)}var K0=p.memo(k0);function k0({routes:l,future:u,state:c}){return N0(l,void 0,c,u)}function Zb(l){return w0(l.context)}function $0({basename:l="/",children:u=null,location:c,navigationType:f="POP",navigator:o,static:s=!1}){Ne(!Iu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=l.replace(/^\/*/,"/"),y=p.useMemo(()=>({basename:h,navigator:o,static:s,future:{}}),[h,o,s]);typeof c=="string"&&(c=_a(c));let{pathname:v="/",search:m="",hash:b="",state:M=null,key:S="default"}=c,D=p.useMemo(()=>{let N=Jt(v,h);return N==null?null:{location:{pathname:N,search:m,hash:b,state:M,key:S},navigationType:f}},[h,v,m,b,M,S,f]);return bt(D!=null,`<Router basename="${h}"> is not able to match the URL "${v}${m}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:p.createElement(Nn.Provider,{value:y},p.createElement(wr.Provider,{children:u,value:D}))}var pr="get",Er="application/x-www-form-urlencoded";function Nr(l){return l!=null&&typeof l.tagName=="string"}function J0(l){return Nr(l)&&l.tagName.toLowerCase()==="button"}function F0(l){return Nr(l)&&l.tagName.toLowerCase()==="form"}function W0(l){return Nr(l)&&l.tagName.toLowerCase()==="input"}function P0(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function I0(l,u){return l.button===0&&(!u||u==="_self")&&!P0(l)}function go(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((u,c)=>{let f=l[c];return u.concat(Array.isArray(f)?f.map(o=>[c,o]):[[c,f]])},[]))}function e1(l,u){let c=go(l);return u&&u.forEach((f,o)=>{c.has(o)||u.getAll(o).forEach(s=>{c.append(o,s)})}),c}var hr=null;function t1(){if(hr===null)try{new FormData(document.createElement("form"),0),hr=!1}catch{hr=!0}return hr}var n1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function eo(l){return l!=null&&!n1.has(l)?(bt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Er}"`),null):l}function a1(l,u){let c,f,o,s,h;if(F0(l)){let y=l.getAttribute("action");f=y?Jt(y,u):null,c=l.getAttribute("method")||pr,o=eo(l.getAttribute("enctype"))||Er,s=new FormData(l)}else if(J0(l)||W0(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||y.getAttribute("action");if(f=v?Jt(v,u):null,c=l.getAttribute("formmethod")||y.getAttribute("method")||pr,o=eo(l.getAttribute("formenctype"))||eo(y.getAttribute("enctype"))||Er,s=new FormData(y,l),!t1()){let{name:m,type:b,value:M}=l;if(b==="image"){let S=m?`${m}.`:"";s.append(`${S}x`,"0"),s.append(`${S}y`,"0")}else m&&s.append(m,M)}}else{if(Nr(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=pr,f=null,o=Er,h=l}return s&&o==="text/plain"&&(h=s,s=void 0),{action:f,method:c.toLowerCase(),encType:o,formData:s,body:h}}function Uo(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}async function l1(l,u){if(l.id in u)return u[l.id];try{let c=await import(l.module);return u[l.id]=c,c}catch(c){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function u1(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function i1(l,u,c){let f=await Promise.all(l.map(async o=>{let s=u.routes[o.route.id];if(s){let h=await l1(s,c);return h.links?h.links():[]}return[]}));return o1(f.flat(1).filter(u1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Fm(l,u,c,f,o,s){let h=(v,m)=>c[m]?v.route.id!==c[m].route.id:!0,y=(v,m)=>{var b;return c[m].pathname!==v.pathname||((b=c[m].route.path)==null?void 0:b.endsWith("*"))&&c[m].params["*"]!==v.params["*"]};return s==="assets"?u.filter((v,m)=>h(v,m)||y(v,m)):s==="data"?u.filter((v,m)=>{var M;let b=f.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(h(v,m)||y(v,m))return!0;if(v.route.shouldRevalidate){let S=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((M=c[0])==null?void 0:M.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function r1(l,u){return c1(l.map(c=>{let f=u.routes[c.route.id];if(!f)return[];let o=[f.module];return f.imports&&(o=o.concat(f.imports)),o}).flat(1))}function c1(l){return[...new Set(l)]}function f1(l){let u={},c=Object.keys(l).sort();for(let f of c)u[f]=l[f];return u}function o1(l,u){let c=new Set;return new Set(u),l.reduce((f,o)=>{let s=JSON.stringify(f1(o));return c.has(s)||(c.add(s),f.push({key:s,link:o})),f},[])}function s1(l){let u=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u.pathname==="/"?u.pathname="_root.data":u.pathname=`${u.pathname.replace(/\/$/,"")}.data`,u}function d1(){let l=p.useContext(rl);return Uo(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function h1(){let l=p.useContext(Pu);return Uo(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var jo=p.createContext(void 0);jo.displayName="FrameworkContext";function wy(){let l=p.useContext(jo);return Uo(l,"You must render this element inside a <HydratedRouter> element"),l}function m1(l,u){let c=p.useContext(jo),[f,o]=p.useState(!1),[s,h]=p.useState(!1),{onFocus:y,onBlur:v,onMouseEnter:m,onMouseLeave:b,onTouchStart:M}=u,S=p.useRef(null);p.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let q=U=>{U.forEach(Z=>{h(Z.isIntersecting)})},V=new IntersectionObserver(q,{threshold:.5});return S.current&&V.observe(S.current),()=>{V.disconnect()}}},[l]),p.useEffect(()=>{if(f){let q=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(q)}}},[f]);let D=()=>{o(!0)},N=()=>{o(!1),h(!1)};return c?l!=="intent"?[s,S,{}]:[s,S,{onFocus:Ku(y,D),onBlur:Ku(v,N),onMouseEnter:Ku(m,D),onMouseLeave:Ku(b,N),onTouchStart:Ku(M,D)}]:[!1,S,{}]}function Ku(l,u){return c=>{l&&l(c),c.defaultPrevented||u(c)}}function y1({page:l,...u}){let{router:c}=d1(),f=p.useMemo(()=>Ma(c.routes,l,c.basename),[c.routes,l,c.basename]);return f?p.createElement(g1,{page:l,matches:f,...u}):null}function v1(l){let{manifest:u,routeModules:c}=wy(),[f,o]=p.useState([]);return p.useEffect(()=>{let s=!1;return i1(l,u,c).then(h=>{s||o(h)}),()=>{s=!0}},[l,u,c]),f}function g1({page:l,matches:u,...c}){let f=ta(),{manifest:o,routeModules:s}=wy(),{loaderData:h,matches:y}=h1(),v=p.useMemo(()=>Fm(l,u,y,o,f,"data"),[l,u,y,o,f]),m=p.useMemo(()=>Fm(l,u,y,o,f,"assets"),[l,u,y,o,f]),b=p.useMemo(()=>{if(l===f.pathname+f.search+f.hash)return[];let D=new Set,N=!1;if(u.forEach(V=>{var Z;let U=o.routes[V.route.id];!U||!U.hasLoader||(!v.some(K=>K.route.id===V.route.id)&&V.route.id in h&&((Z=s[V.route.id])!=null&&Z.shouldRevalidate)||U.hasClientLoader?N=!0:D.add(V.route.id))}),D.size===0)return[];let q=s1(l);return N&&D.size>0&&q.searchParams.set("_routes",u.filter(V=>D.has(V.route.id)).map(V=>V.route.id).join(",")),[q.pathname+q.search]},[h,f,o,v,u,l,s]),M=p.useMemo(()=>r1(m,o),[m,o]),S=v1(m);return p.createElement(p.Fragment,null,b.map(D=>p.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...c})),M.map(D=>p.createElement("link",{key:D,rel:"modulepreload",href:D,...c})),S.map(({key:D,link:N})=>p.createElement("link",{key:D,...N})))}function p1(...l){return u=>{l.forEach(c=>{typeof c=="function"?c(u):c!=null&&(c.current=u)})}}var Ny=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ny&&(window.__reactRouterVersion="7.1.3")}catch{}function Kb(l,u){return c0({basename:u==null?void 0:u.basename,future:u==null?void 0:u.future,history:Np({window:u==null?void 0:u.window}),hydrationData:E1(),routes:l,mapRouteProperties:V0,dataStrategy:u==null?void 0:u.dataStrategy,patchRoutesOnNavigation:u==null?void 0:u.patchRoutesOnNavigation,window:u==null?void 0:u.window}).initialize()}function E1(){let l=window==null?void 0:window.__staticRouterHydrationData;return l&&l.errors&&(l={...l,errors:b1(l.errors)}),l}function b1(l){if(!l)return null;let u=Object.entries(l),c={};for(let[f,o]of u)if(o&&o.__type==="RouteErrorResponse")c[f]=new Rr(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let h=new s(o.message);h.stack="",c[f]=h}catch{}}if(c[f]==null){let s=new Error(o.message);s.stack="",c[f]=s}}else c[f]=o;return c}var zy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tr=p.forwardRef(function({onClick:u,discover:c="render",prefetch:f="none",relative:o,reloadDocument:s,replace:h,state:y,target:v,to:m,preventScrollReset:b,viewTransition:M,...S},D){let{basename:N}=p.useContext(Nn),q=typeof m=="string"&&zy.test(m),V,U=!1;if(typeof m=="string"&&q&&(V=m,Ny))try{let $=new URL(window.location.href),ie=m.startsWith("//")?new URL($.protocol+m):new URL(m),He=Jt(ie.pathname,N);ie.origin===$.origin&&He!=null?m=He+ie.search+ie.hash:U=!0}catch{bt(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Z=M0(m,{relative:o}),[K,le,x]=m1(f,S),P=x1(m,{replace:h,state:y,target:v,preventScrollReset:b,relative:o,viewTransition:M});function he($){u&&u($),$.defaultPrevented||P($)}let oe=p.createElement("a",{...S,...x,href:V||Z,onClick:U||s?u:he,ref:p1(D,le),target:v,"data-discover":!q&&c==="render"?"true":void 0});return K&&!q?p.createElement(p.Fragment,null,oe,p.createElement(y1,{page:Z})):oe});Tr.displayName="Link";var S1=p.forwardRef(function({"aria-current":u="page",caseSensitive:c=!1,className:f="",end:o=!1,style:s,to:h,viewTransition:y,children:v,...m},b){let M=ei(h,{relative:m.relative}),S=ta(),D=p.useContext(Pu),{navigator:N,basename:q}=p.useContext(Nn),V=D!=null&&A1(M)&&y===!0,U=N.encodeLocation?N.encodeLocation(M).pathname:M.pathname,Z=S.pathname,K=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;c||(Z=Z.toLowerCase(),K=K?K.toLowerCase():null,U=U.toLowerCase()),K&&q&&(K=Jt(K,q)||K);const le=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let x=Z===U||!o&&Z.startsWith(U)&&Z.charAt(le)==="/",P=K!=null&&(K===U||!o&&K.startsWith(U)&&K.charAt(U.length)==="/"),he={isActive:x,isPending:P,isTransitioning:V},oe=x?u:void 0,$;typeof f=="function"?$=f(he):$=[f,x?"active":null,P?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let ie=typeof s=="function"?s(he):s;return p.createElement(Tr,{...m,"aria-current":oe,className:$,ref:b,style:ie,to:h,viewTransition:y},typeof v=="function"?v(he):v)});S1.displayName="NavLink";var R1=p.forwardRef(({discover:l="render",fetcherKey:u,navigate:c,reloadDocument:f,replace:o,state:s,method:h=pr,action:y,onSubmit:v,relative:m,preventScrollReset:b,viewTransition:M,...S},D)=>{let N=C1(),q=M1(y,{relative:m}),V=h.toLowerCase()==="get"?"get":"post",U=typeof y=="string"&&zy.test(y),Z=K=>{if(v&&v(K),K.defaultPrevented)return;K.preventDefault();let le=K.nativeEvent.submitter,x=(le==null?void 0:le.getAttribute("formmethod"))||h;N(le||K.currentTarget,{fetcherKey:u,method:x,navigate:c,replace:o,state:s,relative:m,preventScrollReset:b,viewTransition:M})};return p.createElement("form",{ref:D,method:V,action:q,onSubmit:f?v:Z,...S,"data-discover":!U&&l==="render"?"true":void 0})});R1.displayName="Form";function T1(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uy(l){let u=p.useContext(rl);return Ne(u,T1(l)),u}function x1(l,{target:u,replace:c,state:f,preventScrollReset:o,relative:s,viewTransition:h}={}){let y=Cy(),v=ta(),m=ei(l,{relative:s});return p.useCallback(b=>{if(I0(b,u)){b.preventDefault();let M=c!==void 0?c:Aa(v)===Aa(m);y(l,{replace:M,state:f,preventScrollReset:o,relative:s,viewTransition:h})}},[v,y,m,c,f,u,l,o,s,h])}function kb(l){bt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let u=p.useRef(go(l)),c=p.useRef(!1),f=ta(),o=p.useMemo(()=>e1(f.search,c.current?null:u.current),[f.search]),s=Cy(),h=p.useCallback((y,v)=>{const m=go(typeof y=="function"?y(o):y);c.current=!0,s("?"+m,v)},[s,o]);return[o,h]}var O1=0,D1=()=>`__${String(++O1)}__`;function C1(){let{router:l}=Uy("useSubmit"),{basename:u}=p.useContext(Nn),c=q0();return p.useCallback(async(f,o={})=>{let{action:s,method:h,encType:y,formData:v,body:m}=a1(f,u);if(o.navigate===!1){let b=o.fetcherKey||D1();await l.fetch(b,c,o.action||s,{preventScrollReset:o.preventScrollReset,formData:v,body:m,formMethod:o.method||h,formEncType:o.encType||y,flushSync:o.flushSync})}else await l.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:v,body:m,formMethod:o.method||h,formEncType:o.encType||y,replace:o.replace,state:o.state,fromRouteId:c,flushSync:o.flushSync,viewTransition:o.viewTransition})},[l,u,c])}function M1(l,{relative:u}={}){let{basename:c}=p.useContext(Nn),f=p.useContext(xn);Ne(f,"useFormAction must be used inside a RouteContext");let[o]=f.matches.slice(-1),s={...ei(l||".",{relative:u})},h=ta();if(l==null){s.search=h.search;let y=new URLSearchParams(s.search),v=y.getAll("index");if(v.some(b=>b==="")){y.delete("index"),v.filter(M=>M).forEach(M=>y.append("index",M));let b=y.toString();s.search=b?`?${b}`:""}}return(!l||l===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(s.pathname=s.pathname==="/"?c:wn([c,s.pathname])),Aa(s)}function A1(l,u={}){let c=p.useContext(_o);Ne(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:f}=Uy("useViewTransitionState"),o=ei(l,{relative:u.relative});if(!c.isTransitioning)return!1;let s=Jt(c.currentLocation.pathname,f)||c.currentLocation.pathname,h=Jt(c.nextLocation.pathname,f)||c.nextLocation.pathname;return Sr(o.pathname,h)!=null||Sr(o.pathname,s)!=null}new TextEncoder;var jy=my();const Kl=Wu(jy);/**
- * react-router v7.1.3
- *
- * Copyright (c) Remix Software Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE.md file in the root directory of this source tree.
- *
- * @license MIT
- */function $b(l){return p.createElement(Z0,{flushSync:jy.flushSync,...l})}const _1=p.createContext({show:!1,toggle:()=>{}}),w1=l=>{const u=Bt.c(8),{children:c}=l,[f,o]=p.useState(!1);let s;u[0]!==f?(s=()=>{o(!f)},u[0]=f,u[1]=s):s=u[1];const h=s;let y;u[2]!==f||u[3]!==h?(y={show:f,toggle:h},u[2]=f,u[3]=h,u[4]=y):y=u[4];let v;return u[5]!==c||u[6]!==y?(v=j.jsx(_1.Provider,{value:y,children:c}),u[5]=c,u[6]=y,u[7]=v):v=u[7],v};async function N1(){return await(await fetch("/api/user/")).json()}const po={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Ly=p.createContext({user:po,logout:()=>{},setUser:()=>{}}),z1=l=>{const u=Bt.c(8),{children:c}=l,[f,o]=p.useState(po);let s;u[0]===Symbol.for("react.memo_cache_sentinel")?(s=async function(){await fetch("/logout"),o(po)},u[0]=s):s=u[0];const h=s;let y,v;u[1]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{N1().then(M=>{o(M)})},v=[],u[1]=y,u[2]=v):(y=u[1],v=u[2]),p.useEffect(y,v);let m;u[3]!==f?(m={user:f,logout:h,setUser:o},u[3]=f,u[4]=m):m=u[4];let b;return u[5]!==c||u[6]!==m?(b=j.jsx(Ly.Provider,{value:m,children:c}),u[5]=c,u[6]=m,u[7]=b):b=u[7],b},U1=p.createContext({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:()=>{}}),j1=l=>{const u=Bt.c(6),{children:c}=l;let f;u[0]===Symbol.for("react.memo_cache_sentinel")?(f={selectedYears:[],selectedNrens:[]},u[0]=f):f=u[0];const[o,s]=p.useState(f);let h;u[1]!==o?(h={filterSelection:o,setFilterSelection:s},u[1]=o,u[2]=h):h=u[2];let y;return u[3]!==c||u[4]!==h?(y=j.jsx(U1.Provider,{value:h,children:c}),u[3]=c,u[4]=h,u[5]=y):y=u[5],y},L1=p.createContext(null),H1=l=>{const u=Bt.c(2),{children:c}=l,f=p.useRef(null);let o;return u[0]!==c?(o=j.jsx(L1.Provider,{value:f,children:c}),u[0]=c,u[1]=o):o=u[1],o},B1=p.createContext({preview:!1,setPreview:()=>{}}),q1=l=>{const u=Bt.c(5),{children:c}=l,[f,o]=p.useState(!1);let s;u[0]!==f?(s={preview:f,setPreview:o},u[0]=f,u[1]=s):s=u[1];let h;return u[2]!==c||u[3]!==s?(h=j.jsx(B1.Provider,{value:s,children:c}),u[2]=c,u[3]=s,u[4]=h):h=u[4],h};async function Y1(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}const G1=p.createContext({nrens:[],setNrens:()=>{}}),X1=l=>{const u=Bt.c(8),{children:c}=l;let f;u[0]===Symbol.for("react.memo_cache_sentinel")?(f=[],u[0]=f):f=u[0];const[o,s]=p.useState(f);let h,y;u[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{Y1().then(b=>s(b))},y=[],u[1]=h,u[2]=y):(h=u[1],y=u[2]),p.useEffect(h,y);let v;u[3]!==o?(v={nrens:o,setNrens:s},u[3]=o,u[4]=v):v=u[4];let m;return u[5]!==c||u[6]!==v?(m=j.jsx(G1.Provider,{value:v,children:c}),u[5]=c,u[6]=v,u[7]=m):m=u[7],m},to={TRACK_EVENT:"trackEvent",TRACK_LINK:"trackLink",TRACK_VIEW:"trackPageView"};class V1{constructor(u){vm(this,"mutationObserver");if(!u.urlBase)throw new Error("Matomo urlBase is required.");if(!u.siteId)throw new Error("Matomo siteId is required.");this.initialize(u)}initialize({urlBase:u,siteId:c,userId:f,trackerUrl:o,srcUrl:s,disabled:h,heartBeat:y,requireConsent:v=!1,configurations:m={}}){const b=u[u.length-1]!=="/"?`${u}/`:u;if(typeof window>"u"||(window._paq=window._paq||[],window._paq.length!==0)||h)return;v&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",o??`${b}matomo.php`),this.pushInstruction("setSiteId",c),f&&this.pushInstruction("setUserId",f),Object.entries(m).forEach(([N,q])=>{q instanceof Array?this.pushInstruction(N,...q):this.pushInstruction(N,q)}),(!y||y&&y.active)&&this.enableHeartBeatTimer((y&&y.seconds)??15);const M=document,S=M.createElement("script"),D=M.getElementsByTagName("script")[0];S.type="text/javascript",S.async=!0,S.defer=!0,S.src=s||`${b}matomo.js`,D&&D.parentNode&&D.parentNode.insertBefore(S,D)}enableHeartBeatTimer(u){this.pushInstruction("enableHeartBeatTimer",u)}trackEventsForElements(u){u.length&&u.forEach(c=>{c.addEventListener("click",()=>{const{matomoCategory:f,matomoAction:o,matomoName:s,matomoValue:h}=c.dataset;if(f&&o)this.trackEvent({category:f,action:o,name:s,value:Number(h)});else throw new Error("Error: data-matomo-category and data-matomo-action are required.")})})}trackEvents(){const u='[data-matomo-event="click"]';let c=!1;if(this.mutationObserver||(c=!0,this.mutationObserver=new MutationObserver(f=>{f.forEach(o=>{o.addedNodes.forEach(s=>{if(!(s instanceof HTMLElement))return;s.matches(u)&&this.trackEventsForElements([s]);const h=Array.from(s.querySelectorAll(u));this.trackEventsForElements(h)})})})),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),c){const f=Array.from(document.querySelectorAll(u));this.trackEventsForElements(f)}}stopObserving(){this.mutationObserver&&this.mutationObserver.disconnect()}trackEvent({category:u,action:c,name:f,value:o,...s}){if(u&&c)this.track({data:[to.TRACK_EVENT,u,c,f,o],...s});else throw new Error("Error: category and action are required.")}giveConsent(){this.pushInstruction("setConsentGiven")}trackLink({href:u,linkType:c="link"}){this.pushInstruction(to.TRACK_LINK,u,c)}trackPageView(u){this.track({data:[to.TRACK_VIEW],...u})}track({data:u=[],documentTitle:c=window.document.title,href:f,customDimensions:o=!1}){u.length&&(o&&Array.isArray(o)&&o.length&&o.map(s=>this.pushInstruction("setCustomDimension",s.id,s.value)),this.pushInstruction("setCustomUrl",f??window.location.href),this.pushInstruction("setDocumentTitle",c),this.pushInstruction(...u))}pushInstruction(u,...c){return typeof window<"u"&&window._paq.push([u,...c]),this}}function Q1(l){return window.location.hostname==="localhost"&&(console.log("Matomo tracking disabled in development mode."),l.disabled=!0),new V1(l)}const Lo=p.createContext({consent:null,setConsent:()=>{}}),Z1=l=>{const u=Bt.c(7),{children:c}=l,f=K1;let o;u[0]===Symbol.for("react.memo_cache_sentinel")?(o=f(),u[0]=o):o=u[0];const[s,h]=p.useState(o);let y;u[1]===Symbol.for("react.memo_cache_sentinel")?(y=b=>h(b),u[1]=y):y=u[1];let v;u[2]!==s?(v={setConsent:y,consent:s},u[2]=s,u[3]=v):v=u[3];let m;return u[4]!==c||u[5]!==v?(m=j.jsx(Lo.Provider,{value:v,children:c}),u[4]=c,u[5]=v,u[6]=m):m=u[6],m};function K1(){const l=localStorage.getItem("matomo_consent");if(l){const u=JSON.parse(l);if(new Date(u.expiry)>new Date)return u.consent}return null}const Hy=p.createContext(null),k1=function(l){const u=Bt.c(5),{children:c}=l,o=!p.useContext(Lo).consent;let s;u[0]!==o?(s=Q1({urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:o}),u[0]=o,u[1]=s):s=u[1];const h=s;let y;return u[2]!==c||u[3]!==h?(y=j.jsx(Hy.Provider,{value:h,children:c}),u[2]=c,u[3]=h,u[4]=y):y=u[4],y},$1=()=>{const l=JSON.parse(localStorage.getItem("config")??"{}"),u={};for(const c in l){const f=l[c];f.expireTime&&f.expireTime<Date.now()||f&&(u[c]=f)}return u},no=l=>{localStorage.setItem("config",JSON.stringify(l))},J1=p.createContext({getConfig:()=>{},setConfig:()=>{}}),F1=l=>{const u=Bt.c(12),{children:c}=l;let f;u[0]===Symbol.for("react.memo_cache_sentinel")?(f=$1(),u[0]=f):f=u[0];const[o,s]=p.useState(f);let h;u[1]!==o?(h=(S,D,N)=>{var Z;if(!S)throw new Error("Valid config key must be provided");if(D==null){const K={...o};delete K[S],s(K),no(K);return}const q=JSON.stringify(D),V=JSON.stringify((Z=o[S])==null?void 0:Z.value);if(q===V)return;const U=N?N.getTime():null;if(U&&U<Date.now())throw new Error("Timeout must be in the future");U?(s({...o,[S]:{value:D,expireTime:U}}),no({...o,[S]:{value:D,expireTime:U}})):(s({...o,[S]:{value:D}}),no({...o,[S]:{value:D}}))},u[1]=o,u[2]=h):h=u[2];const y=h;let v;u[3]!==o||u[4]!==y?(v=S=>{const D=o[S];if(D!=null&&D.expireTime&&D.expireTime<Date.now()){y(S);return}if(D!=null)return D.value},u[3]=o,u[4]=y,u[5]=v):v=u[5];const m=v;let b;u[6]!==m||u[7]!==y?(b={getConfig:m,setConfig:y},u[6]=m,u[7]=y,u[8]=b):b=u[8];let M;return u[9]!==c||u[10]!==b?(M=j.jsx(J1.Provider,{value:b,children:c}),u[9]=c,u[10]=b,u[11]=M):M=u[11],M};function Jb(l){const u=Bt.c(2),{children:c}=l;let f;return u[0]!==c?(f=j.jsx(F1,{children:j.jsx(Z1,{children:j.jsx(k1,{children:j.jsx(w1,{children:j.jsx(z1,{children:j.jsx(j1,{children:j.jsx(H1,{children:j.jsx(q1,{children:j.jsx(X1,{children:c})})})})})})})})}),u[0]=c,u[1]=f):f=u[1],f}var ao={exports:{}};/*!
-	Copyright (c) 2018 Jed Watson.
-	Licensed under the MIT License (MIT), see
-	http://jedwatson.github.io/classnames
-*/var Wm;function W1(){return Wm||(Wm=1,function(l){(function(){var u={}.hasOwnProperty;function c(){for(var s="",h=0;h<arguments.length;h++){var y=arguments[h];y&&(s=o(s,f(y)))}return s}function f(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return c.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var h="";for(var y in s)u.call(s,y)&&s[y]&&(h=o(h,y));return h}function o(s,h){return h?s?s+" "+h:s+h:s}l.exports?(c.default=c,l.exports=c):window.classNames=c})()}(ao)),ao.exports}var P1=W1();const Ge=Wu(P1);function I1(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.includes(f))continue;c[f]=l[f]}return c}function Eo(l,u){return Eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},Eo(l,u)}function eE(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,Eo(l,u)}const tE=["xxl","xl","lg","md","sm","xs"],nE="xs",zr=p.createContext({prefixes:{},breakpoints:tE,minBreakpoint:nE});function ct(l,u){const{prefixes:c}=p.useContext(zr);return l||c[u]||u}function By(){const{breakpoints:l}=p.useContext(zr);return l}function qy(){const{minBreakpoint:l}=p.useContext(zr);return l}function aE(){const{dir:l}=p.useContext(zr);return l==="rtl"}function Ur(l){return l&&l.ownerDocument||document}function lE(l){var u=Ur(l);return u&&u.defaultView||window}function uE(l,u){return lE(l).getComputedStyle(l,u)}var iE=/([A-Z])/g;function rE(l){return l.replace(iE,"-$1").toLowerCase()}var cE=/^ms-/;function mr(l){return rE(l).replace(cE,"-ms-")}var fE=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function oE(l){return!!(l&&fE.test(l))}function il(l,u){var c="",f="";if(typeof u=="string")return l.style.getPropertyValue(mr(u))||uE(l).getPropertyValue(mr(u));Object.keys(u).forEach(function(o){var s=u[o];!s&&s!==0?l.style.removeProperty(mr(o)):oE(o)?f+=o+"("+s+") ":c+=mr(o)+": "+s+";"}),f&&(c+="transform: "+f+";"),l.style.cssText+=";"+c}var lo={exports:{}},uo,Pm;function sE(){if(Pm)return uo;Pm=1;var l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return uo=l,uo}var io,Im;function dE(){if(Im)return io;Im=1;var l=sE();function u(){}function c(){}return c.resetWarningCache=u,io=function(){function f(h,y,v,m,b,M){if(M!==l){var S=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 S.name="Invariant Violation",S}}f.isRequired=f;function o(){return f}var s={array:f,bigint:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:o,element:f,elementType:f,instanceOf:o,node:f,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:c,resetWarningCache:u};return s.PropTypes=s,s},io}var ey;function hE(){return ey||(ey=1,lo.exports=dE()()),lo.exports}var mE=hE();const In=Wu(mE),ty={disabled:!1},Yy=Ht.createContext(null);var yE=function(u){return u.scrollTop},Ju="unmounted",tl="exited",Ca="entering",al="entered",bo="exiting",na=function(l){eE(u,l);function u(f,o){var s;s=l.call(this,f,o)||this;var h=o,y=h&&!h.isMounting?f.enter:f.appear,v;return s.appearStatus=null,f.in?y?(v=tl,s.appearStatus=Ca):v=al:f.unmountOnExit||f.mountOnEnter?v=Ju:v=tl,s.state={status:v},s.nextCallback=null,s}u.getDerivedStateFromProps=function(o,s){var h=o.in;return h&&s.status===Ju?{status:tl}:null};var c=u.prototype;return c.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},c.componentDidUpdate=function(o){var s=null;if(o!==this.props){var h=this.state.status;this.props.in?h!==Ca&&h!==al&&(s=Ca):(h===Ca||h===al)&&(s=bo)}this.updateStatus(!1,s)},c.componentWillUnmount=function(){this.cancelNextCallback()},c.getTimeouts=function(){var o=this.props.timeout,s,h,y;return s=h=y=o,o!=null&&typeof o!="number"&&(s=o.exit,h=o.enter,y=o.appear!==void 0?o.appear:h),{exit:s,enter:h,appear:y}},c.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Ca){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:Kl.findDOMNode(this);h&&yE(h)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tl&&this.setState({status:Ju})},c.performEnter=function(o){var s=this,h=this.props.enter,y=this.context?this.context.isMounting:o,v=this.props.nodeRef?[y]:[Kl.findDOMNode(this),y],m=v[0],b=v[1],M=this.getTimeouts(),S=y?M.appear:M.enter;if(!o&&!h||ty.disabled){this.safeSetState({status:al},function(){s.props.onEntered(m)});return}this.props.onEnter(m,b),this.safeSetState({status:Ca},function(){s.props.onEntering(m,b),s.onTransitionEnd(S,function(){s.safeSetState({status:al},function(){s.props.onEntered(m,b)})})})},c.performExit=function(){var o=this,s=this.props.exit,h=this.getTimeouts(),y=this.props.nodeRef?void 0:Kl.findDOMNode(this);if(!s||ty.disabled){this.safeSetState({status:tl},function(){o.props.onExited(y)});return}this.props.onExit(y),this.safeSetState({status:bo},function(){o.props.onExiting(y),o.onTransitionEnd(h.exit,function(){o.safeSetState({status:tl},function(){o.props.onExited(y)})})})},c.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},c.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},c.setNextCallback=function(o){var s=this,h=!0;return this.nextCallback=function(y){h&&(h=!1,s.nextCallback=null,o(y))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},c.onTransitionEnd=function(o,s){this.setNextCallback(s);var h=this.props.nodeRef?this.props.nodeRef.current:Kl.findDOMNode(this),y=o==null&&!this.props.addEndListener;if(!h||y){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],m=v[0],b=v[1];this.props.addEndListener(m,b)}o!=null&&setTimeout(this.nextCallback,o)},c.render=function(){var o=this.state.status;if(o===Ju)return null;var s=this.props,h=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var y=I1(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ht.createElement(Yy.Provider,{value:null},typeof h=="function"?h(o,y):Ht.cloneElement(Ht.Children.only(h),y))},u}(Ht.Component);na.contextType=Yy;na.propTypes={};function Xl(){}na.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xl,onEntering:Xl,onEntered:Xl,onExit:Xl,onExiting:Xl,onExited:Xl};na.UNMOUNTED=Ju;na.EXITED=tl;na.ENTERING=Ca;na.ENTERED=al;na.EXITING=bo;function vE(l){return l.code==="Escape"||l.keyCode===27}function gE(){const l=p.version.split(".");return{major:+l[0],minor:+l[1],patch:+l[2]}}function Gy(l){if(!l||typeof l=="function")return null;const{major:u}=gE();return u>=19?l.props.ref:l.ref}const $l=!!(typeof window<"u"&&window.document&&window.document.createElement);var So=!1,Ro=!1;try{var ro={get passive(){return So=!0},get once(){return Ro=So=!0}};$l&&(window.addEventListener("test",ro,ro),window.removeEventListener("test",ro,!0))}catch{}function Xy(l,u,c,f){if(f&&typeof f!="boolean"&&!Ro){var o=f.once,s=f.capture,h=c;!Ro&&o&&(h=c.__once||function y(v){this.removeEventListener(u,y,s),c.call(this,v)},c.__once=h),l.addEventListener(u,h,So?f:s)}l.addEventListener(u,c,f)}function To(l,u,c,f){var o=f&&typeof f!="boolean"?f.capture:f;l.removeEventListener(u,c,o),c.__once&&l.removeEventListener(u,c.__once,o)}function xr(l,u,c,f){return Xy(l,u,c,f),function(){To(l,u,c,f)}}function pE(l,u,c,f){if(f===void 0&&(f=!0),l){var o=document.createEvent("HTMLEvents");o.initEvent(u,c,f),l.dispatchEvent(o)}}function EE(l){var u=il(l,"transitionDuration")||"",c=u.indexOf("ms")===-1?1e3:1;return parseFloat(u)*c}function bE(l,u,c){c===void 0&&(c=5);var f=!1,o=setTimeout(function(){f||pE(l,"transitionend",!0)},u+c),s=xr(l,"transitionend",function(){f=!0},{once:!0});return function(){clearTimeout(o),s()}}function Vy(l,u,c,f){c==null&&(c=EE(l)||0);var o=bE(l,c,f),s=xr(l,"transitionend",u);return function(){o(),s()}}function ny(l,u){const c=il(l,u)||"",f=c.indexOf("ms")===-1?1e3:1;return parseFloat(c)*f}function SE(l,u){const c=ny(l,"transitionDuration"),f=ny(l,"transitionDelay"),o=Vy(l,s=>{s.target===l&&(o(),u(s))},c+f)}function RE(l){l.offsetHeight}const ay=l=>!l||typeof l=="function"?l:u=>{l.current=u};function TE(l,u){const c=ay(l),f=ay(u);return o=>{c&&c(o),f&&f(o)}}function Qy(l,u){return p.useMemo(()=>TE(l,u),[l,u])}function xE(l){return l&&"setState"in l?Kl.findDOMNode(l):l??null}const OE=Ht.forwardRef(({onEnter:l,onEntering:u,onEntered:c,onExit:f,onExiting:o,onExited:s,addEndListener:h,children:y,childRef:v,...m},b)=>{const M=p.useRef(null),S=Qy(M,v),D=P=>{S(xE(P))},N=P=>he=>{P&&M.current&&P(M.current,he)},q=p.useCallback(N(l),[l]),V=p.useCallback(N(u),[u]),U=p.useCallback(N(c),[c]),Z=p.useCallback(N(f),[f]),K=p.useCallback(N(o),[o]),le=p.useCallback(N(s),[s]),x=p.useCallback(N(h),[h]);return j.jsx(na,{ref:b,...m,onEnter:q,onEntered:U,onEntering:V,onExit:Z,onExited:le,onExiting:K,addEndListener:x,nodeRef:M,children:typeof y=="function"?(P,he)=>y(P,{...he,ref:D}):Ht.cloneElement(y,{ref:D})})});function DE(l){const u=p.useRef(l);return p.useEffect(()=>{u.current=l},[l]),u}function xo(l){const u=DE(l);return p.useCallback(function(...c){return u.current&&u.current(...c)},[u])}const CE=l=>p.forwardRef((u,c)=>j.jsx("div",{...u,ref:c,className:Ge(u.className,l)}));function ME(l){const u=p.useRef(l);return p.useEffect(()=>{u.current=l},[l]),u}function ll(l){const u=ME(l);return p.useCallback(function(...c){return u.current&&u.current(...c)},[u])}function AE(){const l=p.useRef(!0),u=p.useRef(()=>l.current);return p.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]),u.current}function _E(l){const u=p.useRef(null);return p.useEffect(()=>{u.current=l}),u.current}const wE=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",NE=typeof document<"u",ly=NE||wE?p.useLayoutEffect:p.useEffect,zE=["as","disabled"];function UE(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}function jE(l){return!l||l.trim()==="#"}function Zy({tagName:l,disabled:u,href:c,target:f,rel:o,role:s,onClick:h,tabIndex:y=0,type:v}){l||(c!=null||f!=null||o!=null?l="a":l="button");const m={tagName:l};if(l==="button")return[{type:v||"button",disabled:u},m];const b=S=>{if((u||l==="a"&&jE(c))&&S.preventDefault(),u){S.stopPropagation();return}h==null||h(S)},M=S=>{S.key===" "&&(S.preventDefault(),b(S))};return l==="a"&&(c||(c="#"),u&&(c=void 0)),[{role:s??"button",disabled:void 0,tabIndex:u?void 0:y,href:c,target:l==="a"?f:void 0,"aria-disabled":u||void 0,rel:l==="a"?o:void 0,onClick:b,onKeyDown:M},m]}const LE=p.forwardRef((l,u)=>{let{as:c,disabled:f}=l,o=UE(l,zE);const[s,{tagName:h}]=Zy(Object.assign({tagName:c,disabled:f},o));return j.jsx(h,Object.assign({},o,s,{ref:u}))});LE.displayName="Button";const HE={[Ca]:"show",[al]:"show"},Ho=p.forwardRef(({className:l,children:u,transitionClasses:c={},onEnter:f,...o},s)=>{const h={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},y=p.useCallback((v,m)=>{RE(v),f==null||f(v,m)},[f]);return j.jsx(OE,{ref:s,addEndListener:SE,...h,onEnter:y,childRef:Gy(u),children:(v,m)=>p.cloneElement(u,{...m,className:Ge("fade",l,u.props.className,HE[v],c[v])})})});Ho.displayName="Fade";const BE={"aria-label":In.string,onClick:In.func,variant:In.oneOf(["white"])},Bo=p.forwardRef(({className:l,variant:u,"aria-label":c="Close",...f},o)=>j.jsx("button",{ref:o,type:"button",className:Ge("btn-close",u&&`btn-close-${u}`,l),"aria-label":c,...f}));Bo.displayName="CloseButton";Bo.propTypes=BE;const Oo=p.forwardRef(({as:l,bsPrefix:u,variant:c="primary",size:f,active:o=!1,disabled:s=!1,className:h,...y},v)=>{const m=ct(u,"btn"),[b,{tagName:M}]=Zy({tagName:l,disabled:s,...y}),S=M;return j.jsx(S,{...b,...y,ref:v,disabled:s,className:Ge(h,m,o&&"active",c&&`${m}-${c}`,f&&`${m}-${f}`,y.href&&s&&"disabled")})});Oo.displayName="Button";function qE(l){const u=p.useRef(l);return u.current=l,u}function YE(l){const u=qE(l);p.useEffect(()=>()=>u.current(),[])}function GE(l,u){return p.Children.toArray(l).some(c=>p.isValidElement(c)&&c.type===u)}function XE({as:l,bsPrefix:u,className:c,...f}){u=ct(u,"col");const o=By(),s=qy(),h=[],y=[];return o.forEach(v=>{const m=f[v];delete f[v];let b,M,S;typeof m=="object"&&m!=null?{span:b,offset:M,order:S}=m:b=m;const D=v!==s?`-${v}`:"";b&&h.push(b===!0?`${u}${D}`:`${u}${D}-${b}`),S!=null&&y.push(`order${D}-${S}`),M!=null&&y.push(`offset${D}-${M}`)}),[{...f,className:Ge(c,...h,...y)},{as:l,bsPrefix:u,spans:h}]}const kl=p.forwardRef((l,u)=>{const[{className:c,...f},{as:o="div",bsPrefix:s,spans:h}]=XE(l);return j.jsx(o,{...f,ref:u,className:Ge(c,!h.length&&s)})});kl.displayName="Col";const qo=p.forwardRef(({bsPrefix:l,fluid:u=!1,as:c="div",className:f,...o},s)=>{const h=ct(l,"container"),y=typeof u=="string"?`-${u}`:"-fluid";return j.jsx(c,{ref:s,...o,className:Ge(f,u?`${h}${y}`:h)})});qo.displayName="Container";var VE=Function.prototype.bind.call(Function.prototype.call,[].slice);function Vl(l,u){return VE(l.querySelectorAll(u))}function uy(l,u){if(l.contains)return l.contains(u);if(l.compareDocumentPosition)return l===u||!!(l.compareDocumentPosition(u)&16)}var co,iy;function QE(){if(iy)return co;iy=1;var l=function(){};return co=l,co}var ZE=QE();const Fb=Wu(ZE),KE="data-rr-ui-";function kE(l){return`${KE}${l}`}const Ky=p.createContext($l?window:void 0);Ky.Provider;function Yo(){return p.useContext(Ky)}const $E={type:In.string,tooltip:In.bool,as:In.elementType},jr=p.forwardRef(({as:l="div",className:u,type:c="valid",tooltip:f=!1,...o},s)=>j.jsx(l,{...o,ref:s,className:Ge(u,`${c}-${f?"tooltip":"feedback"}`)}));jr.displayName="Feedback";jr.propTypes=$E;const ea=p.createContext({}),Go=p.forwardRef(({id:l,bsPrefix:u,className:c,type:f="checkbox",isValid:o=!1,isInvalid:s=!1,as:h="input",...y},v)=>{const{controlId:m}=p.useContext(ea);return u=ct(u,"form-check-input"),j.jsx(h,{...y,ref:v,type:f,id:l||m,className:Ge(c,u,o&&"is-valid",s&&"is-invalid")})});Go.displayName="FormCheckInput";const Or=p.forwardRef(({bsPrefix:l,className:u,htmlFor:c,...f},o)=>{const{controlId:s}=p.useContext(ea);return l=ct(l,"form-check-label"),j.jsx("label",{...f,ref:o,htmlFor:c||s,className:Ge(u,l)})});Or.displayName="FormCheckLabel";const ky=p.forwardRef(({id:l,bsPrefix:u,bsSwitchPrefix:c,inline:f=!1,reverse:o=!1,disabled:s=!1,isValid:h=!1,isInvalid:y=!1,feedbackTooltip:v=!1,feedback:m,feedbackType:b,className:M,style:S,title:D="",type:N="checkbox",label:q,children:V,as:U="input",...Z},K)=>{u=ct(u,"form-check"),c=ct(c,"form-switch");const{controlId:le}=p.useContext(ea),x=p.useMemo(()=>({controlId:l||le}),[le,l]),P=!V&&q!=null&&q!==!1||GE(V,Or),he=j.jsx(Go,{...Z,type:N==="switch"?"checkbox":N,ref:K,isValid:h,isInvalid:y,disabled:s,as:U});return j.jsx(ea.Provider,{value:x,children:j.jsx("div",{style:S,className:Ge(M,P&&u,f&&`${u}-inline`,o&&`${u}-reverse`,N==="switch"&&c),children:V||j.jsxs(j.Fragment,{children:[he,P&&j.jsx(Or,{title:D,children:q}),m&&j.jsx(jr,{type:b,tooltip:v,children:m})]})})})});ky.displayName="FormCheck";const Dr=Object.assign(ky,{Input:Go,Label:Or}),$y=p.forwardRef(({bsPrefix:l,type:u,size:c,htmlSize:f,id:o,className:s,isValid:h=!1,isInvalid:y=!1,plaintext:v,readOnly:m,as:b="input",...M},S)=>{const{controlId:D}=p.useContext(ea);return l=ct(l,"form-control"),j.jsx(b,{...M,type:u,size:f,ref:S,readOnly:m,id:o||D,className:Ge(s,v?`${l}-plaintext`:l,c&&`${l}-${c}`,u==="color"&&`${l}-color`,h&&"is-valid",y&&"is-invalid")})});$y.displayName="FormControl";const JE=Object.assign($y,{Feedback:jr}),Jy=p.forwardRef(({className:l,bsPrefix:u,as:c="div",...f},o)=>(u=ct(u,"form-floating"),j.jsx(c,{ref:o,className:Ge(l,u),...f})));Jy.displayName="FormFloating";const Xo=p.forwardRef(({controlId:l,as:u="div",...c},f)=>{const o=p.useMemo(()=>({controlId:l}),[l]);return j.jsx(ea.Provider,{value:o,children:j.jsx(u,{...c,ref:f})})});Xo.displayName="FormGroup";const Fy=p.forwardRef(({as:l="label",bsPrefix:u,column:c=!1,visuallyHidden:f=!1,className:o,htmlFor:s,...h},y)=>{const{controlId:v}=p.useContext(ea);u=ct(u,"form-label");let m="col-form-label";typeof c=="string"&&(m=`${m} ${m}-${c}`);const b=Ge(o,u,f&&"visually-hidden",c&&m);return s=s||v,c?j.jsx(kl,{ref:y,as:"label",className:b,htmlFor:s,...h}):j.jsx(l,{ref:y,className:b,htmlFor:s,...h})});Fy.displayName="FormLabel";const Wy=p.forwardRef(({bsPrefix:l,className:u,id:c,...f},o)=>{const{controlId:s}=p.useContext(ea);return l=ct(l,"form-range"),j.jsx("input",{...f,type:"range",ref:o,className:Ge(u,l),id:c||s})});Wy.displayName="FormRange";const Py=p.forwardRef(({bsPrefix:l,size:u,htmlSize:c,className:f,isValid:o=!1,isInvalid:s=!1,id:h,...y},v)=>{const{controlId:m}=p.useContext(ea);return l=ct(l,"form-select"),j.jsx("select",{...y,size:c,ref:v,className:Ge(f,l,u&&`${l}-${u}`,o&&"is-valid",s&&"is-invalid"),id:h||m})});Py.displayName="FormSelect";const Iy=p.forwardRef(({bsPrefix:l,className:u,as:c="small",muted:f,...o},s)=>(l=ct(l,"form-text"),j.jsx(c,{...o,ref:s,className:Ge(u,l,f&&"text-muted")})));Iy.displayName="FormText";const ev=p.forwardRef((l,u)=>j.jsx(Dr,{...l,ref:u,type:"switch"}));ev.displayName="Switch";const FE=Object.assign(ev,{Input:Dr.Input,Label:Dr.Label}),tv=p.forwardRef(({bsPrefix:l,className:u,children:c,controlId:f,label:o,...s},h)=>(l=ct(l,"form-floating"),j.jsxs(Xo,{ref:h,className:Ge(u,l),controlId:f,...s,children:[c,j.jsx("label",{htmlFor:f,children:o})]})));tv.displayName="FloatingLabel";const WE={_ref:In.any,validated:In.bool,as:In.elementType},Vo=p.forwardRef(({className:l,validated:u,as:c="form",...f},o)=>j.jsx(c,{...f,ref:o,className:Ge(l,u&&"was-validated")}));Vo.displayName="Form";Vo.propTypes=WE;const yr=Object.assign(Vo,{Group:Xo,Control:JE,Floating:Jy,Check:Dr,Switch:FE,Label:Fy,Text:Iy,Range:Wy,Select:Py,FloatingLabel:tv}),ry=l=>!l||typeof l=="function"?l:u=>{l.current=u};function PE(l,u){const c=ry(l),f=ry(u);return o=>{c&&c(o),f&&f(o)}}function Qo(l,u){return p.useMemo(()=>PE(l,u),[l,u])}var vr;function cy(l){if((!vr&&vr!==0||l)&&$l){var u=document.createElement("div");u.style.position="absolute",u.style.top="-9999px",u.style.width="50px",u.style.height="50px",u.style.overflow="scroll",document.body.appendChild(u),vr=u.offsetWidth-u.clientWidth,document.body.removeChild(u)}return vr}function IE(){return p.useState(null)}function fo(l){l===void 0&&(l=Ur());try{var u=l.activeElement;return!u||!u.nodeName?null:u}catch{return l.body}}function eb(l){const u=p.useRef(l);return u.current=l,u}function tb(l){const u=eb(l);p.useEffect(()=>()=>u.current(),[])}function nb(l=document){const u=l.defaultView;return Math.abs(u.innerWidth-l.documentElement.clientWidth)}const fy=kE("modal-open");class Zo{constructor({ownerDocument:u,handleContainerOverflow:c=!0,isRTL:f=!1}={}){this.handleContainerOverflow=c,this.isRTL=f,this.modals=[],this.ownerDocument=u}getScrollbarWidth(){return nb(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(u){}removeModalAttributes(u){}setContainerStyle(u){const c={overflow:"hidden"},f=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();u.style={overflow:o.style.overflow,[f]:o.style[f]},u.scrollBarWidth&&(c[f]=`${parseInt(il(o,f)||"0",10)+u.scrollBarWidth}px`),o.setAttribute(fy,""),il(o,c)}reset(){[...this.modals].forEach(u=>this.remove(u))}removeContainerStyle(u){const c=this.getElement();c.removeAttribute(fy),Object.assign(c.style,u.style)}add(u){let c=this.modals.indexOf(u);return c!==-1||(c=this.modals.length,this.modals.push(u),this.setModalAttributes(u),c!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),c}remove(u){const c=this.modals.indexOf(u);c!==-1&&(this.modals.splice(c,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(u))}isTopModal(u){return!!this.modals.length&&this.modals[this.modals.length-1]===u}}const oo=(l,u)=>$l?l==null?(u||Ur()).body:(typeof l=="function"&&(l=l()),l&&"current"in l&&(l=l.current),l&&("nodeType"in l||l.getBoundingClientRect)?l:null):null;function ab(l,u){const c=Yo(),[f,o]=p.useState(()=>oo(l,c==null?void 0:c.document));if(!f){const s=oo(l);s&&o(s)}return p.useEffect(()=>{},[u,f]),p.useEffect(()=>{const s=oo(l);s!==f&&o(s)},[l,f]),f}function lb({children:l,in:u,onExited:c,mountOnEnter:f,unmountOnExit:o}){const s=p.useRef(null),h=p.useRef(u),y=ll(c);p.useEffect(()=>{u?h.current=!0:y(s.current)},[u,y]);const v=Qo(s,l.ref),m=p.cloneElement(l,{ref:v});return u?m:o||!h.current&&f?null:m}const ub=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function ib(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}function rb(l){let{onEnter:u,onEntering:c,onEntered:f,onExit:o,onExiting:s,onExited:h,addEndListener:y,children:v}=l,m=ib(l,ub);const b=p.useRef(null),M=Qo(b,Gy(v)),S=le=>x=>{le&&b.current&&le(b.current,x)},D=p.useCallback(S(u),[u]),N=p.useCallback(S(c),[c]),q=p.useCallback(S(f),[f]),V=p.useCallback(S(o),[o]),U=p.useCallback(S(s),[s]),Z=p.useCallback(S(h),[h]),K=p.useCallback(S(y),[y]);return Object.assign({},m,{nodeRef:b},u&&{onEnter:D},c&&{onEntering:N},f&&{onEntered:q},o&&{onExit:V},s&&{onExiting:U},h&&{onExited:Z},y&&{addEndListener:K},{children:typeof v=="function"?(le,x)=>v(le,Object.assign({},x,{ref:M})):p.cloneElement(v,{ref:M})})}const cb=["component"];function fb(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}const ob=p.forwardRef((l,u)=>{let{component:c}=l,f=fb(l,cb);const o=rb(f);return j.jsx(c,Object.assign({ref:u},o))});function sb({in:l,onTransition:u}){const c=p.useRef(null),f=p.useRef(!0),o=ll(u);return ly(()=>{if(!c.current)return;let s=!1;return o({in:l,element:c.current,initial:f.current,isStale:()=>s}),()=>{s=!0}},[l,o]),ly(()=>(f.current=!1,()=>{f.current=!0}),[]),c}function db({children:l,in:u,onExited:c,onEntered:f,transition:o}){const[s,h]=p.useState(!u);u&&s&&h(!1);const y=sb({in:!!u,onTransition:m=>{const b=()=>{m.isStale()||(m.in?f==null||f(m.element,m.initial):(h(!0),c==null||c(m.element)))};Promise.resolve(o(m)).then(b,M=>{throw m.in||h(!0),M})}}),v=Qo(y,l.ref);return s&&!u?null:p.cloneElement(l,{ref:v})}function oy(l,u,c){return l?j.jsx(ob,Object.assign({},c,{component:l})):u?j.jsx(db,Object.assign({},c,{transition:u})):j.jsx(lb,Object.assign({},c))}const hb=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function mb(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}let so;function yb(l){return so||(so=new Zo({ownerDocument:l==null?void 0:l.document})),so}function vb(l){const u=Yo(),c=l||yb(u),f=p.useRef({dialog:null,backdrop:null});return Object.assign(f.current,{add:()=>c.add(f.current),remove:()=>c.remove(f.current),isTopModal:()=>c.isTopModal(f.current),setDialogRef:p.useCallback(o=>{f.current.dialog=o},[]),setBackdropRef:p.useCallback(o=>{f.current.backdrop=o},[])})}const nv=p.forwardRef((l,u)=>{let{show:c=!1,role:f="dialog",className:o,style:s,children:h,backdrop:y=!0,keyboard:v=!0,onBackdropClick:m,onEscapeKeyDown:b,transition:M,runTransition:S,backdropTransition:D,runBackdropTransition:N,autoFocus:q=!0,enforceFocus:V=!0,restoreFocus:U=!0,restoreFocusOptions:Z,renderDialog:K,renderBackdrop:le=Le=>j.jsx("div",Object.assign({},Le)),manager:x,container:P,onShow:he,onHide:oe=()=>{},onExit:$,onExited:ie,onExiting:He,onEnter:ut,onEntering:Je,onEntered:dt}=l,Me=mb(l,hb);const k=Yo(),se=ab(P),W=vb(x),Te=AE(),R=_E(c),[G,te]=p.useState(!c),I=p.useRef(null);p.useImperativeHandle(u,()=>W,[W]),$l&&!R&&c&&(I.current=fo(k==null?void 0:k.document)),c&&G&&te(!1);const J=ll(()=>{if(W.add(),De.current=xr(document,"keydown",_e),Se.current=xr(document,"focus",()=>setTimeout(pe),!0),he&&he(),q){var Le,zt;const hn=fo((Le=(zt=W.dialog)==null?void 0:zt.ownerDocument)!=null?Le:k==null?void 0:k.document);W.dialog&&hn&&!uy(W.dialog,hn)&&(I.current=hn,W.dialog.focus())}}),ve=ll(()=>{if(W.remove(),De.current==null||De.current(),Se.current==null||Se.current(),U){var Le;(Le=I.current)==null||Le.focus==null||Le.focus(Z),I.current=null}});p.useEffect(()=>{!c||!se||J()},[c,se,J]),p.useEffect(()=>{G&&ve()},[G,ve]),tb(()=>{ve()});const pe=ll(()=>{if(!V||!Te()||!W.isTopModal())return;const Le=fo(k==null?void 0:k.document);W.dialog&&Le&&!uy(W.dialog,Le)&&W.dialog.focus()}),Ie=ll(Le=>{Le.target===Le.currentTarget&&(m==null||m(Le),y===!0&&oe())}),_e=ll(Le=>{v&&vE(Le)&&W.isTopModal()&&(b==null||b(Le),Le.defaultPrevented||oe())}),Se=p.useRef(),De=p.useRef(),yt=(...Le)=>{te(!0),ie==null||ie(...Le)};if(!se)return null;const Nt=Object.assign({role:f,ref:W.setDialogRef,"aria-modal":f==="dialog"?!0:void 0},Me,{style:s,className:o,tabIndex:-1});let et=K?K(Nt):j.jsx("div",Object.assign({},Nt,{children:p.cloneElement(h,{role:"document"})}));et=oy(M,S,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!c,onExit:$,onExiting:He,onExited:yt,onEnter:ut,onEntering:Je,onEntered:dt,children:et});let qt=null;return y&&(qt=le({ref:W.setBackdropRef,onClick:Ie}),qt=oy(D,N,{in:!!c,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:qt})),j.jsx(j.Fragment,{children:Kl.createPortal(j.jsxs(j.Fragment,{children:[qt,et]}),se)})});nv.displayName="Modal";const gb=Object.assign(nv,{Manager:Zo});function pb(l,u){return l.classList?l.classList.contains(u):(" "+(l.className.baseVal||l.className)+" ").indexOf(" "+u+" ")!==-1}function Eb(l,u){l.classList?l.classList.add(u):pb(l,u)||(typeof l.className=="string"?l.className=l.className+" "+u:l.setAttribute("class",(l.className&&l.className.baseVal||"")+" "+u))}function sy(l,u){return l.replace(new RegExp("(^|\\s)"+u+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function bb(l,u){l.classList?l.classList.remove(u):typeof l.className=="string"?l.className=sy(l.className,u):l.setAttribute("class",sy(l.className&&l.className.baseVal||"",u))}const Ql={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Sb extends Zo{adjustAndStore(u,c,f){const o=c.style[u];c.dataset[u]=o,il(c,{[u]:`${parseFloat(il(c,u))+f}px`})}restore(u,c){const f=c.dataset[u];f!==void 0&&(delete c.dataset[u],il(c,{[u]:f}))}setContainerStyle(u){super.setContainerStyle(u);const c=this.getElement();if(Eb(c,"modal-open"),!u.scrollBarWidth)return;const f=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Vl(c,Ql.FIXED_CONTENT).forEach(s=>this.adjustAndStore(f,s,u.scrollBarWidth)),Vl(c,Ql.STICKY_CONTENT).forEach(s=>this.adjustAndStore(o,s,-u.scrollBarWidth)),Vl(c,Ql.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(o,s,u.scrollBarWidth))}removeContainerStyle(u){super.removeContainerStyle(u);const c=this.getElement();bb(c,"modal-open");const f=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Vl(c,Ql.FIXED_CONTENT).forEach(s=>this.restore(f,s)),Vl(c,Ql.STICKY_CONTENT).forEach(s=>this.restore(o,s)),Vl(c,Ql.NAVBAR_TOGGLER).forEach(s=>this.restore(o,s))}}let ho;function Rb(l){return ho||(ho=new Sb(l)),ho}const av=p.forwardRef(({className:l,bsPrefix:u,as:c="div",...f},o)=>(u=ct(u,"modal-body"),j.jsx(c,{ref:o,className:Ge(l,u),...f})));av.displayName="ModalBody";const lv=p.createContext({onHide(){}}),Ko=p.forwardRef(({bsPrefix:l,className:u,contentClassName:c,centered:f,size:o,fullscreen:s,children:h,scrollable:y,...v},m)=>{l=ct(l,"modal");const b=`${l}-dialog`,M=typeof s=="string"?`${l}-fullscreen-${s}`:`${l}-fullscreen`;return j.jsx("div",{...v,ref:m,className:Ge(b,u,o&&`${l}-${o}`,f&&`${b}-centered`,y&&`${b}-scrollable`,s&&M),children:j.jsx("div",{className:Ge(`${l}-content`,c),children:h})})});Ko.displayName="ModalDialog";const uv=p.forwardRef(({className:l,bsPrefix:u,as:c="div",...f},o)=>(u=ct(u,"modal-footer"),j.jsx(c,{ref:o,className:Ge(l,u),...f})));uv.displayName="ModalFooter";const Tb=p.forwardRef(({closeLabel:l="Close",closeVariant:u,closeButton:c=!1,onHide:f,children:o,...s},h)=>{const y=p.useContext(lv),v=xo(()=>{y==null||y.onHide(),f==null||f()});return j.jsxs("div",{ref:h,...s,children:[o,c&&j.jsx(Bo,{"aria-label":l,variant:u,onClick:v})]})}),iv=p.forwardRef(({bsPrefix:l,className:u,closeLabel:c="Close",closeButton:f=!1,...o},s)=>(l=ct(l,"modal-header"),j.jsx(Tb,{ref:s,...o,className:Ge(u,l),closeLabel:c,closeButton:f})));iv.displayName="ModalHeader";const xb=CE("h4"),rv=p.forwardRef(({className:l,bsPrefix:u,as:c=xb,...f},o)=>(u=ct(u,"modal-title"),j.jsx(c,{ref:o,className:Ge(l,u),...f})));rv.displayName="ModalTitle";function Ob(l){return j.jsx(Ho,{...l,timeout:null})}function Db(l){return j.jsx(Ho,{...l,timeout:null})}const cv=p.forwardRef(({bsPrefix:l,className:u,style:c,dialogClassName:f,contentClassName:o,children:s,dialogAs:h=Ko,"data-bs-theme":y,"aria-labelledby":v,"aria-describedby":m,"aria-label":b,show:M=!1,animation:S=!0,backdrop:D=!0,keyboard:N=!0,onEscapeKeyDown:q,onShow:V,onHide:U,container:Z,autoFocus:K=!0,enforceFocus:le=!0,restoreFocus:x=!0,restoreFocusOptions:P,onEntered:he,onExit:oe,onExiting:$,onEnter:ie,onEntering:He,onExited:ut,backdropClassName:Je,manager:dt,...Me},k)=>{const[se,W]=p.useState({}),[Te,R]=p.useState(!1),G=p.useRef(!1),te=p.useRef(!1),I=p.useRef(null),[J,ve]=IE(),pe=Qy(k,ve),Ie=xo(U),_e=aE();l=ct(l,"modal");const Se=p.useMemo(()=>({onHide:Ie}),[Ie]);function De(){return dt||Rb({isRTL:_e})}function yt(be){if(!$l)return;const Wt=De().getScrollbarWidth()>0,mn=be.scrollHeight>Ur(be).documentElement.clientHeight;W({paddingRight:Wt&&!mn?cy():void 0,paddingLeft:!Wt&&mn?cy():void 0})}const Nt=xo(()=>{J&&yt(J.dialog)});YE(()=>{To(window,"resize",Nt),I.current==null||I.current()});const et=()=>{G.current=!0},qt=be=>{G.current&&J&&be.target===J.dialog&&(te.current=!0),G.current=!1},Le=()=>{R(!0),I.current=Vy(J.dialog,()=>{R(!1)})},zt=be=>{be.target===be.currentTarget&&Le()},hn=be=>{if(D==="static"){zt(be);return}if(te.current||be.target!==be.currentTarget){te.current=!1;return}U==null||U()},aa=be=>{N?q==null||q(be):(be.preventDefault(),D==="static"&&Le())},wa=(be,Wt)=>{be&&yt(be),ie==null||ie(be,Wt)},Na=be=>{I.current==null||I.current(),oe==null||oe(be)},Yt=(be,Wt)=>{He==null||He(be,Wt),Xy(window,"resize",Nt)},zn=be=>{be&&(be.style.display=""),ut==null||ut(be),To(window,"resize",Nt)},cl=p.useCallback(be=>j.jsx("div",{...be,className:Ge(`${l}-backdrop`,Je,!S&&"show")}),[S,Je,l]),St={...c,...se};St.display="block";const Ft=be=>j.jsx("div",{role:"dialog",...be,style:St,className:Ge(u,l,Te&&`${l}-static`,!S&&"show"),onClick:D?hn:void 0,onMouseUp:qt,"data-bs-theme":y,"aria-label":b,"aria-labelledby":v,"aria-describedby":m,children:j.jsx(h,{...Me,onMouseDown:et,className:f,contentClassName:o,children:s})});return j.jsx(lv.Provider,{value:Se,children:j.jsx(gb,{show:M,ref:pe,backdrop:D,container:Z,keyboard:!0,autoFocus:K,enforceFocus:le,restoreFocus:x,restoreFocusOptions:P,onEscapeKeyDown:aa,onShow:V,onHide:U,onEnter:wa,onEntering:Yt,onEntered:he,onExit:Na,onExiting:$,onExited:zn,manager:De(),transition:S?Ob:void 0,backdropTransition:S?Db:void 0,renderBackdrop:cl,renderDialog:Ft})})});cv.displayName="Modal";const ku=Object.assign(cv,{Body:av,Header:iv,Title:rv,Footer:uv,Dialog:Ko,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),ko=p.forwardRef(({bsPrefix:l,className:u,as:c="div",...f},o)=>{const s=ct(l,"row"),h=By(),y=qy(),v=`${s}-cols`,m=[];return h.forEach(b=>{const M=f[b];delete f[b];let S;M!=null&&typeof M=="object"?{cols:S}=M:S=M;const D=b!==y?`-${b}`:"";S!=null&&m.push(`${v}${D}-${S}`)}),j.jsx(c,{ref:o,...f,className:Ge(u,s,...m)})});ko.displayName="Row";const Cb="/static/DY3vaYXT.svg";function Wb(){const l=Bt.c(6),{user:u}=p.useContext(Ly),{pathname:c}=ta();let f;l[0]===Symbol.for("react.memo_cache_sentinel")?(f=j.jsx(kl,{xs:10,children:j.jsx("div",{className:"nav-wrapper",children:j.jsxs("nav",{className:"header-nav",children:[j.jsx("a",{href:"https://geant.org/",children:j.jsx("img",{src:Cb})}),j.jsxs("ul",{children:[j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://network.geant.org/",children:"NETWORK"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://geant.org/services/",children:"SERVICES"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://community.geant.org/",children:"COMMUNITY"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/",children:"TNC"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://geant.org/projects/",children:"PROJECTS"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/",children:"CONNECT"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://impact.geant.org/",children:"IMPACT"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://careers.geant.org/",children:"CAREERS"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://about.geant.org/",children:"ABOUT"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news",children:"NEWS"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://resources.geant.org/",children:"RESOURCES"})}),j.jsx("li",{children:j.jsx(Tr,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),l[0]=f):f=l[0];let o;l[1]!==c||l[2]!==u.permissions.admin?(o=u.permissions.admin&&!c.includes("survey")&&j.jsx("div",{className:"nav-link",style:{float:"right"},children:j.jsx(Tr,{className:"nav-link-entry",to:"/survey",children:j.jsx("span",{children:"Go to Survey"})})}),l[1]=c,l[2]=u.permissions.admin,l[3]=o):o=l[3];let s;return l[4]!==o?(s=j.jsx("div",{className:"external-page-nav-bar",children:j.jsx(qo,{children:j.jsxs(ko,{children:[f,j.jsx(kl,{xs:2,children:o})]})})}),l[4]=o,l[5]=s):s=l[5],s}const Mb="/static/A3T3A-a_.svg",Ab="/static/DOOiIGTs.png";function Pb(){const l=Bt.c(9);let u;l[0]===Symbol.for("react.memo_cache_sentinel")?(u=j.jsx("a",{href:"https://geant.org",children:j.jsx("img",{src:Mb,className:"m-3",style:{maxWidth:"100px"}})}),l[0]=u):u=l[0];let c;l[1]===Symbol.for("react.memo_cache_sentinel")?(c=j.jsxs(kl,{children:[u,j.jsx("img",{src:Ab,className:"m-3",style:{maxWidth:"200px"}})]}),l[1]=c):c=l[1];let f,o;l[2]===Symbol.for("react.memo_cache_sentinel")?(f=j.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),o=j.jsx("wbr",{}),l[2]=f,l[3]=o):(f=l[2],o=l[3]);let s,h;l[4]===Symbol.for("react.memo_cache_sentinel")?(s=j.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/",children:"GEANT Anti‑Slavery Policy"}),h=j.jsx("wbr",{}),l[4]=s,l[5]=h):(s=l[4],h=l[5]);let y,v;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=j.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),v=j.jsx("wbr",{}),l[6]=y,l[7]=v):(y=l[6],v=l[7]);let m;return l[8]===Symbol.for("react.memo_cache_sentinel")?(m=j.jsx("footer",{className:"page-footer pt-3",children:j.jsx(qo,{children:j.jsxs(ko,{children:[c,j.jsx(kl,{className:"mt-4 text-end",children:j.jsxs("span",{children:[f,o,"|",s,h,"|",y,v,"|",j.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:_b,children:"Analytics Consent"})]})})]})})}),l[8]=m):m=l[8],m}function _b(){localStorage.removeItem("matomo_consent"),window.location.reload()}function Ib(){const l=Bt.c(16),u=p.useContext(Hy);let c;l[0]!==u?(c=N=>u==null?void 0:u.trackPageView(N),l[0]=u,l[1]=c):c=l[1];const f=c;let o;l[2]!==u?(o=N=>u==null?void 0:u.trackEvent(N),l[2]=u,l[3]=o):o=l[3];const s=o;let h;l[4]!==u?(h=()=>u==null?void 0:u.trackEvents(),l[4]=u,l[5]=h):h=l[5];const y=h;let v;l[6]!==u?(v=N=>u==null?void 0:u.trackLink(N),l[6]=u,l[7]=v):v=l[7];const m=v,b=wb;let M;l[8]!==u?(M=(N,...q)=>{const V=q;u==null||u.pushInstruction(N,...V)},l[8]=u,l[9]=M):M=l[9];const S=M;let D;return l[10]!==S||l[11]!==s||l[12]!==y||l[13]!==m||l[14]!==f?(D={trackEvent:s,trackEvents:y,trackPageView:f,trackLink:m,enableLinkTracking:b,pushInstruction:S},l[10]=S,l[11]=s,l[12]=y,l[13]=m,l[14]=f,l[15]=D):D=l[15],D}function wb(){}var fv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dy=Ht.createContext&&Ht.createContext(fv),Nb=["attr","size","title"];function zb(l,u){if(l==null)return{};var c=Ub(l,u),f,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);for(o=0;o<s.length;o++)f=s[o],!(u.indexOf(f)>=0)&&Object.prototype.propertyIsEnumerable.call(l,f)&&(c[f]=l[f])}return c}function Ub(l,u){if(l==null)return{};var c={};for(var f in l)if(Object.prototype.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}function Cr(){return Cr=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])}return l},Cr.apply(this,arguments)}function hy(l,u){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);u&&(f=f.filter(function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable})),c.push.apply(c,f)}return c}function Mr(l){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?hy(Object(c),!0).forEach(function(f){jb(l,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):hy(Object(c)).forEach(function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(c,f))})}return l}function jb(l,u,c){return u=Lb(u),u in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,l}function Lb(l){var u=Hb(l,"string");return typeof u=="symbol"?u:u+""}function Hb(l,u){if(typeof l!="object"||!l)return l;var c=l[Symbol.toPrimitive];if(c!==void 0){var f=c.call(l,u||"default");if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)}function ov(l){return l&&l.map((u,c)=>Ht.createElement(u.tag,Mr({key:c},u.attr),ov(u.child)))}function sv(l){return u=>Ht.createElement(Bb,Cr({attr:Mr({},l.attr)},u),ov(l.child))}function Bb(l){var u=c=>{var{attr:f,size:o,title:s}=l,h=zb(l,Nb),y=o||c.size||"1em",v;return c.className&&(v=c.className),l.className&&(v=(v?v+" ":"")+l.className),Ht.createElement("svg",Cr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},c.attr,f,h,{className:v,style:Mr(Mr({color:l.color||c.color},c.style),l.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),s&&Ht.createElement("title",null,s),l.children)};return dy!==void 0?Ht.createElement(dy.Consumer,null,c=>u(c)):u(fv)}function eS(l){return sv({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(l)}function tS(l){return sv({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(l)}const nS=()=>{const l=Bt.c(26),{consent:u,setConsent:c}=p.useContext(Lo),[f,o]=p.useState(u===null);let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{o(!1),window.location.reload()},l[0]=s):s=l[0];const h=s,[y,v]=p.useState(!0);let m;l[1]!==c?(m=P=>{const he=new Date;he.setDate(he.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:P,expiry:he})),c(P)},l[1]=c,l[2]=m):m=l[2];const b=m;let M;l[3]===Symbol.for("react.memo_cache_sentinel")?(M=j.jsx(ku.Header,{closeButton:!0,children:j.jsx(ku.Title,{children:"Privacy on this site"})}),l[3]=M):M=l[3];let S;l[4]===Symbol.for("react.memo_cache_sentinel")?(S=j.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),l[4]=S):S=l[4];let D;l[5]===Symbol.for("react.memo_cache_sentinel")?(D=j.jsxs("p",{children:["On our site we use Matomo to collect and process data about your visit to better understand how it is used. For more information, see our ",S,".",j.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),l[5]=D):D=l[5];let N;l[6]!==y?(N=()=>v(!y),l[6]=y,l[7]=N):N=l[7];let q;l[8]!==y||l[9]!==N?(q=j.jsx(yr.Check,{type:"checkbox",label:"Analytics",checked:y,onChange:N}),l[8]=y,l[9]=N,l[10]=q):q=l[10];let V;l[11]===Symbol.for("react.memo_cache_sentinel")?(V=j.jsx(yr.Text,{className:"text-muted",children:"We collect information about your visit on the compendium site — this helps us understand how the site is used, and how we can improve it."}),l[11]=V):V=l[11];let U;l[12]!==q?(U=j.jsxs(ku.Body,{children:[D,j.jsx(yr,{children:j.jsxs(yr.Group,{className:"mb-3",children:[q,V]})})]}),l[12]=q,l[13]=U):U=l[13];let Z;l[14]!==b?(Z=j.jsx(Oo,{variant:"secondary",onClick:()=>{b(!1),h()},children:"Decline all"}),l[14]=b,l[15]=Z):Z=l[15];let K;l[16]!==y||l[17]!==b?(K=j.jsx(Oo,{variant:"primary",onClick:()=>{b(y),h()},children:"Save consent for 30 days"}),l[16]=y,l[17]=b,l[18]=K):K=l[18];let le;l[19]!==K||l[20]!==Z?(le=j.jsxs(ku.Footer,{children:[Z,K]}),l[19]=K,l[20]=Z,l[21]=le):le=l[21];let x;return l[22]!==f||l[23]!==le||l[24]!==U?(x=j.jsxs(ku,{show:f,centered:!0,children:[M,U,le]}),l[22]=f,l[23]=le,l[24]=U,l[25]=x):x=l[25],x};export{Qb as $,tS as A,kE as B,kl as C,LE as D,Wb as E,U1 as F,Pb as G,Yo as H,_E as I,Vl as J,Xy as K,Tr as L,Qy as M,Oo as N,Zb as O,B1 as P,aE as Q,ko as R,xo as S,L1 as T,G1 as U,yr as V,I1 as W,sv as X,Ar as Y,my as Z,Xb as _,Bt as a,Vb as a0,OE as a1,SE as a2,Gy as a3,il as a4,tl as a5,bo as a6,Ca as a7,al as a8,RE as a9,Yb as aa,Go as ab,J1 as ac,Ib as b,Ge as c,CE as d,qo as e,eS as f,Ly as g,kb as h,Ht as i,j,Kb as k,ta as l,nS as m,Jb as n,$b as o,Gb as p,Cy as q,p as r,ll as s,Zy as t,ct as u,AE as v,Fb as w,uy as x,Ur as y,xr as z};
diff --git a/compendium_v2/static/report.js b/compendium_v2/static/report.js
deleted file mode 100644
index 9643bd22b7fcdec1546821564824408db38c2c46..0000000000000000000000000000000000000000
--- a/compendium_v2/static/report.js
+++ /dev/null
@@ -1,2 +0,0 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["Budget-BaNd2jtG.js","main-BIBsTO5W.js","main.css","index-BBrAyDR9.js","useData-BDYwoQEh.js","xlsx-CxqzP9DR.js","index-D6hre9Be.js","hook-DmuGcAOd.js","charthelpers-CCaYPWnR.js","ChargingStructure-UaYN2mUD.js","PillTable-5pkcg2T9.js","ColorPill-CqT_mR3a.js","Table-HH9WOnMU.js","ECProjects-C-HN1lwo.js","NrenYearTable-BuqomkXK.js","FundingSource-DRHIT4Ra.js","chartjs-plugin-datalabels.esm-D8EJYoxA.js","ParentOrganisation-DJLeH6g7.js","StaffGraph-CRnD7Dbf.js","HTMLLegendPlugin-BO0IHS_R.js","StaffGraphAbsolute-1_iTYcqR.js","SubOrganisation-D8wGO2zm.js","Audits-z541eU6T.js","BusinessContinuity-BhppOK3E.js","CentralProcurement-BK_KYdQw.js","CorporateStrategy-Doz2JleE.js","CrisisExercises-DIq1DMCc.js","CrisisManagement-B-4V900E.js","EOSCListings-DkHlXFjZ.js","Policy-rfVVQ2MG.js","SecurityControls-Ct-pN0fH.js","ServiceLevelTargets-DkcKRrX5.js","ServiceManagementFramework-0pFJ2GJW.js","ServicesOffered-DAgKmLaL.js","ScrollableMatrix-Cdgj4J9X.js","ConnectedInstitutionsURLs-BSMQXsFI.js","ConnectedUser-BEMGNK1Q.js","RemoteCampuses-B7LZiN42.js","AlienWave-BToV9QLE.js","AlienWaveInternal-CYmkCEA6.js","Automation-CrHhcUVx.js","CapacityCoreIP-BzYm9HBi.js","CapacityLargestLink-CchKWKUR.js","CertificateProvider-B2MBeNfh.js","DarkFibreLease-DpIHorYZ.js","DarkFibreInstalled-BG9k0mWY.js","ExternalConnections-CYJLiQ46.js","FibreLight-4Mgdokfs.js","IRUDuration-D50DEG35.js","MonitoringTools-BuTC_DRa.js","NetworkFunctionVirtualisation-DMaSWRo0.js","NetworkMapUrls-YVUXOiQm.js","NonRAndEPeer-BvFWiPrM.js","OPsAutomation-mleIxb9-.js","PassiveMonitoring-BQaZqq7o.js","PertTeam-Dk6-ebg9.js","SiemVendors-AspEWRsK.js","TrafficRatio-CEE7weoG.js","TrafficUrl-DFoUKOws.js","TrafficVolume-5iEpLgxK.js","WeatherMap-CR-KiYaJ.js","Services-TWQx7C9G.js"])))=>i.map(i=>d[i]);
-import{r as s,u as S,j as t,c as k,d as Je,a as R,b as Ye,C as O,L as a,e as z,R as L,A as ht,f as ft,P as _t,g as pt,h as ut,i as Qe,_ as c,k as xt,l as Ze,E as yt,O as jt,m as Nt,n as gt,G as vt,o as Et,p as bt}from"./main-BIBsTO5W.js";var j=(e=>(e.ConnectedProportion="proportion",e.ConnectivityLevel="level",e.ConnectionCarrier="carrier",e.ConnectivityLoad="load",e.ConnectivityGrowth="growth",e.CommercialConnectivity="commercial",e.CommercialChargingLevel="charging",e))(j||{}),y=(e=>(e.network_services="network_services",e.isp_support="isp_support",e.security="security",e.identity="identity",e.collaboration="collaboration",e.multimedia="multimedia",e.storage_and_hosting="storage_and_hosting",e.professional_services="professional_services",e))(y||{});const He=s.forwardRef(({className:e,bsPrefix:n,as:l="div",...i},r)=>(n=S(n,"card-body"),t.jsx(l,{ref:r,className:k(e,n),...i})));He.displayName="CardBody";const et=s.forwardRef(({className:e,bsPrefix:n,as:l="div",...i},r)=>(n=S(n,"card-footer"),t.jsx(l,{ref:r,className:k(e,n),...i})));et.displayName="CardFooter";const tt=s.createContext(null);tt.displayName="CardHeaderContext";const nt=s.forwardRef(({bsPrefix:e,className:n,as:l="div",...i},r)=>{const m=S(e,"card-header"),o=s.useMemo(()=>({cardHeaderBsPrefix:m}),[m]);return t.jsx(tt.Provider,{value:o,children:t.jsx(l,{ref:r,...i,className:k(n,m)})})});nt.displayName="CardHeader";const st=s.forwardRef(({bsPrefix:e,className:n,variant:l,as:i="img",...r},m)=>{const o=S(e,"card-img");return t.jsx(i,{ref:m,className:k(l?`${o}-${l}`:o,n),...r})});st.displayName="CardImg";const it=s.forwardRef(({className:e,bsPrefix:n,as:l="div",...i},r)=>(n=S(n,"card-img-overlay"),t.jsx(l,{ref:r,className:k(e,n),...i})));it.displayName="CardImgOverlay";const rt=s.forwardRef(({className:e,bsPrefix:n,as:l="a",...i},r)=>(n=S(n,"card-link"),t.jsx(l,{ref:r,className:k(e,n),...i})));rt.displayName="CardLink";const Ct=Je("h6"),at=s.forwardRef(({className:e,bsPrefix:n,as:l=Ct,...i},r)=>(n=S(n,"card-subtitle"),t.jsx(l,{ref:r,className:k(e,n),...i})));at.displayName="CardSubtitle";const lt=s.forwardRef(({className:e,bsPrefix:n,as:l="p",...i},r)=>(n=S(n,"card-text"),t.jsx(l,{ref:r,className:k(e,n),...i})));lt.displayName="CardText";const St=Je("h5"),ot=s.forwardRef(({className:e,bsPrefix:n,as:l=St,...i},r)=>(n=S(n,"card-title"),t.jsx(l,{ref:r,className:k(e,n),...i})));ot.displayName="CardTitle";const ct=s.forwardRef(({bsPrefix:e,className:n,bg:l,text:i,border:r,body:m=!1,children:o,as:d="div",...h},f)=>{const _=S(e,"card");return t.jsx(d,{ref:f,...h,className:k(n,_,l&&`bg-${l}`,i&&`text-${i}`,r&&`border-${r}`),children:m?t.jsx(He,{children:o}):o})});ct.displayName="Card";const C=Object.assign(ct,{Img:st,Title:ot,Subtitle:at,Body:He,Link:rt,Text:lt,Header:nt,Footer:et,ImgOverlay:it}),mt="/static/C4lsyu6A.svg",dt="/static/DhA-EmEc.svg";function Ke(){const e=R.c(13),{trackPageView:n}=Ye();let l,i;e[0]!==n?(l=()=>{n({documentTitle:"GEANT Compendium Landing Page"})},i=[n],e[0]=n,e[1]=l,e[2]=i):(l=e[1],i=e[2]),s.useEffect(l,i);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),e[3]=r):r=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(L,{children:t.jsxs("div",{className:"center-text",children:[r,t.jsxs("div",{className:"wordwrap pt-4",children:[t.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"Each year GÉANT invites European National Research and Eduction Networks to fill in a questionnaire asking about their network, their organisation, standards and policies, connected users, and the services they offer their users. This Compendium of responses is an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. No two NRENs are identical, with great diversity in their structures, funding, size, and focus."}),t.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"The GÉANT Compendium of NRENs Report is published annually, using both data from the Compendium from other sources, including surveys and studies carried out within different teams within GÉANT and the NREN community. The Report gives a broad overview of the European NREN landscape, identifying developments and trends."}),t.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"Compendium Data, the responses from the NRENs, are made available to be viewed and downloaded. Graphs, charts, and tables can be customised to show as many or few NRENs as required, across different years. These can be downloaded as images or in PDF form."})]})]})}),e[4]=m):m=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o={backgroundColor:"white"},e[5]=o):o=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d={width:"18rem"},e[6]=d):d=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(C.Img,{src:mt}),e[7]=h):h=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(C.Title,{children:"Compendium Data"}),e[8]=f):f=e[8];let _;e[9]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(O,{align:"center",children:t.jsx(C,{border:"light",style:d,children:t.jsxs(a,{to:"/data",className:"link-text",children:[h,t.jsxs(C.Body,{children:[f,t.jsx(C.Text,{children:t.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),e[9]=_):_=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u={width:"18rem"},e[10]=u):u=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(C.Img,{src:dt}),e[11]=p):p=e[11];let x;return e[12]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs(z,{className:"py-5 grey-container",children:[m,t.jsx(L,{children:t.jsx(O,{children:t.jsx(z,{style:o,className:"rounded-border",children:t.jsxs(L,{className:"justify-content-md-center",children:[_,t.jsx(O,{align:"center",children:t.jsx(C,{border:"light",style:u,children:t.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[p,t.jsxs(C.Body,{children:[t.jsx(C.Title,{children:"Compendium Reports"}),t.jsx(C.Text,{children:"A GÉANT Compendium Report is published annually, drawing on data from the Compendium Survey filled in by NRENs, complemented by information from other surveys"})]})]})})})]})})})})]}),e[12]=x):x=e[12],x}const V=e=>{const n=R.c(23),{title:l,children:i,startCollapsed:r,theme:m}=e,o=m===void 0?"":m,[d,h]=s.useState(!!r);let f;n[0]===Symbol.for("react.memo_cache_sentinel")?(f={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},n[0]=f):f=n[0];let _=f;if(o){let w;n[1]===Symbol.for("react.memo_cache_sentinel")?(w={..._,color:"black",fontWeight:"bold"},n[1]=w):w=n[1],_=w}const u=`collapsible-box${o} p-0`;let p;n[2]!==l?(p=t.jsx(O,{children:t.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:l})}),n[2]=l,n[3]=p):p=n[3];const x=`toggle-btn${o} p-${o?3:2}`;let N;n[4]!==d?(N=()=>h(!d),n[4]=d,n[5]=N):N=n[5];let g;n[6]!==d||n[7]!==_?(g=d?t.jsx(ht,{style:_}):t.jsx(ft,{style:_}),n[6]=d,n[7]=_,n[8]=g):g=n[8];let v;n[9]!==x||n[10]!==N||n[11]!==g?(v=t.jsx(O,{className:"flex-grow-0 flex-shrink-1",children:t.jsx("div",{className:x,onClick:N,children:g})}),n[9]=x,n[10]=N,n[11]=g,n[12]=v):v=n[12];let E;n[13]!==p||n[14]!==v?(E=t.jsxs(L,{children:[p,v]}),n[13]=p,n[14]=v,n[15]=E):E=n[15];const T=`collapsible-content${d?" collapsed":""}`;let b;n[16]!==i||n[17]!==T?(b=t.jsx("div",{className:T,children:i}),n[16]=i,n[17]=T,n[18]=b):b=n[18];let P;return n[19]!==b||n[20]!==u||n[21]!==E?(P=t.jsxs("div",{className:u,children:[E,b]}),n[19]=b,n[20]=u,n[21]=E,n[22]=P):P=n[22],P};function kt(e){const n=R.c(8),{section:l}=e;let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},n[0]=i):i=n[0];let r,m;n[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("br",{}),m={float:"right"},n[1]=r,n[2]=m):(r=n[1],m=n[2]);let o;n[3]!==l?(o=t.jsx("div",{style:i,children:t.jsxs("span",{children:["Compendium ",r,t.jsx("span",{style:m,children:l})]})}),n[3]=l,n[4]=o):o=n[4];let d;n[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:dt,style:{maxWidth:"4rem"}}),n[5]=d):d=n[5];let h;return n[6]!==o?(h=t.jsxs("div",{className:"bold-caps-17pt section-container",children:[o,d]}),n[6]=o,n[7]=h):h=n[7],h}function Rt(e){const n=R.c(14),{type:l}=e;let i="";l=="data"?i=" compendium-data-header":l=="reports"&&(i=" compendium-reports-header");let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={marginTop:"0.5rem"},n[0]=r):r=n[0];const m=l==="data"?"/data":"/";let o;n[1]===Symbol.for("react.memo_cache_sentinel")?(o={textDecoration:"none",color:"white"},n[1]=o):o=n[1];const d=l==="data"?"Data":"Reports";let h;n[2]!==d?(h=t.jsxs("span",{children:["Compendium ",d]}),n[2]=d,n[3]=h):h=n[3];let f;n[4]!==m||n[5]!==h?(f=t.jsx(O,{sm:8,children:t.jsx("h1",{className:"bold-caps-30pt",style:r,children:t.jsx(a,{to:m,style:o,children:h})})}),n[4]=m,n[5]=h,n[6]=f):f=n[6];let _;n[7]===Symbol.for("react.memo_cache_sentinel")?(_={color:"inherit"},n[7]=_):_=n[7];let u;n[8]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(O,{sm:4,children:t.jsx("a",{style:_,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:t.jsx(kt,{section:"Reports"})})}),n[8]=u):u=n[8];let p;n[9]!==f?(p=t.jsx(z,{children:t.jsxs(L,{children:[f,u]})}),n[9]=f,n[10]=p):p=n[10];let x;return n[11]!==i||n[12]!==p?(x=t.jsx("div",{className:i,children:p}),n[11]=i,n[12]=p,n[13]=x):x=n[13],x}function Pt(e){const n=R.c(8),{children:l,type:i}=e;let r="";i=="data"?r=" compendium-data-banner":i=="reports"&&(r=" compendium-reports-banner");let m,o;n[0]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("img",{src:mt,style:{maxWidth:"7rem",marginBottom:"1rem"}}),o={display:"flex",alignSelf:"right"},n[0]=m,n[1]=o):(m=n[0],o=n[1]);let d;n[2]===Symbol.for("react.memo_cache_sentinel")?(d={paddingTop:"1rem"},n[2]=d):d=n[2];let h;n[3]!==l?(h=t.jsx(z,{children:t.jsx(L,{children:t.jsx(L,{children:t.jsxs("div",{className:"section-container",children:[m,t.jsx("div",{style:o,children:t.jsx("div",{className:"center-text",style:d,children:l})})]})})})}),n[3]=l,n[4]=h):h=n[4];let f;return n[5]!==r||n[6]!==h?(f=t.jsx("div",{className:r,children:h}),n[5]=r,n[6]=h,n[7]=f):f=n[7],f}var D=(e=>(e.Organisation="ORGANISATION",e.Policy="STANDARDS AND POLICIES",e.ConnectedUsers="CONNECTED USERS",e.Network="NETWORK",e.Services="SERVICES",e))(D||{}),wt=(e=>(e.CSV="CSV",e.EXCEL="EXCEL",e))(wt||{}),Tt=(e=>(e.PNG="png",e.JPEG="jpeg",e.SVG="svg",e))(Tt||{});const Tn={universities:"Universities & Other (ISCED 6-8)",further_education:"Further education (ISCED 4-5)",secondary_schools:"Secondary schools (ISCED 2-3)",primary_schools:"Primary schools (ISCED 1)",institutes:"Research Institutes",cultural:"Libraries, Museums, Archives, Cultural institutions",hospitals:"Non-university public Hospitals",government:"Government departments (national, regional, local)",iros:"International (virtual) research organisations",for_profit_orgs:"For-profit organisations"},In={commercial_r_and_e:"Commercial R&E traffic only",commercial_general:"Commercial general",commercial_collaboration:"Commercial for collaboration only (project/time limited)",commercial_service_provider:"Commercial Service Provider",university_spin_off:"University Spin Off/Incubator"},Ln={collaboration:"Connection to your network for collaboration with R&E users",service_supplier:"Connection to your network for supplying services for R&E",direct_peering:"Direct peering (e.g. direct peering or cloud peering)"};function It(){const e=R.c(7),{preview:n,setPreview:l}=s.useContext(_t),{user:i}=s.useContext(pt),[r]=ut();let m;e[0]!==r?(m=r.get("preview"),e[0]=r,e[1]=m):m=e[1];const o=m;let d,h;return e[2]!==o||e[3]!==l||e[4]!==i?(d=()=>{o!==null&&(i.permissions.admin||i.role=="observer")&&l(!0)},h=[o,l,i],e[2]=o,e[3]=l,e[4]=i,e[5]=d,e[6]=h):(d=e[5],h=e[6]),s.useEffect(d,h),n}function Lt(){const e=R.c(82);It();const{trackPageView:n}=Ye();let l,i;e[0]!==n?(l=()=>{n({documentTitle:"Compendium Data"})},i=[n],e[0]=n,e[1]=l,e[2]=i):(l=e[1],i=e[2]),Qe.useEffect(l,i);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Rt,{type:"data"}),e[3]=r):r=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Pt,{type:"data",children:t.jsx("p",{className:"wordwrap",children:"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing."})}),e[4]=m):m=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),e[5]=o):o=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(a,{to:"/budget",className:"link-text-underline",children:t.jsx("span",{children:"Budget of NRENs per Year"})}),e[6]=d):d=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(a,{to:"/funding",className:"link-text-underline",children:t.jsx("span",{children:"Income Source of NRENs"})}),e[7]=h):h=e[7];let f,_,u;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(a,{to:"/charging",className:"link-text-underline",children:t.jsx("span",{children:"Charging Mechanism of NRENs"})}),_=t.jsx("hr",{className:"fake-divider"}),u=t.jsx("h6",{className:"section-title",children:"Staff and Projects"}),e[8]=f,e[9]=_,e[10]=u):(f=e[8],_=e[9],u=e[10]);let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(a,{to:"/employee-count",className:"link-text-underline",children:t.jsx("span",{children:"Number of NREN Employees"})}),e[11]=p):p=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(a,{to:"/roles",className:"link-text-underline",children:t.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),e[12]=x):x=e[12];let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(a,{to:"/employment",className:"link-text-underline",children:t.jsx("span",{children:"Types of Employment within NRENs"})}),e[13]=N):N=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(a,{to:"/suborganisations",className:"link-text-underline",children:t.jsx("span",{children:"NREN Sub-Organisations"})}),e[14]=g):g=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(a,{to:"/parentorganisation",className:"link-text-underline",children:t.jsx("span",{children:"NREN Parent Organisations"})}),e[15]=v):v=e[15];let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs(V,{title:D.Organisation,children:[o,d,h,f,_,u,p,x,N,g,v,t.jsx(a,{to:"/ec-projects",className:"link-text-underline",children:t.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),e[16]=E):E=e[16];let T,b;e[17]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(a,{to:"/policy",className:"link-text-underline",children:t.jsx("span",{children:"NREN Policies"})}),b=t.jsx("h6",{className:"section-title",children:"Standards"}),e[17]=T,e[18]=b):(T=e[17],b=e[18]);let P;e[19]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(a,{to:"/audits",className:"link-text-underline",children:t.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),e[19]=P):P=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(a,{to:"/business-continuity",className:"link-text-underline",children:t.jsx("span",{children:"NREN Business Continuity Planning"})}),e[20]=w):w=e[20];let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(a,{to:"/central-procurement",className:"link-text-underline",children:t.jsx("span",{children:"Central Procurement of Software"})}),e[21]=M):M=e[21];let F;e[22]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(a,{to:"/crisis-management",className:"link-text-underline",children:t.jsx("span",{children:"Crisis Management Procedures"})}),e[22]=F):F=e[22];let G;e[23]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx(a,{to:"/crisis-exercise",className:"link-text-underline",children:t.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),e[23]=G):G=e[23];let U;e[24]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(a,{to:"/security-control",className:"link-text-underline",children:t.jsx("span",{children:"Security Controls Used by NRENs"})}),e[24]=U):U=e[24];let $;e[25]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(a,{to:"/services-offered",className:"link-text-underline",children:t.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),e[25]=$):$=e[25];let B;e[26]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(a,{to:"/corporate-strategy",className:"link-text-underline",children:t.jsx("span",{children:"NREN Corporate Strategies "})}),e[26]=B):B=e[26];let W;e[27]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(a,{to:"/service-level-targets",className:"link-text-underline",children:t.jsx("span",{children:"NRENs Offering Service Level Targets"})}),e[27]=W):W=e[27];let H;e[28]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsxs(V,{title:D.Policy,startCollapsed:!0,children:[T,b,P,w,M,F,G,U,$,B,W,t.jsx(a,{to:"/service-management-framework",className:"link-text-underline",children:t.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),e[28]=H):H=e[28];let K;e[29]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx("h6",{className:"section-title",children:"Connected Users"}),e[29]=K):K=e[29];let q;e[30]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(a,{to:"/institutions-urls",className:"link-text-underline",children:t.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),e[30]=q):q=e[30];let X;e[31]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(a,{to:"/connected-proportion",className:"link-text-underline",children:t.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),e[31]=X):X=e[31];let J;e[32]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(a,{to:"/connectivity-level",className:"link-text-underline",children:t.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),e[32]=J):J=e[32];let Y;e[33]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(a,{to:"/connection-carrier",className:"link-text-underline",children:t.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),e[33]=Y):Y=e[33];let Q;e[34]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx(a,{to:"/connectivity-load",className:"link-text-underline",children:t.jsx("span",{children:"Connectivity Load"})}),e[34]=Q):Q=e[34];let Z;e[35]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(a,{to:"/connectivity-growth",className:"link-text-underline",children:t.jsx("span",{children:"Connectivity Growth"})}),e[35]=Z):Z=e[35];let ee,te,ne;e[36]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsx(a,{to:"/remote-campuses",className:"link-text-underline",children:t.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),te=t.jsx("hr",{className:"fake-divider"}),ne=t.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),e[36]=ee,e[37]=te,e[38]=ne):(ee=e[36],te=e[37],ne=e[38]);let se;e[39]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsx(a,{to:"/commercial-charging-level",className:"link-text-underline",children:t.jsx("span",{children:"Commercial Charging Level"})}),e[39]=se):se=e[39];let ie;e[40]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsxs(V,{title:D.ConnectedUsers,startCollapsed:!0,children:[K,q,X,J,Y,Q,Z,ee,te,ne,se,t.jsx(a,{to:"/commercial-connectivity",className:"link-text-underline",children:t.jsx("span",{children:"Commercial Connectivity"})})]}),e[40]=ie):ie=e[40];let re;e[41]===Symbol.for("react.memo_cache_sentinel")?(re=t.jsx("h6",{className:"section-title",children:"Connectivity"}),e[41]=re):re=e[41];let ae;e[42]===Symbol.for("react.memo_cache_sentinel")?(ae=t.jsx(a,{to:"/traffic-volume",className:"link-text-underline",children:t.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),e[42]=ae):ae=e[42];let le;e[43]===Symbol.for("react.memo_cache_sentinel")?(le=t.jsx(a,{to:"/iru-duration",className:"link-text-underline",children:t.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),e[43]=le):le=e[43];let oe;e[44]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(a,{to:"/fibre-light",className:"link-text-underline",children:t.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),e[44]=oe):oe=e[44];let ce;e[45]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsx(a,{to:"/dark-fibre-lease",className:"link-text-underline",children:t.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),e[45]=ce):ce=e[45];let me;e[46]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(a,{to:"/dark-fibre-lease-international",className:"link-text-underline",children:t.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),e[46]=me):me=e[46];let de;e[47]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(a,{to:"/dark-fibre-installed",className:"link-text-underline",children:t.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),e[47]=de):de=e[47];let he,fe,_e;e[48]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(a,{to:"/network-map",className:"link-text-underline",children:t.jsx("span",{children:"NREN Network Maps"})}),fe=t.jsx("hr",{className:"fake-divider"}),_e=t.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),e[48]=he,e[49]=fe,e[50]=_e):(he=e[48],fe=e[49],_e=e[50]);let pe;e[51]===Symbol.for("react.memo_cache_sentinel")?(pe=t.jsx(a,{to:"/monitoring-tools",className:"link-text-underline",children:t.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),e[51]=pe):pe=e[51];let ue;e[52]===Symbol.for("react.memo_cache_sentinel")?(ue=t.jsx(a,{to:"/pert-team",className:"link-text-underline",children:t.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),e[52]=ue):ue=e[52];let xe;e[53]===Symbol.for("react.memo_cache_sentinel")?(xe=t.jsx(a,{to:"/passive-monitoring",className:"link-text-underline",children:t.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),e[53]=xe):xe=e[53];let ye;e[54]===Symbol.for("react.memo_cache_sentinel")?(ye=t.jsx(a,{to:"/traffic-stats",className:"link-text-underline",children:t.jsx("span",{children:"Traffic Statistics  "})}),e[54]=ye):ye=e[54];let je;e[55]===Symbol.for("react.memo_cache_sentinel")?(je=t.jsx(a,{to:"/weather-map",className:"link-text-underline",children:t.jsx("span",{children:"NREN Online Network Weather Maps "})}),e[55]=je):je=e[55];let Ne;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ne=t.jsx(a,{to:"/certificate-provider",className:"link-text-underline",children:t.jsx("span",{children:"Certification Services used by NRENs"})}),e[56]=Ne):Ne=e[56];let ge,ve,Ee;e[57]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx(a,{to:"/siem-vendors",className:"link-text-underline",children:t.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),ve=t.jsx("hr",{className:"fake-divider"}),Ee=t.jsx("h6",{className:"section-title",children:"Alienwave"}),e[57]=ge,e[58]=ve,e[59]=Ee):(ge=e[57],ve=e[58],Ee=e[59]);let be;e[60]===Symbol.for("react.memo_cache_sentinel")?(be=t.jsx(a,{to:"/alien-wave",className:"link-text-underline",children:t.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),e[60]=be):be=e[60];let Ce,Se,ke;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ce=t.jsx(a,{to:"/alien-wave-internal",className:"link-text-underline",children:t.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),Se=t.jsx("hr",{className:"fake-divider"}),ke=t.jsx("h6",{className:"section-title",children:"Capacity"}),e[61]=Ce,e[62]=Se,e[63]=ke):(Ce=e[61],Se=e[62],ke=e[63]);let Re;e[64]===Symbol.for("react.memo_cache_sentinel")?(Re=t.jsx(a,{to:"/capacity-largest-link",className:"link-text-underline",children:t.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),e[64]=Re):Re=e[64];let Pe;e[65]===Symbol.for("react.memo_cache_sentinel")?(Pe=t.jsx(a,{to:"/external-connections",className:"link-text-underline",children:t.jsx("span",{children:"NREN External IP Connections"})}),e[65]=Pe):Pe=e[65];let we;e[66]===Symbol.for("react.memo_cache_sentinel")?(we=t.jsx(a,{to:"/capacity-core-ip",className:"link-text-underline",children:t.jsx("span",{children:"NREN Core IP Capacity"})}),e[66]=we):we=e[66];let Te;e[67]===Symbol.for("react.memo_cache_sentinel")?(Te=t.jsx(a,{to:"/non-rne-peers",className:"link-text-underline",children:t.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),e[67]=Te):Te=e[67];let Ie,Le,Ae;e[68]===Symbol.for("react.memo_cache_sentinel")?(Ie=t.jsx(a,{to:"/traffic-ratio",className:"link-text-underline",children:t.jsx("span",{children:"Types of traffic in NREN networks"})}),Le=t.jsx("hr",{className:"fake-divider"}),Ae=t.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),e[68]=Ie,e[69]=Le,e[70]=Ae):(Ie=e[68],Le=e[69],Ae=e[70]);let Oe;e[71]===Symbol.for("react.memo_cache_sentinel")?(Oe=t.jsx(a,{to:"/ops-automation",className:"link-text-underline",children:t.jsx("span",{children:"NREN Automation of Operational Processes"})}),e[71]=Oe):Oe=e[71];let De;e[72]===Symbol.for("react.memo_cache_sentinel")?(De=t.jsx(a,{to:"/network-automation",className:"link-text-underline",children:t.jsx("span",{children:"Network Tasks for which NRENs Use Automation  "})}),e[72]=De):De=e[72];let Ve;e[73]===Symbol.for("react.memo_cache_sentinel")?(Ve=t.jsxs(V,{title:D.Network,startCollapsed:!0,children:[re,ae,le,oe,ce,me,de,he,fe,_e,pe,ue,xe,ye,je,Ne,ge,ve,Ee,be,Ce,Se,ke,Re,Pe,we,Te,Ie,Le,Ae,Oe,De,t.jsx(a,{to:"/nfv",className:"link-text-underline",children:t.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),e[73]=Ve):Ve=e[73];let ze;e[74]===Symbol.for("react.memo_cache_sentinel")?(ze=t.jsx(a,{to:"/network-services",className:"link-text-underline",children:t.jsx("span",{children:"Network services"})}),e[74]=ze):ze=e[74];let Me;e[75]===Symbol.for("react.memo_cache_sentinel")?(Me=t.jsx(a,{to:"/isp-support-services",className:"link-text-underline",children:t.jsx("span",{children:"ISP support services"})}),e[75]=Me):Me=e[75];let Fe;e[76]===Symbol.for("react.memo_cache_sentinel")?(Fe=t.jsx(a,{to:"/security-services",className:"link-text-underline",children:t.jsx("span",{children:"Security services"})}),e[76]=Fe):Fe=e[76];let Ge;e[77]===Symbol.for("react.memo_cache_sentinel")?(Ge=t.jsx(a,{to:"/identity-services",className:"link-text-underline",children:t.jsx("span",{children:"Identity services"})}),e[77]=Ge):Ge=e[77];let Ue;e[78]===Symbol.for("react.memo_cache_sentinel")?(Ue=t.jsx(a,{to:"/collaboration-services",className:"link-text-underline",children:t.jsx("span",{children:"Collaboration services"})}),e[78]=Ue):Ue=e[78];let $e;e[79]===Symbol.for("react.memo_cache_sentinel")?($e=t.jsx(a,{to:"/multimedia-services",className:"link-text-underline",children:t.jsx("span",{children:"Multimedia services"})}),e[79]=$e):$e=e[79];let Be;e[80]===Symbol.for("react.memo_cache_sentinel")?(Be=t.jsx(a,{to:"/storage-and-hosting-services",className:"link-text-underline",children:t.jsx("span",{children:"Storage and hosting services"})}),e[80]=Be):Be=e[80];let We;return e[81]===Symbol.for("react.memo_cache_sentinel")?(We=t.jsxs(t.Fragment,{children:[r,m,t.jsx(z,{className:"mt-5 mb-5",children:t.jsxs(L,{children:[E,H,ie,Ve,t.jsxs(V,{title:D.Services,startCollapsed:!0,children:[ze,Me,Fe,Ge,Ue,$e,Be,t.jsx(a,{to:"/professional-services",className:"link-text-underline",children:t.jsx("span",{children:"Professional services"})})]})]})})]}),e[81]=We):We=e[81],We}const At=s.lazy(()=>c(()=>import("./Budget-BaNd2jtG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),Ot=s.lazy(()=>c(()=>import("./ChargingStructure-UaYN2mUD.js"),__vite__mapDeps([9,1,2,4,5,6,7,10,11,12]))),Dt=s.lazy(()=>c(()=>import("./ECProjects-C-HN1lwo.js"),__vite__mapDeps([13,1,2,4,5,6,7,14,12]))),Vt=s.lazy(()=>c(()=>import("./FundingSource-DRHIT4Ra.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,16]))),zt=s.lazy(()=>c(()=>import("./ParentOrganisation-DJLeH6g7.js"),__vite__mapDeps([17,1,2,4,5,6,7,14,12]))),qe=s.lazy(()=>c(()=>import("./StaffGraph-CRnD7Dbf.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,19]))),Mt=s.lazy(()=>c(()=>import("./StaffGraphAbsolute-1_iTYcqR.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,16,8]))),Ft=s.lazy(()=>c(()=>import("./SubOrganisation-D8wGO2zm.js"),__vite__mapDeps([21,1,2,4,5,6,7,14,12]))),Gt=s.lazy(()=>c(()=>import("./Audits-z541eU6T.js"),__vite__mapDeps([22,1,2,4,5,6,7,10,11,12]))),Ut=s.lazy(()=>c(()=>import("./BusinessContinuity-BhppOK3E.js"),__vite__mapDeps([23,1,2,4,5,6,7,10,11,12]))),$t=s.lazy(()=>c(()=>import("./CentralProcurement-BK_KYdQw.js"),__vite__mapDeps([24,1,2,4,5,6,7,16,3,8]))),Bt=s.lazy(()=>c(()=>import("./CorporateStrategy-Doz2JleE.js"),__vite__mapDeps([25,1,2,4,5,6,7,14,12]))),Wt=s.lazy(()=>c(()=>import("./CrisisExercises-DIq1DMCc.js"),__vite__mapDeps([26,1,2,4,5,6,7,10,11,12]))),Ht=s.lazy(()=>c(()=>import("./CrisisManagement-B-4V900E.js"),__vite__mapDeps([27,1,2,4,5,6,7,10,11,12]))),Kt=s.lazy(()=>c(()=>import("./EOSCListings-DkHlXFjZ.js"),__vite__mapDeps([28,1,2,4,5,6,7,14,12]))),qt=s.lazy(()=>c(()=>import("./Policy-rfVVQ2MG.js"),__vite__mapDeps([29,1,2,4,5,6,7,14,12]))),Xt=s.lazy(()=>c(()=>import("./SecurityControls-Ct-pN0fH.js"),__vite__mapDeps([30,1,2,4,5,6,7,10,11,12]))),Jt=s.lazy(()=>c(()=>import("./ServiceLevelTargets-DkcKRrX5.js"),__vite__mapDeps([31,1,2,4,5,6,7,10,11,12]))),Yt=s.lazy(()=>c(()=>import("./ServiceManagementFramework-0pFJ2GJW.js"),__vite__mapDeps([32,1,2,4,5,6,7,10,11,12]))),Qt=s.lazy(()=>c(()=>import("./ServicesOffered-DAgKmLaL.js"),__vite__mapDeps([33,1,2,4,5,6,7,34,12]))),Zt=s.lazy(()=>c(()=>import("./ConnectedInstitutionsURLs-BSMQXsFI.js"),__vite__mapDeps([35,1,2,4,5,6,7,14,12]))),A=s.lazy(()=>c(()=>import("./ConnectedUser-BEMGNK1Q.js"),__vite__mapDeps([36,1,2,4,5,6,7,34,12]))),en=s.lazy(()=>c(()=>import("./RemoteCampuses-B7LZiN42.js"),__vite__mapDeps([37,1,2,4,5,6,7,12]))),tn=s.lazy(()=>c(()=>import("./AlienWave-BToV9QLE.js"),__vite__mapDeps([38,1,2,4,5,6,7,10,11,12]))),nn=s.lazy(()=>c(()=>import("./AlienWaveInternal-CYmkCEA6.js"),__vite__mapDeps([39,1,2,4,5,6,7,10,11,12]))),sn=s.lazy(()=>c(()=>import("./Automation-CrHhcUVx.js"),__vite__mapDeps([40,1,2,4,5,6,7,11,12]))),rn=s.lazy(()=>c(()=>import("./CapacityCoreIP-BzYm9HBi.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,16,8]))),an=s.lazy(()=>c(()=>import("./CapacityLargestLink-CchKWKUR.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,16,8]))),ln=s.lazy(()=>c(()=>import("./CertificateProvider-B2MBeNfh.js"),__vite__mapDeps([43,1,2,4,5,6,7,10,11,12]))),Xe=s.lazy(()=>c(()=>import("./DarkFibreLease-DpIHorYZ.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8]))),on=s.lazy(()=>c(()=>import("./DarkFibreInstalled-BG9k0mWY.js"),__vite__mapDeps([45,1,2,3,4,5,6,7,8]))),cn=s.lazy(()=>c(()=>import("./ExternalConnections-CYJLiQ46.js"),__vite__mapDeps([46,1,2,4,5,6,7,12]))),mn=s.lazy(()=>c(()=>import("./FibreLight-4Mgdokfs.js"),__vite__mapDeps([47,1,2,4,5,6,7,10,11,12]))),dn=s.lazy(()=>c(()=>import("./IRUDuration-D50DEG35.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8]))),hn=s.lazy(()=>c(()=>import("./MonitoringTools-BuTC_DRa.js"),__vite__mapDeps([49,1,2,4,5,6,7,10,11,12]))),fn=s.lazy(()=>c(()=>import("./NetworkFunctionVirtualisation-DMaSWRo0.js"),__vite__mapDeps([50,1,2,4,5,6,7,11,12]))),_n=s.lazy(()=>c(()=>import("./NetworkMapUrls-YVUXOiQm.js"),__vite__mapDeps([51,1,2,4,5,6,7,14,12]))),pn=s.lazy(()=>c(()=>import("./NonRAndEPeer-BvFWiPrM.js"),__vite__mapDeps([52,1,2,3,4,5,6,7,16,8]))),un=s.lazy(()=>c(()=>import("./OPsAutomation-mleIxb9-.js"),__vite__mapDeps([53,1,2,4,5,6,7,10,11,12]))),xn=s.lazy(()=>c(()=>import("./PassiveMonitoring-BQaZqq7o.js"),__vite__mapDeps([54,1,2,4,5,6,7,10,11,12]))),yn=s.lazy(()=>c(()=>import("./PertTeam-Dk6-ebg9.js"),__vite__mapDeps([55,1,2,4,5,6,7,10,11,12]))),jn=s.lazy(()=>c(()=>import("./SiemVendors-AspEWRsK.js"),__vite__mapDeps([56,1,2,4,5,6,7,10,11,12]))),Nn=s.lazy(()=>c(()=>import("./TrafficRatio-CEE7weoG.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,19]))),gn=s.lazy(()=>c(()=>import("./TrafficUrl-DFoUKOws.js"),__vite__mapDeps([58,1,2,4,5,6,7,14,12]))),vn=s.lazy(()=>c(()=>import("./TrafficVolume-5iEpLgxK.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,8]))),En=s.lazy(()=>c(()=>import("./WeatherMap-CR-KiYaJ.js"),__vite__mapDeps([60,1,2,4,5,6,7,14,12]))),I=s.lazy(()=>c(()=>import("./Services-TWQx7C9G.js"),__vite__mapDeps([61,1,2,4,5,6,7,12]))),bn=()=>{const e=R.c(9),{pathname:n}=Ze(),l=n!=="/";let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(yt,{}),e[0]=i):i=e[0];let r;e[1]!==l?(r=t.jsx("main",{className:"grow",children:l?t.jsx(jt,{}):t.jsx(Ke,{})}),e[1]=l,e[2]=r):r=e[2];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Nt,{}),e[3]=m):m=e[3];let o;e[4]!==r?(o=t.jsxs(gt,{children:[i,r,m]}),e[4]=r,e[5]=o):o=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(vt,{}),e[6]=d):d=e[6];let h;return e[7]!==o?(h=t.jsxs(t.Fragment,{children:[o,d]}),e[7]=o,e[8]=h):h=e[8],h},Cn=()=>{const e=R.c(4),{pathname:n}=Ze();let l,i;e[0]!==n?(l=()=>{n.startsWith("/survey")?window.location.replace(n):window.location.replace(`/survey${n}`)},i=[n],e[0]=n,e[1]=l,e[2]=i):(l=e[1],i=e[2]),s.useEffect(l,i);let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ke,{}),e[3]=r):r=e[3],r},Sn=xt([{path:"",element:t.jsx(bn,{}),children:[{path:"/budget",element:t.jsx(At,{})},{path:"/funding",element:t.jsx(Vt,{})},{path:"/employment",element:t.jsx(qe,{},"staffgraph")},{path:"/traffic-ratio",element:t.jsx(Nn,{})},{path:"/roles",element:t.jsx(qe,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:t.jsx(Mt,{})},{path:"/charging",element:t.jsx(Ot,{})},{path:"/suborganisations",element:t.jsx(Ft,{})},{path:"/parentorganisation",element:t.jsx(zt,{})},{path:"/ec-projects",element:t.jsx(Dt,{})},{path:"/policy",element:t.jsx(qt,{})},{path:"/traffic-volume",element:t.jsx(vn,{})},{path:"/data",element:t.jsx(Lt,{})},{path:"/institutions-urls",element:t.jsx(Zt,{})},{path:"/connected-proportion",element:t.jsx(A,{page:j.ConnectedProportion},j.ConnectedProportion)},{path:"/connectivity-level",element:t.jsx(A,{page:j.ConnectivityLevel},j.ConnectivityLevel)},{path:"/connectivity-growth",element:t.jsx(A,{page:j.ConnectivityGrowth},j.ConnectivityGrowth)},{path:"/connection-carrier",element:t.jsx(A,{page:j.ConnectionCarrier},j.ConnectionCarrier)},{path:"/connectivity-load",element:t.jsx(A,{page:j.ConnectivityLoad},j.ConnectivityLoad)},{path:"/commercial-charging-level",element:t.jsx(A,{page:j.CommercialChargingLevel},j.CommercialChargingLevel)},{path:"/commercial-connectivity",element:t.jsx(A,{page:j.CommercialConnectivity},j.CommercialConnectivity)},{path:"/network-services",element:t.jsx(I,{category:y.network_services},y.network_services)},{path:"/isp-support-services",element:t.jsx(I,{category:y.isp_support},y.isp_support)},{path:"/security-services",element:t.jsx(I,{category:y.security},y.security)},{path:"/identity-services",element:t.jsx(I,{category:y.identity},y.identity)},{path:"/collaboration-services",element:t.jsx(I,{category:y.collaboration},y.collaboration)},{path:"/multimedia-services",element:t.jsx(I,{category:y.multimedia},y.multimedia)},{path:"/storage-and-hosting-services",element:t.jsx(I,{category:y.storage_and_hosting},y.storage_and_hosting)},{path:"/professional-services",element:t.jsx(I,{category:y.professional_services},y.professional_services)},{path:"/dark-fibre-lease",element:t.jsx(Xe,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:t.jsx(Xe,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:t.jsx(on,{})},{path:"/remote-campuses",element:t.jsx(en,{})},{path:"/eosc-listings",element:t.jsx(Kt,{})},{path:"/fibre-light",element:t.jsx(mn,{})},{path:"/monitoring-tools",element:t.jsx(hn,{})},{path:"/pert-team",element:t.jsx(yn,{})},{path:"/passive-monitoring",element:t.jsx(xn,{})},{path:"/alien-wave",element:t.jsx(tn,{})},{path:"/alien-wave-internal",element:t.jsx(nn,{})},{path:"/external-connections",element:t.jsx(cn,{})},{path:"/ops-automation",element:t.jsx(un,{})},{path:"/network-automation",element:t.jsx(sn,{})},{path:"/traffic-stats",element:t.jsx(gn,{})},{path:"/weather-map",element:t.jsx(En,{})},{path:"/network-map",element:t.jsx(_n,{})},{path:"/nfv",element:t.jsx(fn,{})},{path:"/certificate-providers",element:t.jsx(ln,{})},{path:"/siem-vendors",element:t.jsx(jn,{})},{path:"/capacity-largest-link",element:t.jsx(an,{})},{path:"/capacity-core-ip",element:t.jsx(rn,{})},{path:"/non-rne-peers",element:t.jsx(pn,{})},{path:"/iru-duration",element:t.jsx(dn,{})},{path:"/audits",element:t.jsx(Gt,{})},{path:"/business-continuity",element:t.jsx(Ut,{})},{path:"/crisis-management",element:t.jsx(Ht,{})},{path:"/crisis-exercise",element:t.jsx(Wt,{})},{path:"/central-procurement",element:t.jsx($t,{})},{path:"/security-control",element:t.jsx(Xt,{})},{path:"/services-offered",element:t.jsx(Qt,{})},{path:"/service-management-framework",element:t.jsx(Yt,{})},{path:"/service-level-targets",element:t.jsx(Jt,{})},{path:"/corporate-strategy",element:t.jsx(Bt,{})},{path:"/survey/*",element:t.jsx(Cn,{})},{path:"*",element:t.jsx(Ke,{})}]}]);function kn(){const e=R.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"app",children:t.jsx(Et,{router:Sn})}),e[0]=n):n=e[0],n}const Rn=document.getElementById("root"),Pn=bt.createRoot(Rn);Pn.render(t.jsx(Qe.StrictMode,{children:t.jsx(kn,{})}));export{j as C,wt as E,Tt as I,D as S,Tn as U,In as a,Ln as b,V as c,Rt as d,y as e,It as u};
diff --git a/compendium_v2/static/survey-3meXCY6T.js b/compendium_v2/static/survey-3meXCY6T.js
new file mode 100644
index 0000000000000000000000000000000000000000..459a5bed1c088dc107189da93d9ed6a3af3340eb
--- /dev/null
+++ b/compendium_v2/static/survey-3meXCY6T.js
@@ -0,0 +1 @@
+async function a(){try{return await(await fetch("/api/survey/list")).json()}catch{return[]}}async function s(){try{const r=await(await fetch("/api/survey/active/year")).json();return"year"in r?r.year.toString():(console.log("Invalid response format: Failed fetching active survey year."),"")}catch(e){return console.error("Failed fetching active survey year:",e),""}}export{a,s as f};
diff --git a/compendium_v2/static/survey.core-D1mOb2z9.js b/compendium_v2/static/survey.core-D1mOb2z9.js
new file mode 100644
index 0000000000000000000000000000000000000000..a27a8d757617673c5f4bf4cd01cdb5000f43c3f0
--- /dev/null
+++ b/compendium_v2/static/survey.core-D1mOb2z9.js
@@ -0,0 +1,36 @@
+function rh(Ot,Nn){for(var qe=0;qe<Nn.length;qe++){const m=Nn[qe];if(typeof m!="string"&&!Array.isArray(m)){for(const y in m)if(y!=="default"&&!(y in Ot)){const E=Object.getOwnPropertyDescriptor(m,y);E&&Object.defineProperty(Ot,y,E.get?E:{enumerable:!0,get:()=>m[y]})}}}return Object.freeze(Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"}))}var jn={exports:{}};/*!
+ * surveyjs - Survey JavaScript library v1.12.23
+ * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */var ih=jn.exports,el;function oh(){return el||(el=1,function(Ot,Nn){(function(m,y){Ot.exports=y()})(ih,function(){return function(qe){var m={};function y(E){if(m[E])return m[E].exports;var I=m[E]={i:E,l:!1,exports:{}};return qe[E].call(I.exports,I,I.exports,y),I.l=!0,I.exports}return y.m=qe,y.c=m,y.d=function(E,I,Z){y.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:Z})},y.r=function(E){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},y.t=function(E,I){if(I&1&&(E=y(E)),I&8||I&4&&typeof E=="object"&&E&&E.__esModule)return E;var Z=Object.create(null);if(y.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:E}),I&2&&typeof E!="string")for(var Jt in E)y.d(Z,Jt,(function(P){return E[P]}).bind(null,Jt));return Z},y.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return y.d(I,"a",I),I},y.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},y.p="",y(y.s="./src/entries/core.ts")}({"./src/entries/core.ts":function(qe,m,y){y.r(m),y.d(m,"Version",function(){return Wt}),y.d(m,"ReleaseDate",function(){return vi}),y.d(m,"checkLibraryVersion",function(){return Pf}),y.d(m,"setLicenseKey",function(){return Vf}),y.d(m,"slk",function(){return Zs}),y.d(m,"hasLicense",function(){return wf}),y.d(m,"settings",function(){return b}),y.d(m,"Helpers",function(){return P}),y.d(m,"AnswerCountValidator",function(){return xo}),y.d(m,"EmailValidator",function(){return ur}),y.d(m,"NumericValidator",function(){return Vo}),y.d(m,"RegexValidator",function(){return Oo}),y.d(m,"SurveyValidator",function(){return it}),y.d(m,"TextValidator",function(){return wo}),y.d(m,"ValidatorResult",function(){return Te}),y.d(m,"ExpressionValidator",function(){return So}),y.d(m,"ValidatorRunner",function(){return Po}),y.d(m,"ItemValue",function(){return k}),y.d(m,"Base",function(){return z}),y.d(m,"Event",function(){return zn}),y.d(m,"EventBase",function(){return Ve}),y.d(m,"ArrayChanges",function(){return tt}),y.d(m,"ComputedUpdater",function(){return te}),y.d(m,"SurveyError",function(){return ge}),y.d(m,"SurveyElementCore",function(){return nn}),y.d(m,"SurveyElement",function(){return le}),y.d(m,"DragTypeOverMeEnum",function(){return Xn}),y.d(m,"CalculatedValue",function(){return Eo}),y.d(m,"CustomError",function(){return we}),y.d(m,"AnswerRequiredError",function(){return yo}),y.d(m,"OneAnswerRequiredError",function(){return mo}),y.d(m,"RequreNumericError",function(){return vo}),y.d(m,"ExceedSizeError",function(){return bo}),y.d(m,"LocalizableString",function(){return Se}),y.d(m,"LocalizableStrings",function(){return ao}),y.d(m,"HtmlConditionItem",function(){return Io}),y.d(m,"UrlConditionItem",function(){return Ao}),y.d(m,"ChoicesRestful",function(){return ot}),y.d(m,"ChoicesRestfull",function(){return Du}),y.d(m,"FunctionFactory",function(){return U}),y.d(m,"registerFunction",function(){return ll}),y.d(m,"ConditionRunner",function(){return de}),y.d(m,"ExpressionRunner",function(){return et}),y.d(m,"ExpressionExecutor",function(){return eo}),y.d(m,"Operand",function(){return gt}),y.d(m,"Const",function(){return qn}),y.d(m,"BinaryOperand",function(){return Gi}),y.d(m,"Variable",function(){return Ki}),y.d(m,"FunctionOperand",function(){return Yi}),y.d(m,"ArrayOperand",function(){return Xt}),y.d(m,"UnaryOperand",function(){return kn}),y.d(m,"ConditionsParser",function(){return Xi}),y.d(m,"ProcessValue",function(){return me}),y.d(m,"JsonError",function(){return dt}),y.d(m,"JsonIncorrectTypeError",function(){return ji}),y.d(m,"JsonMetadata",function(){return Di}),y.d(m,"JsonMetadataClass",function(){return Ai}),y.d(m,"JsonMissingTypeError",function(){return Mi}),y.d(m,"JsonMissingTypeErrorBase",function(){return Bn}),y.d(m,"JsonObject",function(){return fe}),y.d(m,"JsonObjectProperty",function(){return Gt}),y.d(m,"JsonRequiredPropertyError",function(){return Ni}),y.d(m,"JsonUnknownPropertyError",function(){return Li}),y.d(m,"Serializer",function(){return x}),y.d(m,"property",function(){return h}),y.d(m,"propertyArray",function(){return ae}),y.d(m,"MatrixDropdownCell",function(){return wr}),y.d(m,"MatrixDropdownRowModelBase",function(){return _e}),y.d(m,"QuestionMatrixDropdownModelBase",function(){return bt}),y.d(m,"MatrixDropdownColumn",function(){return jt}),y.d(m,"matrixDropdownColumnTypes",function(){return br}),y.d(m,"QuestionMatrixDropdownRenderedCell",function(){return De}),y.d(m,"QuestionMatrixDropdownRenderedRow",function(){return Pr}),y.d(m,"QuestionMatrixDropdownRenderedErrorRow",function(){return ko}),y.d(m,"QuestionMatrixDropdownRenderedTable",function(){return Vr}),y.d(m,"MatrixDropdownRowModel",function(){return Qo}),y.d(m,"QuestionMatrixDropdownModel",function(){return xr}),y.d(m,"MatrixDynamicRowModel",function(){return Wo}),y.d(m,"QuestionMatrixDynamicModel",function(){return Er}),y.d(m,"MatrixRowModel",function(){return cs}),y.d(m,"MatrixCells",function(){return fs}),y.d(m,"QuestionMatrixModel",function(){return Qr}),y.d(m,"QuestionMatrixBaseModel",function(){return gr}),y.d(m,"MultipleTextItemModel",function(){return Wr}),y.d(m,"MultipleTextCell",function(){return Jr}),y.d(m,"MultipleTextErrorCell",function(){return Ps}),y.d(m,"MutlipleTextErrorRow",function(){return Cs}),y.d(m,"MutlipleTextRow",function(){return $r}),y.d(m,"QuestionMultipleTextModel",function(){return wn}),y.d(m,"MultipleTextEditorModel",function(){return bs}),y.d(m,"PanelModel",function(){return Bt}),y.d(m,"PanelModelBase",function(){return Lr}),y.d(m,"QuestionRowModel",function(){return ts}),y.d(m,"FlowPanelModel",function(){return Vs}),y.d(m,"PageModel",function(){return Mr}),y.d(m,"DefaultTitleModel",function(){return wc}),y.d(m,"Question",function(){return ue}),y.d(m,"QuestionNonValue",function(){return xn}),y.d(m,"QuestionEmptyModel",function(){return ws}),y.d(m,"QuestionCheckboxBase",function(){return kt}),y.d(m,"QuestionSelectBase",function(){return jr}),y.d(m,"QuestionCheckboxModel",function(){return Qt}),y.d(m,"QuestionTagboxModel",function(){return Gr}),y.d(m,"QuestionRankingModel",function(){return Kr}),y.d(m,"QuestionCommentModel",function(){return Yr}),y.d(m,"QuestionDropdownModel",function(){return qt}),y.d(m,"QuestionFactory",function(){return J}),y.d(m,"ElementFactory",function(){return ze}),y.d(m,"QuestionFileModel",function(){return Zr}),y.d(m,"QuestionFilePage",function(){return Is}),y.d(m,"QuestionHtmlModel",function(){return ei}),y.d(m,"QuestionRadiogroupModel",function(){return ti}),y.d(m,"QuestionRatingModel",function(){return ri}),y.d(m,"RenderedRatingItem",function(){return Sn}),y.d(m,"QuestionExpressionModel",function(){return vr}),y.d(m,"QuestionTextBase",function(){return Pn}),y.d(m,"CharacterCounter",function(){return hs}),y.d(m,"QuestionTextModel",function(){return Vn}),y.d(m,"QuestionBooleanModel",function(){return ii}),y.d(m,"QuestionImagePickerModel",function(){return Ht}),y.d(m,"ImageItemValue",function(){return Ls}),y.d(m,"QuestionImageModel",function(){return oi}),y.d(m,"QuestionSignaturePadModel",function(){return ai}),y.d(m,"QuestionPanelDynamicModel",function(){return ci}),y.d(m,"QuestionPanelDynamicItem",function(){return pe}),y.d(m,"SurveyTimer",function(){return Ir}),y.d(m,"SurveyTimerModel",function(){return Go}),y.d(m,"tryFocusPage",function(){return pc}),y.d(m,"createTOCListModel",function(){return is}),y.d(m,"getTocRootCss",function(){return ss}),y.d(m,"TOCModel",function(){return st}),y.d(m,"SurveyProgressModel",function(){return tf}),y.d(m,"ProgressButtons",function(){return ns}),y.d(m,"ProgressButtonsResponsivityManager",function(){return fc}),y.d(m,"SurveyModel",function(){return Ue}),y.d(m,"SurveyTrigger",function(){return ut}),y.d(m,"SurveyTriggerComplete",function(){return _s}),y.d(m,"SurveyTriggerSetValue",function(){return Bs}),y.d(m,"SurveyTriggerVisible",function(){return Fs}),y.d(m,"SurveyTriggerCopyValue",function(){return Qs}),y.d(m,"SurveyTriggerRunExpression",function(){return qs}),y.d(m,"SurveyTriggerSkip",function(){return ks}),y.d(m,"Trigger",function(){return Ns}),y.d(m,"PopupSurveyModel",function(){return Hs}),y.d(m,"SurveyWindowModel",function(){return rf}),y.d(m,"TextPreProcessor",function(){return yr}),y.d(m,"Notifier",function(){return Ko}),y.d(m,"Cover",function(){return vn}),y.d(m,"CoverCell",function(){return Yo}),y.d(m,"dxSurveyService",function(){return Jo}),y.d(m,"englishStrings",function(){return Fn}),y.d(m,"surveyLocalization",function(){return ce}),y.d(m,"surveyStrings",function(){return rl}),y.d(m,"getLocaleString",function(){return oe}),y.d(m,"getLocaleStrings",function(){return tl}),y.d(m,"setupLocale",function(){return nl}),y.d(m,"QuestionCustomWidget",function(){return To}),y.d(m,"CustomWidgetCollection",function(){return cr}),y.d(m,"QuestionCustomModel",function(){return Fo}),y.d(m,"QuestionCompositeModel",function(){return _o}),y.d(m,"ComponentQuestionJSON",function(){return jo}),y.d(m,"ComponentCollection",function(){return cn}),y.d(m,"ListModel",function(){return Rt}),y.d(m,"MultiSelectListModel",function(){return xs}),y.d(m,"PopupModel",function(){return Et}),y.d(m,"createDialogOptions",function(){return Gl}),y.d(m,"PopupBaseViewModel",function(){return _r}),y.d(m,"PopupDropdownViewModel",function(){return kr}),y.d(m,"PopupModalViewModel",function(){return fi}),y.d(m,"createPopupViewModel",function(){return af}),y.d(m,"createPopupModalViewModel",function(){return sf}),y.d(m,"DropdownListModel",function(){return Cn}),y.d(m,"DropdownMultiSelectListModel",function(){return Os}),y.d(m,"QuestionButtonGroupModel",function(){return $s}),y.d(m,"ButtonGroupItemModel",function(){return lf}),y.d(m,"ButtonGroupItemValue",function(){return Ws}),y.d(m,"IsMobile",function(){return gn}),y.d(m,"IsTouch",function(){return ne}),y.d(m,"_setIsTouch",function(){return Hu}),y.d(m,"confirmAction",function(){return lo}),y.d(m,"confirmActionAsync",function(){return At}),y.d(m,"detectIEOrEdge",function(){return Dt}),y.d(m,"doKey2ClickUp",function(){return po}),y.d(m,"doKey2ClickDown",function(){return cu}),y.d(m,"doKey2ClickBlur",function(){return fo}),y.d(m,"loadFileFromBase64",function(){return uo}),y.d(m,"increaseHeightByContent",function(){return or}),y.d(m,"createSvg",function(){return au}),y.d(m,"chooseFiles",function(){return go}),y.d(m,"sanitizeEditableContent",function(){return du}),y.d(m,"prepareElementForVerticalAnimation",function(){return Ae}),y.d(m,"cleanHtmlElementAfterAnimation",function(){return Ce}),y.d(m,"classesToSelector",function(){return be}),y.d(m,"renamedIcons",function(){return nr}),y.d(m,"getIconNameFromProxy",function(){return co}),y.d(m,"InputMaskBase",function(){return En}),y.d(m,"InputMaskPattern",function(){return yi}),y.d(m,"InputMaskNumeric",function(){return mi}),y.d(m,"InputMaskDateTime",function(){return Ks}),y.d(m,"InputMaskCurrency",function(){return Xs}),y.d(m,"CssClassBuilder",function(){return O}),y.d(m,"TextAreaModel",function(){return ln}),y.d(m,"surveyCss",function(){return se}),y.d(m,"defaultV2Css",function(){return yn}),y.d(m,"defaultV2ThemeName",function(){return $o}),y.d(m,"DragDropCore",function(){return Sr}),y.d(m,"DragDropChoices",function(){return Ss}),y.d(m,"DragDropRankingSelectToRank",function(){return Rs}),y.d(m,"StylesManager",function(){return ta}),y.d(m,"defaultStandardCss",function(){return Xe}),y.d(m,"modernCss",function(){return na}),y.d(m,"SvgIconRegistry",function(){return ra}),y.d(m,"SvgRegistry",function(){return jf}),y.d(m,"SvgThemeSets",function(){return An}),y.d(m,"addIconsToThemeSet",function(){return Nf}),y.d(m,"RendererFactory",function(){return Ro}),y.d(m,"ResponsivityManager",function(){return Hn}),y.d(m,"VerticalResponsivityManager",function(){return Hl}),y.d(m,"unwrap",function(){return uu}),y.d(m,"getOriginalEvent",function(){return fu}),y.d(m,"getElement",function(){return Zn}),y.d(m,"activateLazyRenderingChecks",function(){return er}),y.d(m,"createDropdownActionModel",function(){return Yl}),y.d(m,"createDropdownActionModelAdvanced",function(){return Wn}),y.d(m,"createPopupModelWithListModel",function(){return $n}),y.d(m,"getActionDropdownButtonTarget",function(){return io}),y.d(m,"BaseAction",function(){return Zt}),y.d(m,"Action",function(){return $}),y.d(m,"ActionDropdownViewModel",function(){return Xl}),y.d(m,"AnimationUtils",function(){return Jn}),y.d(m,"AnimationPropertyUtils",function(){return oo}),y.d(m,"AnimationGroupUtils",function(){return Gn}),y.d(m,"AnimationProperty",function(){return tn}),y.d(m,"AnimationBoolean",function(){return Kn}),y.d(m,"AnimationGroup",function(){return Qe}),y.d(m,"AnimationTab",function(){return Yn}),y.d(m,"AdaptiveActionContainer",function(){return en}),y.d(m,"defaultActionBarCss",function(){return Un}),y.d(m,"ActionContainer",function(){return Ee}),y.d(m,"DragOrClickHelper",function(){return Tr}),y.d(m,"Model",function(){return Ue});var E=function(){function i(){}return i.isAvailable=function(){return typeof window<"u"},i.isFileReaderAvailable=function(){return i.isAvailable()?!!window.FileReader:!1},i.getLocation=function(){if(i.isAvailable())return window.location},i.getVisualViewport=function(){return i.isAvailable()?window.visualViewport:null},i.getInnerWidth=function(){if(i.isAvailable())return window.innerWidth},i.getInnerHeight=function(){return i.isAvailable()?window.innerHeight:null},i.getWindow=function(){if(i.isAvailable())return window},i.hasOwn=function(t){if(i.isAvailable())return t in window},i.getSelection=function(){if(i.isAvailable()&&window.getSelection)return window.getSelection()},i.requestAnimationFrame=function(t){if(i.isAvailable())return window.requestAnimationFrame(t)},i.addEventListener=function(t,e){i.isAvailable()&&window.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&window.removeEventListener(t,e)},i.matchMedia=function(t){return!i.isAvailable()||typeof window.matchMedia>"u"?null:window.matchMedia(t)},i}(),I=function(){function i(){}return i.isAvailable=function(){return typeof document<"u"},i.getBody=function(){if(i.isAvailable())return document.body},i.getDocumentElement=function(){if(i.isAvailable())return document.documentElement},i.getDocument=function(){if(i.isAvailable())return document},i.getCookie=function(){if(i.isAvailable())return document.cookie},i.setCookie=function(t){i.isAvailable()&&(document.cookie=t)},i.activeElementBlur=function(){if(i.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},i.createElement=function(t){if(i.isAvailable())return document.createElement(t)},i.getComputedStyle=function(t){return i.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},i.addEventListener=function(t,e){i.isAvailable()&&document.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&document.removeEventListener(t,e)},i}();function Z(i,t){if(!t)return new Date;!b.storeUtcDates&&typeof t=="string"&&Jt(t)&&(t+="T00:00:00");var e=new Date(t);return b.onDateCreated(e,i,t)}function Jt(i){return i.indexOf("T")>0||!/\d{4}-\d{2}-\d{2}/.test(i)?!1:!isNaN(new Date(i).getTime())}var P=function(){function i(){}return i.isValueEmpty=function(t){if(Array.isArray(t)&&t.length===0)return!0;if(t&&i.isValueObject(t)&&t.constructor===Object){for(var e in t)if(!i.isValueEmpty(t[e]))return!1;return!0}return!t&&t!==0&&t!==!1},i.isArrayContainsEqual=function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++){for(var r=0;r<e.length&&!i.isTwoValueEquals(t[n],e[r]);r++);if(r===e.length)return!1}return!0},i.isArraysEqual=function(t,e,n,r,o){if(n===void 0&&(n=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;if(n){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(e[l]);s.sort(),a.sort(),t=s,e=a}for(var l=0;l<t.length;l++)if(!i.isTwoValueEquals(t[l],e[l],n,r,o))return!1;return!0},i.compareStrings=function(t,e){var n=b.comparator.normalizeTextCallback;if(t&&(t=n(t,"compare").trim()),e&&(e=n(e,"compare").trim()),!t&&!e)return 0;if(!t)return-1;if(!e)return 1;if(t===e)return 0;for(var r=-1,o=0;o<t.length&&o<e.length;o++){if(this.isCharDigit(t[o])&&this.isCharDigit(e[o])){r=o;break}if(t[o]!==e[o])break}if(r>-1){var s=this.getNumberFromStr(t,r),a=this.getNumberFromStr(e,r);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return t>e?1:-1},i.isTwoValueEquals=function(t,e,n,r,o){if(n===void 0&&(n=!1),t===e||Array.isArray(t)&&t.length===0&&typeof e>"u"||Array.isArray(e)&&e.length===0&&typeof t>"u"||t==null&&e===""||e==null&&t==="")return!0;if(o===void 0&&(o=b.comparator.trimStrings),r===void 0&&(r=b.comparator.caseSensitive),typeof t=="string"&&typeof e=="string"){var s=b.comparator.normalizeTextCallback;return t=s(t,"compare"),e=s(e,"compare"),o&&(t=t.trim(),e=e.trim()),r||(t=t.toLowerCase(),e=e.toLowerCase()),t===e}if(t instanceof Date&&e instanceof Date)return t.getTime()==e.getTime();if(i.isConvertibleToNumber(t)&&i.isConvertibleToNumber(e)&&parseInt(t)===parseInt(e)&&parseFloat(t)===parseFloat(e))return!0;if(!i.isValueEmpty(t)&&i.isValueEmpty(e)||i.isValueEmpty(t)&&!i.isValueEmpty(e))return!1;if((t===!0||t===!1)&&typeof e=="string")return t.toString()===e.toLocaleLowerCase();if((e===!0||e===!1)&&typeof t=="string")return e.toString()===t.toLocaleLowerCase();if(!i.isValueObject(t)&&!i.isValueObject(e))return t==e;if(!i.isValueObject(t)||!i.isValueObject(e))return!1;if(t.equals&&e.equals)return t.equals(e);if(Array.isArray(t)&&Array.isArray(e))return i.isArraysEqual(t,e,n,r,o);for(var a in t)if(t.hasOwnProperty(a)&&(!e.hasOwnProperty(a)||!this.isTwoValueEquals(t[a],e[a],n,r,o)))return!1;for(a in e)if(e.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0},i.randomizeArray=function(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t},i.getUnbindValue=function(t){if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(i.getUnbindValue(t[n]));return e}return t&&i.isValueObject(t)&&!(t instanceof Date)?JSON.parse(JSON.stringify(t)):t},i.createCopy=function(t){var e={};if(!t)return e;for(var n in t)e[n]=t[n];return e},i.isConvertibleToNumber=function(t){return t!=null&&!Array.isArray(t)&&!isNaN(t)},i.isValueObject=function(t,e){return t instanceof Object&&(!e||!Array.isArray(t))},i.isNumber=function(t){return!isNaN(this.getNumber(t))},i.getNumber=function(t){var e=i.getNumberCore(t);return b.parseNumber(t,e)},i.getNumberCore=function(t){if(typeof t=="string"){if(t=t.trim(),!t)return NaN;if(t.indexOf("0x")==0)return t.length>32?NaN:parseInt(t);if(t.length>15&&i.isDigitsOnly(t))return NaN;if(i.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);var e=parseFloat(t);return isNaN(e)||!isFinite(t)?NaN:e},i.isStringHasOperator=function(t){if(t.lastIndexOf("-")>0||t.lastIndexOf("+")>0)return!1;for(var e="*^/%",n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1},i.prepareStringToNumber=function(t){if(typeof t!="string"||!t)return t;var e=t.indexOf(",");return e>-1&&t.indexOf(",",e+1)<0?t.replace(",","."):t},i.getMaxLength=function(t,e){return t<0&&(t=e),t>0?t:null},i.getRemainingCharacterCounterText=function(t,e){if(!e||e<=0||!b.showMaxLengthIndicator)return"";var n=t?t.length:"0";return[n,e].join("/")},i.getNumberByIndex=function(t,e,n){if(t<0)return"";var r=1,o="",s=".",a=!0,l="A",u="",d=function(j){if(!j)return!1;for(var A=0;A<j.length;A++)if(i.isCharDigit(j[A]))return!0;return!1};if(e){u=e;for(var v=u.length-1,V=d(u),T=function(){return V&&!i.isCharDigit(u[v])||i.isCharNotLetterAndDigit(u[v])};v>=0&&T();)v--;var R="";for(v<u.length-1&&(R=u.substring(v+1),u=u.substring(0,v+1)),v=u.length-1;v>=0&&!(T()||(v--,!V)););l=u.substring(v+1),o=u.substring(0,v+1),parseInt(l)?r=parseInt(l):l.length==1&&(a=!1),(R||o)&&(s=R)}if(n>-1&&d(o)&&(o=this.getNumberByIndex(n,o)),a){for(var N=(t+r).toString();N.length<l.length;)N="0"+N;return o+N+s}return o+String.fromCharCode(l.charCodeAt(0)+t)+s},i.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!i.isCharDigit(t)},i.isCharDigit=function(t){return t>="0"&&t<="9"},i.isDigitsOnly=function(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(!i.isCharDigit(t[e]))return!1;return!0},i.getNumberFromStr=function(t,e){if(!this.isCharDigit(t[e]))return NaN;for(var n="";e<t.length&&this.isCharDigit(t[e]);)n+=t[e],e++;return n?this.getNumber(n):NaN},i.countDecimals=function(t){if(i.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.correctAfterPlusMinis=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.sumAnyValues=function(t,e){if(!i.isNumber(t)||!i.isNumber(e)){if(Array.isArray(t)&&Array.isArray(e))return[].concat(t).concat(e);if(Array.isArray(t)||Array.isArray(e)){var n=Array.isArray(t)?t:e,r=n===t?e:t;if(typeof r=="string"){var o=n.join(", ");return n===t?o+r:r+o}if(typeof r=="number"){for(var s=0,a=0;a<n.length;a++)typeof n[a]=="number"&&(s=i.correctAfterPlusMinis(s,n[a],s+n[a]));return i.correctAfterPlusMinis(s,r,s+r)}}return t+e}return typeof t=="string"||typeof e=="string"?t+e:i.correctAfterPlusMinis(t,e,t+e)},i.correctAfterMultiple=function(t,e,n){var r=i.countDecimals(t)+i.countDecimals(e);return r>0&&(n=parseFloat(n.toFixed(r))),n},i.convertArrayValueToObject=function(t,e,n){n===void 0&&(n=void 0);var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var s=void 0;Array.isArray(n)&&(s=i.findObjByPropValue(n,e,t[o])),s||(s={},s[e]=t[o]),r.push(s)}return r},i.findObjByPropValue=function(t,e,n){for(var r=0;r<t.length;r++)if(i.isTwoValueEquals(t[r][e],n))return t[r]},i.convertArrayObjectToValue=function(t,e){var n=new Array;if(!t||!Array.isArray(t))return n;for(var r=0;r<t.length;r++){var o=t[r]?t[r][e]:void 0;i.isValueEmpty(o)||n.push(o)}return n},i.convertDateToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())},i.convertDateTimeToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return this.convertDateToString(t)+" "+e(t.getHours())+":"+e(t.getMinutes())},i.convertValToQuestionVal=function(t,e){return t instanceof Date?e==="datetime-local"?i.convertDateTimeToString(t):i.convertDateToString(t):this.getUnbindValue(t)},i.compareVerions=function(t,e){if(!t&&!e)return 0;for(var n=t.split("."),r=e.split("."),o=n.length,s=r.length,a=0;a<o&&a<s;a++){var l=n[a],u=r[a];if(l.length===u.length){if(l!==u)return l<u?-1:1}else return l.length<u.length?-1:1}return o===s?0:o<s?-1:1},i.isUrlYoutubeVideo=function(t){if(!t)return!1;var e=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];t=t.toLowerCase(),t=t.replace(/^https?:\/\//,"");for(var n=0;n<e.length;n++)if(t.indexOf(e[n]+"/")===0)return!0;return!1},i}();String.prototype.format||(String.prototype.format=function(){var i=arguments;return this.replace(/{(\d+)}/g,function(t,e){return typeof i[e]<"u"?i[e]:t})});var Fn={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",deselectAllItemText:"Deselect all",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textNoDigitsAllow:"Numbers are not allowed.",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:`No entries yet.
+Click the button below to add a new entry.`,noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"},ce={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(i){this.useEnglishNames=i},setupLocale:function(i){var t=i.localeCode;this.locales[t]=i.strings,this.localeNames[t]=i.nativeName,this.localeNamesInEnglish[t]=i.englishName,i.rtl!==void 0&&(this.localeDirections[t]=i.rtl)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(i){i==="cz"&&(i="cs"),this.currentLocaleValue=i},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(i){i==="cz"&&(i="cs"),this.defaultLocaleValue=i},getLocaleStrings:function(i){return this.locales[i]},getString:function(i,t){var e=this;t===void 0&&(t=null);var n=new Array,r=function(l){var u=e.locales[l];u&&n.push(u)},o=function(l){if(l){r(l);var u=l.indexOf("-");u<1||(l=l.substring(0,u),r(l))}};o(t),o(this.currentLocale),o(this.defaultLocale),this.defaultLocale!=="en"&&r("en");for(var s=0;s<n.length;s++){var a=n[s][i];if(a!==void 0)return a}return this.onGetExternalString(i,t)},getLocaleName:function(i,t){if(!i)return"";t===void 0&&(t=this.showNamesInEnglish);var e=t?this.localeNamesInEnglish:this.localeNames,n=t?this.localeNames:this.localeNamesInEnglish;return e[i]||n[i]||i},getLocales:function(i){var t=this;i===void 0&&(i=!1);var e=[];e.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var o in n)i&&o==this.defaultLocale||e.push(o);var s=function(a){return t.getLocaleName(a).toLowerCase()};return e.sort(function(a,l){var u=s(a),d=s(l);return u===d?0:u<d?-1:1}),e},onGetExternalString:function(i,t){}};function oe(i,t){return t===void 0&&(t=null),ce.getString(i,t)}function tl(i){return ce.getLocaleStrings(i)}function nl(i){ce.setupLocale(i)}var rl=Fn;ce.locales.en=Fn,ce.localeNames.en="english";var Ze=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),il=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function _n(i,t,e){var n=i.getLocalizableString(e);if(!n){var r=void 0;typeof t.localizable=="object"&&t.localizable.defaultStr&&(r=t.localizable.defaultStr),n=i.createLocalizableString(e,i,!0,r),typeof t.localizable=="object"&&typeof t.localizable.onGetTextCallback=="function"&&(n.onGetTextCallback=t.localizable.onGetTextCallback)}}function ol(i,t,e){_n(i,t,e);var n=i.getLocalizableStringText(e);if(n)return n;if(typeof t.localizable=="object"&&t.localizable.defaultStr){var r=i.getLocale?i.getLocale():"";return oe(t.localizable.defaultStr,r)}return""}function h(i){return i===void 0&&(i={}),function(t,e){var n=function(r,o){if(o&&typeof o=="object"&&o.type===te.ComputedUpdaterType){z.startCollectDependencies(function(){return r[e]=o.updater()},r,e);var s=o.updater(),a=z.finishCollectDependencies();return o.setDependencies(a),r.dependencies[e]&&r.dependencies[e].dispose(),r.dependencies[e]=o,s}return o};!i||!i.localizable?Object.defineProperty(t,e,{get:function(){var r=null;return i&&(typeof i.getDefaultValue=="function"&&(r=i.getDefaultValue(this)),i.defaultValue!==void 0&&(r=i.defaultValue)),this.getPropertyValue(e,r)},set:function(r){var o=n(this,r),s=this.getPropertyValue(e);o!==s&&(this.setPropertyValue(e,o),i&&i.onSet&&i.onSet(o,this,s))}}):(Object.defineProperty(t,e,{get:function(){return ol(this,i,e)},set:function(r){_n(this,i,e);var o=n(this,r);this.setLocalizableStringText(e,o),i&&i.onSet&&i.onSet(o,this)}}),Object.defineProperty(t,typeof i.localizable=="object"&&i.localizable.name?i.localizable.name:"loc"+e.charAt(0).toUpperCase()+e.slice(1),{get:function(){return _n(this,i,e),this.getLocalizableString(e)}}))}}function Ii(i,t,e){i.ensureArray(e,function(n,r){var o=t?t.onPush:null;o&&o(n,r,i)},function(n,r){var o=t?t.onRemove:null;o&&o(n,r,i)})}function ae(i){return function(t,e){Object.defineProperty(t,e,{get:function(){return Ii(this,i,e),this.getPropertyValue(e)},set:function(n){Ii(this,i,e);var r=this.getPropertyValue(e);n!==r&&(r?r.splice.apply(r,il([0,r.length],n||[])):this.setPropertyValue(e,n),i&&i.onSet&&i.onSet(n,this))}})}}var Gt=function(){function i(t,e,n){n===void 0&&(n=!1),this.name=e,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=n,this.idValue=i.Index++}return Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(t){t==="itemvalues"&&(t="itemvalue[]"),t==="textitems"&&(t="textitem[]"),this.typeValue=t,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(t){t!==this.isRequired&&(this.isRequiredValue=t,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(t){this.isUniqueValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(t){this.uniquePropertyValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.getDefaultValue=function(t){var e=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return i.getItemValuesDefaultValue&&x.isDescendantOf(this.className,"itemvalue")&&(e=i.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),e},Object.defineProperty(i.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(t){this.defaultValueValue=t},enumerable:!1,configurable:!0}),i.prototype.isDefaultValue=function(t){return this.isDefaultValueByObj(void 0,t)},i.prototype.isDefaultValueByObj=function(t,e){if(this.isLocalizable)return e==null;var n=this.getDefaultValue(t);return P.isValueEmpty(n)?e===!1&&(this.type=="boolean"||this.type=="switch")&&!this.defaultValueFunc||e===""||P.isValueEmpty(e):P.isTwoValueEquals(e,n,!1,!0,!1)},i.prototype.getSerializableValue=function(t,e){if(this.onSerializeValue)return this.onSerializeValue(t);var n=this.getValue(t);if(n!=null&&!(!e&&this.isDefaultValueByObj(t,n)))return n},i.prototype.getValue=function(t){return this.onGetValue?(t=this.getOriginalObj(t),this.onGetValue(t)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].getJson():t[this.name]},i.prototype.getPropertyValue=function(t){return this.isLocalizable?t[this.serializationProperty]?t[this.serializationProperty].text:null:this.getValue(t)},Object.defineProperty(i.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.settingValue=function(t,e){return!this.onSettingValue||t.isLoadingFromJson?e:this.onSettingValue(t,e)},i.prototype.setValue=function(t,e,n){this.onSetValue?(t=this.getOriginalObj(t),this.onSetValue(t,e,n)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].setJson(e,!0):(e&&typeof e=="string"&&(this.type=="number"&&(e=parseInt(e)),(this.type=="boolean"||this.type=="switch")&&(e=e.toLowerCase()==="true")),t[this.name]=e)},i.prototype.validateValue=function(t){var e=this.choices;return!Array.isArray(e)||e.length===0?!0:e.indexOf(t)>-1},i.prototype.getObjType=function(t){return this.classNamePart?t.replace(this.classNamePart,""):t},Object.defineProperty(i.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),i.prototype.getChoices=function(t,e){return e===void 0&&(e=null),this.choicesValue!=null?this.choicesValue:this.choicesfunc!=null?this.choicesfunc(t,e):null},i.prototype.setChoices=function(t,e){e===void 0&&(e=null),this.choicesValue=t,this.choicesfunc=e},i.prototype.getBaseValue=function(){return this.baseValue?typeof this.baseValue=="function"?this.baseValue():this.baseValue:""},i.prototype.setBaseValue=function(t){this.baseValue=t},Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.readOnlyValue!=null?this.readOnlyValue:!1},set:function(t){this.readOnlyValue=t},enumerable:!1,configurable:!0}),i.prototype.isEnable=function(t){return this.readOnly?!1:!t||!this.enableIf?!0:this.enableIf(this.getOriginalObj(t))},i.prototype.isVisible=function(t,e){e===void 0&&(e=null);var n=!this.layout||!t||this.layout===t;return!this.visible||!n?!1:this.visibleIf&&e?this.visibleIf(this.getOriginalObj(e)):!0},i.prototype.getOriginalObj=function(t){if(t&&t.getOriginalObj){var e=t.getOriginalObj();if(e&&x.findProperty(e.getType(),this.name))return e}return t},Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue!=null?this.visibleValue:!0},set:function(t){this.visibleValue=t},enumerable:!1,configurable:!0}),i.prototype.isAvailableInVersion=function(t){return this.alternativeName||this.oldName?!0:this.isAvailableInVersionCore(t)},i.prototype.getSerializedName=function(t){return this.alternativeName?this.isAvailableInVersionCore(t)?this.name:this.alternativeName||this.oldName:this.name},i.prototype.getSerializedProperty=function(t,e){return!this.oldName||this.isAvailableInVersionCore(e)?this:!t||!t.getType?null:x.findProperty(t.getType(),this.oldName)},i.prototype.isAvailableInVersionCore=function(t){return!t||!this.version?!0:P.compareVerions(this.version,t)<=0},Object.defineProperty(i.prototype,"isLocalizable",{get:function(){return this.isLocalizableValue!=null?this.isLocalizableValue:!1},set:function(t){this.isLocalizableValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(t){this.dataListValue=t},enumerable:!1,configurable:!0}),i.prototype.mergeWith=function(t){for(var e=i.mergableValues,n=0;n<e.length;n++)this.mergeValue(t,e[n])},i.prototype.addDependedProperty=function(t){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(t)<0&&this.dependedProperties.push(t)},i.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},i.prototype.schemaType=function(){if(this.className!=="choicesByUrl")return this.className==="string"?this.className:this.className||this.baseClassName?"array":this.type=="switch"?"boolean":this.type=="boolean"||this.type=="number"?this.type:"string"},i.prototype.schemaRef=function(){if(this.className)return this.className},i.prototype.mergeValue=function(t,e){this[e]==null&&t[e]!=null&&(this[e]=t[e])},i.Index=1,i.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],i}(),Ne=function(){function i(){}return i.addProperty=function(t,e){t=t.toLowerCase();var n=i.properties;n[t]||(n[t]=[]),n[t].push(e)},i.removeProperty=function(t,e){t=t.toLowerCase();var n=i.properties;if(n[t]){for(var r=n[t],o=0;o<r.length;o++)if(r[o].name==e){n[t].splice(o,1);break}}},i.removeAllProperties=function(t){t=t.toLowerCase(),delete i.properties[t]},i.addClass=function(t,e){t=t.toLowerCase(),e&&(e=e.toLowerCase()),i.parentClasses[t]=e},i.getProperties=function(t){t=t.toLowerCase();for(var e=[],n=i.properties;t;){var r=n[t];if(r)for(var o=0;o<r.length;o++)e.push(r[o]);t=i.parentClasses[t]}return e},i.createProperties=function(t){!t||!t.getType||i.createPropertiesCore(t,t.getType())},i.createPropertiesCore=function(t,e){var n=i.properties;n[e]&&i.createPropertiesInObj(t,n[e]);var r=i.parentClasses[e];r&&i.createPropertiesCore(t,r)},i.createPropertiesInObj=function(t,e){for(var n=0;n<e.length;n++)i.createPropertyInObj(t,e[n])},i.createPropertyInObj=function(t,e){if(!i.checkIsPropertyExists(t,e.name)&&!(e.serializationProperty&&i.checkIsPropertyExists(t,e.serializationProperty))){if(e.isLocalizable&&e.serializationProperty&&t.createCustomLocalizableObj){var n=t.createCustomLocalizableObj(e.name);n.defaultValue=e.getDefaultValue(t);var r={get:function(){return t.getLocalizableString(e.name)}};Object.defineProperty(t,e.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(e.name)},set:function(l){t.setLocalizableStringText(e.name,l)}};Object.defineProperty(t,e.name,o)}else{var s=e.isArray||e.type==="multiplevalues";if(typeof t.createNewArray=="function"&&(x.isDescendantOf(e.className,"itemvalue")?(t.createNewArray(e.name,function(l){l.locOwner=t,l.ownerPropertyName=e.name}),s=!0):s&&t.createNewArray(e.name),s)){var a=e.getDefaultValue(t);Array.isArray(a)&&t.setPropertyValue(e.name,a)}if(t.getPropertyValue&&t.setPropertyValue){var o={get:function(){return e.onGetValue?e.onGetValue(t):t.getPropertyValue(e.name,void 0)},set:function(u){e.onSetValue?e.onSetValue(t,u,null):t.setPropertyValue(e.name,u)}};Object.defineProperty(t,e.name,o)}}(e.type==="condition"||e.type==="expression")&&e.onExecuteExpression&&t.addExpressionProperty(e.name,e.onExecuteExpression)}},i.checkIsPropertyExists=function(t,e){return t.hasOwnProperty(e)||t[e]},i.properties={},i.parentClasses={},i}(),Ai=function(){function i(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),this.name=t,this.creator=n,this.parentName=r,t=t.toLowerCase(),this.isCustomValue=!n&&t!=="survey",this.parentName&&(this.parentName=this.parentName.toLowerCase(),Ne.addClass(t,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<e.length;o++)this.createProperty(e[o],this.isCustom)}return i.prototype.find=function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].name==t)return this.properties[e];return null},i.prototype.findProperty=function(t){return this.fillAllProperties(),this.hashProperties[t]},i.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},i.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var t=this.getAllProperties(),e=0;e<t.length;e++)t[e].isRequired&&this.requiredProperties.push(t[e]);return this.requiredProperties},i.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var t=x.getChildrenClasses(this.name),e=0;e<t.length;e++)t[e].resetAllProperties()},Object.defineProperty(i.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),i.prototype.fillAllProperties=function(){var t=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var e={};this.properties.forEach(function(o){return e[o.name]=o});var n=this.parentName?x.findClass(this.parentName):null;if(n){var r=n.getAllProperties();r.forEach(function(o){var s=e[o.name];s?(s.mergeWith(o),t.addPropCore(s)):t.addPropCore(o)})}this.properties.forEach(function(o){t.hashProperties[o.name]||t.addPropCore(o)})}},i.prototype.addPropCore=function(t){this.allProperties.push(t),this.hashProperties[t.name]=t,t.alternativeName&&(this.hashProperties[t.alternativeName]=t)},i.prototype.isOverridedProp=function(t){return!!this.parentName&&!!x.findProperty(this.parentName,t)},i.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var t=0;t<this.properties.length;t++)this.properties[t].isCustom=!1;Ne.removeAllProperties(this.name),this.makeParentRegularClass()}},i.prototype.makeParentRegularClass=function(){if(this.parentName){var t=x.findClass(this.parentName);t&&t.hasRegularChildClass()}},i.prototype.createProperty=function(t,e){e===void 0&&(e=!1);var n=typeof t=="string"?t:t.name;if(n){var r=null,o=n.indexOf(i.typeSymbol);o>-1&&(r=n.substring(o+1),n=n.substring(0,o));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var a=new Gt(this,n,s);if(r&&(a.type=r),typeof t=="object"){if(t.type&&(a.type=t.type),t.default!==void 0&&(a.defaultValue=t.default),t.defaultFunc!==void 0&&(a.defaultValueFunc=t.defaultFunc),P.isValueEmpty(t.isSerializable)||(a.isSerializable=t.isSerializable),P.isValueEmpty(t.isLightSerializable)||(a.isLightSerializable=t.isLightSerializable),P.isValueEmpty(t.maxLength)||(a.maxLength=t.maxLength),t.displayName!==void 0&&(a.displayName=t.displayName),P.isValueEmpty(t.category)||(a.category=t.category),P.isValueEmpty(t.categoryIndex)||(a.categoryIndex=t.categoryIndex),P.isValueEmpty(t.nextToProperty)||(a.nextToProperty=t.nextToProperty),P.isValueEmpty(t.overridingProperty)||(a.overridingProperty=t.overridingProperty),P.isValueEmpty(t.visibleIndex)||(a.visibleIndex=t.visibleIndex),P.isValueEmpty(t.showMode)||(a.showMode=t.showMode),P.isValueEmpty(t.maxValue)||(a.maxValue=t.maxValue),P.isValueEmpty(t.minValue)||(a.minValue=t.minValue),P.isValueEmpty(t.dataList)||(a.dataList=t.dataList),P.isValueEmpty(t.isDynamicChoices)||(a.isDynamicChoices=t.isDynamicChoices),P.isValueEmpty(t.isBindable)||(a.isBindable=t.isBindable),P.isValueEmpty(t.isUnique)||(a.isUnique=t.isUnique),P.isValueEmpty(t.uniqueProperty)||(a.uniquePropertyName=t.uniqueProperty),P.isValueEmpty(t.isArray)||(a.isArray=t.isArray),(t.visible===!0||t.visible===!1)&&(a.visible=t.visible),t.visibleIf&&(a.visibleIf=t.visibleIf),t.enableIf&&(a.enableIf=t.enableIf),t.onExecuteExpression&&(a.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(a.onPropertyEditorUpdate=t.onPropertyEditorUpdate),t.readOnly===!0&&(a.readOnly=!0),t.availableInMatrixColumn===!0&&(a.availableInMatrixColumn=!0),t.choices){var l=typeof t.choices=="function"?t.choices:null,u=typeof t.choices!="function"?t.choices:null;a.setChoices(u,l)}t.baseValue&&a.setBaseValue(t.baseValue),t.onSerializeValue&&(a.onSerializeValue=t.onSerializeValue),t.onGetValue&&(a.onGetValue=t.onGetValue),t.onSetValue&&(a.onSetValue=t.onSetValue),t.onSettingValue&&(a.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+a.name),t.serializationProperty&&(a.serializationProperty=t.serializationProperty,a.serializationProperty&&a.serializationProperty.indexOf("loc")==0&&(a.isLocalizable=!0)),t.isLocalizable&&(a.isLocalizable=t.isLocalizable),t.className&&(a.className=t.className),t.baseClassName&&(a.baseClassName=t.baseClassName,a.isArray=!0),a.isArray===!0&&(a.isArray=!0),t.classNamePart&&(a.classNamePart=t.classNamePart),t.alternativeName&&(a.alternativeName=t.alternativeName),t.oldName&&(a.oldName=t.oldName),t.layout&&(a.layout=t.layout),t.version&&(a.version=t.version),t.dependsOn&&this.addDependsOnProperties(a,t.dependsOn)}return this.properties.push(a),e&&!this.isOverridedProp(a.name)&&(a.isCustom=!0,Ne.addProperty(this.name,a)),a}},i.prototype.addDependsOnProperties=function(t,e){var n=Array.isArray(e)?e:[e];t.dependsOn=n;for(var r=0;r<n.length;r++)this.addDependsOnProperty(t,n[r])},i.prototype.addDependsOnProperty=function(t,e){var n=this.find(e);n||(n=x.findProperty(this.parentName,e)),n&&n.addDependedProperty(t.name)},i.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==i.requiredSymbol},i.prototype.getPropertyName=function(t){return this.getIsPropertyNameRequired(t)&&(t=t.slice(1)),t},i.requiredSymbol="!",i.typeSymbol=":",i}(),Di=function(){function i(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return i.prototype.getObjPropertyValue=function(t,e){if(this.isObjWrapper(t)&&this.isNeedUseObjWrapper(t,e)){var n=t.getOriginalObj(),r=x.findProperty(n.getType(),e);if(r)return this.getObjPropertyValueCore(n,r)}var o=x.findProperty(t.getType(),e);return o?this.getObjPropertyValueCore(t,o):t[e]},i.prototype.setObjPropertyValue=function(t,e,n){if(t[e]!==n)if(t[e]&&t[e].setJson)t[e].setJson(n,!0);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}t[e]=n}},i.prototype.getObjPropertyValueCore=function(t,e){if(!e.isSerializable)return t[e.name];if(e.isLocalizable){if(e.isArray)return t[e.name];if(e.serializationProperty)return t[e.serializationProperty].text}return t.getPropertyValue(e.name)},i.prototype.isObjWrapper=function(t){return!!t.getOriginalObj&&!!t.getOriginalObj()},i.prototype.isNeedUseObjWrapper=function(t,e){if(!t.getDynamicProperties)return!0;var n=t.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===e)return!0;return!1},i.prototype.addClass=function(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),t=t.toLowerCase();var o=new Ai(t,e,n,r);if(this.classes[t]=o,r){r=r.toLowerCase();var s=this.childrenClasses[r];s||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)}return o},i.prototype.removeClass=function(t){var e=this.findClass(t);if(e&&(delete this.classes[e.name],e.parentName)){var n=this.childrenClasses[e.parentName].indexOf(e);n>-1&&this.childrenClasses[e.parentName].splice(n,1)}},i.prototype.overrideClassCreatore=function(t,e){this.overrideClassCreator(t,e)},i.prototype.overrideClassCreator=function(t,e){t=t.toLowerCase();var n=this.findClass(t);n&&(n.creator=e)},i.prototype.getProperties=function(t){var e=this.findClass(t);return e?e.getAllProperties():[]},i.prototype.getPropertiesByObj=function(t){var e=t&&t.getType?t.getType():void 0;if(!e)return[];for(var n=this.getProperties(e),r=this.getDynamicPropertiesByObj(t),o=r.length-1;o>=0;o--)this.findProperty(e,r[o].name)&&r.splice(o,1);return r.length===0?n:[].concat(n).concat(r)},i.prototype.addDynamicPropertiesIntoObj=function(t,e,n){var r=this;n.forEach(function(o){r.addDynamicPropertyIntoObj(t,e,o.name,!1),o.serializationProperty&&r.addDynamicPropertyIntoObj(t,e,o.serializationProperty,!0),o.alternativeName&&r.addDynamicPropertyIntoObj(t,e,o.alternativeName,!1)})},i.prototype.addDynamicPropertyIntoObj=function(t,e,n,r){var o={configurable:!0,get:function(){return e[n]}};r||(o.set=function(s){e[n]=s}),Object.defineProperty(t,n,o)},i.prototype.getDynamicPropertiesByObj=function(t,e){if(e===void 0&&(e=null),!t||!t.getType)return[];if(t.getDynamicProperties)return t.getDynamicProperties();if(!t.getDynamicType&&!e)return[];var n=e||t.getDynamicType();return this.getDynamicPropertiesByTypes(t.getType(),n)},i.prototype.getDynamicPropertiesByTypes=function(t,e,n){if(!e)return[];var r=e+"-"+t;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(e);if(!o||o.length==0)return[];for(var s={},a=this.getProperties(t),l=0;l<a.length;l++)s[a[l].name]=a[l];var u=[];n||(n=[]);for(var d=0;d<o.length;d++){var v=o[d];n.indexOf(v.name)<0&&this.canAddDybamicProp(v,s[v.name])&&u.push(v)}return this.dynamicPropsCache[r]=u,u},i.prototype.canAddDybamicProp=function(t,e){if(!e)return!0;if(t===e)return!1;for(var n=t.classInfo;n&&n.parentName;){if(t=this.findProperty(n.parentName,t.name),t&&t===e)return!0;n=t?t.classInfo:void 0}return!1},i.prototype.hasOriginalProperty=function(t,e){return!!this.getOriginalProperty(t,e)},i.prototype.getOriginalProperty=function(t,e){var n=this.findProperty(t.getType(),e);return n||(this.isObjWrapper(t)?this.findProperty(t.getOriginalObj().getType(),e):null)},i.prototype.getProperty=function(t,e){var n=this.findProperty(t,e);if(!n)return n;var r=this.findClass(t);if(n.classInfo===r)return n;var o=new Gt(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},i.prototype.findProperty=function(t,e){var n=this.findClass(t);return n?n.findProperty(e):null},i.prototype.findProperties=function(t,e){var n=new Array,r=this.findClass(t);if(!r)return n;for(var o=0;o<e.length;o++){var s=r.findProperty(e[o]);s&&n.push(s)}return n},i.prototype.getAllPropertiesByName=function(t){for(var e=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),s=0;s<o.properties.length;s++)if(o.properties[s].name==t){e.push(o.properties[s]);break}return e},i.prototype.getAllClasses=function(){var t=new Array;for(var e in this.classes)t.push(e);return t},i.prototype.createClass=function(t,e){e===void 0&&(e=void 0),t=t.toLowerCase();var n=this.findClass(t);if(!n)return null;if(n.creator)return n.creator(e);for(var r=n.parentName;r;){if(n=this.findClass(r),!n)return null;if(r=n.parentName,n.creator)return this.createCustomType(t,n.creator,e)}return null},i.prototype.createCustomType=function(t,e,n){n===void 0&&(n=void 0),t=t.toLowerCase();var r=e(n),o=t,s=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return s},Ne.createProperties(r),r},i.prototype.getChildrenClasses=function(t,e){e===void 0&&(e=!1),t=t.toLowerCase();var n=[];return this.fillChildrenClasses(t,e,n),n},i.prototype.getRequiredProperties=function(t){var e=this.findClass(t);if(!e)return[];for(var n=e.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},i.prototype.addProperties=function(t,e){t=t.toLowerCase();for(var n=this.findClass(t),r=0;r<e.length;r++)this.addCustomPropertyCore(n,e[r])},i.prototype.addProperty=function(t,e){return this.addCustomPropertyCore(this.findClass(t),e)},i.prototype.addCustomPropertyCore=function(t,e){if(!t)return null;var n=t.createProperty(e,!0);return n&&(this.clearDynamicPropsCache(t),t.resetAllProperties()),n},i.prototype.removeProperty=function(t,e){var n=this.findClass(t);if(!n)return!1;var r=n.find(e);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),Ne.removeProperty(n.name,e))},i.prototype.clearDynamicPropsCache=function(t){this.dynamicPropsCache={}},i.prototype.removePropertyFromClass=function(t,e){var n=t.properties.indexOf(e);n<0||t.properties.splice(n,1)},i.prototype.fillChildrenClasses=function(t,e,n){var r=this.childrenClasses[t];if(r)for(var o=0;o<r.length;o++)(!e||r[o].creator)&&n.push(r[o]),this.fillChildrenClasses(r[o].name,e,n)},i.prototype.findClass=function(t){t=t.toLowerCase();var e=this.classes[t];if(!e){var n=this.alternativeNames[t];if(n&&n!=t)return this.findClass(n)}return e},i.prototype.isDescendantOf=function(t,e){if(!t||!e)return!1;t=t.toLowerCase(),e=e.toLowerCase();var n=this.findClass(t);if(!n)return!1;var r=n;do{if(r.name===e)return!0;r=this.classes[r.parentName]}while(r);return!1},i.prototype.addAlterNativeClassName=function(t,e){this.alternativeNames[e.toLowerCase()]=t.toLowerCase()},i.prototype.generateSchema=function(t){t===void 0&&(t=void 0),t||(t="survey");var e=this.findClass(t);if(!e)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(e,n,n.definitions,!0),n},i.prototype.generateLocStrClass=function(){var t={},e=x.findProperty("survey","locale");if(e){var n=e.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach(function(r){r&&(t[r]={type:"string"})}))}return{$id:"locstring",type:"object",properties:t}},i.prototype.generateSchemaProperties=function(t,e,n,r){if(t){var o=e.properties,s=[];t.name==="question"&&(o.type={type:"string"},s.push("type"));for(var a=0;a<t.properties.length;a++){var l=t.properties[a];l.isSerializable!==!1&&(t.parentName&&x.findProperty(t.parentName,l.name)||(o[l.name]=this.generateSchemaProperty(l,n,r),l.isRequired&&s.push(l.name)))}s.length>0&&(e.required=s)}},i.prototype.generateSchemaProperty=function(t,e,n){if(t.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=t.schemaType(),o=t.schemaRef(),s={};if(r&&(s.type=r),t.hasChoices){var a=t.getChoices(null);Array.isArray(a)&&a.length>0&&(s.enum=this.getChoicesValues(a))}if(o&&(r==="array"?t.className==="string"?s.items={type:t.className}:s.items={$ref:this.getChemeRefName(t.className,n)}:s.$ref=this.getChemeRefName(o,n),this.generateChemaClass(t.className,e,!1)),t.baseClassName){var l=this.getChildrenClasses(t.baseClassName,!0);t.baseClassName=="question"&&l.push(this.findClass("panel")),s.items={anyOf:[]};for(var u=0;u<l.length;u++){var d=l[u].name;s.items.anyOf.push({$ref:this.getChemeRefName(d,n)}),this.generateChemaClass(d,e,!1)}}return s},i.prototype.getChemeRefName=function(t,e){return e?"#/definitions/"+t:t},i.prototype.generateChemaClass=function(t,e,n){if(!e[t]){var r=this.findClass(t);if(r){var o=!!r.parentName&&r.parentName!="base";o&&this.generateChemaClass(r.parentName,e,n);var s={type:"object",$id:t};e[t]=s;var a={properties:{}};this.generateSchemaProperties(r,a,e,n),o?s.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:a.properties}]:s.properties=a.properties,Array.isArray(a.required)&&(s.required=a.required)}}},i.prototype.getChoicesValues=function(t){var e=new Array;return t.forEach(function(n){typeof n=="object"&&n.value!==void 0?e.push(n.value):e.push(n)}),e},i}(),dt=function(){function i(t,e){this.type=t,this.message=e,this.description="",this.at=-1,this.end=-1}return i.prototype.getFullDescription=function(){return this.message+(this.description?`
+`+this.description:"")},i}(),Li=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+e+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),Bn=function(i){Ze(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.baseClassName=e,o.type=n,o.message=r,o}return t}(dt),Mi=function(i){Ze(t,i);function t(e,n){var r=i.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}(Bn),ji=function(i){Ze(t,i);function t(e,n){var r=i.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}(Bn),Ni=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"requiredproperty","The property '"+e+"' is required in class '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),sl=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"arrayproperty","The property '"+e+"' should be an array in '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),al=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+e.name+"'.")||this;return r.property=e,r.value=n,r}return t}(dt),fe=function(){function i(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(i,"metaData",{get:function(){return i.metaDataValue},enumerable:!1,configurable:!0}),i.prototype.toJsonObject=function(t,e){return this.toJsonObjectCore(t,null,e)},i.prototype.toObject=function(t,e,n){this.toObjectCore(t,e,n);var r=this.getRequiredError(e,t);r&&this.addNewError(r,t,e)},i.prototype.toObjectCore=function(t,e,n){if(t){var r=null,o=void 0,s=!0;if(e.getType&&(o=e.getType(),r=x.getProperties(o),s=!!o&&!x.isDescendantOf(o,"itemvalue")),!!r){e.startLoadingFromJson&&e.startLoadingFromJson(t),r=this.addDynamicProperties(e,t,r),this.options=n;var a={};a[i.typePropertyName]=!0;var l={};for(var u in t)this.setPropertyValueToObj(t,e,u,r,a,l,o,s,n);this.options=void 0,e.endLoadingFromJson&&e.endLoadingFromJson()}}},i.prototype.setPropertyValueToObj=function(t,e,n,r,o,s,a,l,u){var d=this;if(!o[n]){if(n===i.positionPropertyName){e[n]=t[n];return}var v=this.findProperty(r,n);if(!v&&l&&this.addNewError(new Li(n.toString(),a),t,e),v){var V=v.dependsOn;Array.isArray(V)&&(s[n]=!0,V.forEach(function(T){s[T]||d.setPropertyValueToObj(t,e,T,r,o,s,a,!1,u)})),this.valueToObj(t[n],e,v,t,u),o[n]=!0}}},i.prototype.toJsonObjectCore=function(t,e,n){if(!t||!t.getType)return t;if(!t.isSurvey&&typeof t.getData=="function")return t.getData();var r={};e!=null&&!e.className&&(r[i.typePropertyName]=e.getObjType(t.getType()));var o=n===!0;return(!n||n===!0)&&(n={}),o&&(n.storeDefaults=o),this.propertiesToJson(t,x.getProperties(t.getType()),r,n),this.propertiesToJson(t,this.getDynamicProperties(t),r,n),r},i.prototype.getDynamicProperties=function(t){return x.getDynamicPropertiesByObj(t)},i.prototype.addDynamicProperties=function(t,e,n){if(!t.getDynamicPropertyName&&!t.getDynamicProperties)return n;if(t.getDynamicPropertyName){var r=t.getDynamicPropertyName();if(!r)return n;r&&e[r]&&(t[r]=e[r])}var o=this.getDynamicProperties(t);return o.length===0?n:[].concat(n).concat(o)},i.prototype.propertiesToJson=function(t,e,n,r){for(var o=0;o<e.length;o++)this.valueToJson(t,n,e[o],r)},i.prototype.valueToJson=function(t,e,n,r){r||(r={}),!(n.isSerializable===!1||n.isLightSerializable===!1&&this.lightSerializing)&&(r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(t,e,n,r))},i.prototype.valueToJsonCore=function(t,e,n,r){var o=n.getSerializedProperty(t,r.version);if(o&&o!==n){this.valueToJsonCore(t,e,o,r);return}var s=n.getSerializableValue(t,r.storeDefaults);if(s!==void 0){if(this.isValueArray(s)){for(var a=[],l=0;l<s.length;l++)a.push(this.toJsonObjectCore(s[l],n,r));s=a.length>0?a:null}else s=this.toJsonObjectCore(s,n,r);if(s!=null){var u=n.getSerializedName(r.version),d=typeof t.getPropertyValue=="function"&&t.getPropertyValue(u,null)!==null;(r.storeDefaults&&d||!n.isDefaultValueByObj(t,s))&&(!x.onSerializingProperty||!x.onSerializingProperty(t,n,s,e))&&(e[u]=this.removePosOnValueToJson(n,s))}}},i.prototype.valueToObj=function(t,e,n,r,o){if(t!=null){if(this.removePos(n,t),n!=null&&n.hasToUseSetValue){n.setValue(e,t,this);return}if(n.isArray&&!Array.isArray(t)&&t){t=[t];var s=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new sl(s,e.getType()),r||t,e)}if(this.isValueArray(t)){this.valueToArray(t,e,n.name,n,o);return}var a=this.createNewObj(t,n);a.newObj&&(this.toObjectCore(t,a.newObj,o),t=a.newObj),a.error||(n!=null?(n.setValue(e,t,this),o&&o.validatePropertyValues&&(n.validateValue(t)||this.addNewError(new al(n,t),r,e))):e[n.name]=t)}},i.prototype.removePosOnValueToJson=function(t,e){return!t.isCustom||!e||this.removePosFromObj(e),e},i.prototype.removePos=function(t,e){!t||!t.type||t.type.indexOf("value")<0||this.removePosFromObj(e)},i.prototype.removePosFromObj=function(t){if(!(!t||typeof t.getType=="function")){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.removePosFromObj(t[e]);if(typeof t=="object"){t[i.positionPropertyName]&&delete t[i.positionPropertyName];for(var n in t)this.removePosFromObj(t[n])}}},i.prototype.isValueArray=function(t){return t&&Array.isArray(t)},i.prototype.createNewObj=function(t,e){var n={newObj:null,error:null},r=this.getClassNameForNewObj(t,e);return n.newObj=r?x.createClass(r,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,e,r),n},i.prototype.getClassNameForNewObj=function(t,e){var n=e!=null&&e.className?e.className:void 0;if(n||(n=t[i.typePropertyName]),!n)return n;n=n.toLowerCase();var r=e.classNamePart;return r&&n.indexOf(r)<0&&(n+=r),n},i.prototype.checkNewObjectOnErrors=function(t,e,n,r){var o=null;return t?o=this.getRequiredError(t,e):n.baseClassName&&(r?o=new ji(n.name,n.baseClassName):o=new Mi(n.name,n.baseClassName)),o&&this.addNewError(o,e,t),o},i.prototype.getRequiredError=function(t,e){if(!t.getType||typeof t.getData=="function")return null;var n=x.findClass(t.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var s=r[o];if(P.isValueEmpty(s.defaultValue)&&!e[s.name])return new Ni(s.name,t.getType())}return null},i.prototype.addNewError=function(t,e,n){if(t.jsonObj=e,t.element=n,this.errors.push(t),!!e){var r=e[i.positionPropertyName];r&&(t.at=r.start,t.end=r.end)}},i.prototype.valueToArray=function(t,e,n,r,o){if(!(e[n]&&!this.isValueArray(e[n]))){e[n]&&t.length>0&&e[n].splice(0,e[n].length);var s=e[n]?e[n]:[];this.addValuesIntoArray(t,s,r,o),e[n]||(e[n]=s)}},i.prototype.addValuesIntoArray=function(t,e,n,r){for(var o=0;o<t.length;o++){var s=this.createNewObj(t[o],n);s.newObj?(t[o].name&&(s.newObj.name=t[o].name),t[o].valueName&&(s.newObj.valueName=t[o].valueName.toString()),e.push(s.newObj),this.toObjectCore(t[o],s.newObj,r)):s.error||e.push(t[o])}},i.prototype.findProperty=function(t,e){if(!t)return null;for(var n=0;n<t.length;n++){var r=t[n];if(r.name==e||r.alternativeName==e)return r}return null},i.typePropertyName="type",i.positionPropertyName="pos",i.metaDataValue=new Di,i}(),x=fe.metaData,Fi="@survey",me=function(){function i(){this.values=null,this.properties=null,this.asyncValues={}}return i.prototype.getFirstName=function(t,e){if(e===void 0&&(e=null),!t)return t;var n="";if(e&&(n=this.getFirstPropertyName(t,e),n))return n;for(var r=0;r<t.length;r++){var o=t[r];if(o=="."||o=="[")break;n+=o}return n},i.prototype.hasValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.hasValue},i.prototype.getValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.value},i.prototype.setValue=function(t,e,n){if(e){var r=this.getNonNestedObject(t,e,!0);r&&(t=r.value,e=r.text,t&&e&&(t[e]=n))}},i.prototype.getValueInfo=function(t){if(t.path){t.value=this.getValueFromPath(t.path,this.values),t.hasValue=t.value!==null&&!P.isValueEmpty(t.value),!t.hasValue&&t.path.length>1&&t.path[t.path.length-1]=="length"&&(t.hasValue=!0,t.value=0);return}var e=this.getValueCore(t.name,this.values);t.value=e.value,t.hasValue=e.hasValue,t.path=e.hasValue?e.path:null,t.sctrictCompare=e.sctrictCompare},i.prototype.isAnyKeyChanged=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=r.toLowerCase();if(t.hasOwnProperty(r)||r!==o&&t.hasOwnProperty(o))return!0;var s=this.getFirstName(r);if(t.hasOwnProperty(s)){if(r===s)return!0;var a=t[s];if(a!=null){if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var l={};l[s]=a.oldValue;var u=this.getValue(r,l);l[s]=a.newValue;var d=this.getValue(r,l);if(!P.isTwoValueEquals(u,d,!1,!1,!1))return!0}}}}return!1},i.prototype.getValueFromPath=function(t,e){if(t.length===2&&t[0]===Fi)return this.getValueFromSurvey(t[1]);for(var n=0;e&&n<t.length;){var r=t[n];if(P.isNumber(r)&&Array.isArray(e)&&r>=e.length)return null;e=e[r],n++}return e},i.prototype.getValueCore=function(t,e){var n=this.getQuestionDirectly(t);if(n)return{hasValue:!0,value:n.value,path:[t],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(t,e);if(t&&!r.hasValue){var o=this.getValueFromSurvey(t);o!==void 0&&(r.hasValue=!0,r.value=o,r.path=[Fi,t])}return r},i.prototype.getQuestionDirectly=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(t)},i.prototype.getValueFromSurvey=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(t.toLocaleLowerCase())},i.prototype.getValueFromValues=function(t,e){var n={hasValue:!1,value:null,path:null},r=e;if(!r&&r!==0&&r!==!1)return n;t&&t.lastIndexOf(".length")>-1&&t.lastIndexOf(".length")===t.length-7&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(r,t,!1);return o&&(n.path=o.path,n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!P.isValueEmpty(n.value)),n},i.prototype.getNonNestedObject=function(t,e,n){for(var r=new Array,o=0,s=this.getNonNestedObjectCore(t,e,n,r);!s&&o<r.length;)o=r.length,s=this.getNonNestedObjectCore(t,e,n,r);return s},i.prototype.getNonNestedObjectCore=function(t,e,n,r){var o=this.getFirstPropertyName(e,t,n,r);o&&r.push(o);for(var s=o?[o]:null;e!=o&&t;){var a=e[0]=="[";if(a){var l=this.getObjInArray(t,e);if(!l)return null;t=l.value,e=l.text,s.push(l.index)}else{if(!o&&e==this.getFirstName(e))return{value:t,text:e,path:s};if(t=this.getObjectValue(t,o),P.isValueEmpty(t)&&!n)return null;e=e.substring(o.length)}e&&e[0]=="."&&(e=e.substring(1)),o=this.getFirstPropertyName(e,t,n,r),o&&s.push(o)}return{value:t,text:e,path:s}},i.prototype.getObjInArray=function(t,e){if(!Array.isArray(t))return null;for(var n=1,r="";n<e.length&&e[n]!="]";)r+=e[n],n++;return e=n<e.length?e.substring(n+1):"",n=this.getIntValue(r),n<0||n>=t.length?null:{value:t[n],text:e,index:n}},i.prototype.getFirstPropertyName=function(t,e,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=void 0),!t||(e||(e={}),e.hasOwnProperty(t)))return t;var o=t.toLowerCase(),s=o[0],a=s.toUpperCase();for(var l in e)if(!(Array.isArray(r)&&r.indexOf(l)>-1)){var u=l[0];if(u===a||u===s){var d=l.toLowerCase();if(d==o)return l;if(o.length<=d.length)continue;var v=o[d.length];if(v!="."&&v!="[")continue;if(d==o.substring(0,d.length))return l}}if(n&&t[0]!=="["){var V=t.indexOf(".");return V>-1&&(t=t.substring(0,V),e[t]={}),t}return""},i.prototype.getObjectValue=function(t,e){return e?t[e]:null},i.prototype.getIntValue=function(t){return t=="0"||(t|0)>0&&t%1==0?Number(t):-1},i}(),Fe=function(){function i(){}return i.disposedObjectChangedProperty=function(t,e){i.warn('An attempt to set a property "'+t+'" of a disposed object "'+e+'"')},i.inCorrectQuestionValue=function(t,e){var n=JSON.stringify(e,null,3);i.warn("An attempt to assign an incorrect value"+n+' to the following question: "'+t+'"')},i.warn=function(t){console.warn(t)},i.error=function(t){console.error(t)},i}(),U=function(){function i(){this.functionHash={},this.isAsyncHash={}}return i.prototype.register=function(t,e,n){n===void 0&&(n=!1),this.functionHash[t]=e,n&&(this.isAsyncHash[t]=!0)},i.prototype.unregister=function(t){delete this.functionHash[t],delete this.isAsyncHash[t]},i.prototype.hasFunction=function(t){return!!this.functionHash[t]},i.prototype.isAsyncFunction=function(t){return!!this.isAsyncHash[t]},i.prototype.clear=function(){this.functionHash={}},i.prototype.getAll=function(){var t=[];for(var e in this.functionHash)t.push(e);return t.sort()},i.prototype.run=function(t,e,n,r){n===void 0&&(n=null);var o=this.functionHash[t];if(!o)return Fe.warn("Unknown function name: "+t),null;var s={func:o};if(n)for(var a in n)s[a]=n[a];return s.func(e,r)},i.Instance=new i,i}(),ll=U.Instance.register;function St(i,t){if(i!=null)if(Array.isArray(i))for(var e=0;e<i.length;e++)St(i[e],t);else P.isNumber(i)&&(i=P.getNumber(i)),t.push(i)}function _i(i){var t=[];St(i,t);for(var e=0,n=0;n<t.length;n++)e=P.correctAfterPlusMinis(e,t[n],e+t[n]);return e}U.Instance.register("sum",_i);function Bi(i,t){var e=[];St(i,e);for(var n=void 0,r=0;r<e.length;r++)n===void 0&&(n=e[r]),t?n>e[r]&&(n=e[r]):n<e[r]&&(n=e[r]);return n}function ul(i){return Bi(i,!0)}U.Instance.register("min",ul);function cl(i){return Bi(i,!1)}U.Instance.register("max",cl);function fl(i){var t=[];return St(i,t),t.length}U.Instance.register("count",fl);function pl(i){var t=[];St(i,t);var e=_i(i);return t.length>0?e/t.length:0}U.Instance.register("avg",pl);function dl(i,t){if(i.length<2||i.length>3)return null;var e=i[0];if(!e||!Array.isArray(e)&&!Array.isArray(Object.keys(e)))return null;var n=i[1];if(typeof n!="string"&&!(n instanceof String))return null;var r=i.length>2?i[2]:void 0;if(typeof r!="string"&&!(r instanceof String)&&(r=void 0),!r){var o=Array.isArray(t)&&t.length>2?t[2]:void 0;o&&o.toString()&&(r=o.toString())}return{data:e,name:n,expression:r}}function hl(i){return typeof i=="string"?P.isNumber(i)?P.getNumber(i):void 0:i}function ki(i,t,e,n,r,o){if(!i||P.isValueEmpty(i[t])||o&&!o.run(i))return e;var s=r?hl(i[t]):1;return n(e,s)}function Kt(i,t,e,n){n===void 0&&(n=!0);var r=dl(i,t);if(r){var o=r.expression?new de(r.expression):void 0;o&&o.isAsync&&(o=void 0);var s=void 0;if(Array.isArray(r.data))for(var a=0;a<r.data.length;a++)s=ki(r.data[a],r.name,s,e,n,o);else for(var l in r.data)s=ki(r.data[l],r.name,s,e,n,o);return s}}function qi(i,t){var e=Kt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:P.correctAfterPlusMinis(n,r,n+r)});return e!==void 0?e:0}U.Instance.register("sumInArray",qi);function gl(i,t){return Kt(i,t,function(e,n){return e==null?n:n==null||n==null||e<n?e:n})}U.Instance.register("minInArray",gl);function yl(i,t){return Kt(i,t,function(e,n){return e==null?n:n==null||n==null||e>n?e:n})}U.Instance.register("maxInArray",yl);function Qi(i,t){var e=Kt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:n+1},!1);return e!==void 0?e:0}U.Instance.register("countInArray",Qi);function ml(i,t){var e=Qi(i,t);return e==0?0:qi(i,t)/e}U.Instance.register("avgInArray",ml);function vl(i){return!i&&i.length!==3?"":i[0]?i[1]:i[2]}U.Instance.register("iif",vl);function bl(i){return!i&&i.length<1||!i[0]?null:Z("function-getDate",i[0])}U.Instance.register("getDate",bl);function zi(i,t,e){if(e==="days")return Wi([i,t]);var n=Z("function-dateDiffMonths",i),r=Z("function-dateDiffMonths",t),o=r.getFullYear()-n.getFullYear();e=e||"years";var s=o*12+r.getMonth()-n.getMonth();return r.getDate()<n.getDate()&&(s-=1),e==="months"?s:~~(s/12)}function Cl(i){return!Array.isArray(i)||i.length<1||!i[0]?null:zi(i[0],void 0,(i.length>1?i[1]:"")||"years")}U.Instance.register("age",Cl);function Pl(i){return!Array.isArray(i)||i.length<2||!i[0]||!i[1]?null:zi(i[0],i[1],(i.length>2?i[2]:"")||"days")}U.Instance.register("dateDiff",Pl);function Vl(i){if(!Array.isArray(i)||i.length<2||!i[0]||!i[1])return null;var t=Z("function-dateAdd",i[0]),e=i[1],n=i[2]||"days";return n==="days"&&t.setDate(t.getDate()+e),n==="months"&&t.setMonth(t.getMonth()+e),n==="years"&&t.setFullYear(t.getFullYear()+e),t}U.Instance.register("dateAdd",Vl);function Hi(i){if(!i)return!1;for(var t=i.questions,e=0;e<t.length;e++)if(!t[e].validate(!1))return!1;return!0}function wl(i){if(!i&&i.length<1||!i[0]||!this.survey)return!1;var t=i[0],e=this.survey.getPageByName(t);if(e||(e=this.survey.getPanelByName(t)),!e){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(i.length>1)i[1]<n.panels.length&&(e=n.panels[i[1]]);else{for(var r=0;r<n.panels.length;r++)if(!Hi(n.panels[r]))return!1;return!0}}return Hi(e)}U.Instance.register("isContainerReady",wl);function xl(){return this.survey&&this.survey.isDisplayMode}U.Instance.register("isDisplayMode",xl);function Ol(){return Z("function-currentDate")}U.Instance.register("currentDate",Ol);function Ui(i){var t=Z("function-today");return b.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(i)&&i.length==1&&t.setDate(t.getDate()+i[0]),t}U.Instance.register("today",Ui);function Sl(i){if(!(i.length!==1||!i[0]))return Z("function-getYear",i[0]).getFullYear()}U.Instance.register("getYear",Sl);function Tl(){return Z("function-currentYear").getFullYear()}U.Instance.register("currentYear",Tl);function Wi(i){if(!Array.isArray(i)||i.length!==2||!i[0]||!i[1])return 0;var t=Z("function-diffDays",i[0]),e=Z("function-diffDays",i[1]),n=Math.abs(e-t);return Math.ceil(n/(1e3*60*60*24))}U.Instance.register("diffDays",Wi);function Yt(i,t){var e=Ui(void 0);return t&&t[0]&&(e=Z("function-"+i,t[0])),e}function Rl(i){var t=Yt("year",i);return t.getFullYear()}U.Instance.register("year",Rl);function El(i){var t=Yt("month",i);return t.getMonth()+1}U.Instance.register("month",El);function Il(i){var t=Yt("day",i);return t.getDate()}U.Instance.register("day",Il);function Al(i){var t=Yt("weekday",i);return t.getDay()}U.Instance.register("weekday",Al);function $i(i,t){if(!(!i||!t)){for(var e=i.question;e&&e.parent;){var n=e.parent.getQuestionByName(t);if(n)return n;e=e.parentQuestion}for(var r=["row","panel","survey"],o=0;o<r.length;o++){var s=i[r[o]];if(s&&s.getQuestionByName){var n=s.getQuestionByName(t);if(n)return n}}return null}}function Ji(i,t){return t.length>1&&!P.isValueEmpty(t[1])?i.getDisplayValue(!0,t[1]):i.displayValue}function Dl(i){var t=this,e=$i(this,i[0]);if(!e)return"";if(e.isReady)this.returnResult(Ji(e,i));else{var n=function(r,o){r.isReady&&(r.onReadyChanged.remove(n),t.returnResult(Ji(r,i)))};e.onReadyChanged.add(n)}}U.Instance.register("displayValue",Dl,!0);function Ll(i){if(!(i.length!==2||!i[0]||!i[1])){var t=$i(this,i[0]);return t?t[i[1]]:void 0}}U.Instance.register("propertyValue",Ll);function Ml(i){if(i.length<2)return"";var t=i[0];if(!t||typeof t!="string")return"";var e=i[1];if(!P.isNumber(e))return"";var n=i.length>2?i[2]:void 0;return P.isNumber(n)?t.substring(e,n):t.substring(e)}U.Instance.register("substring",Ml);var ht=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gt=function(){function i(){this._id=i.counter++}return Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),i.prototype.toString=function(t){return""},i.prototype.hasFunction=function(){return!1},i.prototype.hasAsyncFunction=function(){return!1},i.prototype.addToAsyncList=function(t){},i.prototype.isEqual=function(t){return!!t&&t.getType()===this.getType()&&this.isContentEqual(t)},i.prototype.areOperatorsEquals=function(t,e){return!t&&!e||!!t&&t.isEqual(e)},i.counter=1,i}(),Gi=function(i){ht(t,i);function t(e,n,r,o){n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=!1);var s=i.call(this)||this;return s.operatorName=e,s.left=n,s.right=r,s.isArithmeticValue=o,o?s.consumer=Oe.binaryFunctions.arithmeticOp(e):s.consumer=Oe.binaryFunctions[e],s.consumer==null&&Oe.throwInvalidOperatorError(e),s}return Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return this.operatorName=="or"||this.operatorName=="and"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var n=e;return n.operator===this.operator&&this.areOperatorsEquals(this.left,n.left)&&this.areOperatorsEquals(this.right,n.right)},t.prototype.evaluateParam=function(e,n){return e==null?null:e.evaluate(n)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"("+Oe.safeToString(this.left,e)+" "+Oe.operatorToString(this.operatorName)+" "+Oe.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){this.left!=null&&this.left.setVariables(e),this.right!=null&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(gt),kn=function(i){ht(t,i);function t(e,n){var r=i.call(this)||this;return r.expressionValue=e,r.operatorName=n,r.consumer=Oe.unaryFunctions[n],r.consumer==null&&Oe.throwInvalidOperatorError(n),r}return Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return Oe.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var n=e;return n.operator==this.operator&&this.areOperatorsEquals(this.expression,n.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var n=this.expression.evaluate(e);return this.consumer.call(this,n)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(gt),Xt=function(i){ht(t,i);function t(e){var n=i.call(this)||this;return n.values=e,n}return t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"["+this.values.map(function(r){return r.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(n){return n.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(n){n.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t.prototype.hasAsyncFunction=function(){return this.values.some(function(e){return e.hasAsyncFunction()})},t.prototype.addToAsyncList=function(e){this.values.forEach(function(n){return n.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){var n=e;if(n.values.length!==this.values.length)return!1;for(var r=0;r<this.values.length;r++)if(!n.values[r].isEqual(this.values[r]))return!1;return!0},t}(gt),qn=function(i){ht(t,i);function t(e){var n=i.call(this)||this;return n.value=e,n}return t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){if(!e||typeof e!="string")return e;if(Oe.isBooleanValue(e))return e.toLowerCase()==="true";if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(P.isNumber(e)){if(e[0]==="0"&&e.indexOf("0x")!=0){var n=e.length,r=n>1&&(e[1]==="."||e[1]===",");if(!r&&n>1||r&&n<2)return e}return P.getNumber(e)}return e},t.prototype.isContentEqual=function(e){var n=e;return n.value==this.value},t.prototype.isQuote=function(e){return e=="'"||e=='"'},t}(gt),Ki=function(i){ht(t,i);function t(e){var n=i.call(this,e)||this;return n.variableName=e,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return Object.defineProperty(t,"DisableConversionChar",{get:function(){return b.expressionDisableConversionChar},set:function(e){b.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.valueInfo.sctrictCompare===!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}var r=this.useValueAsItIs?t.DisableConversionChar:"";return"{"+r+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(e){return this.useValueAsItIs?e:i.prototype.getCorrectValue.call(this,e)},t.prototype.isContentEqual=function(e){var n=e;return n.variable==this.variable},t}(qn),Yi=function(i){ht(t,i);function t(e,n){var r=i.call(this)||this;return r.originalValue=e,r.parameters=n,Array.isArray(n)&&n.length===0&&(r.parameters=new Xt([])),r}return t.prototype.getType=function(){return"function"},t.prototype.evaluate=function(e){var n=this.getAsynValue(e);return n?n.value:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){var n=e.properties;if(this.isAsyncFunction){n=P.createCopy(e.properties);var r=this.id,o=e.asyncValues,s=e.onCompleteAsyncFunc,a=this;n.returnResult=function(l){o[r]={value:l},s(a)}}return U.Instance.run(this.originalValue,this.parameters.evaluate(e),n,this.parameters.values)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.isReady=function(e){return!!this.getAsynValue(e)},t.prototype.getAsynValue=function(e){return e.asyncValues[this.id]},t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()},t.prototype.isAsyncFunction=function(){return U.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){var n=void 0;if(this.isAsyncFunction()&&(n={operand:this}),this.parameters.hasAsyncFunction()){var r=new Array;this.parameters.addToAsyncList(r),r.forEach(function(o){return o.parent=n}),n||(n={}),n.children=r}n&&e.push(n)},t.prototype.isContentEqual=function(e){var n=e;return n.originalValue==this.originalValue&&this.areOperatorsEquals(n.parameters,this.parameters)},t}(gt),Oe=function(){function i(){}return i.throwInvalidOperatorError=function(t){throw new Error("Invalid operator: '"+t+"'")},i.safeToString=function(t,e){return t==null?"":t.toString(e)},i.toOperandString=function(t){return t&&!P.isNumber(t)&&!i.isBooleanValue(t)&&(t="'"+t+"'"),t},i.isBooleanValue=function(t){return!!t&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")},i.countDecimals=function(t){if(P.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.plusMinus=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.isTwoValueEquals=function(t,e,n){return n===void 0&&(n=!0),t==="undefined"&&(t=void 0),e==="undefined"&&(e=void 0),P.isTwoValueEquals(t,e,n)},i.operatorToString=function(t){var e=i.signs[t];return e??t},i.convertValForDateCompare=function(t,e){if(e instanceof Date&&typeof t=="string"){var n=Z("expression-operand",t);return n.setHours(0,0,0),n}return t},i.unaryFunctions={empty:function(t){return P.isValueEmpty(t)},notempty:function(t){return!i.unaryFunctions.empty(t)},negate:function(t){return!t}},i.binaryFunctions={arithmeticOp:function(t){var e=function(n,r){return P.isValueEmpty(n)?typeof r=="number"?0:typeof n=="string"?n:typeof r=="string"?"":Array.isArray(r)?[]:0:n};return function(n,r){n=e(n,r),r=e(r,n);var o=i.binaryFunctions[t];return o==null?null:o.call(this,n,r)}},and:function(t,e){return t&&e},or:function(t,e){return t||e},plus:function(t,e){return P.sumAnyValues(t,e)},minus:function(t,e){return P.correctAfterPlusMinis(t,e,t-e)},mul:function(t,e){return P.correctAfterMultiple(t,e,t*e)},div:function(t,e){return e?t/e:null},mod:function(t,e){return e?t%e:null},power:function(t,e){return Math.pow(t,e)},greater:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t>e)},less:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t<e)},greaterorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.greater(t,e)},lessorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.less(t,e)},equal:function(t,e,n){return t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),i.isTwoValueEquals(t,e,n!==!0)},notequal:function(t,e,n){return!i.binaryFunctions.equal(t,e,n)},contains:function(t,e){return i.binaryFunctions.containsCore(t,e,!0)},notcontains:function(t,e){return!t&&!P.isValueEmpty(e)?!0:i.binaryFunctions.containsCore(t,e,!1)},anyof:function(t,e){if(P.isValueEmpty(t)&&P.isValueEmpty(e))return!0;if(P.isValueEmpty(t)||!Array.isArray(t)&&t.length===0)return!1;if(P.isValueEmpty(e))return!0;if(!Array.isArray(t))return i.binaryFunctions.contains(e,t);if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(i.binaryFunctions.contains(t,e[n]))return!0;return!1},allof:function(t,e){if(!t&&!P.isValueEmpty(e))return!1;if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(!i.binaryFunctions.contains(t,e[n]))return!1;return!0},containsCore:function(t,e,n){if(!t&&t!==0&&t!==!1)return!1;if(t.length||(t=t.toString(),(typeof e=="string"||e instanceof String)&&(t=t.toUpperCase(),e=e.toUpperCase())),typeof t=="string"||t instanceof String){if(!e)return!1;e=e.toString();var r=t.indexOf(e)>-1;return n?r:!r}for(var o=Array.isArray(e)?e:[e],s=0;s<o.length;s++){var a=0;for(e=o[s];a<t.length&&!i.isTwoValueEquals(t[a],e);a++);if(a==t.length)return!n}return n}},i.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},i}(),jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qn=function(i){jl(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.message=e,s.expected=n,s.found=r,s.location=o,s.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(s,t),s}return t.buildMessage=function(e,n){function r(d){return d.charCodeAt(0).toString(16).toUpperCase()}function o(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(v){return"\\x0"+r(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+r(v)})}function s(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(v){return"\\x0"+r(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+r(v)})}function a(d){switch(d.type){case"literal":return'"'+o(d.text)+'"';case"class":var v=d.parts.map(function(V){return Array.isArray(V)?s(V[0])+"-"+s(V[1]):s(V)});return"["+(d.inverted?"^":"")+v+"]";case"any":return"any character";case"end":return"end of input";case"other":return d.description}}function l(d){var v=d.map(a),V,T;if(v.sort(),v.length>0){for(V=1,T=1;V<v.length;V++)v[V-1]!==v[V]&&(v[T]=v[V],T++);v.length=T}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}function u(d){return d?'"'+o(d)+'"':"end of input"}return"Expected "+l(e)+" but "+u(n)+" found."},t}(Error);function Nl(i,t){t=t!==void 0?t:{};var e={},n={Expression:pt},r=pt,o=function(c,p){return Za(c,p,!0)},s="||",a=q("||",!1),l="or",u=q("or",!0),d=function(){return"or"},v="&&",V=q("&&",!1),T="and",R=q("and",!0),N=function(){return"and"},j=function(c,p){return Za(c,p)},A="<=",Q=q("<=",!1),re="lessorequal",ie=q("lessorequal",!0),xe=function(){return"lessorequal"},Re=">=",wt=q(">=",!1),ct="greaterorequal",Ff=q("greaterorequal",!0),_f=function(){return"greaterorequal"},ia="==",Bf=q("==",!1),oa="equal",sa=q("equal",!0),aa=function(){return"equal"},kf="=",qf=q("=",!1),la="!=",Qf=q("!=",!1),zf="notequal",Hf=q("notequal",!0),Uf=function(){return"notequal"},Wf="<",$f=q("<",!1),Jf="less",Gf=q("less",!0),Kf=function(){return"less"},Yf=">",Xf=q(">",!1),Zf="greater",ep=q("greater",!0),tp=function(){return"greater"},np="+",rp=q("+",!1),ip=function(){return"plus"},op="-",sp=q("-",!1),ap=function(){return"minus"},lp="*",up=q("*",!1),cp=function(){return"mul"},fp="/",pp=q("/",!1),dp=function(){return"div"},hp="%",gp=q("%",!1),yp=function(){return"mod"},mp="^",vp=q("^",!1),bp="power",Cp=q("power",!0),Pp=function(){return"power"},ua="*=",Vp=q("*=",!1),wp="contains",xp=q("contains",!0),Op="contain",Sp=q("contain",!0),Tp=function(){return"contains"},Rp="notcontains",Ep=q("notcontains",!0),Ip="notcontain",Ap=q("notcontain",!0),Dp=function(){return"notcontains"},Lp="anyof",Mp=q("anyof",!0),jp=function(){return"anyof"},Np="allof",Fp=q("allof",!0),_p=function(){return"allof"},ca="(",fa=q("(",!1),pa=")",da=q(")",!1),Bp=function(c){return c},kp=function(c,p){return new Yi(c,p)},qp="!",Qp=q("!",!1),zp="negate",Hp=q("negate",!0),Up=function(c){return new kn(c,"negate")},Wp=function(c,p){return new kn(c,p)},$p="empty",Jp=q("empty",!0),Gp=function(){return"empty"},Kp="notempty",Yp=q("notempty",!0),Xp=function(){return"notempty"},ha="undefined",Zp=q("undefined",!1),ga="null",ed=q("null",!1),td=function(){return null},nd=function(c){return new qn(c)},rd="{",id=q("{",!1),od="}",sd=q("}",!1),ad=function(c){return new Ki(c)},bi=function(c){return c},ya="''",ld=q("''",!1),ma=function(){return""},va='""',ud=q('""',!1),ba="'",Ca=q("'",!1),Pa=function(c){return"'"+c+"'"},Va='"',wa=q('"',!1),cd="[",fd=q("[",!1),pd="]",dd=q("]",!1),hd=function(c){return c},xa=",",Oa=q(",",!1),gd=function(c,p){if(c==null)return new Xt([]);var C=[c];if(Array.isArray(p))for(var g=nh(p),w=3;w<g.length;w+=4)C.push(g[w]);return new Xt(C)},yd="true",md=q("true",!0),vd=function(){return!0},bd="false",Cd=q("false",!0),Pd=function(){return!1},Sa="0x",Vd=q("0x",!1),wd=function(){return parseInt(Mn(),16)},xd=/^[\-]/,Od=ft(["-"],!1,!1),Sd=function(c,p){return c==null?p:-p},Td=".",Rd=q(".",!1),Ed=function(){return parseFloat(Mn())},Id=function(){return parseInt(Mn(),10)},Ad="0",Dd=q("0",!1),Ld=function(){return 0},Ta=function(c){return c.join("")},Ra="\\'",Md=q("\\'",!1),jd=function(){return"'"},Ea='\\"',Nd=q('\\"',!1),Fd=function(){return'"'},_d=/^[^"']/,Bd=ft(['"',"'"],!0,!1),Ci=function(){return Mn()},kd=/^[^{}]/,qd=ft(["{","}"],!0,!1),Ia=/^[0-9]/,Aa=ft([["0","9"]],!1,!1),Da=/^[1-9]/,La=ft([["1","9"]],!1,!1),Ma=/^[a-zA-Z_]/,ja=ft([["a","z"],["A","Z"],"_"],!1,!1),Qd=Hd("whitespace"),Na=/^[ \t\n\r]/,Fa=ft([" ","	",`
+`,"\r"],!1,!1),f=0,B=0,Dn=[{line:1,column:1}],je=0,Pi=[],D=0,F={},Ln;if(t.startRule!==void 0){if(!(t.startRule in n))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');r=n[t.startRule]}function Mn(){return i.substring(B,f)}function q(c,p){return{type:"literal",text:c,ignoreCase:p}}function ft(c,p,C){return{type:"class",parts:c,inverted:p,ignoreCase:C}}function zd(){return{type:"end"}}function Hd(c){return{type:"other",description:c}}function _a(c){var p=Dn[c],C;if(p)return p;for(C=c-1;!Dn[C];)C--;for(p=Dn[C],p={line:p.line,column:p.column};C<c;)i.charCodeAt(C)===10?(p.line++,p.column=1):p.column++,C++;return Dn[c]=p,p}function Ba(c,p){var C=_a(c),g=_a(p);return{start:{offset:c,line:C.line,column:C.column},end:{offset:p,line:g.line,column:g.column}}}function M(c){f<je||(f>je&&(je=f,Pi=[]),Pi.push(c))}function Ud(c,p,C){return new Qn(Qn.buildMessage(c,p),c,p,C)}function pt(){var c,p,C,g,w,S,L,_,G,Y=f*34+0,Ei=F[Y];if(Ei)return f=Ei.nextPos,Ei.result;if(c=f,p=H(),p!==e)if(C=Vi(),C!==e){for(g=[],w=f,S=H(),S!==e?(L=ka(),L!==e?(_=H(),_!==e?(G=Vi(),G!==e?(S=[S,L,_,G],w=S):(f=w,w=e)):(f=w,w=e)):(f=w,w=e)):(f=w,w=e);w!==e;)g.push(w),w=f,S=H(),S!==e?(L=ka(),L!==e?(_=H(),_!==e?(G=Vi(),G!==e?(S=[S,L,_,G],w=S):(f=w,w=e)):(f=w,w=e)):(f=w,w=e)):(f=w,w=e);g!==e?(w=H(),w!==e?(B=c,p=o(C,g),c=p):(f=c,c=e)):(f=c,c=e)}else f=c,c=e;else f=c,c=e;return F[Y]={nextPos:f,result:c},c}function ka(){var c,p,C=f*34+1,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===s?(p=s,f+=2):(p=e,D===0&&M(a)),p===e&&(i.substr(f,2).toLowerCase()===l?(p=i.substr(f,2),f+=2):(p=e,D===0&&M(u))),p!==e&&(B=c,p=d()),c=p,F[C]={nextPos:f,result:c},c)}function Vi(){var c,p,C,g,w,S,L,_,G=f*34+2,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=wi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=qa(),S!==e?(L=H(),L!==e?(_=wi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=qa(),S!==e?(L=H(),L!==e?(_=wi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function qa(){var c,p,C=f*34+3,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===v?(p=v,f+=2):(p=e,D===0&&M(V)),p===e&&(i.substr(f,3).toLowerCase()===T?(p=i.substr(f,3),f+=3):(p=e,D===0&&M(R))),p!==e&&(B=c,p=N()),c=p,F[C]={nextPos:f,result:c},c)}function wi(){var c,p,C,g,w,S,L,_,G=f*34+4,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=xi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Qa(),S!==e?(L=H(),L!==e?(_=xi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Qa(),S!==e?(L=H(),L!==e?(_=xi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=j(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Qa(){var c,p,C=f*34+5,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===A?(p=A,f+=2):(p=e,D===0&&M(Q)),p===e&&(i.substr(f,11).toLowerCase()===re?(p=i.substr(f,11),f+=11):(p=e,D===0&&M(ie))),p!==e&&(B=c,p=xe()),c=p,c===e&&(c=f,i.substr(f,2)===Re?(p=Re,f+=2):(p=e,D===0&&M(wt)),p===e&&(i.substr(f,14).toLowerCase()===ct?(p=i.substr(f,14),f+=14):(p=e,D===0&&M(Ff))),p!==e&&(B=c,p=_f()),c=p,c===e&&(c=f,i.substr(f,2)===ia?(p=ia,f+=2):(p=e,D===0&&M(Bf)),p===e&&(i.substr(f,5).toLowerCase()===oa?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(sa))),p!==e&&(B=c,p=aa()),c=p,c===e&&(c=f,i.charCodeAt(f)===61?(p=kf,f++):(p=e,D===0&&M(qf)),p===e&&(i.substr(f,5).toLowerCase()===oa?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(sa))),p!==e&&(B=c,p=aa()),c=p,c===e&&(c=f,i.substr(f,2)===la?(p=la,f+=2):(p=e,D===0&&M(Qf)),p===e&&(i.substr(f,8).toLowerCase()===zf?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(Hf))),p!==e&&(B=c,p=Uf()),c=p,c===e&&(c=f,i.charCodeAt(f)===60?(p=Wf,f++):(p=e,D===0&&M($f)),p===e&&(i.substr(f,4).toLowerCase()===Jf?(p=i.substr(f,4),f+=4):(p=e,D===0&&M(Gf))),p!==e&&(B=c,p=Kf()),c=p,c===e&&(c=f,i.charCodeAt(f)===62?(p=Yf,f++):(p=e,D===0&&M(Xf)),p===e&&(i.substr(f,7).toLowerCase()===Zf?(p=i.substr(f,7),f+=7):(p=e,D===0&&M(ep))),p!==e&&(B=c,p=tp()),c=p)))))),F[C]={nextPos:f,result:c},c)}function xi(){var c,p,C,g,w,S,L,_,G=f*34+6,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Oi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=za(),S!==e?(L=H(),L!==e?(_=Oi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=za(),S!==e?(L=H(),L!==e?(_=Oi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function za(){var c,p,C=f*34+7,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===43?(p=np,f++):(p=e,D===0&&M(rp)),p!==e&&(B=c,p=ip()),c=p,c===e&&(c=f,i.charCodeAt(f)===45?(p=op,f++):(p=e,D===0&&M(sp)),p!==e&&(B=c,p=ap()),c=p),F[C]={nextPos:f,result:c},c)}function Oi(){var c,p,C,g,w,S,L,_,G=f*34+8,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Si(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Ha(),S!==e?(L=H(),L!==e?(_=Si(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Ha(),S!==e?(L=H(),L!==e?(_=Si(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Ha(){var c,p,C=f*34+9,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===42?(p=lp,f++):(p=e,D===0&&M(up)),p!==e&&(B=c,p=cp()),c=p,c===e&&(c=f,i.charCodeAt(f)===47?(p=fp,f++):(p=e,D===0&&M(pp)),p!==e&&(B=c,p=dp()),c=p,c===e&&(c=f,i.charCodeAt(f)===37?(p=hp,f++):(p=e,D===0&&M(gp)),p!==e&&(B=c,p=yp()),c=p)),F[C]={nextPos:f,result:c},c)}function Si(){var c,p,C,g,w,S,L,_,G=f*34+10,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Ti(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Ua(),S!==e?(L=H(),L!==e?(_=Ti(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Ua(),S!==e?(L=H(),L!==e?(_=Ti(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Ua(){var c,p,C=f*34+11,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===94?(p=mp,f++):(p=e,D===0&&M(vp)),p===e&&(i.substr(f,5).toLowerCase()===bp?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Cp))),p!==e&&(B=c,p=Pp()),c=p,F[C]={nextPos:f,result:c},c)}function Ti(){var c,p,C,g,w,S,L,_,G=f*34+12,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Ri(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Wa(),S!==e?(L=H(),L!==e?(_=Ri(),_===e&&(_=null),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Wa(),S!==e?(L=H(),L!==e?(_=Ri(),_===e&&(_=null),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=j(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Wa(){var c,p,C=f*34+13,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===ua?(p=ua,f+=2):(p=e,D===0&&M(Vp)),p===e&&(i.substr(f,8).toLowerCase()===wp?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(xp)),p===e&&(i.substr(f,7).toLowerCase()===Op?(p=i.substr(f,7),f+=7):(p=e,D===0&&M(Sp)))),p!==e&&(B=c,p=Tp()),c=p,c===e&&(c=f,i.substr(f,11).toLowerCase()===Rp?(p=i.substr(f,11),f+=11):(p=e,D===0&&M(Ep)),p===e&&(i.substr(f,10).toLowerCase()===Ip?(p=i.substr(f,10),f+=10):(p=e,D===0&&M(Ap))),p!==e&&(B=c,p=Dp()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===Lp?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Mp)),p!==e&&(B=c,p=jp()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===Np?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Fp)),p!==e&&(B=c,p=_p()),c=p))),F[C]={nextPos:f,result:c},c)}function Ri(){var c,p,C,g,w,S,L=f*34+14,_=F[L];return _?(f=_.nextPos,_.result):(c=f,i.charCodeAt(f)===40?(p=ca,f++):(p=e,D===0&&M(fa)),p!==e?(C=H(),C!==e?(g=pt(),g!==e?(w=H(),w!==e?(i.charCodeAt(f)===41?(S=pa,f++):(S=e,D===0&&M(da)),S===e&&(S=null),S!==e?(B=c,p=Bp(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=Wd(),c===e&&(c=$d(),c===e&&(c=$a(),c===e&&(c=Kd())))),F[L]={nextPos:f,result:c},c)}function Wd(){var c,p,C,g,w,S=f*34+15,L=F[S];return L?(f=L.nextPos,L.result):(c=f,p=Xa(),p!==e?(i.charCodeAt(f)===40?(C=ca,f++):(C=e,D===0&&M(fa)),C!==e?(g=Ja(),g!==e?(i.charCodeAt(f)===41?(w=pa,f++):(w=e,D===0&&M(da)),w===e&&(w=null),w!==e?(B=c,p=kp(p,g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),F[S]={nextPos:f,result:c},c)}function $d(){var c,p,C,g,w=f*34+16,S=F[w];return S?(f=S.nextPos,S.result):(c=f,i.charCodeAt(f)===33?(p=qp,f++):(p=e,D===0&&M(Qp)),p===e&&(i.substr(f,6).toLowerCase()===zp?(p=i.substr(f,6),f+=6):(p=e,D===0&&M(Hp))),p!==e?(C=H(),C!==e?(g=pt(),g!==e?(B=c,p=Up(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=$a(),p!==e?(C=H(),C!==e?(g=Jd(),g!==e?(B=c,p=Wp(p,g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)),F[w]={nextPos:f,result:c},c)}function Jd(){var c,p,C=f*34+17,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,5).toLowerCase()===$p?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Jp)),p!==e&&(B=c,p=Gp()),c=p,c===e&&(c=f,i.substr(f,8).toLowerCase()===Kp?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(Yp)),p!==e&&(B=c,p=Xp()),c=p),F[C]={nextPos:f,result:c},c)}function $a(){var c,p,C,g,w,S=f*34+18,L=F[S];return L?(f=L.nextPos,L.result):(c=f,p=H(),p!==e?(i.substr(f,9)===ha?(C=ha,f+=9):(C=e,D===0&&M(Zp)),C===e&&(i.substr(f,4)===ga?(C=ga,f+=4):(C=e,D===0&&M(ed))),C!==e?(B=c,p=td(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=H(),p!==e?(C=Gd(),C!==e?(B=c,p=nd(C),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=H(),p!==e?(i.charCodeAt(f)===123?(C=rd,f++):(C=e,D===0&&M(id)),C!==e?(g=eh(),g!==e?(i.charCodeAt(f)===125?(w=od,f++):(w=e,D===0&&M(sd)),w!==e?(B=c,p=ad(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e))),F[S]={nextPos:f,result:c},c)}function Gd(){var c,p,C,g,w=f*34+19,S=F[w];return S?(f=S.nextPos,S.result):(c=f,p=Yd(),p!==e&&(B=c,p=bi(p)),c=p,c===e&&(c=f,p=Xd(),p!==e&&(B=c,p=bi(p)),c=p,c===e&&(c=f,p=Xa(),p!==e&&(B=c,p=bi(p)),c=p,c===e&&(c=f,i.substr(f,2)===ya?(p=ya,f+=2):(p=e,D===0&&M(ld)),p!==e&&(B=c,p=ma()),c=p,c===e&&(c=f,i.substr(f,2)===va?(p=va,f+=2):(p=e,D===0&&M(ud)),p!==e&&(B=c,p=ma()),c=p,c===e&&(c=f,i.charCodeAt(f)===39?(p=ba,f++):(p=e,D===0&&M(Ca)),p!==e?(C=Ga(),C!==e?(i.charCodeAt(f)===39?(g=ba,f++):(g=e,D===0&&M(Ca)),g!==e?(B=c,p=Pa(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,i.charCodeAt(f)===34?(p=Va,f++):(p=e,D===0&&M(wa)),p!==e?(C=Ga(),C!==e?(i.charCodeAt(f)===34?(g=Va,f++):(g=e,D===0&&M(wa)),g!==e?(B=c,p=Pa(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e))))))),F[w]={nextPos:f,result:c},c)}function Kd(){var c,p,C,g,w=f*34+20,S=F[w];return S?(f=S.nextPos,S.result):(c=f,i.charCodeAt(f)===91?(p=cd,f++):(p=e,D===0&&M(fd)),p!==e?(C=Ja(),C!==e?(i.charCodeAt(f)===93?(g=pd,f++):(g=e,D===0&&M(dd)),g!==e?(B=c,p=hd(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),F[w]={nextPos:f,result:c},c)}function Ja(){var c,p,C,g,w,S,L,_,G=f*34+21,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=pt(),p===e&&(p=null),p!==e){for(C=[],g=f,w=H(),w!==e?(i.charCodeAt(f)===44?(S=xa,f++):(S=e,D===0&&M(Oa)),S!==e?(L=H(),L!==e?(_=pt(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(i.charCodeAt(f)===44?(S=xa,f++):(S=e,D===0&&M(Oa)),S!==e?(L=H(),L!==e?(_=pt(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=gd(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Yd(){var c,p,C=f*34+22,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,4).toLowerCase()===yd?(p=i.substr(f,4),f+=4):(p=e,D===0&&M(md)),p!==e&&(B=c,p=vd()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===bd?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Cd)),p!==e&&(B=c,p=Pd()),c=p),F[C]={nextPos:f,result:c},c)}function Xd(){var c,p,C,g=f*34+23,w=F[g];return w?(f=w.nextPos,w.result):(c=f,i.substr(f,2)===Sa?(p=Sa,f+=2):(p=e,D===0&&M(Vd)),p!==e?(C=xt(),C!==e?(B=c,p=wd(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,xd.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Od)),p===e&&(p=null),p!==e?(C=Zd(),C!==e?(B=c,p=Sd(p,C),c=p):(f=c,c=e)):(f=c,c=e)),F[g]={nextPos:f,result:c},c)}function Zd(){var c,p,C,g,w=f*34+24,S=F[w];return S?(f=S.nextPos,S.result):(c=f,p=xt(),p!==e?(i.charCodeAt(f)===46?(C=Td,f++):(C=e,D===0&&M(Rd)),C!==e?(g=xt(),g!==e?(B=c,p=Ed(),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=th(),p!==e?(C=xt(),C===e&&(C=null),C!==e?(B=c,p=Id(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,i.charCodeAt(f)===48?(p=Ad,f++):(p=e,D===0&&M(Dd)),p!==e&&(B=c,p=Ld()),c=p)),F[w]={nextPos:f,result:c},c)}function eh(){var c,p,C,g=f*34+25,w=F[g];if(w)return f=w.nextPos,w.result;if(c=f,p=[],C=Ya(),C!==e)for(;C!==e;)p.push(C),C=Ya();else p=e;return p!==e&&(B=c,p=Ta(p)),c=p,F[g]={nextPos:f,result:c},c}function Ga(){var c,p,C,g=f*34+26,w=F[g];if(w)return f=w.nextPos,w.result;if(c=f,p=[],C=Ka(),C!==e)for(;C!==e;)p.push(C),C=Ka();else p=e;return p!==e&&(B=c,p=Ta(p)),c=p,F[g]={nextPos:f,result:c},c}function Ka(){var c,p,C=f*34+27,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===Ra?(p=Ra,f+=2):(p=e,D===0&&M(Md)),p!==e&&(B=c,p=jd()),c=p,c===e&&(c=f,i.substr(f,2)===Ea?(p=Ea,f+=2):(p=e,D===0&&M(Nd)),p!==e&&(B=c,p=Fd()),c=p,c===e&&(c=f,_d.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Bd)),p!==e&&(B=c,p=Ci()),c=p)),F[C]={nextPos:f,result:c},c)}function Ya(){var c,p,C=f*34+28,g=F[C];return g?(f=g.nextPos,g.result):(c=f,kd.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(qd)),p!==e&&(B=c,p=Ci()),c=p,F[C]={nextPos:f,result:c},c)}function Xa(){var c,p,C,g,w,S,L,_=f*34+29,G=F[_];if(G)return f=G.nextPos,G.result;if(c=f,p=$t(),p!==e){if(C=[],g=f,w=xt(),w!==e){for(S=[],L=$t();L!==e;)S.push(L),L=$t();S!==e?(w=[w,S],g=w):(f=g,g=e)}else f=g,g=e;for(;g!==e;)if(C.push(g),g=f,w=xt(),w!==e){for(S=[],L=$t();L!==e;)S.push(L),L=$t();S!==e?(w=[w,S],g=w):(f=g,g=e)}else f=g,g=e;C!==e?(B=c,p=Ci(),c=p):(f=c,c=e)}else f=c,c=e;return F[_]={nextPos:f,result:c},c}function xt(){var c,p,C=f*34+30,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Ia.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Aa)),p!==e)for(;p!==e;)c.push(p),Ia.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Aa));else c=e;return F[C]={nextPos:f,result:c},c}function th(){var c,p,C=f*34+31,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Da.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(La)),p!==e)for(;p!==e;)c.push(p),Da.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(La));else c=e;return F[C]={nextPos:f,result:c},c}function $t(){var c,p,C=f*34+32,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Ma.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(ja)),p!==e)for(;p!==e;)c.push(p),Ma.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(ja));else c=e;return F[C]={nextPos:f,result:c},c}function H(){var c,p,C=f*34+33,g=F[C];if(g)return f=g.nextPos,g.result;for(D++,c=[],Na.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Fa));p!==e;)c.push(p),Na.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Fa));return D--,c===e&&(p=e,D===0&&M(Qd)),F[C]={nextPos:f,result:c},c}function Za(c,p,C){return C===void 0&&(C=!1),p.reduce(function(g,w){return new Gi(w[1],g,w[3],C)},c)}function nh(c){return[].concat.apply([],c)}if(Ln=r(),Ln!==e&&f===i.length)return Ln;throw Ln!==e&&f<i.length&&M(zd()),Ud(Pi,je<i.length?i.charAt(je):null,je<i.length?Ba(je,je+1):Ba(je,je))}var Fl=Nl,_l=function(){function i(t,e){this.at=t,this.code=e}return i}(),Xi=function(){function i(){}return i.prototype.patchExpression=function(t){return t.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},i.prototype.createCondition=function(t){return this.parseExpression(t)},i.prototype.parseExpression=function(t){try{var e=i.parserCache[t];return e===void 0&&(e=Fl(this.patchExpression(t)),e.hasAsyncFunction()||(i.parserCache[t]=e)),e}catch(n){n instanceof Qn&&(this.conditionError=new _l(n.location.start.offset,n.message))}},Object.defineProperty(i.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),i.parserCache={},i}(),Zi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bl=function(){function i(t,e,n,r,o){this.operand=t,this.id=e,this.onComplete=n,this.processValue=new me,this.processValue.values=r,this.processValue.properties=o}return i.prototype.run=function(t){var e=this;if(!t)return this.runValues();this.processValue.values=P.createCopy(this.processValue.values),this.processValue.onCompleteAsyncFunc=function(r){var o=e.getAsyncItemByOperand(r,e.asyncFuncList);o&&e.doAsyncFunctionReady(o)},this.asyncFuncList=new Array,this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.runAsyncItem(this.asyncFuncList[n]);return!1},i.prototype.getAsyncItemByOperand=function(t,e){if(!Array.isArray(e))return null;for(var n=0;n<e.length;n++){if(e[n].operand===t)return e[n];var r=this.getAsyncItemByOperand(t,e[n].children);if(r)return r}return null},i.prototype.runAsyncItem=function(t){var e=this;t.children?t.children.forEach(function(n){return e.runAsyncItem(n)}):this.runAsyncItemCore(t)},i.prototype.runAsyncItemCore=function(t){t.operand?t.operand.evaluate(this.processValue):this.doAsyncFunctionReady(t)},i.prototype.doAsyncFunctionReady=function(t){if(t.parent&&this.isAsyncChildrenReady(t)){this.runAsyncItemCore(t.parent);return}for(var e=0;e<this.asyncFuncList.length;e++)if(!this.isAsyncFuncReady(this.asyncFuncList[e]))return;this.runValues()},i.prototype.isAsyncFuncReady=function(t){return t.operand&&!t.operand.isReady(this.processValue)?!1:this.isAsyncChildrenReady(t)},i.prototype.isAsyncChildrenReady=function(t){if(t.children){for(var e=0;e<t.children.length;e++)if(!this.isAsyncFuncReady(t.children[e]))return!1}return!0},i.prototype.runValues=function(){var t=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(t,this.id),t},i}(),eo=function(){function i(t){this.parser=new Xi,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(t)}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),i.prototype.setExpression=function(t){this.expression!==t&&(this.expressionValue=t,this.operand=this.parser.parseExpression(t),this.hasFunctionValue=this.canRun()?this.operand.hasFunction():!1,this.isAsyncValue=this.hasFunction()?this.operand.hasAsyncFunction():!1)},i.prototype.getVariables=function(){if(!this.operand)return[];var t=[];return this.operand.setVariables(t),t},i.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return!!this.operand},i.prototype.run=function(t,e,n){if(e===void 0&&(e=null),!this.operand)return this.expression&&Fe.warn("Invalid expression: "+this.expression),null;var r=new Bl(this.operand,n,this.onComplete,t,e);return r.run(this.isAsync)},i.createExpressionExecutor=function(t){return new i(t)},i}(),to=function(){function i(t){this.expression=t}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(t){var e=this;this.expressionExecutor&&t===this.expression||(this.expressionExecutor=eo.createExpressionExecutor(t),this.expressionExecutor.onComplete=function(n,r){e.doOnComplete(n,r)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),i.prototype.getVariables=function(){return this.variables===void 0&&(this.variables=this.expressionExecutor.getVariables()),this.variables},i.prototype.hasFunction=function(){return this.containsFunc===void 0&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return this.expressionExecutor.canRun()},i.prototype.runCore=function(t,e){e===void 0&&(e=null);var n=i.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(n),this.expressionExecutor.run(t,e,n)},i.prototype.doOnComplete=function(t,e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(e)},i.IdRunnerCounter=1,i}(),de=function(i){Zi(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)==!0},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e==!0),i.prototype.doOnComplete.call(this,e,n)},t}(to),et=function(i){Zi(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e),i.prototype.doOnComplete.call(this,e,n)},t}(to),kl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),no=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},ql=function(){function i(t){this.obj=t,this.properties=null,this.values=null}return i.prototype.getType=function(){return"bindings"},i.prototype.getNames=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)this.properties[e].isVisible("",this.obj)&&t.push(this.properties[e].name);return t},i.prototype.getProperties=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)t.push(this.properties[e]);return t},i.prototype.setBinding=function(t,e){this.values||(this.values={});var n=this.getJson();n!==e&&(e?this.values[t]=e:(delete this.values[t],Object.keys(this.values).length==0&&(this.values=null)),this.onChangedJSON(n))},i.prototype.clearBinding=function(t){this.setBinding(t,"")},i.prototype.isEmpty=function(){if(!this.values)return!0;for(var t in this.values)return!1;return!0},i.prototype.getValueNameByPropertyName=function(t){if(this.values)return this.values[t]},i.prototype.getPropertiesByValueName=function(t){if(!this.values)return[];var e=[];for(var n in this.values)this.values[n]==t&&e.push(n);return e},i.prototype.getJson=function(){if(!this.isEmpty()){var t={};for(var e in this.values)t[e]=this.values[e];return t}},i.prototype.setJson=function(t,e){var n=this.getJson();if(this.values=null,t){this.values={};for(var r in t)this.values[r]=t[r]}e||this.onChangedJSON(n)},i.prototype.fillProperties=function(){if(this.properties===null){this.properties=[];for(var t=x.getPropertiesByObj(this.obj),e=0;e<t.length;e++)t[e].isBindable&&this.properties.push(t[e])}},i.prototype.onChangedJSON=function(t){this.obj&&this.obj.onBindingChanged(t,this.getJson())},i}(),Ql=function(){function i(t,e,n){this.currentDependency=t,this.target=e,this.property=n,this.dependencies=[],this.id=""+ ++i.DependenciesCount}return i.prototype.addDependency=function(t,e){this.target===t&&this.property===e||this.dependencies.some(function(n){return n.obj===t&&n.prop===e})||(this.dependencies.push({obj:t,prop:e,id:this.id}),t.registerPropertyChangedHandlers([e],this.currentDependency,this.id))},i.prototype.dispose=function(){this.dependencies.forEach(function(t){t.obj.unregisterPropertyChangedHandlers([t.prop],t.id)})},i.DependenciesCount=0,i}(),te=function(){function i(t){this._updater=t,this.dependencies=void 0,this.type=i.ComputedUpdaterType}return Object.defineProperty(i.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),i.prototype.setDependencies=function(t){this.clearDependencies(),this.dependencies=t},i.prototype.getDependencies=function(){return this.dependencies},i.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},i.prototype.dispose=function(){this.clearDependencies(),this._updater=void 0},i.ComputedUpdaterType="__dependency_computed",i}(),z=function(){function i(){this.dependencies={},this.propertyHash=i.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new Ve,this.bindingsValue=new ql(this),Ne.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return i.finishCollectDependencies=function(){var t=i.currentDependencis;return i.currentDependencis=void 0,t},i.startCollectDependencies=function(t,e,n){if(i.currentDependencis!==void 0)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");i.currentDependencis=new Ql(t,e,n)},i.collectDependency=function(t,e){i.currentDependencis!==void 0&&i.currentDependencis.addDependency(t,e)},Object.defineProperty(i,"commentSuffix",{get:function(){return b.commentSuffix},set:function(t){b.commentSuffix=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"commentPrefix",{get:function(){return i.commentSuffix},set:function(t){i.commentSuffix=t},enumerable:!1,configurable:!0}),i.prototype.isValueEmpty=function(t,e){return e===void 0&&(e=!0),e&&(t=this.trimValue(t)),P.isValueEmpty(t)},i.prototype.equals=function(t){return!t||this.isDisposed||t.isDisposed||this.getType()!=t.getType()?!1:this.equalsCore(t)},i.prototype.equalsCore=function(t){return this.name!==t.name?!1:P.isTwoValueEquals(this.toJSON(),t.toJSON(),!1,!0,!1)},i.prototype.trimValue=function(t){return t&&(typeof t=="string"||t instanceof String)?t.trim():t},i.prototype.isPropertyEmpty=function(t){return t!==""&&this.isValueEmpty(t)},i.createPropertiesHash=function(){return{}},i.prototype.dispose=function(){for(var t=this,e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach(function(n){return t.dependencies[n].dispose()}),Object.keys(this.propertyHash).forEach(function(n){var r=t.getPropertyValueCore(t.propertyHash,n);r&&r.type==te.ComputedUpdaterType&&r.dispose()})},Object.defineProperty(i.prototype,"isDisposed",{get:function(){return this.isDisposedValue===!0},enumerable:!1,configurable:!0}),i.prototype.addEvent=function(){var t=new Ve;return this.eventList.push(t),t},i.prototype.onBaseCreating=function(){},i.prototype.getType=function(){return"base"},i.prototype.isDescendantOf=function(t){return x.isDescendantOf(this.getType(),t)},i.prototype.getSurvey=function(t){return null},Object.defineProperty(i.prototype,"isDesignMode",{get:function(){var t=this.getSurvey();return!!t&&t.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDesignModeV2",{get:function(){return b.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),i.prototype.checkBindings=function(t,e){},i.prototype.updateBindings=function(t,e){var n=this.bindings.getValueNameByPropertyName(t);n&&this.updateBindingValue(n,e)},i.prototype.updateBindingValue=function(t,e){},i.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(i.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),i.prototype.getIsLoadingFromJson=function(){return this.loadingOwner&&this.loadingOwner.isLoadingFromJson?!0:this.isLoadingFromJsonValue},i.prototype.startLoadingFromJson=function(t){this.isLoadingFromJsonValue=!0,this.jsonObj=t},i.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},i.prototype.toJSON=function(t){return new fe().toJsonObject(this,t)},i.prototype.fromJSON=function(t,e){new fe().toObject(t,this,e),this.onSurveyLoad()},i.prototype.onSurveyLoad=function(){},i.prototype.clone=function(){var t=x.createClass(this.getType());return t.fromJSON(this.toJSON()),t},i.prototype.getPropertyByName=function(t){var e=this.getType();return(!this.classMetaData||this.classMetaData.name!==e)&&(this.classMetaData=x.findClass(e)),this.classMetaData?this.classMetaData.findProperty(t):null},i.prototype.isPropertyVisible=function(t){var e=this.getPropertyByName(t);return e?e.isVisible("",this):!1},i.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},i.prototype.getProgressInfo=function(){return i.createProgressInfo()},i.prototype.localeChanged=function(){},i.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var e=this.arraysInfo[t];if(e&&e.isItemValues){var n=this.getPropertyValue(t);n&&i.itemValueLocStrChanged&&i.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var e=this.getLocalizableString(t);e&&e.strChanged()}},i.prototype.getPropertyValue=function(t,e,n){var r=this.getPropertyValueWithoutDefault(t);if(this.isPropertyEmpty(r)){var o=this.localizableStrings?this.localizableStrings[t]:void 0;if(o)return o.text;if(e!=null)return e;if(n){var s=n();if(s!==void 0)if(Array.isArray(s)){var a=this.createNewArray(t);return a.splice.apply(a,no([0,0],s)),a}else return this.setPropertyValueDirectly(t,s),s}var l=this.getDefaultPropertyValue(t);if(l!==void 0)return l}return r},i.prototype.getDefaultPropertyValue=function(t){var e=this.getPropertyByName(t);if(!(!e||e.isCustom&&this.isCreating)){if(e.defaultValueFunc)return e.defaultValueFunc(this);var n=e.getDefaultValue(this);if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[t]:void 0;if(r&&r.localizationName)return this.getLocalizationString(r.localizationName);if(e.type=="boolean"||e.type=="switch")return!1;if(e.isCustom&&e.onGetValue)return e.onGetValue(this)}},i.prototype.hasDefaultPropertyValue=function(t){return this.getDefaultPropertyValue(t)!==void 0},i.prototype.resetPropertyValue=function(t){var e=this.localizableStrings?this.localizableStrings[t]:void 0;e?(this.setLocalizableStringText(t,void 0),e.clear()):this.setPropertyValue(t,void 0)},i.prototype.getPropertyValueWithoutDefault=function(t){return this.getPropertyValueCore(this.propertyHash,t)},i.prototype.getPropertyValueCore=function(t,e){return this.isLoadingFromJson||i.collectDependency(this,e),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,e):t[e]},i.prototype.geValueFromHash=function(){return this.propertyHash.value},i.prototype.setPropertyValueCore=function(t,e,n){this.setPropertyValueCoreHandler?this.isDisposedValue?Fe.disposedObjectChangedProperty(e,this.getType()):this.setPropertyValueCoreHandler(t,e,n):t[e]=n},Object.defineProperty(i.prototype,"isEditingSurveyElement",{get:function(){var t=this.getSurvey();return!!t&&t.isEditingSurveyElement},enumerable:!1,configurable:!0}),i.prototype.iteratePropertiesHash=function(t){var e=this,n=[];for(var r in this.propertyHash)r==="value"&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach(function(o){return t(e.propertyHash,o)})},i.prototype.setPropertyValue=function(t,e){if(!this.isDisposedValue){if(!this.isLoadingFromJson){var n=this.getPropertyByName(t);n&&(e=n.settingValue(this,e))}var r=this.getPropertyValue(t);r&&Array.isArray(r)&&this.arraysInfo&&(!e||Array.isArray(e))?this.isTwoValueEquals(r,e)||this.setArrayPropertyDirectly(t,e):e!==r&&(this.setPropertyValueDirectly(t,e),this.isTwoValueEquals(r,e)||this.propertyValueChanged(t,r,e))}},i.prototype.setArrayPropertyDirectly=function(t,e,n){n===void 0&&(n=!0);var r=this.arraysInfo[t];this.setArray(t,this.getPropertyValue(t),e,r?r.isItemValues:!1,r?n&&r.onPush:null)},i.prototype.setPropertyValueDirectly=function(t,e){this.setPropertyValueCore(this.propertyHash,t,e)},i.prototype.clearPropertyValue=function(t){this.setPropertyValueCore(this.propertyHash,t,null),delete this.propertyHash[t]},i.prototype.onPropertyValueChangedCallback=function(t,e,n,r,o){},i.prototype.itemValuePropertyChanged=function(t,e,n,r){this.onItemValuePropertyChanged.fire(this,{obj:t,name:e,oldValue:n,newValue:r,propertyName:t.ownerPropertyName})},i.prototype.onPropertyValueChanged=function(t,e,n){},i.prototype.propertyValueChanged=function(t,e,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(t,n),this.onPropertyValueChanged(t,e,n),this.onPropertyChanged.fire(this,{name:t,oldValue:e,newValue:n,arrayChanges:r,target:o}),this.doPropertyValueChangedCallback(t,e,n,r,this),this.checkConditionPropertyChanged(t),!!this.onPropChangeFunctions))for(var s=0;s<this.onPropChangeFunctions.length;s++)this.onPropChangeFunctions[s].name==t&&this.onPropChangeFunctions[s].func(n,r)},i.prototype.onBindingChanged=function(t,e){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",t,e)},Object.defineProperty(i.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.doPropertyValueChangedCallback=function(t,e,n,r,o){var s=function(l){l&&l.onPropertyValueChangedCallback&&l.onPropertyValueChangedCallback(t,e,n,o,r)};if(this.isInternal){s(this);return}o||(o=this);var a=this.getSurvey();a||(a=this),s(a),a!==this&&s(this)},i.prototype.addExpressionProperty=function(t,e,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[t]={onExecute:e,canRun:n}},i.prototype.getDataFilteredValues=function(){return{}},i.prototype.getDataFilteredProperties=function(){return{}},i.prototype.runConditionCore=function(t,e){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,t,e)},i.prototype.canRunConditions=function(){return!this.isDesignMode},i.prototype.checkConditionPropertyChanged=function(t){!this.expressionInfo||!this.expressionInfo[t]||this.canRunConditions()&&this.runConditionItemCore(t,this.getDataFilteredValues(),this.getDataFilteredProperties())},i.prototype.runConditionItemCore=function(t,e,n){var r=this,o=this.expressionInfo[t],s=this.getPropertyValue(t);s&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(s),o.runner.onRunComplete=function(a){o.onExecute(r,a)}),o.runner.expression=s,o.runner.run(e,n)))},i.prototype.doBeforeAsynRun=function(t){this.asynExpressionHash||(this.asynExpressionHash={});var e=!this.isAsyncExpressionRunning;this.asynExpressionHash[t]=!0,e&&this.onAsyncRunningChanged()},i.prototype.doAfterAsynRun=function(t){this.asynExpressionHash&&(delete this.asynExpressionHash[t],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},i.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(i.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),i.prototype.createExpressionRunner=function(t){var e=this,n=new et(t);return n.onBeforeAsyncRun=function(r){e.doBeforeAsynRun(r)},n.onAfterAsyncRun=function(r){e.doAfterAsynRun(r)},n},i.prototype.registerPropertyChangedHandlers=function(t,e,n){n===void 0&&(n=null);for(var r=0;r<t.length;r++)this.registerFunctionOnPropertyValueChanged(t[r],e,n)},i.prototype.unregisterPropertyChangedHandlers=function(t,e){e===void 0&&(e=null);for(var n=0;n<t.length;n++)this.unRegisterFunctionOnPropertyValueChanged(t[n],e)},i.prototype.registerFunctionOnPropertyValueChanged=function(t,e,n){if(n===void 0&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==t&&o.key==n){o.func=e;return}}this.onPropChangeFunctions.push({name:t,func:e,key:n})},i.prototype.registerFunctionOnPropertiesValueChanged=function(t,e,n){n===void 0&&(n=null),this.registerPropertyChangedHandlers(t,e,n)},i.prototype.unRegisterFunctionOnPropertyValueChanged=function(t,e){if(e===void 0&&(e=null),!!this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==t&&r.key==e){this.onPropChangeFunctions.splice(n,1);return}}},i.prototype.unRegisterFunctionOnPropertiesValueChanged=function(t,e){e===void 0&&(e=null),this.unregisterPropertyChangedHandlers(t,e)},i.prototype.createCustomLocalizableObj=function(t){var e=this.getLocalizableString(t);return e||this.createLocalizableString(t,this,!1,!0)},i.prototype.getLocale=function(){var t=this.getSurvey();return t?t.getLocale():""},i.prototype.getLocalizationString=function(t){return oe(t,this.getLocale())},i.prototype.getLocalizationFormatString=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getLocalizationString(t);return!r||!r.format?"":r.format.apply(r,e)},i.prototype.createLocalizableString=function(t,e,n,r){var o=this;n===void 0&&(n=!1),r===void 0&&(r=!1);var s=void 0;r&&(s=r===!0?t:r);var a=new Se(e,n,t,s);a.onStrChanged=function(u,d){o.propertyValueChanged(t,u,d)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[t]=a;var l=this.getPropertyByName(t);return a.disableLocalization=l&&l.isLocalizable===!1,a},i.prototype.getLocalizableString=function(t){return this.localizableStrings?this.localizableStrings[t]:null},i.prototype.getLocalizableStringText=function(t,e){e===void 0&&(e=""),i.collectDependency(this,t);var n=this.getLocalizableString(t);if(!n)return"";var r=n.text;return r||e},i.prototype.setLocalizableStringText=function(t,e){var n=this.getLocalizableString(t);if(n){var r=n.text;r!=e&&(n.text=e)}},i.prototype.addUsedLocales=function(t){if(this.localizableStrings)for(var e in this.localizableStrings){var n=this.getLocalizableString(e);n&&this.AddLocStringToUsedLocales(n,t)}if(this.arraysInfo)for(var e in this.arraysInfo){var r=this.getPropertyByName(e);if(!(!r||!r.isSerializable)){var o=this.getPropertyValue(e);if(!(!o||!o.length))for(var s=0;s<o.length;s++){var n=o[s];n&&n.addUsedLocales&&n.addUsedLocales(t)}}}},i.prototype.searchText=function(t,e){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(t)&&e.push({element:this,str:n[r]})},i.prototype.getSearchableLocalizedStrings=function(t){if(this.localizableStrings){var e=[];this.getSearchableLocKeys(e);for(var n=0;n<e.length;n++){var r=this.getLocalizableString(e[n]);r&&t.push(r)}}if(this.arraysInfo){var o=[];this.getSearchableItemValueKeys(o);for(var n=0;n<o.length;n++){var s=this.getPropertyValue(o[n]);if(s)for(var a=0;a<s.length;a++)t.push(s[a].locText)}}},i.prototype.getSearchableLocKeys=function(t){},i.prototype.getSearchableItemValueKeys=function(t){},i.prototype.AddLocStringToUsedLocales=function(t,e){for(var n=t.getLocales(),r=0;r<n.length;r++)e.indexOf(n[r])<0&&e.push(n[r])},i.prototype.createItemValues=function(t){var e=this,n=this.createNewArray(t,function(r){if(r.locOwner=e,r.ownerPropertyName=t,typeof r.getSurvey=="function"){var o=r.getSurvey();o&&typeof o.makeReactive=="function"&&o.makeReactive(r)}});return this.arraysInfo[t].isItemValues=!0,n},i.prototype.notifyArrayChanged=function(t,e){t.onArrayChanged&&t.onArrayChanged(e)},i.prototype.createNewArrayCore=function(t){var e=null;return this.createArrayCoreHandler&&(e=this.createArrayCoreHandler(this.propertyHash,t)),e||(e=new Array,this.setPropertyValueCore(this.propertyHash,t,e)),e},i.prototype.ensureArray=function(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!(this.arraysInfo&&this.arraysInfo[t]))return this.createNewArray(t,e,n)},i.prototype.createNewArray=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=this.createNewArrayCore(t);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[t]={onPush:e,isItemValues:!1};var o=this;return r.push=function(s){var a=Object.getPrototypeOf(r).push.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var l=new tt(r.length-1,0,[s],[]);o.propertyValueChanged(t,r,r,l),o.notifyArrayChanged(r,l)}return a},r.shift=function(){var s=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&s){n&&n(s);var a=new tt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,a),o.notifyArrayChanged(r,a)}return s},r.unshift=function(s){var a=Object.getPrototypeOf(r).unshift.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var l=new tt(0,0,[s],[]);o.propertyValueChanged(t,r,r,l),o.notifyArrayChanged(r,l)}return a},r.pop=function(){var s=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(s);var a=new tt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,a),o.notifyArrayChanged(r,a)}return s},r.splice=function(s,a){for(var l,u=[],d=2;d<arguments.length;d++)u[d-2]=arguments[d];s||(s=0),a||(a=0);var v=(l=Object.getPrototypeOf(r).splice).call.apply(l,no([r,s,a],u));if(u||(u=[]),!o.isDisposedValue){if(n&&v)for(var V=0;V<v.length;V++)n(v[V]);if(e)for(var V=0;V<u.length;V++)e(u[V],s+V);var T=new tt(s,a,u,v);o.propertyValueChanged(t,r,r,T),o.notifyArrayChanged(r,T)}return v},r},i.prototype.getItemValueType=function(){},i.prototype.setArray=function(t,e,n,r,o){var s=[].concat(e);if(Object.getPrototypeOf(e).splice.call(e,0,e.length),n)for(var a=0;a<n.length;a++){var l=n[a];r&&i.createItemValue&&(l=i.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(e).push.call(e,l),o&&o(e[a])}var u=new tt(0,s.length,e,s);this.propertyValueChanged(t,s,e,u),this.notifyArrayChanged(e,u)},i.prototype.isTwoValueEquals=function(t,e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),P.isTwoValueEquals(t,e,!1,!n,r)},i.copyObject=function(t,e){for(var n in e){var r=e[n];typeof r=="object"&&(r={},this.copyObject(r,e[n])),t[n]=r}},i.prototype.copyCssClasses=function(t,e){e&&(typeof e=="string"||e instanceof String?t.root=e:i.copyObject(t,e))},i.prototype.getValueInLowCase=function(t){return t&&typeof t=="string"?t.toLowerCase():t},i.prototype.getElementsInDesign=function(t){return[]},Object.defineProperty(i.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),i.prototype.getIsAnimationAllowed=function(){return b.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)},i.prototype.blockAnimations=function(){this.animationAllowedLock--},i.prototype.releaseAnimations=function(){this.animationAllowedLock++},i.prototype.enableOnElementRerenderedEvent=function(){this.onElementRerenderedEventEnabled=!0},i.prototype.disableOnElementRerenderedEvent=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1},Object.defineProperty(i.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),i.prototype.afterRerender=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!1})},i.currentDependencis=void 0,i}(),tt=function(){function i(t,e,n,r){this.index=t,this.deleteCount=e,this.itemsToAdd=n,this.deletedItems=r}return i}(),zn=function(){function i(){}return Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),i.prototype.fireByCreatingOptions=function(t,e){if(this.callbacks){for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](t,e()),!this.callbacks)return}},i.prototype.fire=function(t,e){if(this.callbacks){for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](t,e),!this.callbacks)return}},i.prototype.clear=function(){this.callbacks=void 0},i.prototype.add=function(t){this.hasFunc(t)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(t),this.fireCallbackChanged())},i.prototype.remove=function(t){if(this.hasFunc(t)){var e=this.callbacks.indexOf(t,0);this.callbacks.splice(e,1),this.fireCallbackChanged()}},i.prototype.hasFunc=function(t){return this.callbacks==null?!1:this.callbacks.indexOf(t,0)>-1},i.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},i}(),Ve=function(i){kl(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(zn),zl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hn=function(){function i(t,e,n,r,o){var s=this;r===void 0&&(r=null),o===void 0&&(o=function(a){queueMicrotask?queueMicrotask(a):a()}),this.container=t,this.model=e,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=o,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.dotsIconClass=".sv-dots",this.iconClass=".sv-svg-icon",this.recalcMinDimensionConst=!0,this.getComputedStyle=function(a){return I.getComputedStyle(a)},this.model.updateCallback=function(a){a&&(s.isInitialized=!1),setTimeout(function(){s.process()},1)},typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(function(a){E.requestAnimationFrame(function(){s.process()})}),this.resizeObserver.observe(this.container.parentElement))}return i.prototype.getDimensions=function(t){return{scroll:t.scrollWidth,offset:t.offsetWidth}},i.prototype.getAvailableSpace=function(){var t=this.getComputedStyle(this.container),e=this.container.offsetWidth;return t.boxSizing==="border-box"&&(e-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)),e},i.prototype.calcItemSize=function(t){return t.offsetWidth||t.getBoundingClientRect().width},i.prototype.calcMinDimension=function(t,e){var n;if(e&&(!t.iconSize||t.iconSize==="auto")){var r=e.querySelector(this.iconClass);n=r&&this.calcItemSize(r)}else t.iconSize&&typeof t.iconSize=="number"&&this.recalcMinDimensionConst&&(n=t.iconSize);var o=n?n+2*this.paddingSizeConst:this.minDimensionConst;return t.canShrink?o+(t.needSeparator?this.separatorSize:0):t.maxDimension},i.prototype.calcItemsSizes=function(){var t=this;if(!(!this.container||this.isInitialized)){var e=this.model.actions,n=this.container.querySelectorAll(this.itemsSelector);(n||[]).forEach(function(r,o){var s=e[o];s&&t.calcActionDimensions(s,r)})}},i.prototype.calcActionDimensions=function(t,e){t.maxDimension=this.calcItemSize(e),t.minDimension=this.calcMinDimension(t,e)},Object.defineProperty(i.prototype,"isContainerVisible",{get:function(){return!!this.container&&ar(this.container)},enumerable:!1,configurable:!0}),i.prototype.process=function(){var t=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var e=function(){var r,o=t.dotsItemSize;if(!t.dotsItemSize){var s=(r=t.container)===null||r===void 0?void 0:r.querySelector(t.dotsIconClass);o=s&&t.calcItemSize(s)||t.dotsSizeConst}t.model.fit(t.getAvailableSpace(),o)};if(this.isInitialized)e();else{var n=function(){t.container&&(t.calcItemsSizes(),t.isInitialized=!0,e())};this.delayedUpdateFunction?this.delayedUpdateFunction(n):n()}}},i.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.container=void 0},i}(),Hl=function(i){zl(t,i);function t(e,n,r,o,s,a){s===void 0&&(s=40);var l=i.call(this,e,n,r,o,a)||this;return l.minDimensionConst=s,l.recalcMinDimensionConst=!1,l}return t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),n=this.container.offsetHeight;return e.boxSizing==="border-box"&&(n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),n},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,n){e.maxDimension=this.calcItemSize(n),e.minDimension=this.calcItemSize(n)},t}(Hn),O=function(){function i(){this.classes=[]}return i.prototype.isEmpty=function(){return this.toString()===""},i.prototype.append=function(t,e){return e===void 0&&(e=!0),t&&e&&(typeof t=="string"&&(t=t.trim()),this.classes.push(t)),this},i.prototype.toString=function(){return this.classes.join(" ")},i}(),Ul=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Un={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},Ee=function(i){Ul(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.sizeMode="default",e}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.actions.forEach(function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()})},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some(function(n){return n.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){e.setActionCssClasses(n)}),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter(function(e){return e.visible!==!1})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e=this.sizeMode==="small"?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new O().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return Un},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var n=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),mt(e,this.cssClasses),this.actions.forEach(function(r){n.setActionCssClasses(r)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof Zt?e:new $(e)},t.prototype.addAction=function(e,n){n===void 0&&(n=!0);var r=this.createAction(e);if(n&&!this.isActionVisible(r))return r;var o=[].concat(this.actions,r);return this.sortItems(o),this.actions=o,r},t.prototype.setItems=function(e,n){var r=this;n===void 0&&(n=!0);var o=[];e.forEach(function(s){(!n||r.isActionVisible(s))&&o.push(r.createAction(s))}),n&&this.sortItems(o),this.actions=o},t.prototype.sortItems=function(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)},t.prototype.hasSetVisibleIndex=function(e){for(var n=0;n<e.length;n++){var r=e[n].visibleIndex;if(r!==void 0&&r>=0)return!0}return!1},t.prototype.compareByVisibleIndex=function(e,n){return e.visibleIndex-n.visibleIndex},t.prototype.isActionVisible=function(e){return e.visibleIndex>=0||e.visibleIndex===void 0},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var n=this;e.isHovered=!0,this.actions.forEach(function(r){r===e&&e.popupModel&&(e.showPopupDelayed(n.subItemsShowDelay),n.popupAfterShowCallback(e))})},t.prototype.initResponsivityManager=function(e,n){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var n=0;n<this.actions.length;n++)if(this.actions[n].id===e)return this.actions[n];return null},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetResponsivityManager(),this.actions.forEach(function(e){return e.dispose()}),this.actions.length=0},Tt([ae({onSet:function(e,n){n.onSet()},onPush:function(e,n,r){r.onPush(e)},onRemove:function(e,n,r){r.onRemove(e)}})],t.prototype,"actions",void 0),Tt([h({})],t.prototype,"containerCss",void 0),Tt([h({defaultValue:!1})],t.prototype,"isEmpty",void 0),Tt([h({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),Tt([h({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(z),yt=function(){function i(){}return i.focusElement=function(t){t&&t.focus()},i.visibility=function(t){var e=I.getComputedStyle(t);return e.display==="none"||e.visibility==="hidden"?!1:t.parentElement?this.visibility(t.parentElement):!0},i.getNextElementPreorder=function(t){var e=t.nextElementSibling?t.nextElementSibling:t.parentElement.firstElementChild;return this.visibility(e)?e:this.getNextElementPreorder(e)},i.getNextElementPostorder=function(t){var e=t.previousElementSibling?t.previousElementSibling:t.parentElement.lastElementChild;return this.visibility(e)?e:this.getNextElementPostorder(e)},i.hasHorizontalScroller=function(t){return t?t.scrollWidth>t.offsetWidth:!1},i.hasVerticalScroller=function(t){return t?t.scrollHeight>t.offsetHeight:!1},i}(),Wl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ve=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},$l={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemGroupSelected:"sv-list__item--group-selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},Rt=function(i){Wl(t,i);function t(e,n,r,o,s){var a=i.call(this)||this;if(a.onSelectionChanged=n,a.allowSelection=r,a.elementId=s,a.onItemClick=function(u){if(!a.isItemDisabled(u)){a.isExpanded=!1,a.allowSelection&&(a.selectedItem=u),a.onSelectionChanged&&a.onSelectionChanged(u);var d=u.action;d&&d(u)}},a.onItemHover=function(u){a.mouseOverHandler(u)},a.isItemDisabled=function(u){return u.enabled!==void 0&&!u.enabled},a.isItemSelected=function(u){return a.areSameItems(a.selectedItem,u)},a.isItemFocused=function(u){return a.areSameItems(a.focusedItem,u)},a.getListClass=function(){return new O().append(a.cssClasses.itemsContainer).append(a.cssClasses.itemsContainerFiltering,!!a.filterString&&a.visibleActions.length!==a.visibleItems.length).toString()},a.getItemClass=function(u){var d=a.isItemSelected(u);return new O().append(a.cssClasses.item).append(a.cssClasses.itemWithIcon,!!u.iconName).append(a.cssClasses.itemDisabled,a.isItemDisabled(u)).append(a.cssClasses.itemFocused,a.isItemFocused(u)).append(a.cssClasses.itemSelected,!u.hasSubItems&&d).append(a.cssClasses.itemGroup,u.hasSubItems).append(a.cssClasses.itemGroupSelected,u.hasSubItems&&d).append(a.cssClasses.itemHovered,u.isHovered).append(a.cssClasses.itemTextWrap,a.textWrapEnabled).append(u.css).toString()},a.getItemStyle=function(u){var d=u.level||0;return{"--sjs-list-item-level":d+1}},Object.keys(e).indexOf("items")!==-1){var l=e;Object.keys(l).forEach(function(u){switch(u){case"items":a.setItems(l.items);break;case"onFilterStringChangedCallback":a.setOnFilterStringChangedCallback(l.onFilterStringChangedCallback);break;case"onTextSearchCallback":a.setOnTextSearchCallback(l.onTextSearchCallback);break;default:a[u]=l[u]}}),a.updateActionsIds()}else a.setItems(e),a.selectedItem=o;return a}return t.prototype.hasText=function(e,n){if(!n)return!0;var r=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,n);var o=r.toLocaleLowerCase();return o=b.comparator.normalizeTextCallback(o,"filter"),o.indexOf(n.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var e=i.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return e.forEach(function(r){n.push(r),r.items&&r.items.forEach(function(o){var s=new $(o);s.iconName||(s.iconName=r.iconName),n.push(s)})}),n}return e},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(n){return e.isItemVisible(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.updateIsEmpty()},t.prototype.updateIsEmpty=function(){var e=this;this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.scrollToItem=function(e,n){var r=this;n===void 0&&(n=0),setTimeout(function(){if(r.listContainerHtmlElement){var o=r.listContainerHtmlElement.querySelector(be(e));o&&setTimeout(function(){o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},n)}},n)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(e,n){n===void 0&&(n=!0),i.prototype.setItems.call(this,e,n),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.updateActionsIds=function(){var e=this;this.elementId&&this.renderedActions.forEach(function(n){n.elementId=e.elementId+n.id})},t.prototype.setSearchEnabled=function(e){this.searchEnabled=e,this.showSearchClearButton=e},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),i.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return $l},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener(function(){e.hidePopup()})},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,n){return this.areSameItemsCallback?this.areSameItemsCallback(e,n):!!e&&!!n&&e.id==n.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector(be(this.cssClasses.itemsContainer))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new $({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if(e.key==="ArrowDown"||e.keyCode===40){var n=e.target.parentElement,r=n.parentElement.querySelector("ul"),o=pu(r);r&&o&&(yt.focusElement(o),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var n=e.target;e.key==="ArrowDown"||e.keyCode===40?(yt.focusElement(yt.getNextElementPreorder(n)),e.preventDefault()):(e.key==="ArrowUp"||e.keyCode===38)&&(yt.focusElement(yt.getNextElementPostorder(n)),e.preventDefault())},t.prototype.onPointerDown=function(e,n){},t.prototype.refresh=function(){this.filterString!==""?this.filterString="":this.updateIsEmpty(),this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter(function(n){return n.visible&&e.isItemSelected(n)})[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}},t.prototype.focusPrevVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n-1];r?this.focusedItem=r:this.focusLastVisibleItem()}},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=yt.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.cssClasses.itemFocused)},t.prototype.scrollToSelectedItem=function(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,ve([h({defaultValue:!0,onSet:function(e,n){n.onSet()}})],t.prototype,"searchEnabled",void 0),ve([h({defaultValue:!1})],t.prototype,"showFilter",void 0),ve([h({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),ve([h({defaultValue:!1})],t.prototype,"isExpanded",void 0),ve([h({})],t.prototype,"selectedItem",void 0),ve([h()],t.prototype,"focusedItem",void 0),ve([h({onSet:function(e,n){n.onFilterStringChanged(n.filterString)}})],t.prototype,"filterString",void 0),ve([h({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),ve([h({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),ve([h({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),ve([h({defaultValue:!0})],t.prototype,"renderElements",void 0),ve([h({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),ve([h({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(Ee),Jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),he=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Et=function(i){Jl(t,i);function t(e,n,r,o){var s=i.call(this)||this;if(s.focusFirstInputSelector="",s.onCancel=function(){},s.onApply=function(){return!0},s.onHide=function(){},s.onShow=function(){},s.onDispose=function(){},s.onVisibilityChanged=s.addEvent(),s.onFooterActionsCreated=s.addEvent(),s.onRecalculatePosition=s.addEvent(),s.contentComponentName=e,s.contentComponentData=n,r&&typeof r=="string")s.verticalPosition=r,s.horizontalPosition=o;else if(r){var a=r;for(var l in a)s[l]=a[l]}return s}return t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var n={actions:e};return this.onFooterActionsCreated.fire(this,n),n.actions},t.prototype.updateDisplayMode=function(e){switch(this.displayMode!==e&&(this.setWidthByTarget=e==="dropdown"),e){case"dropdown":{this.displayMode="popup";break}case"popup":{this.displayMode="overlay",this.overlayDisplayMode="tablet-dropdown-overlay";break}case"overlay":{this.displayMode="overlay",this.overlayDisplayMode="dropdown-overlay";break}}},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.onDispose()},he([h()],t.prototype,"contentComponentName",void 0),he([h()],t.prototype,"contentComponentData",void 0),he([h({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),he([h({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),he([h({defaultValue:!0})],t.prototype,"showPointer",void 0),he([h({defaultValue:!1})],t.prototype,"isModal",void 0),he([h({defaultValue:!0})],t.prototype,"canShrink",void 0),he([h({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),he([h({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),he([h({defaultValue:""})],t.prototype,"cssClass",void 0),he([h({defaultValue:""})],t.prototype,"title",void 0),he([h({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),he([h({defaultValue:"popup"})],t.prototype,"displayMode",void 0),he([h({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(z);function Gl(i,t,e,n,r,o,s,a,l){return r===void 0&&(r=function(){}),o===void 0&&(o=function(){}),l===void 0&&(l="popup"),Fe.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:i,data:t,onApply:e,onCancel:n,onHide:r,onShow:o,cssClass:s,title:a,displayMode:l}}var ro=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),W=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Kl=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Yl(i,t,e){return t.locOwner=e,Wn(i,t,t)}function Wn(i,t,e){var n,r=t.onSelectionChanged;t.onSelectionChanged=function(l){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];a.hasTitle&&(a.title=l.title),r&&r(l,u)};var o=$n(t,e);o.getTargetCallback=io;var s=Object.assign({},i,{component:"sv-action-bar-item-dropdown",popupModel:o,action:function(l,u){i.action&&i.action(),o.isFocusedContent=o.isFocusedContent||!u,o.show()}}),a=new $(s);return a.data=(n=o.contentComponentData)===null||n===void 0?void 0:n.model,a}function $n(i,t){var e=new Rt(i);e.onSelectionChanged=function(o){i.onSelectionChanged&&i.onSelectionChanged(o),r.hide()};var n=t||{};n.onDispose=function(){e.dispose()};var r=new Et("sv-list",{model:e},n);return r.isFocusedContent=e.showFilter,r.onShow=function(){n.onShow&&n.onShow(),e.scrollToSelectedItem()},r}function io(i){return i==null?void 0:i.previousElementSibling}var Zt=function(i){ro(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.rendredIdValue=t.getNextRendredId(),e}return t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||Un},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&this.mode!=="popup"&&this.mode!=="removed"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.enabled!==void 0&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!this.disableShrink&&!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return(this.mode!="small"&&(this.showTitle||this.showTitle===void 0)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return new O().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new O().append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return new O().append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var n=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.showPopup()},e)},t.prototype.hidePopupDelayed=function(e){var n=this,r;!((r=this.popupModel)===null||r===void 0)&&r.isVisible?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,W([h()],t.prototype,"tooltip",void 0),W([h()],t.prototype,"showTitle",void 0),W([h()],t.prototype,"innerCss",void 0),W([h()],t.prototype,"active",void 0),W([h()],t.prototype,"pressed",void 0),W([h()],t.prototype,"data",void 0),W([h()],t.prototype,"popupModel",void 0),W([h()],t.prototype,"needSeparator",void 0),W([h()],t.prototype,"template",void 0),W([h({defaultValue:"large"})],t.prototype,"mode",void 0),W([h()],t.prototype,"visibleIndex",void 0),W([h()],t.prototype,"disableTabStop",void 0),W([h()],t.prototype,"disableShrink",void 0),W([h()],t.prototype,"disableHide",void 0),W([h({defaultValue:!1})],t.prototype,"needSpace",void 0),W([h()],t.prototype,"ariaChecked",void 0),W([h()],t.prototype,"ariaExpanded",void 0),W([h({defaultValue:"button"})],t.prototype,"ariaRole",void 0),W([h()],t.prototype,"iconName",void 0),W([h({defaultValue:24})],t.prototype,"iconSize",void 0),W([h()],t.prototype,"markerIconName",void 0),W([h()],t.prototype,"css",void 0),W([h({defaultValue:!1})],t.prototype,"isPressed",void 0),W([h({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(z),$=function(i){ro(t,i);function t(e){var n=i.call(this)||this;n.locTitleChanged=function(){var s=n.locTitle.renderedHtml;n.setPropertyValue("_title",s||void 0)};var r=e instanceof t?e.innerItem:e;if(n.innerItem=r,n.locTitle=r?r.locTitle:null,r)for(var o in r)o==="locTitle"||o==="title"&&n.locTitle&&n.title||(n[o]=r[o]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",function(){n.raiseUpdate(!0)}),n.locStrChangedInPopupModel(),n}return t.prototype.raiseUpdate=function(e){e===void 0&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=Kl([],e.items);var n=Object.assign({},e);n.searchEnabled=!1;var r=$n(n,{horizontalPosition:"right",showPointer:!1,canShrink:!1});r.cssClass="sv-popup-inner",this.popupModel=r},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){!e&&!this.locTitleValue&&(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.doAction=function(e){var n=e.originalEvent?e.originalEvent:e;return this.action(this,n.isTrusted),n.preventDefault(),n.stopPropagation(),!0},t.prototype.doMouseDown=function(e){this.isMouseDown=!0},t.prototype.doFocus=function(e){if(this.onFocus){var n=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,n)}this.isMouseDown=!1},t.prototype.locStrChangedInPopupModel=function(){if(!(!this.popupModel||!this.popupModel.contentComponentData||!this.popupModel.contentComponentData.model)){var e=this.popupModel.contentComponentData.model;if(Array.isArray(e.actions)){var n=e.actions;n.forEach(function(r){r.locStrsChanged&&r.locStrsChanged()})}}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=oe(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.owner?this.owner.getMarkdownHtml(e,n):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,i.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose()},W([h()],t.prototype,"id",void 0),W([h({defaultValue:!0,onSet:function(e,n){n.raiseUpdate()}})],t.prototype,"_visible",void 0),W([h({onSet:function(e,n){n.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),W([h()],t.prototype,"_enabled",void 0),W([h()],t.prototype,"action",void 0),W([h()],t.prototype,"onFocus",void 0),W([h()],t.prototype,"_component",void 0),W([h()],t.prototype,"items",void 0),W([h({onSet:function(e,n){n.locTitleValue.text!==e&&(n.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(Zt),Xl=function(){function i(t){this.item=t,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return i.prototype.setupPopupCallbacks=function(){var t=this,e=this.popupModel=this.item.popupModel;e&&e.registerPropertyChangedHandlers(["isVisible"],function(){e.isVisible?t.item.pressed=!0:t.item.pressed=!1},this.funcKey)},i.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},i.prototype.dispose=function(){this.removePopupCallbacks()},i}(),Zl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),en=function(i){Zl(t,i);function t(){var e=i.call(this)||this;return e.minVisibleItemsCount=0,e.isResponsivenessDisabled=!1,e.dotsItem=Wn({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:oe("more")},{items:[],allowSelection:!1}),e}return t.prototype.hideItemsGreaterN=function(e){var n=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-n.length));var r=[];n.forEach(function(o){e<=0&&(o.removePriority?o.mode="removed":(o.mode="popup",r.push(o.innerItem))),e--}),this.hiddenItemsListModel.setItems(r)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter(function(e){return!e.disableHide}).sort(function(e,n){return e.removePriority||0-n.removePriority||0})},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter(function(s){return s.disableHide}).forEach(function(s){return e-=s.minDimension});for(var n=this.getActionsToHide().map(function(s){return s.minDimension}),r=0,o=0;o<n.length;o++)if(r+=n[o],r>e)return o;return o},t.prototype.updateItemMode=function(e,n){for(var r=this.visibleActions,o=r.length-1;o>=0;o--)n>e&&!r[o].disableShrink?(n-=r[o].maxDimension-r[o].minDimension,r[o].mode="small"):r[o].mode="large";if(n>e){var s=this.visibleActions.filter(function(a){return a.removePriority});s.sort(function(a,l){return a.removePriority-l.removePriority});for(var o=0;o<s.length;o++)n>e&&(n-=r[o].disableShrink?s[o].maxDimension:s[o].minDimension,s[o].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){return n.updateCallback=function(r){return e.raiseUpdate(r)}}),i.prototype.onSet.call(this)},t.prototype.onPush=function(e){var n=this;e.updateCallback=function(r){return n.raiseUpdate(r)},i.prototype.onPush.call(this,e)},t.prototype.getRenderedActions=function(){return this.actions.length===1&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(e){this.isResponsivenessDisabled||i.prototype.raiseUpdate.call(this,e)},t.prototype.fit=function(e,n){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,o=0,s=this.visibleActions;s.forEach(function(a){r+=a.minDimension,o+=a.maxDimension}),e>=o?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-n)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,o)}},t.prototype.initResponsivityManager=function(e,n){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.responsivityManager=new Hn(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,n)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(n){e=="small"&&n.disableShrink?n.mode="large":n.mode=e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(Ee);(function(){function i(t,e){var n=this;e===void 0&&(e=!1),this.func=t,this.isMultiple=e,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return i.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),i})();function eu(i){var t=this,e=!1,n=!1,r;return{run:function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];n=!1,r=o,e||(e=!0,queueMicrotask(function(){n||i.apply(t,r),n=!1,e=!1}))},cancel:function(){n=!0}}}var It=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Jn=function(){function i(){this.cancelQueue=[]}return i.prototype.getMsFromRule=function(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3},i.prototype.reflow=function(t){return t.offsetHeight},i.prototype.getAnimationsCount=function(t){var e="";return getComputedStyle&&(e=getComputedStyle(t).animationName),e&&e!="none"?e.split(", ").length:0},i.prototype.getAnimationDuration=function(t){for(var e=getComputedStyle(t),n=e.animationDelay.split(", "),r=e.animationDuration.split(", "),o=0,s=0;s<Math.max(r.length,n.length);s++)o=Math.max(o,this.getMsFromRule(r[s%r.length])+this.getMsFromRule(n[s%n.length]));return o},i.prototype.addCancelCallback=function(t){this.cancelQueue.push(t)},i.prototype.removeCancelCallback=function(t){this.cancelQueue.indexOf(t)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(t),1)},i.prototype.onAnimationEnd=function(t,e,n){var r=this,o,s=this.getAnimationsCount(t),a=function(u){u===void 0&&(u=!0),e(u),clearTimeout(o),r.removeCancelCallback(a),t.removeEventListener("animationend",l)},l=function(u){u.target==u.currentTarget&&--s<=0&&a(!1)};s>0?(t.addEventListener("animationend",l),this.addCancelCallback(a),o=setTimeout(function(){a(!1)},this.getAnimationDuration(t)+10)):e(!0)},i.prototype.afterAnimationRun=function(t,e){t&&e&&e.onAfterRunAnimation&&e.onAfterRunAnimation(t)},i.prototype.beforeAnimationRun=function(t,e){t&&e&&e.onBeforeRunAnimation&&e.onBeforeRunAnimation(t)},i.prototype.getCssClasses=function(t){return t.cssClass.replace(/\s+$/,"").split(/\s+/)},i.prototype.runAnimation=function(t,e,n){t&&(e!=null&&e.cssClass)?(this.reflow(t),this.getCssClasses(e).forEach(function(r){t.classList.add(r)}),this.onAnimationEnd(t,n,e)):n(!0)},i.prototype.clearHtmlElement=function(t,e){t&&e.cssClass&&this.getCssClasses(e).forEach(function(n){t.classList.remove(n)}),this.afterAnimationRun(t,e)},i.prototype.onNextRender=function(t,e){var n=this;if(e===void 0&&(e=!1),!e&&E.isAvailable()){var r=function(){t(!0),cancelAnimationFrame(o)},o=E.requestAnimationFrame(function(){o=E.requestAnimationFrame(function(){t(!1),n.removeCancelCallback(r)})});this.addCancelCallback(r)}else t(!0)},i.prototype.cancel=function(){var t=[].concat(this.cancelQueue);t.forEach(function(e){return e()}),this.cancelQueue=[]},i}(),oo=function(i){It(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onEnter=function(e){var n=this,r=e.getAnimatedElement(),o=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,function(){n.clearHtmlElement(r,o)})},t.prototype.onLeave=function(e,n){var r=this,o=e.getAnimatedElement(),s=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(o,s),this.runAnimation(o,s,function(a){n(),r.onNextRender(function(){r.clearHtmlElement(o,s)},a)})},t}(Jn),Gn=function(i){It(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.runGroupAnimation=function(e,n,r,o,s){var a=this,l={isAddingRunning:n.length>0,isDeletingRunning:r.length>0,isReorderingRunning:o.length>0},u=n.map(function(A){return e.getAnimatedElement(A)}),d=n.map(function(A){return e.getEnterOptions?e.getEnterOptions(A,l):{}}),v=r.map(function(A){return e.getAnimatedElement(A)}),V=r.map(function(A){return e.getLeaveOptions?e.getLeaveOptions(A,l):{}}),T=o.map(function(A){return e.getAnimatedElement(A.item)}),R=o.map(function(A){return e.getReorderOptions?e.getReorderOptions(A.item,A.movedForward,l):{}});n.forEach(function(A,Q){a.beforeAnimationRun(u[Q],d[Q])}),r.forEach(function(A,Q){a.beforeAnimationRun(v[Q],V[Q])}),o.forEach(function(A,Q){a.beforeAnimationRun(T[Q],R[Q])});var N=n.length+r.length+T.length,j=function(A){--N<=0&&(s&&s(),a.onNextRender(function(){n.forEach(function(Q,re){a.clearHtmlElement(u[re],d[re])}),r.forEach(function(Q,re){a.clearHtmlElement(v[re],V[re])}),o.forEach(function(Q,re){a.clearHtmlElement(T[re],R[re])})},A))};n.forEach(function(A,Q){a.runAnimation(u[Q],d[Q],j)}),r.forEach(function(A,Q){a.runAnimation(v[Q],V[Q],j)}),o.forEach(function(A,Q){a.runAnimation(T[Q],R[Q],j)})},t}(Jn),tn=function(){function i(t,e,n){var r=this;this.animationOptions=t,this.update=e,this.getCurrentValue=n,this._debouncedSync=eu(function(o){r.cancelAnimations();try{r._sync(o)}catch{r.update(o)}})}return i.prototype.onNextRender=function(t,e){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var s=function(){r.remove(a),n.cancelCallback=void 0},a=function(l,u){u.isCancel?e&&e():t(),s()};this.cancelCallback=function(){e&&e(),s()},r.add(a)}else if(E.isAvailable()){var o=E.requestAnimationFrame(function(){t(),n.cancelCallback=void 0});this.cancelCallback=function(){e&&e(),cancelAnimationFrame(o),n.cancelCallback=void 0}}else throw new Error("Can't get next render")},i.prototype.sync=function(t){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(t):(this.cancel(),this.update(t))},i.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelAnimations()},i.prototype.cancelAnimations=function(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},i}(),Kn=function(i){It(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new oo,e}return t.prototype._sync=function(e){var n=this;e!==this.getCurrentValue()?e?(this.onNextRender(function(){n.animation.onEnter(n.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,function(){n.update(e)}):this.update(e)},t}(tn),Qe=function(i){It(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new Gn,e}return t.prototype._sync=function(e){var n=this,r,o;e=[].concat(e);var s=[].concat(this.getCurrentValue()),a=(r=this.animationOptions.allowSyncRemovalAddition)!==null&&r!==void 0?r:!0,l=yu(s,e,(o=this.animationOptions.getKey)!==null&&o!==void 0?o:function(R){return R});!a&&(l.reorderedItems.length>0||l.addedItems.length>0)&&(l.deletedItems=[],l.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(l);var u=l.addedItems,d=l.reorderedItems,v=l.deletedItems,V=l.mergedItems,T=function(){n.animation.runGroupAnimation(n.animationOptions,u,v,d,function(){v.length>0&&n.update(e)})};[u,v,d].some(function(R){return R.length>0})?v.length<=0||d.length>0||u.length>0?(this.onNextRender(T,function(){n.update(e)}),this.update(V)):T():this.update(e)},t}(tn),Yn=function(i){It(t,i);function t(e,n,r,o){var s=i.call(this,e,n,r)||this;return s.mergeValues=o,s.animation=new Gn,s}return t.prototype._sync=function(e){var n=this,r=[].concat(this.getCurrentValue());if(r[0]!==e[0]){var o=this.mergeValues?this.mergeValues(e,r):[].concat(r,e);this.onNextRender(function(){n.animation.runGroupAnimation(n.animationOptions,e,r,[],function(){n.update(e)})},function(){return n.update(e)}),this.update(o,!0)}else this.update(e)},t}(tn),so=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ie=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},nn=function(i){so(t,i);function t(){var e=i.call(this)||this;return e.createLocTitleProperty(),e}return t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setTitleValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.setTitleValue=function(e){this.setLocalizableStringText("title",e)},t.prototype.updateDescriptionVisibility=function(e){var n=!1;if(this.isDesignMode){var r=x.findProperty(this.getType(),"description");n=!!(r!=null&&r.placeholder)}this.hasDescription=!!e||n&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),n=this.getSurvey();return n?n.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return b.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},Ie([h({})],t.prototype,"hasDescription",void 0),Ie([h({localizable:!0,onSet:function(e,n){n.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(z),Xn;(function(i){i[i.InsideEmptyPanel=1]="InsideEmptyPanel",i[i.MultilineRight=2]="MultilineRight",i[i.MultilineLeft=3]="MultilineLeft",i[i.Top=4]="Top",i[i.Right=5]="Right",i[i.Bottom=6]="Bottom",i[i.Left=7]="Left"})(Xn||(Xn={}));var le=function(i){so(t,i);function t(e){var n=i.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n._renderedIsExpanded=!0,n._isAnimatingCollapseExpand=!1,n.animationCollapsed=new Kn(n.getExpandCollapseAnimationOptions(),function(r){n._renderedIsExpanded=r,n.animationAllowed&&(r?n.isAnimatingCollapseExpand=!0:n.updateElementCss(!1))},function(){return n.renderedIsExpanded}),n.onAfterRenderElement=n.addEvent(),n.name=e,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],function(){n.onReadOnlyChanged()}),n.registerPropertyChangedHandlers(["errors"],function(){n.updateVisibleErrors()}),n.registerPropertyChangedHandlers(["isSingleInRow"],function(){n.updateElementCss(!1)}),n.registerPropertyChangedHandlers(["minWidth","maxWidth","renderWidth","allowRootStyle","parent"],function(){n.updateRootStyle()}),n}return t.getProgressInfoByElements=function(e,n){for(var r=z.createProgressInfo(),o=0;o<e.length;o++)if(e[o].isVisible){var s=e[o].getProgressInfo();r.questionCount+=s.questionCount,r.answeredQuestionCount+=s.answeredQuestionCount,r.requiredQuestionCount+=s.requiredQuestionCount,r.requiredAnsweredQuestionCount+=s.requiredAnsweredQuestionCount}return n&&r.questionCount>0&&(r.requiredQuestionCount==0&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.IsNeedScrollIntoView=function(e,n,r){var o=r?-1:e.getBoundingClientRect().top,s=o<0,a=-1;if(!s&&n&&(a=e.getBoundingClientRect().left,s=a<0),!s&&E.isAvailable()){var l=E.getInnerHeight();if(s=l>0&&l<o,!s&&n){var u=E.getInnerWidth();s=u>0&&u<a}}return s},t.ScrollIntoView=function(e,n,r){if(e.scrollIntoView(n),typeof r=="function"){var o=null,s=0,a=function(){var l=e.getBoundingClientRect().top;if(l===o){if(s++>2){r();return}}else o=l,s=0;requestAnimationFrame(a)};E.requestAnimationFrame(a)}},t.ScrollElementToTop=function(e,n,r,o){var s=b.environment.root;if(!e||typeof s>"u")return!1;var a=s.getElementById(e);return t.ScrollElementToViewCore(a,!1,n,r,o)},t.ScrollElementToViewCore=function(e,n,r,o,s){if(!e||!e.scrollIntoView)return s&&s(),!1;var a=t.IsNeedScrollIntoView(e,n,r);return a?t.ScrollIntoView(e,o,s):s&&s(),a},t.GetFirstNonTextElement=function(e,n){if(n===void 0&&(n=!1),!e||!e.length||e.length==0)return null;if(n){var r=e[0];r.nodeName==="#text"&&(r.data=""),r=e[e.length-1],r.nodeName==="#text"&&(r.data="")}for(var o=0;o<e.length;o++)if(e[o].nodeName!="#text"&&e[o].nodeName!="#comment")return e[o];return null},t.FocusElement=function(e,n,r){if(!e||!I.isAvailable())return!1;var o=n?!1:t.focusElementCore(e,r);return o||setTimeout(function(){t.focusElementCore(e,r)},n?100:10),o},t.focusElementCore=function(e,n){var r=b.environment.root;if(!r&&!n)return!1;var o=n?n.querySelector("#"+CSS.escape(e)):r.getElementById(e);return o&&!o.disabled&&o.style.display!=="none"&&o.offsetParent!==null?(t.ScrollElementToViewCore(o,!0,!1),o.focus(),!0):!1},Object.defineProperty(t.prototype,"colSpan",{get:function(){return this.getPropertyValue("colSpan",1)},set:function(e){this.setPropertyValue("colSpan",e)},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="state"&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},t.prototype.updateElementVisibility=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!(this.state==="collapsed"&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return this.state==="collapsed"&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.state==="expanded"},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):this.isExpanded?(this.collapse(),!1):!0},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.locOwner=this,this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var n=e?new en:new Ee;return this.survey&&this.survey.getCss().actionBar&&(n.cssClasses=this.survey.getCss().actionBar),n},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.state!==void 0&&this.state!=="default"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return!this.isPage&&this.state!=="default"?0:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!(this.isPage||this.state==="default"))return this.state==="expanded"?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!(this.isPage||this.state==="default"))return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,n){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return i.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){b.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return this.surveyValue?this.surveyValue:(this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue)},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"skeletonHeight",{get:function(){var e=void 0;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+"px"),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){var e=this.getPropertyValueWithoutDefault("cssClassesValue");return!e&&!this.isCssValueCalculating&&(this.isCssValueCalculating=!0,e=this.createCssClassesValue(),this.isCssValueCalculating=!1),e},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||this.createCssClassesValue()},t.prototype.createCssClassesValue=function(){var e=this.calcCssClasses(this.css);return this.setPropertyValue("cssClassesValue",e),this.onCalcCssClasses(e),this.updateElementCssCore(this.cssClassesValue),e},t.prototype.onCalcCssClasses=function(e){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){var e=this.cssClasses;return e.requiredText||e.panel&&e.panel.requiredText},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.titleExpandableSvg},t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.resetPropertyValue("cssClassesValue")},t.prototype.getIsLoadingFromJson=function(){return i.prototype.getIsLoadingFromJson.call(this)?!0:this.surveyValue?this.surveyValue.isLoadingFromJson:!1},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var n=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&n&&this.onNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,n){this.data&&!this.isTwoValueEquals(n,this.data.getValue(e))&&this.data.setValue(e,n,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,n=0;n<this.errors.length;n++)this.errors[n].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRendered||(this.wasRenderedValue=!0,this.onFirstRenderingCore())},t.prototype.onFirstRenderingCore=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,n):this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.survey&&typeof this.survey.getRendererForString=="function"?this.survey.getRendererForString(this,e):this.locOwner&&typeof this.locOwner.getRenderer=="function"?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&typeof this.survey.getRendererContextForString=="function"?this.survey.getRendererContextForString(this,e):this.locOwner&&typeof this.locOwner.getRendererContext=="function"?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(!(!e||!Array.isArray(e))){var n=e.indexOf(this);n>-1&&e.splice(n,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return!e||!this.textProcessor?e:this.textProcessor.processText(e,!0)},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&e.isPage?e:null},t.prototype.moveToBase=function(e,n,r){if(r===void 0&&(r=null),!n)return!1;e.removeElement(this);var o=-1;return P.isNumber(r)&&(o=parseInt(r)),o==-1&&r&&r.getType&&(o=n.indexOf(r)),n.addElement(this,o),!0},t.prototype.setPage=function(e,n){var r=this.getPage(e);if(this.prevSurvey=this.survey,typeof n=="string"){var o=this.getSurvey();o.pages.forEach(function(s){n===s.name&&(n=s)})}r!==n&&(e&&e.removeElement(this),n&&n.addElement(this,-1),this.prevSurvey=void 0)},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&this.survey.getCss().root.indexOf("sd-root-modern")!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||this.parent===void 0},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return this.parent!==void 0&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var n=!!this.isCollapsed||!!this.isExpanded;return new O().append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,n&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,n).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){var e=this;return this.getPropertyValue("paddingLeft",void 0,function(){return e.calcPaddingLeft()})},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return""},Object.defineProperty(t.prototype,"paddingRight",{get:function(){var e=this;return this.getPropertyValue("paddingRight",void 0,function(){return e.calcPaddingRight()})},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingRight=function(){return""},t.prototype.resetIndents=function(){this.resetPropertyValue("paddingLeft"),this.resetPropertyValue("paddingRight")},t.prototype.updateRootStyle=function(){var e={},n;if(this.parent){var r=this.parent.getColumsForElement(this);n=r.reduce(function(a,l){return l.effectiveWidth+a},0),n&&n!==100&&(e.flexGrow=1,e.flexShrink=0,e.flexBasis=n+"%",e.minWidth=void 0,e.maxWidth=this.maxWidth)}if(Object.keys(e).length==0){var o=""+this.minWidth;if(o&&o!="auto"){if(o.indexOf("px")!=-1&&this.survey){o=o.replace("px","");var s=parseFloat(o);isNaN(s)||(o=s*this.survey.widthScale/100,o=""+o+"px")}o="min(100%, "+o+")"}this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=o,e.maxWidth=this.maxWidth)}this.rootStyle=e},t.prototype.isContainsSelection=function(e){var n=void 0,r=I.getDocument();if(I.isAvailable()&&r&&r.selection)n=r.selection.createRange().parentElement();else{var o=E.getSelection();if(o&&o.rangeCount>0){var s=o.getRangeAt(0);s.startOffset!==s.endOffset&&(n=s.startContainer.parentNode)}}return n==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(n){if(!(n&&e.isContainsSelection(n.target)))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return this.state!=="default"},t.prototype.processTitleClick=function(){this.state!=="default"&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){if(!e)return"";var n=this.state!=="default",r=4;return new O().append(e.title).append(e.titleNumInline,(this.no||"").length>r||n).append(e.titleExpandable,n).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var n=this.isPreviewStyle,r=e||this.isReadOnly,o=r&&!n,s=!this.isDefaultV2Theme&&(r||n);return[o,s]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&this.survey.state==="preview"},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach(function(e){e.updateText()})},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,n=function(o){e.isAnimatingCollapseExpand=!0,Ae(o)},r=function(o){e.isAnimatingCollapseExpand=!1,Ce(o)};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentEnter,onBeforeRunAnimation:n,onAfterRunAnimation:function(s){r(s),e.onElementExpanded(!0)}}},getLeaveOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getAnimatedElement:function(){var o,s=e.isPanel?e.cssClasses.panel:e.cssClasses;if(s.content){var a=be(s.content);if(a)return(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+a)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var n=this._renderedIsExpanded;this.animationCollapsed.sync(e),!this.isExpandCollapseAnimationEnabled&&!n&&this.renderedIsExpanded&&this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.afterRenderCore=function(e){this.onAfterRenderElement.fire(this,{htmlElement:e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,Ie([h({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),Ie([h({defaultValue:!1})],t.prototype,"isDragMe",void 0),Ie([h({onSet:function(e,n){n.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),Ie([h({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),Ie([h({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),Ie([h({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),Ie([h()],t.prototype,"rootStyle",void 0),Ie([h()],t.prototype,"_renderedIsExpanded",void 0),t}(nn),tu=function(){function i(t,e,n){var r=this;n===void 0&&(n=100),this._elements=t,this._renderedHandler=e,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=function(o,s){var a;(a=o.onAfterRenderElement)===null||a===void 0||a.remove(r._elementRenderedHandler),r._elementsToRenderCount--,r._elementsToRenderCount<=0&&r.visibleElementsRendered()},this._elements.forEach(function(o){o.onAfterRenderElement&&(o.onAfterRenderElement.add(r._elementRenderedHandler),r._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(function(){r._elementsToRenderCount>0&&r.visibleElementsRendered()},n):this.visibleElementsRendered()}return i.prototype.stopWaitingForElementsRendering=function(){var t=this;this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(function(e){var n;(n=e.onAfterRenderElement)===null||n===void 0||n.remove(t._elementRenderedHandler)}),this._elementsToRenderCount=0},i.prototype.visibleElementsRendered=function(){var t=this._renderedHandler;this.dispose(),typeof t=="function"&&t()},i.prototype.dispose=function(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0},i}(),Se=function(){function i(t,e,n,r){e===void 0&&(e=!1),this.owner=t,this.useMarkdown=e,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new Ve,this._localizationName=r,this.onCreating()}return Object.defineProperty(i,"defaultLocale",{get:function(){return b.localization.defaultLocaleName},set:function(t){b.localization.defaultLocaleName=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"localizationName",{get:function(){return this._localizationName},set:function(t){this._localizationName!=t&&(this._localizationName=t,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowLineBreaks",{get:function(){var t;return this._allowLineBreaks===void 0&&(this._allowLineBreaks=!1,this.name&&this.owner instanceof nn&&(this._allowLineBreaks=((t=x.findProperty(this.owner.getType(),this.name))===null||t===void 0?void 0:t.type)=="text")),this._allowLineBreaks},enumerable:!1,configurable:!0}),i.prototype.getIsMultiple=function(){return!1},Object.defineProperty(i.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var t=this.owner.getLocale();if(t||!this.sharedData)return t}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),i.prototype.strChanged=function(){this.searchableText=void 0,!(this.renderedText===void 0&&this.isEmpty&&!this.onGetTextCallback&&!this.localizationName)&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(i.prototype,"text",{get:function(){return this.pureText},set:function(t){this.setLocaleText(this.locale,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"calculatedText",{get:function(){return this.renderedText=this.calculatedTextValue!==void 0?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),i.prototype.calcText=function(){var t=this.pureText,e=t;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e,t)),e},Object.defineProperty(i.prototype,"pureText",{get:function(){var t=this.locale;t||(t=this.defaultLoc);var e=this.getValue(t);if(this.isValueEmpty(e)&&t===this.defaultLoc&&(e=this.getValue(ce.defaultLocale)),this.isValueEmpty(e)){var n=this.getRootDialect(t);n&&(e=this.getValue(n))}return this.isValueEmpty(e)&&t!==this.defaultLoc&&(e=this.getValue(this.defaultLoc)),this.isValueEmpty(e)&&this.getLocalizationName()&&(e=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(e=this.onGetLocalizationTextCallback(e))),e||(e=this.defaultValue||""),e},enumerable:!1,configurable:!0}),i.prototype.getRootDialect=function(t){if(!t)return t;var e=t.indexOf("-");return e>-1?t.substring(0,e):""},i.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},i.prototype.getLocalizationStr=function(){var t=this.getLocalizationName();return t?oe(t,this.locale):""},Object.defineProperty(i.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getLocaleTextCore(t);return e||""},i.prototype.getLocaleTextCore=function(t){return t||(t=this.defaultLoc),this.getValue(t)},i.prototype.isLocaleTextEqualsWithDefault=function(t,e){var n=this.getLocaleTextCore(t);return n===e?!0:this.isValueEmpty(n)&&this.isValueEmpty(e)},i.prototype.clear=function(){this.setJson(void 0)},i.prototype.clearLocale=function(t){this.setLocaleText(t,void 0)},i.prototype.setLocaleText=function(t,e){if(t=this.getValueLoc(t),t&&e===void 0){var n=this.getValue(t);n!==void 0&&(this.deleteValue(t),this.fireStrChanged(t,n));return}if(!this.storeDefaultText&&this.isLocaleTextEqualsWithDefault(t,e)){if(!this.isValueEmpty(e)||t&&t!==this.defaultLoc)return;var r=ce.defaultLocale,o=this.getValue(r);r&&!this.isValueEmpty(o)&&(this.setValue(r,e),this.fireStrChanged(r,o));return}if(!(!b.localization.storeDuplicatedTranslations&&!this.isValueEmpty(e)&&t&&t!=this.defaultLoc&&!this.getValue(t)&&e==this.getLocaleText(this.defaultLoc))){var s=this.curLocale;t||(t=this.defaultLoc);var a=this.onStrChanged&&t===s?this.pureText:void 0;delete this.htmlValues[t],this.isValueEmpty(e)?this.deleteValue(t):typeof e=="string"&&(this.canRemoveLocValue(t,e)?this.setLocaleText(t,null):(this.setValue(t,e),t==this.defaultLoc&&this.deleteValuesEqualsToDefault(e))),this.fireStrChanged(t,a)}},i.prototype.isValueEmpty=function(t){return t==null?!0:this.localizationName?!1:t===""},Object.defineProperty(i.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),i.prototype.canRemoveLocValue=function(t,e){if(b.localization.storeDuplicatedTranslations||t===this.defaultLoc)return!1;var n=this.getRootDialect(t);if(n){var r=this.getLocaleText(n);return r?r==e:this.canRemoveLocValue(n,e)}else return e==this.getLocaleText(this.defaultLoc)},i.prototype.fireStrChanged=function(t,e){if(this.strChanged(),!!this.onStrChanged){var n=this.pureText;(t!==this.curLocale||e!==n)&&this.onStrChanged(e,n)}},i.prototype.hasNonDefaultText=function(){var t=this.getValuesKeys();return t.length==0?!1:t.length>1||t[0]!=this.defaultLoc},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var t=this.getValuesKeys();if(t.length==0){if(this.serializeCallBackText){var e=this.calcText();if(e)return e}return null}if(t.length==1&&t[0]==b.localization.defaultLocaleName&&!b.serialization.localizableStringSerializeAsObject)return this.values[t[0]];var n={};for(var r in this.values)n[r]=this.values[r];return n},i.prototype.setJson=function(t,e){if(this.sharedData){this.sharedData.setJson(t,e);return}if(this.values={},this.htmlValues={},t!=null)if(e)typeof t=="string"?this.values[b.defaultLocaleName]=t:(this.values=t,delete this.values.pos);else{if(typeof t=="string")this.setLocaleText(null,t);else for(var n in t)this.setLocaleText(n,t[n]);this.strChanged()}},Object.defineProperty(i.prototype,"renderAs",{get:function(){return!this.owner||typeof this.owner.getRenderer!="function"?i.defaultRenderer:this.owner.getRenderer(this.name)||i.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderAsData",{get:function(){return!this.owner||typeof this.owner.getRendererContext!="function"?this:this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),i.prototype.equals=function(t){return this.sharedData?this.sharedData.equals(t):!t||!t.values?!1:P.isTwoValueEquals(this.values,t.values,!1,!0,!1)},i.prototype.setFindText=function(t){if(this.searchText!=t){if(this.searchText=t,!this.searchableText){var e=this.textOrHtml;this.searchableText=e?e.toLowerCase():""}var n=this.searchableText,r=n&&t?n.indexOf(t):void 0;return r<0&&(r=void 0),(r!=null||this.searchIndex!=r)&&(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),this.searchIndex!=null}},i.prototype.onChanged=function(){},i.prototype.onCreating=function(){},i.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var t=this.locale;if(t||(t=this.defaultLoc),this.htmlValues[t]!==void 0)return!!this.htmlValues[t];var e=this.calculatedText;if(!e)return this.setHtmlValue(t,""),!1;if(this.getLocalizationName()&&e===this.getLocalizationStr())return this.setHtmlValue(t,""),!1;var n=this.owner.getMarkdownHtml(e,this.name);return this.setHtmlValue(t,n),!!n},i.prototype.setHtmlValue=function(t,e){this.htmlValues[t]=e},i.prototype.getHtmlValue=function(){var t=this.locale;return t||(t=this.defaultLoc),this.htmlValues[t]},i.prototype.deleteValuesEqualsToDefault=function(t){if(!b.localization.storeDuplicatedTranslations)for(var e=this.getValuesKeys(),n=0;n<e.length;n++)e[n]!=this.defaultLoc&&this.getValue(e[n])==t&&this.deleteValue(e[n])},i.prototype.getValue=function(t){return this.sharedData?this.sharedData.getValue(t):this.values[this.getValueLoc(t)]},i.prototype.setValue=function(t,e){this.sharedData?this.sharedData.setValue(t,e):this.values[this.getValueLoc(t)]=e},i.prototype.deleteValue=function(t){this.sharedData?this.sharedData.deleteValue(t):delete this.values[this.getValueLoc(t)]},i.prototype.getValueLoc=function(t){return this.disableLocalization?b.localization.defaultLocaleName:t},i.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(i.prototype,"defaultLoc",{get:function(){return b.localization.defaultLocaleName},enumerable:!1,configurable:!0}),i.SerializeAsObject=!1,i.defaultRenderer="sv-string-viewer",i.editableRenderer="sv-string-editor",i}(),ao=function(){function i(t){this.owner=t,this.values={}}return i.prototype.getIsMultiple=function(){return!0},Object.defineProperty(i.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue("")},set:function(t){this.setValue("",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join(`
+`):""},set:function(t){this.value=t?t.split(`
+`):[]},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getValueCore(t,!t||t===this.locale);return!e||!Array.isArray(e)||e.length==0?"":e.join(`
+`)},i.prototype.setLocaleText=function(t,e){var n=e?e.split(`
+`):null;this.setValue(t,n)},i.prototype.getValue=function(t){return this.getValueCore(t)},i.prototype.getValueCore=function(t,e){if(e===void 0&&(e=!0),t=this.getLocale(t),this.values[t])return this.values[t];if(e){var n=b.localization.defaultLocaleName;if(t!==n&&this.values[n])return this.values[n]}return[]},i.prototype.setValue=function(t,e){t=this.getLocale(t);var n=P.createCopy(this.values);!e||e.length==0?delete this.values[t]:this.values[t]=e,this.onValueChanged&&this.onValueChanged(n,this.values)},i.prototype.hasValue=function(t){return t===void 0&&(t=""),!this.isEmpty&&this.getValue(t).length>0},Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),i.prototype.getLocale=function(t){return t||(t=this.locale,t||b.localization.defaultLocaleName)},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){var t=this.getValuesKeys();return t.length==0?null:t.length==1&&t[0]==b.localization.defaultLocaleName&&!b.serialization.localizableStringSerializeAsObject?this.values[t[0]]:P.createCopy(this.values)},i.prototype.setJson=function(t){if(this.values={},!!t)if(Array.isArray(t))this.setValue(null,t);else for(var e in t)this.setValue(e,t[e])},i.prototype.getValuesKeys=function(){return Object.keys(this.values)},i}();function lo(i){return b&&b.confirmActionFunc?b.confirmActionFunc(i):confirm(i)}function At(i){var t=function(e){e?i.funcOnYes():i.funcOnNo&&i.funcOnNo()};b&&b.confirmActionAsync&&b.confirmActionAsync(i.message,t,i)||t(lo(i.message))}function Dt(){if(typeof Dt.isIEOrEdge>"u"){var i=navigator.userAgent,t=i.indexOf("MSIE "),e=i.indexOf("Trident/"),n=i.indexOf("Edge/");Dt.isIEOrEdge=n>0||e>0||t>0}return Dt.isIEOrEdge}function uo(i,t){try{for(var e=atob(i.split(",")[1]),n=i.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),o=new Uint8Array(r),s=0;s<e.length;s++)o[s]=e.charCodeAt(s);var a=new Blob([r],{type:n});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch{}}function nu(){return E.isAvailable()&&E.hasOwn("orientation")}var Lt=function(i){return!!i&&!!("host"in i&&i.host)},Zn=function(i){var t=b.environment.root;return typeof i=="string"?t.getElementById(i):i};function ru(i,t){if(typeof b.environment>"u")return!1;var e=b.environment.root,n=Lt(e)?e.host.clientHeight:e.documentElement.clientHeight,r=i.getBoundingClientRect(),o=Math.max(n,E.getInnerHeight()),s=-50,a=o+t,l=r.top,u=r.bottom,d=Math.max(s,l),v=Math.min(a,u);return d<=v}function rn(i){var t=b.environment.root;return i?i.scrollHeight>i.clientHeight&&(getComputedStyle(i).overflowY==="scroll"||getComputedStyle(i).overflowY==="auto")||i.scrollWidth>i.clientWidth&&(getComputedStyle(i).overflowX==="scroll"||getComputedStyle(i).overflowX==="auto")?i:rn(i.parentElement):Lt(t)?t.host:t.documentElement}function er(i){var t=b.environment;if(t){var e=t.root,n=e.getElementById(i);if(n){var r=rn(n);r&&setTimeout(function(){return r.dispatchEvent(new CustomEvent("scroll"))},10)}}}function iu(i){var t=E.getLocation();!i||!t||(t.href=lu(i))}function tr(i){return i?["url(",i,")"].join(""):""}function ou(i){return typeof i=="string"?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(i):null}var nr={changecamera:"flip-24x24",clear:"clear-24x24",cancel:"cancel-24x24",closecamera:"close-24x24",defaultfile:"file-72x72",choosefile:"folder-24x24",file:"toolbox-file-24x24",left:"chevronleft-16x16",modernbooleancheckchecked:"plus-32x32",modernbooleancheckunchecked:"minus-32x32",more:"more-24x24",navmenu_24x24:"navmenu-24x24",removefile:"error-24x24",takepicture:"camera-32x32",takepicture_24x24:"camera-24x24",v2check:"check-16x16",checked:"check-16x16",v2check_24x24:"check-24x24","back-to-panel_16x16":"restoredown-16x16",clear_16x16:"clear-16x16",close_16x16:"close-16x16",collapsedetail:"collapsedetails-16x16",expanddetail:"expanddetails-16x16","full-screen_16x16":"maximize-16x16",loading:"loading-48x48",minimize_16x16:"minimize-16x16",next_16x16:"chevronright-16x16",previous_16x16:"chevronleft-16x16","no-image":"noimage-48x48","ranking-dash":"rankingundefined-16x16","drag-n-drop":"drag-24x24","ranking-arrows":"reorder-24x24",restore_16x16:"fullsize-16x16",reset:"restore-24x24",search:"search-24x24",average:"smiley-rate5-24x24",excellent:"smiley-rate9-24x24",good:"smiley-rate7-24x24",normal:"smiley-rate6-24x24","not-good":"smiley-rate4-24x24",perfect:"smiley-rate10-24x24",poor:"smiley-rate3-24x24",terrible:"smiley-rate1-24x24","very-good":"smiley-rate8-24x24","very-poor":"smiley-rate2-24x24",add_16x16:"add-16x16",add_24x24:"add-24x24",alert_24x24:"warning-24x24",apply:"apply-24x24","arrow-down":"arrowdown-24x24","arrow-left":"arrowleft-24x24","arrow-left_16x16":"arrowleft-16x16",arrowleft:"arrowleft-16x16","arrow-right":"arrowright-24x24","arrow-right_16x16":"arrowright-16x16",arrowright:"arrowright-16x16","arrow-up":"arrowup-24x24",boolean:"toolbox-boolean-24x24","change-question-type_16x16":"speechbubble-16x16",checkbox:"toolbox-checkbox-24x24","collapse-detail_16x16":"minusbox-16x16","collapse-panel":"collapse-pg-24x24",collapse_16x16:"collapse-16x16","color-picker":"dropper-16x16",comment:"toolbox-longtext-24x24",config:"wrench-24x24",copy:"copy-24x24",default:"toolbox-customquestion-24x24",delete_16x16:"delete-16x16",delete_24x24:"delete-24x24",delete:"delete-24x24","description-hide":"hidehint-16x16",description:"hint-16x16","device-desktop":"desktop-24x24","device-phone":"phone-24x24","device-rotate":"rotate-24x24","device-tablet":"tablet-24x24",download:"download-24x24","drag-area-indicator":"drag-24x24","drag-area-indicator_24x16":"draghorizontal-24x16",v2dragelement_16x16:"draghorizontal-24x16","drop-down-arrow":"chevrondown-24x24","drop-down-arrow_16x16":"chevrondown-16x16",chevron_16x16:"chevrondown-16x16",dropdown:"toolbox-dropdown-24x24",duplicate_16x16:"copy-16x16",edit:"edit-24x24",edit_16x16:"edit-16x16","editing-finish":"finishedit-24x24",error:"error-16x16","expand-detail_16x16":"plusbox-16x16","expand-panel":"expand-pg-24x24",expand_16x16:"expand-16x16",expression:"toolbox-expression-24x24","fast-entry":"textedit-24x24",fix:"fix-24x24",html:"toolbox-html-24x24",image:"toolbox-image-24x24",imagepicker:"toolbox-imagepicker-24x24",import:"import-24x24","invisible-items":"invisible-24x24",language:"language-24x24",load:"import-24x24","logic-collapse":"collapse-24x24","logic-expand":"expand-24x24",logo:"image-48x48",matrix:"toolbox-matrix-24x24",matrixdropdown:"toolbox-multimatrix-24x24",matrixdynamic:"toolbox-dynamicmatrix-24x24",multipletext:"toolbox-multipletext-24x24",panel:"toolbox-panel-24x24",paneldynamic:"toolbox-dynamicpanel-24x24",preview:"preview-24x24",radiogroup:"toolbox-radiogroup-24x24",ranking:"toolbox-ranking-24x24",rating:"toolbox-rating-24x24",redo:"redo-24x24",remove_16x16:"remove-16x16",required:"required-16x16",save:"save-24x24","select-page":"selectpage-24x24",settings:"settings-24x24",settings_16x16:"settings-16x16",signaturepad:"toolbox-signature-24x24","switch-active_16x16":"switchon-16x16","switch-inactive_16x16":"switchoff-16x16",tagbox:"toolbox-tagbox-24x24",text:"toolbox-singleline-24x24",theme:"theme-24x24",toolbox:"toolbox-24x24",undo:"undo-24x24",visible:"visible-24x24",wizard:"wand-24x24",searchclear:"clear-16x16","chevron-16x16":"chevrondown-16x16",chevron:"chevrondown-24x24",progressbuttonv2:"arrowleft-16x16",right:"chevronright-16x16","add-lg":"add-24x24",add:"add-24x24"};function co(i){var t=su(i);return t||rr(i)}function rr(i){var t="icon-",e=i.replace(t,""),n=nr[e]||e;return t+n}function su(i){var t=b.customIcons[i];return t?rr(t):(i=rr(i),t=b.customIcons[i],t||null)}function au(i,t,e,n,r,o){if(r){i!=="auto"&&(r.style.width=(i||t||16)+"px",r.style.height=(i||e||16)+"px");var s=r.childNodes[0],a=co(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=r.getElementsByTagName("title")[0];if(o)l||(l=I.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),r.appendChild(l));else{l&&r.removeChild(l);return}l.textContent=o}}function lu(i){return i&&(i.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(i):i)}function uu(i){return typeof i!="function"?i:i()}function nt(i){if(typeof i=="string")if(isNaN(Number(i))){if(i.includes("px"))return parseFloat(i)}else return Number(i);if(typeof i=="number")return i}function on(i){if(nt(i)===void 0)return i}var ir="sv-focused--by-key";function fo(i){var t=i.target;!t||!t.classList||t.classList.remove(ir)}function po(i,t){if(!(i.target&&i.target.contentEditable==="true")){var e=i.target;if(e){var n=i.which||i.keyCode;if(n===9){e.classList&&!e.classList.contains(ir)&&e.classList.add(ir);return}if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}n===13||n===32?e.click&&e.click():(!t||t.processEsc)&&n===27&&e.blur&&e.blur()}}}function cu(i,t){if(t===void 0&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!(i.target&&i.target.contentEditable==="true")){var e=i.which||i.keyCode,n=[13,32];t.processEsc&&n.push(27),n.indexOf(e)!==-1&&i.preventDefault()}}function or(i,t){if(i){t||(t=function(n){return I.getComputedStyle(n)});var e=t(i);i.style.height="auto",i.scrollHeight&&(i.style.height=i.scrollHeight+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+"px")}}function fu(i){return i.originalEvent||i}function ho(i){i.preventDefault(),i.stopPropagation()}function be(i){if(!i)return i;var t=/\s*?([\w-]+)\s*?/g;return i.replace(t,".$1")}function sr(i){return getComputedStyle?Number.parseFloat(getComputedStyle(i).width):i.offsetWidth}function ar(i){return!!(i.offsetWidth||i.offsetHeight||i.getClientRects().length)}function pu(i){for(var t,e=0;e<i.children.length;e++)!t&&getComputedStyle(i.children[e]).display!=="none"&&(t=i.children[e]);return t}function du(i,t){if(t===void 0&&(t=!0),E.isAvailable()&&I.isAvailable()&&i.childNodes.length>0){var e=E.getSelection();if(e.rangeCount==0)return;var n=e.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(i.lastChild),e.removeAllRanges(),e.addRange(n);var r=e.toString(),o=i.innerText;r=r.replace(/\r/g,""),t&&(r=r.replace(/\n/g,""),o=o.replace(/\n/g,""));var s=r.length;for(i.innerText=o,n=I.getDocument().createRange(),n.setStart(i.firstChild,0),n.setEnd(i.firstChild,0),e.removeAllRanges(),e.addRange(n);e.toString().length<o.length-s;){var a=e.toString().length;if(e.modify("extend","forward","character"),e.toString().length==a)break}n=e.getRangeAt(0),n.setStart(n.endContainer,n.endOffset)}}function mt(i,t){if(!(!t||!i)&&typeof t=="object")for(var e in i){var n=i[e];!Array.isArray(n)&&n&&typeof n=="object"?((!t[e]||typeof t[e]!="object")&&(t[e]={}),mt(n,t[e])):t[e]=n}}function lr(i,t){var e={};mt(t.list,e),mt(i.list,e),i.list=e}(function(){function i(){this._result=""}return i.prototype.log=function(t){this._result+="->"+t},Object.defineProperty(i.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),i})();function hu(i,t,e){var n=new Se(void 0),r=b.showDialog({componentName:"sv-string-viewer",data:{locStr:n,locString:n,model:n},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:i||e.message,displayMode:"popup",isFocusedContent:!1,cssClass:e.cssClass||"sv-popup--confirm"},e.rootElement),o=r.footerToolbar,s=o.getActionById("apply"),a=o.getActionById("cancel");return a.title=oe("cancel",e.locale),a.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",s.title=e.applyTitle||oe("ok",e.locale),s.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",gu(r),!0}function gu(i){i.width="min-content"}function go(i,t){E.isFileReaderAvailable()&&(i.value="",i.onchange=function(e){if(E.isFileReaderAvailable()&&!(!i||!i.files||i.files.length<1)){for(var n=[],r=0;r<i.files.length;r++)n.push(i.files[r]);t(n)}},i.click())}function yu(i,t,e){var n=new Map,r=new Map,o=new Map,s=new Map;i.forEach(function(j){var A=e(j);if(!n.has(A))n.set(e(j),j);else throw new Error("keys must be unique")}),t.forEach(function(j){var A=e(j);if(!r.has(A))r.set(A,j);else throw new Error("keys must be unique")});var a=[],l=[];r.forEach(function(j,A){n.has(A)?o.set(A,o.size):a.push(j)}),n.forEach(function(j,A){r.has(A)?s.set(A,s.size):l.push(j)});var u=[];o.forEach(function(j,A){var Q=s.get(A),re=r.get(A);Q!==j&&u.push({item:re,movedForward:Q<j})});var d=new Array(i.length),v=0,V=Array.from(o.keys());i.forEach(function(j,A){o.has(e(j))?(d[A]=r.get(V[v]),v++):d[A]=j});var T=new Map,R=[];d.forEach(function(j){var A=e(j);r.has(A)?R.length>0&&(T.set(A,R),R=[]):R.push(j)});var N=new Array;return r.forEach(function(j,A){T.has(A)&&T.get(A).forEach(function(Q){N.push(Q)}),N.push(j)}),R.forEach(function(j){N.push(j)}),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:N}}function mu(i){if(I.isAvailable()){var t=I.getComputedStyle(i),e=t.paddingTop,n=t.paddingBottom,r=t.borderTopWidth,o=t.borderBottomWidth,s=t.marginTop,a=t.marginBottom,l=t.boxSizing,u=i.offsetHeight+"px";if(l=="content-box"){var d=i.offsetHeight;[o,r,n,e].forEach(function(v){d-=parseFloat(v)}),u=d+"px"}return{paddingTop:e,paddingBottom:n,borderTopWidth:r,borderBottomWidth:o,marginTop:s,marginBottom:a,heightFrom:"0px",heightTo:u}}else return}function Mt(i,t,e){var n;e===void 0&&(e="--animation-"),i.__sv_created_properties=(n=i.__sv_created_properties)!==null&&n!==void 0?n:[],Object.keys(t).forEach(function(r){var o=""+e+r.split(/\.?(?=[A-Z])/).join("-").toLowerCase();i.style.setProperty(o,t[r]),i.__sv_created_properties.push(o)})}function Ae(i){Mt(i,mu(i))}function Ce(i){Array.isArray(i.__sv_created_properties)&&(i.__sv_created_properties.forEach(function(t){i.style.removeProperty(t)}),delete i.__sv_created_properties)}function vu(i){return Math.floor(i*100)/100}var sn=typeof globalThis<"u"?globalThis.document:(void 0).document,bu=sn?{root:sn,_rootElement:I.getBody(),get rootElement(){var i;return(i=this._rootElement)!==null&&i!==void 0?i:I.getBody()},set rootElement(i){this._rootElement=i},_popupMountContainer:I.getBody(),get popupMountContainer(){var i;return(i=this._popupMountContainer)!==null&&i!==void 0?i:I.getBody()},set popupMountContainer(i){this._popupMountContainer=i},svgMountContainer:sn.head,stylesSheetsMountContainer:sn.head}:void 0,Cu={file:{minWidth:"240px"},comment:{minWidth:"200px"}},b={version:"",designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(i){this.designMode.showEmptyDescriptions=i},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(i){this.designMode.showEmptyTitles=i},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(i){this.localization.useLocalTimeZone=i},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(i){this.localization.storeDuplicatedTranslations=i},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(i){this.localization.defaultLocaleName=i},web:{onBeforeRequestChoices:function(i,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(i){this.web.encodeUrlParams=i},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(i){this.web.cacheLoadedChoices=i},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(i){this.web.cacheLoadedChoices=i},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(i){this.web.disableQuestionWhileLoadingChoices=i},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(i){this.web.surveyServiceUrl=i},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(i){this.triggers.executeCompleteOnValueChanged=i},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(i){this.triggers.changeNavigationButtonsOnComplete=i},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(i){this.triggers.executeSkipOnValueChanged=i},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(i){this.serialization.itemValueSerializeAsObject=i},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(i){this.serialization.itemValueSerializeDisplayText=i},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(i){this.serialization.localizableStringSerializeAsObject=i},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(i){this.lazyRender.enabled=i},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(i){this.lazyRender.firstBatchSize=i},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:Cu,rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(i){this.matrix.defaultRowName=i},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(i){this.matrix.defaultCellType=i},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(i){this.matrix.totalsSuffix=i},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(i){this.matrix.maxRowCount=i},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(i){this.matrix.maxRowCountInCondition=i},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(i){this.matrix.renderRemoveAsIcon=i},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(i){this.panel.maxPanelCountInCondition=i},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(i){this.panel.maxPanelCount=i},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(i){this.readOnly.commentRenderMode=i},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(i){this.readOnly.textRenderMode=i},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(i){this.numbering.includeQuestionsWithHiddenTitle=i},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(i){this.numbering.includeQuestionsWithHiddenNumber=i},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(i,t){return i}},expressionDisableConversionChar:"#",get commentPrefix(){return b.commentSuffix},set commentPrefix(i){b.commentSuffix=i},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(i){return confirm(i)},confirmActionAsync:function(i,t,e){return hu(i,t,e)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:bu,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}},storeUtcDates:!1,onDateCreated:function(i,t,e){return i},parseNumber:function(i,t){return t}},ge=function(){function i(t,e){t===void 0&&(t=null),e===void 0&&(e=null),this.text=t,this.errorOwner=e,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return i.prototype.equals=function(t){return!t||!t.getErrorType||this.getErrorType()!==t.getErrorType()?!1:this.text===t.text&&this.visible===t.visible},Object.defineProperty(i.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new Se(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),i.prototype.getText=function(){var t=this.text;return t||(t=this.getDefaultText()),this.errorOwner&&(t=this.errorOwner.getErrorCustomText(t,this)),t},i.prototype.getErrorType=function(){return"base"},i.prototype.getDefaultText=function(){return""},i.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},i.prototype.getLocalizationString=function(t){return oe(t,this.getLocale())},i.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},i}(),Pe=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yo=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(ge),mo=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(ge),vo=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(ge),bo=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.maxSize=e,r.locText.text=r.getText(),r}return t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return oe("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],n=[0,0,2,3,3];if(this.maxSize===0)return"0 Byte";var r=Math.floor(Math.log(this.maxSize)/Math.log(1024)),o=this.maxSize/Math.pow(1024,r);return o.toFixed(n[r])+" "+e[r]},t}(ge),Pu=function(i){Pe(t,i);function t(e,n,r){r===void 0&&(r=null);var o=i.call(this,null,r)||this;return o.status=e,o.response=n,o}return t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(ge),Vu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(ge),wu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(ge),an=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(ge),xu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(ge),Ou=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(ge),Su=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.minRowCount=e,r}return t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return oe("minRowCountError").format(this.minRowCount)},t}(ge),Co=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(ge),we=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"custom"},t}(ge),rt=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Te=function(){function i(t,e){e===void 0&&(e=null),this.value=t,this.error=e}return i}(),it=function(i){rt(t,i);function t(){var e=i.call(this)||this;return e.createLocalizableString("text",e,!0),e}return Object.defineProperty(t.prototype,"isValidator",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,n,r,o){return null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var n=this,r=new we(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(o){return o.text=n.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(z),Po=function(){function i(){}return i.prototype.run=function(t){var e=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var s=[],a=t.getValidators(),l=0;l<a.length;l++){var u=a[l];!r&&u.isValidateAllValues&&(r=t.getDataFilteredValues(),o=t.getDataFilteredProperties()),u.isAsync&&(this.asyncValidators.push(u),u.onAsyncCompleted=function(v){if(v&&v.error&&s.push(v.error),!!e.onAsyncCompleted){for(var V=0;V<e.asyncValidators.length;V++)if(e.asyncValidators[V].isRunning)return;e.onAsyncCompleted(s)}})}a=t.getValidators();for(var l=0;l<a.length;l++){var u=a[l],d=u.validate(t.validatedValue,t.getValidatorTitle(),r,o);d&&d.error&&n.push(d.error)}return this.asyncValidators.length==0&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},i.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var t=0;t<this.asyncValidators.length;t++)this.asyncValidators[t].onAsyncCompleted=null;this.asyncValidators=[]},i}(),Vo=function(i){rt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minValue=e,r.maxValue=n,r}return t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!P.isNumber(e))return new Te(null,new vo(this.text,this.errorOwner));var s=new Te(P.getNumber(e));return this.minValue!==null&&this.minValue>s.value?(s.error=this.createCustomError(n),s):this.maxValue!==null&&this.maxValue<s.value?(s.error=this.createCustomError(n),s):typeof e=="number"?null:s},t.prototype.getDefaultErrorText=function(e){var n=e||this.getLocalizationString("value");return this.minValue!==null&&this.maxValue!==null?this.getLocalizationFormatString("numericMinMax",n,this.minValue,this.maxValue):this.minValue!==null?this.getLocalizationFormatString("numericMin",n,this.minValue):this.getLocalizationFormatString("numericMax",n,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(it),wo=function(i){rt(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!this.allowDigits){var s=/\d+$/;if(s.test(e))return new Te(null,this.createCustomError("textNoDigitsAllow"))}return this.minLength>0&&e.length<this.minLength?new Te(null,this.createCustomError(n)):this.maxLength>0&&e.length>this.maxLength?new Te(null,this.createCustomError(n)):null},t.prototype.getDefaultErrorText=function(e){return e==="textNoDigitsAllow"?this.getLocalizationString(e):this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(it),xo=function(i){rt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minCount=e,r.maxCount=n,r}return t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,n,r,o){if(e==null||e.constructor!=Array)return null;var s=e.length;return s==0?null:this.minCount&&s<this.minCount?new Te(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&s>this.maxCount?new Te(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(it),Oo=function(i){rt(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.regex=e,n}return t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),!this.regex||this.isValueEmpty(e))return null;var s=this.createRegExp();if(Array.isArray(e))for(var a=0;a<e.length;a++){var l=this.hasError(s,e[a],n);if(l)return l}return this.hasError(s,e,n)},t.prototype.hasError=function(e,n,r){return e.test(n)?null:new Te(n,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caseInsensitive",{get:function(){return this.getPropertyValue("caseInsensitive")},set:function(e){this.setPropertyValue("caseInsensitive",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.caseInsensitive},set:function(e){this.caseInsensitive=e},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.caseInsensitive?"i":"")},t}(it),ur=function(i){rt(t,i);function t(){var e=i.call(this)||this;return e.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,e}return t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,n,r,o){return n===void 0&&(n=null),!e||this.re.test(e)?null:new Te(e,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(it),So=function(i){rt(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=e,n}return t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return this.ensureConditionRunner(!1)?this.conditionRunner.isAsync:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,n,r,o){var s=this;if(n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.expression)return null;this.conditionRunner&&(this.conditionRunner.onRunComplete=null),this.ensureConditionRunner(!0),this.conditionRunner.onRunComplete=function(l){s.isRunningValue=!1,s.onAsyncCompleted&&s.onAsyncCompleted(s.generateError(l,e,n))},this.isRunningValue=!0;var a=this.conditionRunner.run(r,o);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(a,e,n))},t.prototype.generateError=function(e,n,r){return e?null:new Te(n,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(e){return this.expression?(e||!this.conditionRunner?this.conditionRunner=new de(this.expression):this.conditionRunner.expression=this.expression,!0):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(it);x.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),x.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new Vo},"surveyvalidator"),x.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new wo},"surveyvalidator"),x.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new xo},"surveyvalidator"),x.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new Oo},"surveyvalidator"),x.addClass("emailvalidator",[],function(){return new ur},"surveyvalidator"),x.addClass("expressionvalidator",["expression:condition"],function(){return new So},"surveyvalidator");var To=function(){function i(t,e){this.name=t,this.widgetJson=e,this.htmlTemplate=e.htmlTemplate?e.htmlTemplate:""}return i.prototype.afterRender=function(t,e){var n=this;this.widgetJson.afterRender&&(t.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(t,e),n.widgetJson.afterRender(t,e)},this.widgetJson.afterRender(t,e))},i.prototype.willUnmount=function(t,e){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(t,e)},i.prototype.getDisplayValue=function(t,e){return e===void 0&&(e=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(t,e):null},i.prototype.validate=function(t){if(this.widgetJson.validate)return this.widgetJson.validate(t)},i.prototype.isFit=function(t){return this.isLibraryLoaded()&&this.widgetJson.isFit?this.widgetJson.isFit(t):!1},Object.defineProperty(i.prototype,"canShowInToolbox",{get:function(){return this.widgetJson.showInToolbox===!1||cr.Instance.getActivatedBy(this.name)!="customtype"?!1:!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showInToolbox",{get:function(){return this.widgetJson.showInToolbox!==!1},set:function(t){this.widgetJson.showInToolbox=t},enumerable:!1,configurable:!0}),i.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},i.prototype.activatedByChanged=function(t){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(t)},i.prototype.isLibraryLoaded=function(){return this.widgetJson.widgetIsLoaded?this.widgetJson.widgetIsLoaded()==!0:!0},Object.defineProperty(i.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),i}(),cr=function(){function i(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new zn}return Object.defineProperty(i.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),i.prototype.add=function(t,e){e===void 0&&(e="property"),this.addCustomWidget(t,e)},i.prototype.addCustomWidget=function(t,e){e===void 0&&(e="property");var n=t.name;n||(n="widget_"+this.widgets.length+1);var r=new To(n,t);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=e,r.activatedByChanged(e),this.onCustomWidgetAdded.fire(r,null),r},i.prototype.getActivatedBy=function(t){var e=this.widgetsActivatedBy[t];return e||"property"},i.prototype.setActivatedBy=function(t,e){if(!(!t||!e)){var n=this.getCustomWidgetByName(t);n&&(this.widgetsActivatedBy[t]=e,n.activatedByChanged(e))}},i.prototype.clear=function(){this.widgetsValues=[]},i.prototype.getCustomWidgetByName=function(t){for(var e=0;e<this.widgets.length;e++)if(this.widgets[e].name==t)return this.widgets[e];return null},i.prototype.getCustomWidget=function(t){for(var e=0;e<this.widgetsValues.length;e++)if(this.widgetsValues[e].isFit(t))return this.widgetsValues[e];return null},i.Instance=new i,i}(),Ro=function(){function i(){this.renderersHash={},this.defaultHash={}}return i.prototype.unregisterRenderer=function(t,e){delete this.renderersHash[t][e],this.defaultHash[t]===e&&delete this.defaultHash[t]},i.prototype.registerRenderer=function(t,e,n,r){r===void 0&&(r=!1),this.renderersHash[t]||(this.renderersHash[t]={}),this.renderersHash[t][e]=n,r&&(this.defaultHash[t]=e)},i.prototype.getRenderer=function(t,e){var n=this.renderersHash[t];if(n){if(e&&n[e])return n[e];var r=this.defaultHash[t];if(r&&n[r])return n[r]}return"default"},i.prototype.getRendererByQuestion=function(t){return this.getRenderer(t.getType(),t.renderAs)},i.prototype.clear=function(){this.renderersHash={}},i.Instance=new i,i}(),ln=function(){function i(t){var e=this;this.options=t,this.onPropertyChangedCallback=function(){e.element&&(e.element.value=e.getTextValue(),e.updateElement())},this.question.registerFunctionOnPropertyValueChanged(this.options.propertyName,this.onPropertyChangedCallback,"__textarea")}return i.prototype.updateElement=function(){var t=this;this.element&&this.autoGrow&&setTimeout(function(){return or(t.element)},1)},i.prototype.setElement=function(t){t&&(this.element=t,this.updateElement())},i.prototype.resetElement=function(){this.element=void 0},i.prototype.getTextValue=function(){return this.options.getTextValue&&this.options.getTextValue()||""},i.prototype.onTextAreaChange=function(t){this.options.onTextAreaChange&&this.options.onTextAreaChange(t)},i.prototype.onTextAreaInput=function(t){this.options.onTextAreaInput&&this.options.onTextAreaInput(t),this.element&&this.autoGrow&&or(this.element)},i.prototype.onTextAreaKeyDown=function(t){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(t)},i.prototype.onTextAreaBlur=function(t){this.onTextAreaChange(t),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(t)},i.prototype.onTextAreaFocus=function(t){this.options.onTextAreaFocus&&this.options.onTextAreaFocus(t)},Object.defineProperty(i.prototype,"question",{get:function(){return this.options.question},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.options.id()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this.options.placeholder()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){return this.options.className()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxLength",{get:function(){if(this.options.maxLength)return this.options.maxLength()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"autoGrow",{get:function(){if(this.options.autoGrow)return this.options.autoGrow()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rows",{get:function(){if(this.options.rows)return this.options.rows()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cols",{get:function(){if(this.options.cols)return this.options.cols()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabledAttr",{get:function(){return this.options.isDisabledAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnlyAttr",{get:function(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaRequired",{get:function(){if(this.options.ariaRequired)return this.options.ariaRequired()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabel",{get:function(){if(this.options.ariaLabel)return this.options.ariaLabel()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaInvalid",{get:function(){if(this.options.ariaInvalid)return this.options.ariaInvalid()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabelledBy",{get:function(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaDescribedBy",{get:function(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaErrormessage",{get:function(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.question&&this.question.unRegisterFunctionOnPropertyValueChanged(this.options.propertyName,"__textarea"),this.resetElement()},i}(),Tu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ru=function(){function i(t,e,n){this.name=t,this.canRun=e,this.doComplete=n,this.runSecondCheck=function(r){return!1}}return i}(),ue=function(i){Tu(t,i);function t(e){var n=i.call(this,e)||this;n.customWidgetData={isNeedRender:!0},n.hasCssErrorCallback=function(){return!1},n.isReadyValue=!0,n.dependedQuestions=[],n.onReadyChanged=n.addEvent(),n.triggersInfo=[],n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",function(o){o.errorOwner=n}),n.addExpressionProperty("visibleIf",function(o,s){n.visible=s===!0}),n.addExpressionProperty("enableIf",function(o,s){n.readOnly=s===!1}),n.addExpressionProperty("requiredIf",function(o,s){n.isRequired=s===!0}),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.createLocalizableString("requiredErrorText",n),n.addTriggerInfo("resetValueIf",function(){return!n.isEmpty()},function(){n.startSetValueOnExpression(),n.clearValue(),n.updateValueWithDefaults(),n.finishSetValueOnExpression()});var r=n.addTriggerInfo("setValueIf",function(){return!0},function(){return n.runSetValueExpression()});return r.runSecondCheck=function(o){return n.checkExpressionIf(o)},n.registerPropertyChangedHandlers(["width"],function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["isRequired"],function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()}),n.registerPropertyChangedHandlers(["indent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){n.initCommentFromSurvey()}),n.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],function(){n.updateQuestionCss()}),n.registerPropertyChangedHandlers(["_isMobile"],function(){n.onMobileChanged()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var o;(o=n.parent)===null||o===void 0||o.updateColumns()}),n}return t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&b.readOnly.commentRenderMode==="div"},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){var n=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=n},t.prototype.getIsMobile=function(){return this._isMobile},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.getIsMobile()},set:function(e){this._isMobile=e},enumerable:!1,configurable:!0}),t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(r,o){return!r&&!o&&(r=e.getDefaultTitle()),e.survey?e.survey.getUpdatedQuestionTitle(e,r):r},this.locProcessedTitle=new Se(this,!0),this.locProcessedTitle.sharedData=n,n},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new ln(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getCommentTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.commentId},propertyName:"comment",className:function(){return e.cssClasses.comment},placeholder:function(){return e.renderedCommentPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},autoGrow:function(){return e.autoGrowComment},maxLength:function(){return e.getOthersMaxLength()},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},getTextValue:function(){return e.comment},onTextAreaChange:function(r){e.onCommentChange(r)},onTextAreaInput:function(r){e.onCommentInput(r)}};return n},t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e?this.parent?this.parent.getSurvey(e):null:this.onGetSurvey?this.onGetSurvey():i.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var n=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.onAsyncRunningChanged=function(){this.updateIsReady()},t.prototype.updateIsReady=function(){var e=this.getIsQuestionReady();if(e){for(var n=this.getIsReadyDependsOn(),r=0;r<n.length;r++)if(!n[r].getIsQuestionReady()){e=!1;break}}this.setIsReady(e)},t.prototype.getIsQuestionReady=function(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()},t.prototype.getAreNestedQuestionsReady=function(){var e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!e[n].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var n=this.isReadyValue;this.isReadyValue=e,n!=e&&(this.getIsReadyDependends().forEach(function(r){return r.updateIsReady()}),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:n}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var n=this;if(!this.survey)return[];var r=this.survey.questionsByValueName(this.getValueName()),o=new Array;return r.forEach(function(s){s!==n&&o.push(s)}),e||(this.parentQuestion&&o.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(function(s){return o.push(s)})),o},t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(e){e===void 0&&(e=!0),this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var n=this.dependedQuestions.indexOf(e);n>-1&&this.dependedQuestions.splice(n,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return this.getLayoutType()==="flow"},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.onHidingContent()},t.prototype.updateElementVisibility=function(){this.updateIsVisibleProp()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),n=this.isVisible;e!==n&&(this.setPropertyValue("isVisible",n),n||this.onHidingContent()),n!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss(!0)},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty()?!1:this.areInvisibleElementsShowing?!0:this.isVisibleCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisibleInSurvey",{get:function(){return this.isVisible&&this.isParentVisible},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){},Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:i.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new et(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(n){e.runExpressionSetValue(n)})},t.prototype.runSetValueExpression=function(){this.setValueExpression?(this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())):this.clearValue()},t.prototype.checkExpressionIf=function(e){return this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner?this.canExecuteTriggerByKeys(e,this.setValueExpressionRunner):!1},t.prototype.addTriggerInfo=function(e,n,r){var o=new Ru(e,n,r);return this.triggersInfo.push(o),o},t.prototype.runTriggerInfo=function(e,n){var r=this[e.name];if(!r||e.isRunning||!e.canRun()){e.runSecondCheck(n)&&e.doComplete();return}e.runner?e.runner.expression=r:(e.runner=new et(r),e.runner.onRunComplete=function(o){o===!0&&e.doComplete(),e.isRunning=!1}),!(!this.canExecuteTriggerByKeys(n,e.runner)&&!e.runSecondCheck(n))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))},t.prototype.canExecuteTriggerByKeys=function(e,n){var r=n.getVariables();return(!r||r.length===0)&&n.hasFunction()?!0:new me().isAnyKeyChanged(e,r)},t.prototype.runTriggers=function(e,n,r){var o=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||(r||(r={},r[e]=n),this.triggersInfo.forEach(function(s){o.runTriggerInfo(s,r)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e),this.survey&&(this.survey.questionCreated(this),n!==!0&&this.runConditions(),this.visible||this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),e&&this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.getTitleLocation()!=="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var n=this.titleLocation=="hidden"||e=="hidden";this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),n&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return this.titleLocation==="hidden"},t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return!1},t.prototype.notifySurveyVisibilityChanged=function(){if(!(!this.survey||this.isLoadingFromJson)){this.survey.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},Object.defineProperty(t.prototype,"titleWidth",{get:function(){if(this.parent&&this.getTitleLocation()==="left"){var e=this.parent.getColumsForElement(this),n=e.length;if(n!==0&&e[0].questionTitleWidth)return e[0].questionTitleWidth;var r=this.getPercentQuestionTitleWidth();if(!r&&this.parent){var o=this.parent.getQuestionTitleWidth();return o&&!isNaN(o)&&(o=o+"px"),o}return r/(n||1)+"%"}},enumerable:!1,configurable:!0}),t.prototype.getPercentQuestionTitleWidth=function(){var e=!!this.parent&&this.parent.getQuestionTitleWidth();if(e&&e[e.length-1]==="%")return parseInt(e)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return e==="left"&&!this.isAllowTitleLeft&&(e="top"),e},t.prototype.getTitleLocationCore=function(){return this.titleLocation!=="default"?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&this.getTitleLocation()==="left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&this.getTitleLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&this.getTitleLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.getPropertyValue("errorLocation")},set:function(e){this.setPropertyValue("errorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getErrorLocation=function(){return this.errorLocation!=="default"?this.errorLocation:this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getChildErrorLocation=function(e){return this.getErrorLocation()},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return b.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.getDescriptionLocation()=="underTitle"&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return this.getDescriptionLocation()=="underInput"&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return this.descriptionLocation!=="default"?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return i.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var e=this;if(i.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){e.focus()},1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCommentPlaceholder",{get:function(){var e=this,n=function(){return e.isReadOnly?void 0:e.commentPlaceHolder};return this.getPropertyValue("renderedCommentPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.resetRenderedCommentPlaceholder=function(){this.resetPropertyValue("renderedCommentPlaceholder")},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var n=0;n<this.errors.length;n++)if(this.errors[n].getErrorType()===e)return this.errors[n];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return!this.isCustomWidgetRequested&&!this.customWidgetValue&&(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=cr.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){!this.survey||!this.hasSingleInput||this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var n=this;this.afterRenderCore(e),this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach(function(r){var o=b.environment.root,s=o.getElementById(r);s&&n.commentElements.push(s)}),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e)},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var n={error:{}};return this.copyCssClasses(n,e.question),this.copyCssClasses(n.error,e.error),this.updateCssClasses(n,e),n},t.prototype.onCalcCssClasses=function(e){i.prototype.onCalcCssClasses.call(this,e),this.survey&&this.survey.updateQuestionCssClasses(this,e),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(e)},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(e){var n=this.hasCssError();return new O().append(i.prototype.getCssRoot.call(this,e)).append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(e.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(e.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(e.hasError,n).append(e.hasErrorTop,n&&this.getErrorLocation()=="top").append(e.hasErrorBottom,n&&this.getErrorLocation()=="bottom").append(e.small,!this.width).append(e.answered,this.isAnswered).append(e.noPointerEventsMode,this.isReadOnlyAttr).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return new O().append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},t.prototype.supportContainerQueries=function(){return!1},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return new O().append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(e){return new O().append(i.prototype.getCssTitle.call(this,e)).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(e.titleEmpty,!this.title.trim()).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return new O().append(e.description).append(e.descriptionUnderInput,this.getDescriptionLocation()=="underInput").toString()},t.prototype.showErrorOnCore=function(e){return!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.getErrorLocation()===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return new O().append(e.error.root).append(e.errorsContainer,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.hasCssError=function(){return this.errors.length>0||this.hasCssErrorCallback()},t.prototype.getRootCss=function(){return new O().append(this.cssRoot).append(this.cssClasses.mobile,this.isMobile).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getQuestionRootCss=function(){return new O().append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(e){this.wasRendered?(i.prototype.updateElementCss.call(this,e),e&&this.updateQuestionCss(!0)):this.isRequireUpdateElements=!0,this.resetIndents()},t.prototype.onFirstRenderingCore=function(){this.isRequireUpdateElements&&(this.isRequireUpdateElements=!1,this.updateElementCss(!0)),i.prototype.onFirstRenderingCore.call(this)},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||(this.wasRendered?this.updateElementCssCore(this.cssClasses):this.isRequireUpdateElements=!0)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,n){if(n.question){var r=n[this.getCssType()],o=new O().append(e.title).append(n.question.titleRequired,this.isRequired);e.title=o.toString();var s=new O().append(e.root).append(r,this.isRequired&&!!n.question.required);if(r==null)e.root=s.toString();else if(typeof r=="string"||r instanceof String)e.root=s.append(r.toString()).toString();else{e.root=s.toString();for(var a in r)e[a]=r[a]}}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e,n){var r=this;if(e===void 0&&(e=!1),!(this.isDesignMode||!this.isVisible||!this.survey)){var o=this.page,s=!!o&&this.survey.activePage!==o;if(s)this.survey.focusQuestionByInstance(this,e);else if(this.survey){this.expandAllParents();var a=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,n,a,void 0,function(){r.focusInputElement(e)})}else this.focusInputElement(e)}},t.prototype.focusInputElement=function(e){var n,r=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),o=(n=this.survey)===null||n===void 0?void 0:n.rootElement;le.FocusElement(r,!1,o)&&this.fireCallback(this.focusCallback)},Object.defineProperty(t.prototype,"isValidateVisitedEmptyFields",{get:function(){return this.supportEmptyValidation()&&!!this.survey&&this.survey.getValidateVisitedEmptyFields()&&this.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return!1},t.prototype.onBlur=function(e){this.onBlurCore(e)},t.prototype.onFocus=function(e){this.onFocusCore(e)},t.prototype.onBlurCore=function(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)},t.prototype.onFocusCore=function(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields},t.prototype.expandAllParents=function(){this.expandAllParentsCore(this)},t.prototype.expandAllParentsCore=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))},t.prototype.focusIn=function(){!this.survey||this.isDisposed||this.isContainer||this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=Object.keys(t.TextPreprocessorValuesMap).indexOf(n)!==-1||this[e.name]!==void 0,e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){return this.id+"_ariaDescription"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){!this.supportOther()||this.showOtherItem==e||(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,n=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode,o=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||r||n||o},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return this.forceIsInputReadOnly!==void 0?this.forceIsInputReadOnly:this.isReadOnly||this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return this.isDesignModeV2||!!this.readOnlyCallback&&this.readOnlyCallback()},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),i.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,n){this.isDesignMode||(n||(n={}),n.question=this,this.runConditionCore(e,n),!this.isValueChangedDirectly&&(!this.isClearValueOnHidden||this.isVisibleInSurvey)&&(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,n)))},Object.defineProperty(t.prototype,"isInDesignMode",{get:function(){return!this.isContentElement&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInDesignModeV2",{get:function(){return!this.isContentElement&&this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e;if(!this.hasTitle||this.hideNumber)return"";var n=(e=this.parent)===null||e===void 0?void 0:e.visibleIndex,r=P.getNumberByIndex(this.visibleIndex,this.getStartIndex(),n);return this.survey&&(r=this.survey.getUpdatedQuestionNo(this,r)),r},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isDesignMode&&this.survey&&!this.isLoadingFromJson&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());(!P.isValueEmpty(e)||!this.isLoadingFromJson)&&this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(!(!this.survey||!e))return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.survey&&this.survey.commentAreaRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValueWithoutDefault("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValueWithoutDefault("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredValue=function(){return this.value},t.prototype.getFilteredName=function(){return this.getValueName()},Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueForSurveyCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.valueForSurveyCore=function(e){return this.valueToDataCallback?this.valueToDataCallback(e):e},t.prototype.valueFromDataCore=function(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e},t.prototype.clearValue=function(e){this.value!==void 0&&(this.value=void 0),this.comment&&e!==!0&&(this.comment=void 0),this.setValueChangedDirectly(!1)},t.prototype.clearValueOnly=function(){this.clearValue(!0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:P.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return e?Array.isArray(e)?e.length>0?this.isValueSurveyElement(e[0]):!1:!!e.getType&&!!e.onPropertyChanged:!1},t.prototype.canClearValueAsInvisible=function(e){return e==="onHiddenContainer"&&!this.isParentVisible?!0:this.isVisibleInSurvey||this.page&&this.page.isStartPage?!1:this.survey?!this.survey.hasVisibleQuestionByValueName(this.getValueName()):!0},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=this.getClearIfInvisible();n!=="none"&&(e==="onHidden"&&n==="onComplete"||e==="onHiddenContainer"&&n!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):e!=="default"?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,n){n===void 0&&(n=void 0);var r=this.calcDisplayValue(e,n);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,n){if(n===void 0&&(n=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,n);if(r)return r}return n=n??this.createValueCopy(),this.isValueEmpty(n,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,n)},t.prototype.getDisplayValueCore=function(e,n){return n},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.getPropertyValue("resetValueIf")},set:function(e){this.setPropertyValue("resetValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.getPropertyValue("setValueIf")},set:function(e){this.setPropertyValue("setValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.getPropertyValue("setValueExpression")},set:function(e){this.setPropertyValue("setValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(o){return typeof o=="object"?JSON.stringify(o):o}};return e.includeQuestionTypes===!0&&(r.questionType=this.getType()),(e.calculations||[]).forEach(function(o){r[o.propertyName]=n.getPlainDataCalculatedValue(o.propertyName)}),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:b.commentSuffix,displayValue:this.comment,getString:function(o){return typeof o=="object"?JSON.stringify(o):o},isNode:!1}]),r}},t.prototype.getPlainDataCalculatedValue=function(e){return this[e]},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return!this.isEmpty()&&!this.isValueEmpty(this.correctAnswer)?this.getCorrectAnswerCount():0},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=P.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),b.comparator.caseSensitive,!0),n=e?1:0,r=this.quizQuestionCount-n,o={result:e,correctAnswers:n,correctAnswerCount:n,incorrectAnswers:r,incorrectAnswerCount:r};return this.survey&&this.survey.onCorrectQuestionAnswer(this,o),o.result},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||!this.isDesignMode&&!this.isEmpty()||this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue()},Object.defineProperty(t.prototype,"isValueDefault",{get:function(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return e==="none"||e==="onComplete"?!1:e==="onHidden"||e==="onHiddenContainer"},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,n){return!e&&n&&(e=this.createExpressionRunner(n)),e&&(e.expression=n),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore(function(n){e.isTwoValueEquals(e.value,n)||(e.value=n)})},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(n){return e(n)})},t.prototype.isValueExpression=function(e){return!!e&&typeof e=="string"&&e.length>0&&e[0]=="="},t.prototype.setValueAndRunExpression=function(e,n,r,o,s){var a=this;o===void 0&&(o=null),s===void 0&&(s=null);var l=function(u){a.runExpressionSetValueCore(u,r)};this.runDefaultValueExpression(e,o,s,l)||l(n)},t.prototype.convertFuncValuetoQuestionValue=function(e){return P.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,n){n(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var n=this;this.runExpressionSetValueCore(e,function(r){n.isTwoValueEquals(n.value,r)||(n.startSetValueOnExpression(),n.value=r,n.finishSetValueOnExpression())})},t.prototype.startSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.startSetValueOnExpression()},t.prototype.finishSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.finishSetValueOnExpression()},t.prototype.runDefaultValueExpression=function(e,n,r,o){var s=this;return n===void 0&&(n=null),r===void 0&&(r=null),!e||!this.data?!1:(o||(o=function(a){s.runExpressionSetValue(a)}),n||(n=this.defaultValueExpression?this.data.getFilteredValues():{}),r||(r=this.defaultValueExpression?this.data.getFilteredProperties():{},r.question=this),e&&e.canRun&&(e.onRunComplete=function(a){a==null&&(a=s.defaultValue),s.isChangingViaDefaultValue=!0,o(a),s.isChangingViaDefaultValue=!1},e.run(n,r)),!0)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var n=e.toString().trim();n!==e&&(e=n,e===this.comment&&this.setPropertyValueDirectly("comment",e))}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return e===void 0&&(e=!1),new O().append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")||!1},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],n=this.getType();n;){var r=b.supportedValidators[n];if(r)for(var o=r.length-1;o>=0;o--)e.splice(0,0,r[o]);var s=x.findClass(n);n=s.parentName}return e},t.prototype.addConditionObjectsByContext=function(e,n){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){e===void 0&&(e=!1);var n=[];return this.collectNestedQuestions(n,e),n.length===1&&n[0]===this?[]:n},t.prototype.collectNestedQuestions=function(e,n){n===void 0&&(n=!1),!(n&&!this.isVisible)&&this.collectNestedQuestionsCore(e,n)},t.prototype.collectNestedQuestionsCore=function(e,n){e.push(this)},t.prototype.getConditionJson=function(e,n){var r=new fe().toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.checkForErrors(!!n&&n.isOnValueChanged===!0,e);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r,this.errors!==r&&this.errors.forEach(function(o){return o.locText.strChanged()})),this.updateContainsErrors(),this.isCollapsed&&n&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,n){return e===void 0&&(e=!0),n===void 0&&(n=null),n&&n.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,n)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey!=null&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var n=null;typeof e=="string"||e instanceof String?n=this.addCustomError(e):n=e,this.errors.push(n)}},t.prototype.addCustomError=function(e){return new we(e,this.survey)},t.prototype.removeError=function(e){if(!e)return!1;var n=this.errors,r=n.indexOf(e);return r!==-1&&n.splice(r,1),r!==-1},t.prototype.checkForErrors=function(e,n){var r=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(r,e,n),r},t.prototype.canCollectErrors=function(){return!this.isReadOnly||b.readOnly.enableValidation},t.prototype.collectErrors=function(e,n,r){if(this.onCheckForErrors(e,n,r),!(e.length>0||!this.canRunValidators(n))){var o=this.runValidators();if(o.length>0){e.length=0;for(var s=0;s<o.length;s++)e.push(o[s])}if(this.survey&&e.length==0){var a=this.fireSurveyValidation();a&&e.push(a)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if((!n||this.isOldAnswered)&&this.hasRequiredError()){var s=new yo(this.requiredErrorText,this);s.onUpdateErrorTextCallback=function(l){l.text=o.requiredErrorText},e.push(s)}if(!this.isEmpty()&&this.customWidget){var a=this.customWidget.validate(this);a&&e.push(this.addCustomError(a))}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new Po,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(n){e.doOnAsyncCompleted(n)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var n=0;n<e.length;n++)this.errors.push(e[n]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||this.checkIsValueCorrect(e)&&(this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0,this.parent&&this.parent.onQuestionValueChanged(this))},t.prototype.checkIsValueCorrect=function(e){var n=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return n||Fe.inCorrectQuestionValue(this.name,e),n},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var n=this.value;if(!this.isTwoValueEquals(e,n,!1,!1))return!1;var r=e===n&&!!n&&(Array.isArray(n)||typeof n=="object");return!r},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return this.survey?this.survey.isUpdateValueTextOnTyping:!1},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.isInputTextUpdate?"text":!1},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.getIsInputTextUpdate()&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),this.data!=null&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.convertToCorrectValue=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.onMouseDown=function(){this.isMouseDown=!0},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,this.setCommentIntoData(e))},t.prototype.setCommentIntoData=function(e){this.data!=null&&this.data.setComment(this.getValueName(),e,this.getIsInputTextUpdate()?"text":!1)},t.prototype.getValidName=function(e){return fr(e)},t.prototype.updateValueFromSurvey=function(e,n){var r=this;if(n===void 0&&(n=!1),e=this.getUnbindValue(e),e=this.valueFromDataCore(e),!!this.checkIsValueCorrect(e)){var o=this.isValueEmpty(e);!o&&this.defaultValueExpression?this.setDefaultValueCore(function(s){r.updateValueFromSurveyCore(e,r.isTwoValueEquals(e,s))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),n&&o&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,n){this.isChangingViaDefaultValue=n,this.setQuestionValue(this.valueFromData(e)),this.isChangingViaDefaultValue=!1},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e=this.convertToCorrectValue(e);var r=this.isTwoValueEquals(this.questionValue,e);!r&&!this.isChangingViaDefaultValue&&!this.isParentChangingViaDefaultValue&&this.setValueChangedDirectly(!0),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),n&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return((e=this.data)===null||e===void 0?void 0:e.isChangingViaDefaultValue)===!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!b.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!b.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e,n){},t.prototype.checkBindings=function(e,n){if(!(this.bindings.isEmpty()||!this.data))for(var r=this.bindings.getPropertiesByValueName(e),o=0;o<r.length;o++){var s=r[o];this.isValueEmpty(n)&&P.isNumber(this[s])&&(n=0),this.updateBindingProp(s,n)}},t.prototype.updateBindingProp=function(e,n){this[e]=n},t.prototype.getComponentName=function(){return Ro.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||this.getComponentName()==="default"},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,n){this.survey.processPopupVisiblityChanged(this,e,n)},t.prototype.processOpenDropdownMenu=function(e){this.survey.processOpenDropdownMenu(this,e)},t.prototype.onTextKeyDownHandler=function(e){e.keyCode===13&&this.survey.questionEditFinishCallback(this,e)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var n=this;if(this.needResponsiveness())if(this.isCollapsed){var r=function(){n.isExpanded&&(n.initResponsiveness(e),n.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))};this.registerPropertyChangedHandlers(["state"],r,"for-responsiveness")}else this.initResponsiveness(e)},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var n=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r)return;var o=e.querySelector(r);if(!o)return;var s=!1,a=void 0;this.triggerResponsivenessCallback=function(l){l&&(a=void 0,n.renderAs="default",s=!1);var u=function(){var d=e.querySelector(r);!a&&n.isDefaultRendering()&&(a=d.scrollWidth),s||!ar(d)?s=!1:s=n.processResponsiveness(a,sr(d))};l?setTimeout(u,1):u()},this.resizeObserver=new ResizeObserver(function(l){E.requestAnimationFrame(function(){n.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var l=e.querySelector(r);n.processResponsiveness(a,sr(l))},0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.onBeforeSetCompactRenderer=function(){},t.prototype.onBeforeSetDesktopRenderer=function(){},t.prototype.processResponsiveness=function(e,n){if(n=Math.round(n),Math.abs(e-n)>2){var r=this.renderAs;return e>n?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),r!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetDependedQuestions(),this.destroyResizeObserver()},t.prototype.resetDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.isNewA11yStructure?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return this.isNewA11yStructure?null:"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isNewA11yStructure?null:this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaErrormessage",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.hasTitle&&!this.parentQuestion&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaErrormessage",{get:function(){return this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,vt([h({defaultValue:!1})],t.prototype,"_isMobile",void 0),vt([h()],t.prototype,"forceIsInputReadOnly",void 0),vt([h()],t.prototype,"ariaExpanded",void 0),vt([h({localizable:!0,onSet:function(e,n){return n.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),vt([h()],t.prototype,"renderAs",void 0),vt([h({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(le);function fr(i){if(!i)return i;for(i=i.trim().replace(/[\{\}]+/g,"");i&&i[0]===b.expressionDisableConversionChar;)i=i.substring(1);return i}x.addClass("question",[{name:"!name",onSettingValue:function(i,t){return fr(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return b.minWidth}},{name:"maxWidth",defaultFunc:function(){return b.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.getDefaultTitle())}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(i){if(!i)return!0;if(i.titleLocation==="hidden")return!1;var t=i?i.parent:null,e=!t||t.showQuestionNumbers!=="off";if(!e)return!1;var n=i?i.survey:null;return!n||n.showQuestionNumbers!=="off"||!!t&&t.showQuestionNumbers==="onpanel"}},{name:"valueName",onSettingValue:function(i,t){return fr(t)}},"enableIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden","onHiddenContainer"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},"requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"errorLocation",default:"default",choices:["default","top","bottom"]},{name:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(i){return i.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(i){return i.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(i){return i.hasComment}}]),x.addAlterNativeClassName("question","questionbase");var Eu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},k=function(i){Eu(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="itemvalue");var o=i.call(this)||this;return o.typeName=r,o.ownerPropertyName="",o.locTextValue=new Se(o,!0,"text"),o.locTextValue.onStrChanged=function(s,a){a==o.value&&(a=void 0),o.propertyValueChanged("text",s,a)},o.locTextValue.onGetTextCallback=function(s){return s||(P.isValueEmpty(o.value)?null:o.value.toString())},n&&(o.locText.text=n),e&&typeof e=="object"?o.setData(e,!0):o.setValue(e,!0),o.getType()!="itemvalue"&&Ne.createProperties(o),o.data=o,o.onCreating(),o}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return b.itemValueSeparator},set:function(e){b.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,n,r){e.length=0;for(var o=0;o<n.length;o++){var s=n[o],a=s&&typeof s.getType=="function"?s.getType():r??"itemvalue",l=x.createClass(a);l.setData(s),s.originalItem&&(l.originalItem=s.originalItem),e.push(l)}},t.getData=function(e){for(var n=[],r=0;r<e.length;r++)n.push(e[r].getData());return n},t.getItemByValue=function(e,n){if(!Array.isArray(e))return null;for(var r=P.isValueEmpty(n),o=0;o<e.length;o++)if(r&&P.isValueEmpty(e[o].value)||P.isTwoValueEquals(e[o].value,n,!1,!0,!1))return e[o];return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return r!==null?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var n=0;n<e.length;n++)e[n].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,s,a,l){return a===void 0&&(a=!0),t.runConditionsForItemsCore(e,n,r,o,s,!0,a,l)},t.runEnabledConditionsForItems=function(e,n,r,o,s){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,s)},t.runConditionsForItemsCore=function(e,n,r,o,s,a,l,u){l===void 0&&(l=!0),o||(o={});for(var d=o.item,v=o.choice,V=!1,T=0;T<e.length;T++){var R=e[T];o.item=R.value,o.choice=R.value;var N=l&&R.getConditionRunner?R.getConditionRunner(a):!1;N||(N=r);var j=!0;N&&(j=N.run(o,s)),u&&(j=u(R,j)),n&&j&&n.push(R);var A=a?R.isVisible:R.isEnabled;j!=A&&(V=!0,a?R.setIsVisible&&R.setIsVisible(j):R.setIsEnabled&&R.setIsEnabled(j))}return d?o.item=d:delete o.item,v?o.choice=v:delete o.choice,V},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setValue(e,!1)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,n){var r=void 0;if(!P.isValueEmpty(e)){var o=e.toString(),s=o.indexOf(b.itemValueSeparator);s>-1&&(e=o.slice(0,s),r=o.slice(s+1))}n?this.setPropertyValueDirectly("value",e):this.setPropertyValue("value",e),r&&(this.text=r),this.id=this.value},Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return e==null?!1:!Array.isArray(e)&&typeof e!="object"},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,P.isValueEmpty(e.value))return e;var n=this.canSerializeValue(),r=!n||!b.serialization.itemValueSerializeAsObject&&!b.serialization.itemValueSerializeDisplayText;return r&&Object.keys(e).length==1?this.value:(b.serialization.itemValueSerializeDisplayText&&e.text===void 0&&n&&(e.text=this.value.toString()),e)},t.prototype.toJSON=function(){var e={},n=x.getProperties(this.getType());(!n||n.length==0)&&(n=x.getProperties("itemvalue"));for(var r=new fe,o=0;o<n.length;o++){var s=n[o];s.name==="text"&&!this.locText.hasNonDefaultText()&&P.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,s)}return e},t.prototype.setData=function(e,n){if(!P.isValueEmpty(e)){if(typeof e.value>"u"&&typeof e.text<"u"&&Object.keys(e).length===1&&(e.value=e.text),typeof e.value<"u"){var r=void 0;typeof e.toJSON=="function"?r=e.toJSON():r=e,new fe().toObject(r,this)}else this.setValue(e,n);n||this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValueWithoutDefault("visibleIf")||""},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValueWithoutDefault("enableIf")||""},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=this.getPropertyValueWithoutDefault("isVisible");return e!==void 0?e:!0},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){var e=this.getPropertyValueWithoutDefault("isEnabled");return e!==void 0?e:!0},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,n,r){e==="value"&&!this.hasText&&this.locText.strChanged();var o="itemValuePropertyChanged";!this.locOwner||!this.locOwner[o]||this.locOwner[o](this,e,n,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new de(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new de(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,n=this._locOwner;return n instanceof ue&&n.isItemSelected&&this.selectedValue===void 0&&(this.selectedValue=new te(function(){return n.isItemSelected(e)})),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof ue?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.setRootElement=function(e){this._htmlElement=e},t.prototype.getRootElement=function(){return this._htmlElement},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=this.isVisible===void 0?!0:this.isVisible,n=this._visible===void 0?!0:this._visible;return e&&n},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},pr([h({defaultValue:!0})],t.prototype,"_visible",void 0),pr([h()],t.prototype,"selectedValue",void 0),pr([h()],t.prototype,"icon",void 0),t}(Zt);z.createItemValue=function(i,t){var e=null;return t?e=fe.metaData.createClass(t,{}):typeof i.getType=="function"?e=new k(null,void 0,i.getType()):e=new k(null),e.setData(i),e},z.itemValueLocStrChanged=function(i){k.locStrsChanged(i)},Gt.getItemValuesDefaultValue=function(i,t){var e=new Array;return k.setData(e,Array.isArray(i)?i:[],t),e},x.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(i){return!i||i.ownerPropertyName!=="rateValues"}}],function(i){return new k(i)});var Iu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Eo=function(i){Iu(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,e&&(r.name=e),n&&(r.expression=n),r}return t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,n,r){this.isCalculated||(this.runExpressionCore(e,n,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,n){this.runExpressionCore(null,e,n)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!!this.data&&!this.isLoadingFromJson&&!!this.expression&&!this.expressionIsRunning&&!!this.name},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,n,r){this.canRunExpression&&(this.ensureExpression(n),this.locCalculation(),e&&this.runDependentExpressions(e,n,r),this.expressionRunner.run(n,r))},t.prototype.runDependentExpressions=function(e,n,r){var o=this.expressionRunner.getVariables();if(o)for(var s=0;s<e.length;s++){var a=e[s];a===this||o.indexOf(a.name)<0||(a.doCalculation(e,n,r),n[a.name]=a.value)}},t.prototype.ensureExpression=function(e){var n=this;this.expressionRunner||(this.expressionRunner=new et(this.expression),this.expressionRunner.onRunComplete=function(r){P.isTwoValueEquals(r,n.value,!1,!0,!1)||n.setValue(r),n.unlocCalculation()})},t}(z);x.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new Eo},"base");var dr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),hr=function(i){dr(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.expression=e,n}return t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,n){return this.expression?new de(this.expression).run(e,n):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return this.locOwner},t}(z),Io=function(i){dr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("html",r),r.html=n,r}return t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(hr),Ao=function(i){dr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("url",r),r.url=n,r}return t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(hr);x.addClass("expressionitem",["expression:condition"],function(){return new hr},"base"),x.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new Io},"expressionitem"),x.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new Ao},"expressionitem");var Do=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Au=function(){function i(){this.parser=new DOMParser}return i.prototype.assignValue=function(t,e,n){Array.isArray(t[e])?t[e].push(n):t[e]!==void 0?t[e]=[t[e]].concat(n):typeof n=="object"&&Object.keys(n).length===1&&Object.keys(n)[0]===e?t[e]=n[e]:t[e]=n},i.prototype.xml2Json=function(t,e){if(t.children&&t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children[n],o={};this.xml2Json(r,o),this.assignValue(e,r.nodeName,o)}else this.assignValue(e,t.nodeName,t.textContent)},i.prototype.parseXmlString=function(t){var e=this.parser.parseFromString(t,"text/xml"),n={};return this.xml2Json(e,n),n},i}(),ot=function(i){Do(t,i);function t(){var e=i.call(this)||this;return e.lastObjHash="",e.isRunningValue=!1,e.processedUrl="",e.processedPath="",e.isUsingCacheFromUrl=void 0,e.error=null,e.createItemValue=function(n){return new k(n)},e.registerPropertyChangedHandlers(["url"],function(){e.owner&&e.owner.setPropertyValue("isUsingRestful",!!e.url)}),e}return Object.defineProperty(t,"EncodeParameters",{get:function(){return b.web.encodeUrlParams},set:function(e){b.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],!!r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return b.web.onBeforeRequestChoices},set:function(e){b.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return r?(e.getResultCallback&&e.getResultCallback(r),!0):!1},t.prototype.getSurvey=function(e){return this.owner?this.owner.survey:null},t.prototype.run=function(e){if(e===void 0&&(e=null),!(!this.url||!this.getResultCallback)){if(this.processedText(e),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,!this.useChangedItemsResults()&&(t.addSameRequest(this)||this.sendRequest()))}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return this.isUsingCacheFromUrl===!0?!0:this.isUsingCacheFromUrl===!1?!1:b.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var n=[];this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.getResultCallback(n)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx({text:n,runAtDesign:!0}),o=e.processTextEx({text:this.path,runAtDesign:!0});!r.hasAllValuesOnLastRun||!o.hasAllValuesOnLastRun?(this.processedUrl="",this.processedPath=""):(this.processedUrl=r.text,this.processedPath=o.text)}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var n;if(e&&typeof e.indexOf=="function"&&e.indexOf("<")===0){var r=new Au;n=r.parseXmlString(e)}else try{n=JSON.parse(e)}catch{n=(e||"").split(`
+`).map(function(s){return s.trim(" ")}).filter(function(s){return!!s})}return n},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),e.status===200?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};b.web.onBeforeRequestChoices&&b.web.onBeforeRequestChoices(this,o),this.beforeSendRequest(),o.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),n=new Array,r=0;r<e.length;r++)n.push(this.getCustomPropertyName(e[r].name));return n},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=x.getProperties(this.itemValueType),n=[],r=0;r<e.length;r++)e[r].name==="value"||e[r].name==="text"||e[r].name==="visibleIf"||e[r].name==="enableIf"||n.push(e[r]);return n},t.prototype.getAllPropertiesNames=function(){var e=new Array;return x.getPropertiesByObj(this).forEach(function(n){return e.push(n.name)}),this.getCustomPropertiesNames().forEach(function(n){return e.push(n)}),e},t.prototype.setData=function(e){var n=this;e||(e={}),this.getAllPropertiesNames().forEach(function(r){n[r]=e[r]})},t.prototype.getData=function(){var e=this,n={},r=!1;return this.getAllPropertiesNames().forEach(function(o){var s=e[o];!e.isValueEmpty(s)&&s!==e.getDefaultPropertyValue(o)&&(n[o]=s,r=!0)}),r?n:null},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")||""},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")||""},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=x.findProperty(this.owner.getType(),"choices");return!e||e.type=="itemvalue[]"?"itemvalue":e.type},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.setData(void 0)},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){n===void 0&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var s=0;s<o.length;s++){var a=o[s];if(a){var l=this.getItemValueCallback?this.getItemValueCallback(a):this.getValue(a),u=this.createItemValue(l);this.setTitle(u,a),this.setCustomProperties(u,a),this.attachOriginalItems&&(u.originalItem=a);var d=this.getImageLink(a);d&&(u.imageLink=d),r.push(u)}}else this.allowEmptyResponse||(this.error=new Vu(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,n){n==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,n){for(var r=this.getCustomProperties(),o=0;o<r.length;o++){var s=r[o],a=this.getValueCore(n,this.getPropertyBinding(s.name));this.isValueEmpty(a)||(e[s.name]=a)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new Pu(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e||!this.processedPath)return e;for(var n=this.getPathes(),r=0;r<n.length;r++)if(e=e[n[r]],!e)return null;return e},t.prototype.getPathes=function(){var e=[];return this.processedPath.indexOf(";")>-1?e=this.path.split(";"):this.processedPath.indexOf(",")>-1?e=this.processedPath.split(","):e=this.processedPath.split("."),e.length==0&&e.push(this.processedPath),e},t.prototype.getValue=function(e){if(!e)return null;if(this.valueName)return this.getValueCore(e,this.valueName);if(!(e instanceof Object))return e;var n=Object.keys(e).length;return n<1?null:e[Object.keys(e)[0]]},t.prototype.setTitle=function(e,n){var r=this.titleName?this.titleName:"title",o=this.getValueCore(n,r);o&&(typeof o=="string"?e.text=o:e.locText.setJson(o))},t.prototype.getImageLink=function(e){var n=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,n)},t.prototype.getValueCore=function(e,n){if(!e)return null;if(n.indexOf(".")<0)return e[n];for(var r=n.split("."),o=0;o<r.length;o++)if(e=e[r[o]],!e)return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(z),Du=function(i){Do(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t,"EncodeParameters",{get:function(){return ot.EncodeParameters},set:function(e){ot.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){ot.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return b.web.onBeforeRequestChoices},set:function(e){b.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(ot);x.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(i){return!!i&&!!i.owner&&i.owner.getType()=="imagepicker"}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new ot});var Lu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Lo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},gr=function(i){Lu(t,i);function t(e){var n=i.call(this,e)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){var e=this,n=[];return this.columns.forEach(function(r){e.isColumnVisible(r)&&n.push(r)}),n},enumerable:!1,configurable:!0}),t.prototype.isColumnVisible=function(e){return e.isVisible},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var n=this.processRowsOnSet(e);this.setPropertyValue("rows",n)},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.isLoadingFromJsonValue||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.isLoadingFromJson||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsCondition(e,n)},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&this.onVisibleChanged()},t.prototype.isVisibleCore=function(){var e,n=i.prototype.isVisibleCore.call(this);return!n||!this.hideIfRowsEmpty?n:((e=this.visibleRows)===null||e===void 0?void 0:e.length)>0},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,n){var r=this.hasRowsAsItems()&&this.runConditionsForRows(e,n),o=this.runConditionsForColumns(e,n);r=o||r,r&&(this.isClearValueOnHidden&&o&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),o&&this.onColumnsChanged(),this.onRowsChanged())},t.prototype.isRowsFiltered=function(){return!!this.filteredRows},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.createRowsVisibleIfRunner=function(){return null},t.prototype.runConditionsForRows=function(e,n){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,o=r?null:this.createRowsVisibleIfRunner();this.filteredRows=[];var s=k.runConditionsForItems(this.rows,this.filteredRows,o,e,n,!r);return k.runEnabledConditionsForItems(this.rows,void 0,e,n),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),s},t.prototype.runConditionsForColumns=function(e,n){var r=!!this.survey&&!this.survey.areInvisibleElementsShowing,o=r&&this.columnsVisibleIf?new de(this.columnsVisibleIf):null;return k.runConditionsForItems(this.columns,void 0,o,e,n,this.shouldRunColumnExpression())},t.prototype.clearInvisibleColumnValues=function(){},t.prototype.clearInvisibleValuesInRows=function(){},t.prototype.needResponsiveWidth=function(){return!0},Object.defineProperty(t.prototype,"columnsAutoWidth",{get:function(){return!this.isMobile&&!this.columns.some(function(e){return!!e.width})},enumerable:!1,configurable:!0}),t.prototype.getTableCss=function(){var e;return new O().append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(!((e=this.renderedTable)===null||e===void 0)&&e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,this.verticalAlign==="top").append(this.cssClasses.rootVerticalAlignMiddle,this.verticalAlign==="middle").toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth")||""},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth")||""},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this.getPropertyValue("displayMode")},set:function(e){this.setPropertyValue("displayMode",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,n){var r=(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase(),o=(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase();return r+" "+e+", "+o+" "+n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getIsMobile=function(){return this.displayMode=="auto"?i.prototype.getIsMobile.call(this):this.displayMode==="list"},Lo([h()],t.prototype,"verticalAlign",void 0),Lo([h()],t.prototype,"alternateRows",void 0),t}(ue);x.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1},{name:"displayMode",default:"auto",choices:["auto","table","list"],visible:!1}],void 0,"question");var Mu=function(){function i(){}return i}(),Mo=function(){function i(t,e){this.name=t,this.returnDisplayValue=e,this.isExists=!1,this.canProcess=!0}return i}(),yr=function(){function i(){this._unObservableValues=[void 0]}return Object.defineProperty(i.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(t){this._unObservableValues[0]=t},enumerable:!1,configurable:!0}),i.prototype.process=function(t,e,n,r){if(this.hasAllValuesOnLastRunValue=!0,!t||!this.onProcess)return t;for(var o=this.getItems(t),s=o.length-1;s>=0;s--){var a=o[s],l=this.getName(t.substring(a.start+1,a.end));if(l){var u=new Mo(l,e===!0);if(this.onProcess(u),u.isExists||u.canProcess&&(this.hasAllValuesOnLastRunValue=!1),u.isExists||r){P.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var d=P.isValueEmpty(u.value)?"":u.value;n&&(d=encodeURIComponent(d)),t=t.substring(0,a.start)+d+t.substring(a.end+1)}}}return t},i.prototype.processValue=function(t,e){var n=new Mo(t,e);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(i.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),i.prototype.processText=function(t,e){return this.process(t,e)},i.prototype.processTextEx=function(t){var e={hasAllValuesOnLastRun:!0,text:t.text};return e.text=this.process(t.text,t.returnDisplayValue,t.doEncoding,t.replaceUndefinedValues),e.hasAllValuesOnLastRun=this.hasAllValuesOnLastRun,e},i.prototype.getItems=function(t){for(var e=[],n=t.length,r=-1,o="",s=0;s<n;s++)if(o=t[s],o=="{"&&(r=s),o=="}"){if(r>-1){var a=new Mu;a.start=r,a.end=s,this.isValidItemName(t.substring(r+1,s-1))&&e.push(a)}r=-1}return e},i.prototype.isValidItemName=function(t){return!!t&&t.indexOf(":")<0},i.prototype.getName=function(t){if(t)return t.trim()},i}(),mr=function(){function i(t){var e=this;this.variableName=t,this.textPreProcessor=new yr,this.textPreProcessor.onProcess=function(n){e.getProcessedTextValue(n)}}return i.prototype.processValue=function(t,e){return this.textPreProcessor.processValue(t,e)},Object.defineProperty(i.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getValues=function(){return this.panel?this.panel.getValue():null},i.prototype.getQuestionByName=function(t){return this.panel?this.panel.getQuestionByValueName(t):null},i.prototype.getParentTextProcessor=function(){return null},i.prototype.onCustomProcessText=function(t){return!1},i.prototype.getQuestionDisplayText=function(t){return t.displayValue},i.prototype.getProcessedTextValue=function(t){if(t&&!this.onCustomProcessText(t)){var e=new me().getFirstName(t.name);if(t.isExists=e==this.variableName,t.canProcess=t.isExists,!!t.canProcess){t.name=t.name.replace(this.variableName+".","");var e=new me().getFirstName(t.name),n=this.getQuestionByName(e),r={};if(n)r[e]=t.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var o=this.panel?this.getValues():null;o&&(r[e]=o[e])}t.value=new me().getValue(t.name,r)}}},i.prototype.processText=function(t,e){var n={text:t,returnDisplayValue:e};return this.processTextEx(n).text},i.prototype.processTextEx=function(t){var e,n={hasAllValuesOnLastRun:!0,text:t.text};if(!t.runAtDesign&&(!((e=this.survey)===null||e===void 0)&&e.isDesignMode))return n;var r=new Array;this.addTextPreProcessor(r,this.textPreProcessor),this.addTextPreProcessor(r,this.getParentTextProcessor()),this.addTextPreProcessor(r,this.survey);for(var o=0;o<r.length;o++){var s=r[o];t.text=n.text;var a=s.processTextEx(t);n.text=a.text,n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&a.hasAllValuesOnLastRun}return n},i.prototype.addTextPreProcessor=function(t,e){!e||t.indexOf(e)>-1||t.push(e)},i}(),un=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jo=function(){function i(t,e){this.name=t,this.json=e;var n=this;x.addClass(t,[],function(r){return cn.Instance.createQuestion(r?r.name:"",n)},"question"),this.onInit()}return i.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},i.prototype.onCreated=function(t){this.json.onCreated&&this.json.onCreated(t)},i.prototype.onLoaded=function(t){this.json.onLoaded&&this.json.onLoaded(t)},i.prototype.onAfterRender=function(t,e){this.json.onAfterRender&&this.json.onAfterRender(t,e)},i.prototype.onAfterRenderContentElement=function(t,e,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(t,e,n)},i.prototype.onUpdateQuestionCssClasses=function(t,e,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(t,e,n)},i.prototype.onSetQuestionValue=function(t,e){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(t,e),this.json.onValueSet&&this.json.onValueSet(t,e)},i.prototype.onPropertyChanged=function(t,e,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(t,e,n)},i.prototype.onValueChanged=function(t,e,n){this.json.onValueChanged&&this.json.onValueChanged(t,e,n)},i.prototype.onValueChanging=function(t,e,n){return this.json.onValueChanging?this.json.onValueChanging(t,e,n):n},i.prototype.onGetErrorText=function(t){if(this.json.getErrorText)return this.json.getErrorText(t)},i.prototype.onItemValuePropertyChanged=function(t,e,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(t,{obj:e,propertyName:n,name:r,newValue:o})},i.prototype.getDisplayValue=function(t,e,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(t,e)},Object.defineProperty(i.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),i.prototype.setValueToQuestion=function(t){var e=this.json.valueToQuestion||this.json.setValue;return e?e(t):t},i.prototype.getValueFromQuestion=function(t){var e=this.json.valueFromQuestion||this.json.getValue;return e?e(t):t},Object.defineProperty(i.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),i.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},i.prototype.calcDynamicProperties=function(){var t=this.json.inheritBaseProps;if(!t||!this.json.questionJSON)return[];var e=this.json.questionJSON.type;if(!e)return[];if(Array.isArray(t)){var n=[];return t.forEach(function(s){var a=x.findProperty(e,s);a&&n.push(a)}),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return x.getDynamicPropertiesByTypes(this.name,e,r)},i}(),cn=function(){function i(){this.customQuestionValues=[]}return i.prototype.add=function(t){if(t){var e=t.name;if(!e)throw"Attribute name is missed";if(e=e.toLowerCase(),this.getCustomQuestionByName(e))throw"There is already registered custom question with name '"+e+"'";if(x.findClass(e))throw"There is already class with name '"+e+"'";var n=new jo(e,t);this.onAddingJson&&this.onAddingJson(e,n.isComposite),this.customQuestionValues.push(n)}},i.prototype.remove=function(t){if(!t)return!1;var e=this.getCustomQuestionIndex(t.toLowerCase());return e<0?!1:(this.removeByIndex(e),!0)},Object.defineProperty(i.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),i.prototype.getCustomQuestionByName=function(t){var e=this.getCustomQuestionIndex(t);return e>=0?this.customQuestionValues[e]:void 0},i.prototype.getCustomQuestionIndex=function(t){for(var e=0;e<this.customQuestionValues.length;e++)if(this.customQuestionValues[e].name===t)return e;return-1},i.prototype.removeByIndex=function(t){x.removeClass(this.customQuestionValues[t].name),this.customQuestionValues.splice(t,1)},i.prototype.clear=function(t){for(var e=this.customQuestionValues.length-1;e>=0;e--)(t||!this.customQuestionValues[e].json.internal)&&this.removeByIndex(e)},i.prototype.createQuestion=function(t,e){return e.isComposite?this.createCompositeModel(t,e):this.createCustomModel(t,e)},i.prototype.createCompositeModel=function(t,e){return this.onCreateComposite?this.onCreateComposite(t,e):new _o(t,e)},i.prototype.createCustomModel=function(t,e){return this.onCreateCustom?this.onCreateCustom(t,e):new Fo(t,e)},i.Instance=new i,i}(),No=function(i){un(t,i);function t(e,n){var r=i.call(this,e)||this;return r.customQuestion=n,Ne.createProperties(r),le.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),le.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?i.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.getElement()&&this.getElement().addUsedLocales(e)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return e?e.needResponsiveWidth():!1},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,e,r)},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,e,e.ownerPropertyName,n,o)},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this);var e=this.getElement();e&&e.onFirstRendering()},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this);var e=this.getElement();e&&e.onHidingContent()},t.prototype.getProgressInfo=function(){var e=i.prototype.getProgressInfo.call(this);return this.getElement()&&(e=this.getElement().getProgressInfo()),this.isRequired&&e.requiredQuestionCount==0&&(e.requiredQuestionCount=1,this.isEmpty()||(e.answeredQuestionCount=1)),e},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(e,n){this.isSettingValOnLoading=!0,i.prototype.setSurveyImpl.call(this,e,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.customQuestion&&this.customQuestion.onAfterRender(this,e)},t.prototype.onUpdateQuestionCssClasses=function(e,n){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,n)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,e)},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateElementCss()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),this.customQuestion){var o=this.customQuestion.onGetErrorText(this);o&&e.push(new we(o,this))}},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,n,r,o){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,n);var s=this.convertDataName(e),a=this.convertDataValue(e,n);this.valueToDataCallback&&(a=this.valueToDataCallback(a)),this.data.setValue(s,a,r,o),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,n){if(this.customQuestion){var r=n;if(n=this.customQuestion.onValueChanging(this,e,n),!P.isTwoValueEquals(n,r)){var o=this.getQuestionByName(e);if(o)return o.value=n,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,n){return n},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,n){this.data&&this.data.setVariable(e,n)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,n,r){this.data&&this.data.setComment(this.getValueName(),n,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(e,n,r){return r?this.customQuestion.getDisplayValue(e,n,r):i.prototype.getDisplayValueCore.call(this,e,n)},t}(ue),Fo=function(i){un(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getTemplate=function(){return"custom"},t.prototype.getDynamicProperties=function(){return this.customQuestion.getDynamicProperties()||[]},t.prototype.getDynamicType=function(){return this.questionWrapper?this.questionWrapper.getType():"question"},t.prototype.getOriginalObj=function(){return this.questionWrapper},t.prototype.createWrapper=function(){var e=this;this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=function(n,r,o,s,a){var l=e.getDynamicProperty(n);l&&e.propertyValueChanged(n,r,o,a)})},t.prototype.getDynamicProperty=function(e){for(var n=this.getDynamicProperties(),r=0;r<n.length;r++)if(n[r].name===e)return n[r];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(e,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):i.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(e,n,r,o){this.isValueChanging(e,n)||i.prototype.setValue.call(this,e,n,r,o)},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(e,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=i.prototype.hasErrors.call(this,e,n)),this.updateElementCss(),r},t.prototype.focus=function(e){e===void 0&&(e=!1),this.contentQuestion?this.contentQuestion.focus(e):i.prototype.focus.call(this,e)},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.contentQuestion&&this.contentQuestion.afterRender(e)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,n=this.customQuestion.json,r=null;if(n.questionJSON){this.hasJSONTitle=!!n.questionJSON.title;var o=n.questionJSON.type;if(!o||!x.findClass(o))throw"type attribute in questionJSON is empty or incorrect";r=x.createClass(o),r.fromJSON(n.questionJSON),r=this.checkCreatedQuestion(r)}else n.createQuestion&&(r=this.checkCreatedQuestion(n.createQuestion()));return this.initElement(r),r&&(r.isContentElement=!0,r.name||(r.name="question"),r.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(r,s)},r.hasCssErrorCallback=function(){return e.errors.length>0},r.setValueChangedDirectlyCallback=function(s){e.setValueChangedDirectly(s)}),r},t.prototype.checkCreatedQuestion=function(e){return e&&(e.isQuestion||(Array.isArray(e.questions)&&e.questions.length>0?e=e.questions[0]:e=x.createClass("text"),Fe.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e)},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.contentQuestion&&this.contentQuestion.runCondition(e,n)},t.prototype.convertDataName=function(e){var n=this.contentQuestion;if(!n||e===this.getValueName())return i.prototype.convertDataName.call(this,e);var r=e.replace(n.getValueName(),this.getValueName());return r.indexOf(this.getValueName())==0?r:i.prototype.convertDataName.call(this,e)},t.prototype.convertDataValue=function(e,n){return this.convertDataName(e)==i.prototype.convertDataName.call(this,e)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),!this.isLoadingFromJson&&this.contentQuestion&&!this.isTwoValueEquals(this.getContentQuestionValue(),e)&&this.setContentQuestionValue(this.getUnbindValue(e))},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(e)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():i.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(e){this.isSettingValueChanged||(this.isSettingValueChanged=!0,i.prototype.setValueChangedDirectly.call(this,e),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(e),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var n=this.getDynamicProperties();Array.isArray(n)&&x.addDynamicPropertiesIntoObj(this,e,n)}},t.prototype.initElement=function(e){var n=this;i.prototype.initElement.call(this,e),e&&(e.parent=this,e.afterRenderQuestionCallback=function(r,o){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,r,o)})},t.prototype.updateElementCss=function(e){this.contentQuestion&&this.questionWrapper.updateElementCss(e),i.prototype.updateElementCss.call(this,e)},t.prototype.updateElementCssCore=function(e){this.contentQuestion&&(e=this.contentQuestion.cssClasses),i.prototype.updateElementCssCore.call(this,e)},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentQuestion)},t}(No),ju=function(i){un(t,i);function t(e,n){var r=i.call(this,n)||this;return r.composite=e,r.variableName=n,r}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(mr),_o=function(i){un(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.customQuestion=n,r.settingNewValue=!1,r.textProcessing=new ju(r,t.ItemVariableName),r}return t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=i.prototype.hasErrors.call(this,e,n);return this.contentPanel&&this.contentPanel.hasErrors(e,!1,n)||r},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e),this.contentPanel&&this.contentPanel.updateElementCss(e)},t.prototype.dispose=function(){this.unConnectEditingObj(),i.prototype.dispose.call(this)},t.prototype.updateEditingObj=function(){var e=this,n,r=(n=this.data)===null||n===void 0?void 0:n.getEditingSurveyElement();if(r){var o=r[this.getValueName()];return o&&!o.onPropertyChanged&&(o=void 0),o!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=o,o&&(this.onEditingObjPropertyChanged=function(s,a){e.setNewValueIntoQuestion(a.name,e.editingObjValue[a.name])},o.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}},t.prototype.unConnectEditingObj=function(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(e){var n=this.getQuestionByName(e);return n||i.prototype.findQuestionByName.call(this,e)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createPanel=function(){var e=this,n=x.createClass("panel");n.showQuestionNumbers="off",n.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&n.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(n,this),this.initElement(n),n.readOnly=this.isReadOnly,n.questions.forEach(function(o){o.setParentQuestion(e),o.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(o,s)}}),this.setAfterRenderCallbacks(n),n},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),this.updateEditingObj(),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),i.prototype.onSurveyLoad.call(this),this.contentPanel){var e=this.getContentPanelValue();P.isValueEmpty(e)||(this.value=e)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var n=e.elements,r=0;r<n.length;r++){var o=n[r];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(e){var n=i.prototype.setVisibleIndex.call(this,e);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(e)),n},t.prototype.runCondition=function(e,n){if(i.prototype.runCondition.call(this,e,n),this.contentPanel){var r=e[t.ItemVariableName];e[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(e,n),delete e[t.ItemVariableName],r&&(e[t.ItemVariableName]=r)}},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e);var n=e||{};this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.onSurveyValueChanged(n[r.getValueName()])})},t.prototype.getValue=function(e){var n=this.value;return n?n[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(e,n,r,o){if(this.settingNewValue){this.setNewValueIntoQuestion(e,n);return}if(!this.isValueChanging(e,n)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var s=0,a=this.contentPanel.questions.length+1;s<a&&this.updateValueCoreWithPanelValue();)s++;this.setNewValueIntoQuestion(e,n),i.prototype.setValue.call(this,e,n,r,o),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+e,n)}},t.prototype.setComment=function(e,n,r){var o=this.getUnbindValue(this.value),s=this.getCommentName(e);if(!(!o&&!n||n&&o&&o[s]===n)){n?(o||(o={}),o[s]=n):delete o[s];var a=this.getQuestionByName(e);a&&a.comment!==n&&(a.comment=n),this.value=o}},t.prototype.getComment=function(e){var n=this.getQuestionByName(e);if(n)return n.comment;var r=this.value;return!!r&&r[this.getCommentName(e)]||""},t.prototype.getCommentName=function(e){return e+b.commentSuffix},t.prototype.runPanelTriggers=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.runTriggers(e,n)})},t.prototype.getFilteredValues=function(){var e=this.data?this.data.getFilteredValues():{};return this.contentPanel&&(e[t.ItemVariableName]=this.contentPanel.getValue()),e},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return this.isTwoValueEquals(this.getValueCore(),e)?!1:(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,n){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(n,r.value)&&(r.value=n)},t.prototype.addConditionObjectsByContext=function(e,n){if(this.contentPanel)for(var r=this.contentPanel.questions,o=this.name,s=this.title,a=0;a<r.length;a++)e.push({name:o+"."+r[a].name,text:s+"."+r[a].title,question:r[a]})},t.prototype.collectNestedQuestionsCore=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){return r.collectNestedQuestions(e,n)})},t.prototype.convertDataValue=function(e,n){var r=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return r||(r={}),r.getType||(r=P.getUnbindValue(r)),this.isValueEmpty(n)&&!this.isEditingSurveyElement?delete r[e]:r[e]=n,this.getContentPanelValue(r)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),this.setValuesIntoQuestions(e),!this.isEditingSurveyElement&&this.contentPanel&&(e=this.getContentPanelValue()),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.setValuesIntoQuestions=function(e){if(!(!this.contentPanel||this.settingNewValue)){e=this.getValueForContentPanel(e);var n=this.settingNewValue;this.settingNewValue=!0;for(var r=this.contentPanel.questions,o=0;o<r.length;o++){var s=r[o],a=s.getValueName(),l=this.getCommentName(a),u=e?e[a]:void 0,d=!!e&&e[l]||"";!this.isTwoValueEquals(s.value,u)&&(u!==void 0||!s.isEmpty())&&(s.value=u),s.comment!==d&&(s.comment=d)}this.settingNewValue=n}},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var n=this;if(!(!e||!this.customQuestion))for(var r=e.questions,o=0;o<r.length;o++)r[o].afterRenderQuestionCallback=function(s,a){n.customQuestion.onAfterRenderContentElement(n,s,a)}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.ItemVariableName="composite",t}(No),J=function(){function i(){}return Object.defineProperty(i,"DefaultChoices",{get:function(){var t=oe("choices_Item");return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultColums",{get:function(){var t=oe("matrix_column")+" ";return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultRows",{get:function(){var t=oe("matrix_row")+" ";return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultMutlipleTextItems",{get:function(){var t=oe("multipletext_itemname");return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),i.prototype.registerQuestion=function(t,e,n){n===void 0&&(n=!0),ze.Instance.registerElement(t,e,n)},i.prototype.registerCustomQuestion=function(t){ze.Instance.registerCustomQuestion(t)},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),ze.Instance.unregisterElement(t,e)},i.prototype.clear=function(){ze.Instance.clear()},i.prototype.getAllTypes=function(){return ze.Instance.getAllTypes()},i.prototype.createQuestion=function(t,e){return ze.Instance.createElement(t,e)},i.Instance=new i,i}(),ze=function(){function i(){var t=this;this.creatorHash={},this.registerCustomQuestion=function(e,n){n===void 0&&(n=!0);var r=function(o){var s=x.createClass(e);return s&&(s.name=o),s};t.registerElement(e,r,n)}}return i.prototype.registerElement=function(t,e,n){n===void 0&&(n=!0),this.creatorHash[t]={showInToolbox:n,creator:e}},i.prototype.clear=function(){this.creatorHash={}},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),delete this.creatorHash[t],e&&x.removeClass(t)},i.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},i.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},i.prototype.createElement=function(t,e){var n=this.creatorHash[t];if(n&&n.creator)return n.creator(e);var r=cn.Instance.getCustomQuestionByName(t);return r?cn.Instance.createQuestion(e,r):null},i.prototype.getAllTypesCore=function(t){var e=new Array;for(var n in this.creatorHash)(!t||this.creatorHash[n].showInToolbox)&&e.push(n);return e.sort()},i.Instance=new i,i}(),Nu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vr=function(i){Nu(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],function(){n.expressionRunner&&(n.expressionRunner=n.createRunner())}),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],function(){n.updateFormatedValue()}),n}return t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),!(!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly)&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(e,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,n=this.createExpressionRunner(this.expression);return n.onRunComplete=function(r){e.value=e.roundValue(r),e.unlocCalculation()},n},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return this.runIfReadOnlyValue===!0},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,n){var r=n??this.defaultValue,o="";if(!this.isValueEmpty(r)){var s=this.getValueAsStr(r);o=this.format?this.format.format(s):s}return this.survey&&(o=this.survey.getExpressionDisplayValue(this,r,o)),o},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){fn().indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){if(e!==1/0)return this.precision<0||!P.isNumber(e)?e:parseFloat(e.toFixed(this.precision))},t.prototype.getValueAsStr=function(e){if(this.displayStyle=="date"){var n=Z("question-expression",e);if(n&&n.toLocaleDateString)return n.toLocaleDateString()}if(this.displayStyle!="none"&&P.isNumber(e)){var r=this.getLocale();r||(r="en");var o={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(o.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(o.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,o)}return e.toString()},t}(ue);function fn(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}x.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return fn()},default:"USD",visibleIf:function(i){return i.displayStyle==="currency"}},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"resetValueIf",visible:!1},{name:"setValueIf",visible:!1},{name:"setValueExpression",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new vr("")},"question"),J.Instance.registerQuestion("expression",function(i){return new vr(i)});var Fu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();function pn(i,t,e,n){i.storeOthersAsComment=e?e.storeOthersAsComment:!1,(!i.choices||i.choices.length==0)&&i.choicesByUrl.isEmpty&&(i.choices=e.choices),i.choicesByUrl.isEmpty||i.choicesByUrl.run(n.getTextProcessor())}function _u(i,t,e,n){pn(i,t,e,n),i.locPlaceholder&&i.locPlaceholder.isEmpty&&!e.locPlaceholder.isEmpty&&(i.optionsCaption=e.optionsCaption)}var br={dropdown:{onCellQuestionUpdate:function(i,t,e,n){_u(i,t,e,n)}},checkbox:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},radiogroup:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},tagbox:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(i,t,e,n){i.renderAs=t.renderAs}},expression:{},rating:{}},jt=function(i){Fu(t,i);function t(e,n,r){var o=i.call(this)||this;return o.indexValue=-1,o._hasVisibleCell=!0,o.isColumnsVisibleIf=!0,o.previousChoicesId=void 0,o.colOwnerValue=r,o.createLocalizableString("totalFormat",o),o.createLocalizableString("cellHint",o),o.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){o.doShowInMultipleColumnsChanged()}),o.registerPropertyChangedHandlers(["visible"],function(){o.doColumnVisibilityChanged()}),o.updateTemplateQuestion(void 0,e,n),o}return t.getColumnTypes=function(){var e=[];for(var n in br)e.push(n);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return e.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.cellType==="default"?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.templateQuestion.addUsedLocales(e)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnVisible",{get:function(){return this.isDesignMode?!0:this.visible&&this.hasVisibleCell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.templateQuestion.visible},set:function(e){this.templateQuestion.visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),t.prototype.getVisibleMultipleChoices=function(){var e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;for(var n=new Array,r=0;r<e.length;r++){var o=e[r];this._visiblechoices.indexOf(o.value)>-1&&n.push(o)}return n},Object.defineProperty(t.prototype,"getVisibleChoicesInCell",{get:function(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;var e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]},enumerable:!1,configurable:!0}),t.prototype.setVisibleChoicesInCell=function(e){this._visiblechoices=e},Object.defineProperty(t.prototype,"isFilteredMultipleColumns",{get:function(){if(!this.showInMultipleColumns)return!1;var e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(e[n].visibleIf)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.templateQuestion.resetValueIf},set:function(e){this.templateQuestion.resetValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.templateQuestion.defaultValueExpression},set:function(e){this.templateQuestion.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.templateQuestion.setValueIf},set:function(e){this.templateQuestion.setValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.templateQuestion.setValueExpression},set:function(e){this.templateQuestion.setValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return this.totalType!="none"||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalAlignment",{get:function(){return this.getPropertyValue("totalAlignment")},set:function(e){this.setPropertyValue("totalAlignment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){fn().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.colOwner?this.colOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var n=this.calcCellQuestionType(e),r=this.createNewQuestion(n);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&!e.cellType&&e.choices&&(e.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,n,r){r===void 0&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,n){var r=e.getType(),o=br[r];o&&o.onCellQuestionUpdate&&o.onCellQuestionUpdate(e,this,this.colOwner,n)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var n=this.getDefaultCellQuestionType();return e&&this.colOwner&&(n=this.colOwner.getCustomCellType(this,e,n)),n},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),e!=="default"?e:this.colOwner?this.colOwner.getCellType():b.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e,n,r){var o=this,s=this.getDefaultCellQuestionType(e),a=this.templateQuestion?this.templateQuestion.getType():"";s!==a&&(this.templateQuestion&&this.removeProperties(a),this.templateQuestionValue=this.createNewQuestion(s),this.templateQuestion.locOwner=this,this.addProperties(s),n&&(this.name=n),r?this.title=r:this.templateQuestion.locTitle.strChanged(),b.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add(function(l,u){o.propertyValueChanged(u.name,u.oldValue,u.newValue,u.arrayChanges,u.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(l,u){o.doItemValuePropertyChanged(u.propertyName,u.obj,u.name,u.newValue,u.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return o.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var n=x.createClass(e);return n||(n=x.createClass("text")),n.loadingOwner=this,n.isEditableTemplateElement=!0,n.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(n),this.setParentQuestionToTemplate(n),n},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,n){var r=this;if(n===void 0&&(n=null),this.templateQuestion){var o=new fe().toJsonObject(this.templateQuestion,!0);if(n&&n(o),o.type=e.getType(),this.cellType==="default"&&this.colOwner&&this.colOwner.hasChoices()&&delete o.choices,delete o.itemComponent,this.jsonObj&&o.type==="rating"&&Object.keys(this.jsonObj).forEach(function(a){o[a]=r.jsonObj[a]}),o.choicesOrder==="random"){o.choicesOrder="none";var s=this.templateQuestion.visibleChoices;Array.isArray(s)&&(o.choices=s)}new fe().toObject(o,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&!(r.previousChoicesId&&r.previousChoicesId!==e.id)){r.previousChoicesId=e.id;var a=e.visibleChoices;r.templateQuestion.choices=a,r.propertyValueChanged("choices",a,a)}}}},t.prototype.propertyValueChanged=function(e,n,r,o,s){if(i.prototype.propertyValueChanged.call(this,e,n,r,o,s),e==="isRequired"&&this.updateIsRenderedRequired(r),!(!this.colOwner||this.isLoadingFromJson)){if(this.isShowInMultipleColumns){if(e==="choicesOrder")return;["visibleChoices","choices"].indexOf(e)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}x.hasOriginalProperty(this,e)&&this.colOwner.onColumnPropertyChanged(this,e,r)}},t.prototype.doItemValuePropertyChanged=function(e,n,r,o,s){x.hasOriginalProperty(n,r)&&this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,e,n,r,o,s)},t.prototype.doShowInMultipleColumnsChanged=function(){this.colOwner!=null&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){this.colOwner!=null&&!this.isDesignMode&&this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return x.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];delete this[o.name],o.serializationProperty&&delete this[o.serializationProperty]}},t.prototype.addProperties=function(e){var n=this.getProperties(e);x.addDynamicPropertiesIntoObj(this,this.templateQuestion,n)},t}(z);x.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var i=jt.getColumnTypes();return i.splice(0,0,"default"),i}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(i,t){i&&t&&(t.value=i.minWidth)}},"width",{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(i){return i.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",visibleIf:function(i){return!i.isShowInMultipleColumns},default:"none",choices:["none","sum","count","min","max","avg"]},{name:"totalExpression:expression",visibleIf:function(i){return!i.isShowInMultipleColumns}},{name:"totalFormat",serializationProperty:"locTotalFormat",visibleIf:function(i){return i.hasTotal}},{name:"totalDisplayStyle",visibleIf:function(i){return i.hasTotal},default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",visibleIf:function(i){return i.hasTotal},default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",visibleIf:function(i){return i.hasTotal},choices:function(){return fn()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"totalMinimumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"renderAs",default:"default",visible:!1}],function(){return new jt("")});var Cr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Nt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Bu=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Bo(i,t,e){return i+(t?"-error":"")+(e?"-detail":"")}var De=function(){function i(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=i.counter++}return Object.defineProperty(i.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){var t=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(t+="-"+(Number.isInteger(this.choiceIndex)?"index"+this.choiceIndex.toString():this.item.id)),Bo(t,this.isErrorsCell,this.isDetailRowCell)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this.itemValue},set:function(t){this.itemValue=t,t&&(t.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isFirstChoice",{get:function(){return this.choiceIndex===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){var t=new O().append(this.classNameValue);return this.hasQuestion&&t.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),t.toString()},set:function(t){this.classNameValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isVisible",{get:function(){var t;return!this.hasQuestion&&!this.isErrorsCell||!(!((t=this.matrix)===null||t===void 0)&&t.isMobile)||this.question.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showResponsiveTitle",{get:function(){var t;return this.hasQuestion&&((t=this.matrix)===null||t===void 0?void 0:t.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveTitleCss",{get:function(){return new O().append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:"";var t=this.cell.column.cellHint;return t?t.trim()===""?"":this.cell.column.locCellHint.renderedHtml:this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),i.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},i.prototype.calculateFinalClassName=function(t){var e=this.cell.question.cssClasses,n=new O().append(e.itemValue,!!e).append(e.asCell,!!e);return n.append(t.cell,n.isEmpty()&&!!t).append(t.choiceCell,this.isChoice).toString()},i.prototype.focusIn=function(){this.question&&this.question.focusIn()},i.counter=1,i}(),Pr=function(i){Cr(t,i);function t(e,n){n===void 0&&(n=!1);var r=i.call(this)||this;return r.cssClasses=e,r.isDetailRow=n,r.hasEndActions=!1,r.isErrorsRow=!1,r.cells=[],r.idValue=t.counter++,r}return Object.defineProperty(t.prototype,"id",{get:function(){var e;return Bo(((e=this.row)===null||e===void 0?void 0:e.id)||this.idValue.toString(),this.isErrorsRow,this.isDetailRow)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){var e,n;return new O().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,(e=this.row)===null||e===void 0?void 0:e.hasPanel).append(this.cssClasses.expandedRow,((n=this.row)===null||n===void 0?void 0:n.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.prototype.focusCell=function(e){if(this.rootElement){var n=":scope td:nth-of-type("+(e+1)+") input, :scope td:nth-of-type("+(e+1)+") button",r=this.rootElement.querySelectorAll(n)[0];r&&r.focus()}},t.counter=1,Nt([h({defaultValue:!1})],t.prototype,"isGhostRow",void 0),Nt([h({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),Nt([h({defaultValue:!0})],t.prototype,"visible",void 0),t}(z),ko=function(i){Cr(t,i);function t(e){var n=i.call(this,e)||this;return n.isErrorsRow=!0,n}return Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return new O().append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,n=function(){e.visible=e.cells.some(function(r){return r.question&&r.question.hasVisibleErrors})};this.cells.forEach(function(r){r.question&&r.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n)}),n()},t}(Pr),Vr=function(i){Cr(t,i);function t(e){var n=i.call(this)||this;return n.matrix=e,n._renderedRows=[],n.renderedRowsAnimation=new Qe(n.getRenderedRowsAnimationOptions(),function(r){n._renderedRows=r},function(){return n._renderedRows}),n.hasActionCellInRowsValues={},n.build(),n}return t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,n=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Ae(s)})},r=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Ce(s)})};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(o){return o.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getEnterOptions:function(o,s){return{cssClass:e.cssClasses.rowEnter,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getKey:function(o){return o.id}}},t.prototype.updateRenderedRows=function(){this.renderedRows=this.rows},Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},set:function(e){this.renderedRowsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRow",{get:function(){return this.getPropertyValue("showAddRow",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return this.matrix.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return this.matrix.getErrorLocation()==="bottom"},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var n=this.matrix.canAddRow&&e,r=n,o=n;r&&(this.matrix.getAddRowLocation()==="default"?r=!this.matrix.isColumnLayoutHorizontal:r=this.matrix.getAddRowLocation()!=="bottom"),o&&this.matrix.getAddRowLocation()!=="topBottom"&&(o=!r),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",o)},t.prototype.onAddedRow=function(e,n){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(n);this.rowsActions.splice(n,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var n=0,r=0,o=0;o<this.rows.length;o++){if(r===e){(this.rows[o].isErrorsRow||this.rows[o].isDetailRow)&&(n++,o+1<this.rows.length&&this.rows[o+1].isDetailRow&&n++);break}n++,!this.rows[o].isErrorsRow&&!this.rows[o].isDetailRow&&r++}return r<e?this.rows.length:n},t.prototype.getRenderedDataRowCount=function(){for(var e=0,n=0;n<this.rows.length;n++)!this.rows[n].isErrorsRow&&!this.rows[n].isDetailRow&&e++;return e},t.prototype.onRemovedRow=function(e){var n=this.getRenderedRowIndex(e);if(!(n<0)){this.rowsActions.splice(n,1);var r=1;n<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[n+1].isErrorsRow&&r++,n<this.rows.length-1&&(this.rows[n+1].isDetailRow||this.showCellErrorsBottom&&n+1<this.rows.length-1&&this.rows[n+2].isDetailRow)&&r++,n>0&&this.showCellErrorsTop&&this.rows[n-1].isErrorsRow&&(n--,r++),this.rows.splice(n,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,n){var r=this.getRenderedRowIndex(e);if(!(r<0)){var o=r;this.showCellErrorsBottom&&o++;var s=o<this.rows.length-1&&this.rows[o+1].isDetailRow?o+1:-1;if(!(n&&s>-1||!n&&s<0))if(n){var a=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(o+1,0,a)}else this.rows.splice(s,1)}},t.prototype.focusActionCell=function(e,n){var r=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){var o=this.getRenderedRowIndex(e);r=this.rows[o]}r==null||r.focusCell(n)},t.prototype.getRenderedRowIndex=function(e){for(var n=0;n<this.rows.length;n++)if(this.rows[n].row==e)return n;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,n=0;n<e.length;n++)this.rowsActions.push(this.buildRowActions(e[n]))},t.prototype.createRenderedRow=function(e,n){return n===void 0&&(n=!1),new Pr(e,n)},t.prototype.createErrorRenderedRow=function(e){return new ko(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,n=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",n),!!n){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action",this.cssClasses.actionsCellDrag)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var r=0;r<this.matrix.columns.length;r++){var o=this.matrix.columns[r];o.isColumnVisible&&(this.matrix.IsMultiplyColumn(o)?this.createMutlipleColumnsHeader(o):this.headerRow.cells.push(this.createHeaderCell(o)))}else{for(var s=this.matrix.visibleRows,r=0;r<s.length;r++){var a=this.createTextCell(s[r].locText);this.setHeaderCellCssClasses(a),a.row=s[r],this.headerRow.cells.push(a)}if(this.matrix.hasFooter){var a=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(a),this.headerRow.cells.push(a)}}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildFooter=function(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText){var e=this.createTextCell(this.matrix.getFooterText());e.className=new O().append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var n=this.matrix.visibleTotalRow.cells,r=0;r<n.length;r++){var o=n[r];if(o.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(o.column))this.createMutlipleColumnsFooter(this.footerRow,o);else{var s=this.createEditCell(o);o.column&&this.setCellWidth(o.column,s),s.className=new O().append(s.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(s)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildRows=function(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()},t.prototype.hasActionCellInRows=function(e){return this.hasActionCellInRowsValues[e]===void 0&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var n=this;return e=="end"&&this.hasRemoveRows?!0:this.matrix.visibleRows.some(function(r,o){return!n.isValueEmpty(n.getRowActions(o,e))})},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,n=[],r=0;r<e.length;r++)this.addHorizontalRow(n,e[r]);return n},t.prototype.addHorizontalRow=function(e,n,r){r===void 0&&(r=-1);var o=this.createHorizontalRow(n),s=this.createErrorRow(o);if(o.row=n,r<0&&(r=e.length),this.matrix.isMobile){for(var a=[],l=0;l<o.cells.length;l++)this.showCellErrorsTop&&!s.cells[l].isEmpty&&a.push(s.cells[l]),a.push(o.cells[l]),this.showCellErrorsBottom&&!s.cells[l].isEmpty&&a.push(s.cells[l]);o.cells=a,e.splice(r,0,o)}else e.splice.apply(e,Bu([r,0],this.showCellErrorsTop?[s,o]:[o,s])),r++;n.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(n,o))},t.prototype.getRowDragCell=function(e){var n=new De,r=this.matrix.lockedRowCount;return n.isDragHandlerCell=r<1||e>=r,n.isEmpty=!n.isDragHandlerCell,n.className=this.getActionsCellClassName(n),n.row=this.matrix.visibleRows[e],n},t.prototype.getActionsCellClassName=function(e){var n=this;e===void 0&&(e=null);var r=new O().append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,e==null?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,e==null?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var o=e.item.value.actions;this.cssClasses.actionsCellPrefix&&o.forEach(function(s){r.append(n.cssClasses.actionsCellPrefix+"--"+s.id)})}return r.toString()},t.prototype.getRowActionsCell=function(e,n,r){r===void 0&&(r=!1);var o=this.getRowActions(e,n);if(!this.isValueEmpty(o)){var s=new De,a=this.matrix.allowAdaptiveActions?new en:new Ee;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(a.cssClasses=this.matrix.survey.getCss().actionBar),a.setItems(o);var l=new k(a);return s.item=l,s.isActionsCell=!0,s.isDragHandlerCell=!1,s.isDetailRowCell=r,s.className=this.getActionsCellClassName(s),s.row=this.matrix.visibleRows[e],s}return null},t.prototype.getRowActions=function(e,n){var r=this.rowsActions[e];return Array.isArray(r)?r.filter(function(o){return o.location||(o.location="start"),o.location===n}):[]},t.prototype.buildRowActions=function(e){var n=[];return this.setDefaultRowActions(e,n),this.matrix.survey&&(n=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,n)),n},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return b.matrix.renderRemoveAsIcon&&this.matrix.survey&&this.matrix.survey.css.root==="sd-root-modern"},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,n){var r=this,o=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?n.push(new $({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:new O().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:o.removeRowText,enabled:!o.isInputReadOnly,data:{row:e,question:o},action:function(){o.removeRowUI(e)}})):n.push(new $({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?n.unshift(new $({id:"show-detail-mobile",title:new te(function(){return e.isDetailPanelShowing?r.matrix.getLocalizationString("hideDetails"):r.matrix.getLocalizationString("showDetails")}),showTitle:!0,location:"end",action:function(s){e.showHideDetailPanelClick()}})):n.push(new $({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}})))},t.prototype.createErrorRow=function(e){for(var n=this.createErrorRenderedRow(this.cssClasses),r=0;r<e.cells.length;r++){var o=e.cells[r];o.hasQuestion?this.matrix.IsMultiplyColumn(o.cell.column)?o.isFirstChoice?n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0)):n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0))}return n.onAfterCreated(),n},t.prototype.createHorizontalRow=function(e){var n=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}if(this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText){var o=this.createTextCell(e.locText);o.row=e,n.cells.push(o),this.setCellWidth(null,o),o.className=new O().append(o.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var s=0;s<e.cells.length;s++){var a=e.cells[s];if(a.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(a.column))this.createMutlipleEditCells(n,a);else{a.column.isShowInMultipleColumns&&a.question.visibleChoices.map(function(u){return u.hideCaption=!1});var o=this.createEditCell(a);n.cells.push(o),this.setCellWidth(a.column,o)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,n,r){var o=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var s=this.getRowActionsCell(o,r,n.isDetailRow);if(s)n.cells.push(s),n.hasEndActions=!0;else{var a=new De;a.isEmpty=!0,a.isDetailRowCell=n.isDetailRow,n.cells.push(a)}}},t.prototype.createDetailPanelRow=function(e,n){var r=this.matrix.isDesignMode,o=this.createRenderedRow(this.cssClasses,!0);o.row=e;var s=new De;this.matrix.hasRowText&&(s.colSpans=2),s.isEmpty=!0,r||o.cells.push(s);var a=null;this.hasActionCellInRows("end")&&(a=new De,a.isEmpty=!0);var l=new De;return l.panel=e.detailPanel,l.colSpans=n.cells.length-(r?0:s.colSpans)-(a?a.colSpans:0),l.className=this.cssClasses.detailPanelCell,o.cells.push(l),a&&(this.matrix.isMobile?this.addRowActionsCell(e,o,"end"):o.cells.push(a)),typeof this.matrix.onCreateDetailPanelRenderedRowCallback=="function"&&this.matrix.onCreateDetailPanelRenderedRowCallback(o),o},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,n=[],r=0;r<e.length;r++){var o=e[r];if(o.isColumnVisible)if(this.matrix.IsMultiplyColumn(o))this.createMutlipleVerticalRows(n,o,r);else{var s=this.createVerticalRow(o,r),a=this.createErrorRow(s);this.showCellErrorsTop?(n.push(a),n.push(s)):(n.push(s),n.push(a))}}return this.hasActionCellInRows("end")&&n.push(this.createEndVerticalActionRow()),n},t.prototype.createMutlipleVerticalRows=function(e,n,r){var o=this.getMultipleColumnChoices(n);if(o)for(var s=0;s<o.length;s++){var a=this.createVerticalRow(n,r,o[s],s),l=this.createErrorRow(a);this.showCellErrorsTop?(e.push(l),e.push(a)):(e.push(a),e.push(l))}},t.prototype.createVerticalRow=function(e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=-1);var s=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var a=r?r.locText:e.locTitle,l=this.createTextCell(a);l.column=e,l.className=new O().append(l.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),s.cells.push(l)}for(var u=this.matrix.visibleRows,d=0;d<u.length;d++){var v=r,V=o>=0?o:d,T=u[d].cells[n],R=r?T.question.visibleChoices:void 0;R&&V<R.length&&(v=R[V]);var N=this.createEditCell(T,v);N.item=v,N.choiceIndex=V,s.cells.push(N)}return this.matrix.hasTotal&&s.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[n])),s},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var n=this.matrix.visibleRows,r=0;r<n.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,n,r){r===void 0&&(r=!1);var o=r?this.getMultipleColumnChoices(n.column):n.question.visibleChoices;if(o)for(var s=0;s<o.length;s++){var a=this.createEditCell(n,r?void 0:o[s]);r||(this.setItemCellCssClasses(a),a.choiceIndex=s),e.cells.push(a)}},t.prototype.setItemCellCssClasses=function(e){e.className=new O().append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,n){n===void 0&&(n=void 0);var r=new De;return r.cell=e,r.row=e.row,r.column=e.column,r.question=e.question,r.matrix=this.matrix,r.item=n,r.isOtherChoice=!!n&&!!e.question&&e.question.otherItem===n,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createErrorCell=function(e,n){var r=new De;return r.question=e.question,r.row=e.row,r.matrix=this.matrix,r.isErrorsCell=!0,r.className=new O().append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),r},t.prototype.createMutlipleColumnsFooter=function(e,n){this.createMutlipleEditCells(e,n,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var n=this.getMultipleColumnChoices(e);if(n)for(var r=0;r<n.length;r++){var o=this.createTextCell(n[r].locText);this.setHeaderCell(e,o),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o)}},t.prototype.getMultipleColumnChoices=function(e){var n=e.templateQuestion.choices;return n&&Array.isArray(n)&&n.length==0?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(n=e.getVisibleMultipleChoices(),!n||!Array.isArray(n)?null:n)},t.prototype.setHeaderCellCssClasses=function(e,n,r){e.className=new O().append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+n,!!n).append(r,!!r).toString()},t.prototype.createHeaderCell=function(e,n,r){n===void 0&&(n=null);var o=e?this.createTextCell(e.locTitle):this.createEmptyCell();return o.column=e,this.setHeaderCell(e,o),n||(n=e&&e.cellType!=="default"?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(o,n,r),o},t.prototype.setHeaderCell=function(e,n){this.setCellWidth(e,n)},t.prototype.setCellWidth=function(e,n){n.minWidth=e!=null?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),n.width=e!=null?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var n=new De;return n.locTitle=e,this.cssClasses.cell&&(n.className=this.cssClasses.cell),n},t.prototype.createEmptyCell=function(e){e===void 0&&(e=!1);var n=this.createTextCell(null);return n.isEmpty=!0,n.className=new O().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),n},Nt([ae({onPush:function(e,n,r){r.updateRenderedRows()},onRemove:function(e,n,r){r.updateRenderedRows()}})],t.prototype,"rows",void 0),Nt([ae()],t.prototype,"_renderedRows",void 0),t}(z),dn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wr=function(){function i(t,e,n){this.column=t,this.row=e,this.data=n,this.questionValue=this.createQuestion(t,e,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(e)}return i.prototype.updateCellQuestionTitleDueToAccessebility=function(t){var e=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!t||!t.getSurvey())return e.questionValue.title;var r=t.getAccessbilityText();return r?e.column.colOwner.getCellAriaLabel(r,e.questionValue.title):e.questionValue.title}},i.prototype.locStrsChanged=function(){this.question.locStrsChanged()},i.prototype.createQuestion=function(t,e,n){var r=this,o=n.createQuestion(this.row,this.column);return o.readOnlyCallback=function(){return!r.row.isRowEnabled()},o.validateValueCallback=function(){return n.validateCell(e,t.name,e.value)},Ne.getProperties(t.getType()).forEach(function(s){var a=s.name;t[a]!==void 0&&(o[a]=t[a])}),o},Object.defineProperty(i.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.question.value},set:function(t){this.question.value=t},enumerable:!1,configurable:!0}),i.prototype.getQuestionWrapperClassName=function(t){return t},i.prototype.runCondition=function(t,e){this.question.runCondition(t,e)},i}(),ku=function(i){dn(t,i);function t(e,n,r){var o=i.call(this,e,n,r)||this;return o.column=e,o.row=n,o.data=r,o.updateCellQuestion(),o}return t.prototype.createQuestion=function(e,n,r){var o=x.createClass("expression");return o.setSurveyImpl(n),o},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),i.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getQuestionWrapperClassName=function(e){var n=i.prototype.getQuestionWrapperClassName.call(this,e);if(!n)return n;this.question.expression&&this.question.expression!="''"&&(n+=" "+e+"--expression");var r=this.column.totalAlignment;return r==="auto"&&this.column.cellType==="dropdown"&&(r="left"),n+" "+e+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if(this.column.totalType=="none")return"''";var e=this.column.totalType+"InArray";return U.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(wr),qu=function(i){dn(t,i);function t(e,n,r){var o=i.call(this,n)||this;return o.row=e,o.variableName=n,o.parentTextProcessor=r,o}return t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==_e.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):[_e.RowValueVariableName,_e.RowNameVariableName].indexOf(e.name)>-1?(e.isExists=!0,e.value=this.row.rowName,!0):!1},t}(mr),_e=function(){function i(t,e){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(e),this.textPreProcessor=new qu(this,i.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=i.getId()}return i.getId=function(){return"srow_"+i.idCounter++},Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),i.prototype.isRowEnabled=function(){return!0},i.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(i.prototype,"isVisible",{get:function(){return this.visible&&this.isItemVisible()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue},set:function(t){var e;this.visible!==t&&(this.visibleValue=t,(e=this.data)===null||e===void 0||e.onRowVisibilityChanged(this))},enumerable:!1,configurable:!0}),i.prototype.isItemVisible=function(){return!0},Object.defineProperty(i.prototype,"value",{get:function(){for(var t={},e=this.questions,n=0;n<e.length;n++){var r=e[n];r.isEmpty()||(t[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(t[r.getValueName()+z.commentSuffix]=r.comment)}return t},set:function(t){this.isSettingValue=!0,this.subscribeToChanges(t);for(var e=this.questions,n=0;n<e.length;n++){var r=e[n],o=this.getCellValue(t,r.getValueName()),s=r.comment,a=t?t[r.getValueName()+z.commentSuffix]:"";a==null&&(a=""),r.updateValueFromSurvey(o),(a||this.isTwoValueEquals(s,r.comment))&&r.updateCommentFromSurvey(a),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(i.prototype,"hasPanel",{get:function(){return this.data?this.data.hasDetailPanel(this):!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDetailPanelShowing",{get:function(){return this.data?this.data.getIsDetailPanelShowing(this):!1},enumerable:!1,configurable:!0}),i.prototype.setIsDetailPanelShowing=function(t){!t&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,t),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},i.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},i.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},i.prototype.hideDetailPanel=function(t){t===void 0&&(t=!1),this.setIsDetailPanelShowing(!1),t&&(this.detailPanelValue=null)},i.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!(this.detailPanelValue||!this.hasPanel||!this.data)){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var t=this.detailPanelValue.questions,e=this.data.getRowValue(this.data.getRowIndex(this));if(!P.isValueEmpty(e))for(var n=0;n<t.length;n++){var r=t[n].getValueName(),o=this.editingObj?x.getObjPropertyValue(this.editingObj,r):e[r];P.isValueEmpty(o)||(t[n].value=o)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},i.prototype.getAllValues=function(){return this.value},i.prototype.getFilteredValues=function(){var t=this.data?this.data.getDataFilteredValues():{},e=this.validationValues;if(e)for(var n in e)t[n]=e[n];return t.row=this.getAllValues(),this.applyRowVariablesToValues(t,this.rowIndex),t},i.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},i.prototype.applyRowVariablesToValues=function(t,e){t[i.IndexVariableName]=e,t[i.RowValueVariableName]=this.rowName,t[i.RowNameVariableName]=this.rowName},i.prototype.runCondition=function(t,e,n){if(this.data){t[i.OwnerVariableName]=this.data.getFilteredData();var r=this.rowIndex;this.applyRowVariablesToValues(t,r);var o=P.createCopy(e);o[i.RowVariableName]=this;var s=r>0?this.data.getRowValue(this.rowIndex-1):this.value;n?(t[i.RowVariableName]=s,this.setRowsVisibleIfValues(t),this.visible=new de(n).run(t,e)):this.visible=!0;for(var a=0;a<this.cells.length;a++)a>0&&mt(this.value,s),t[i.RowVariableName]=s,this.cells[a].runCondition(t,o);this.detailPanel&&this.detailPanel.runCondition(t,o),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}},i.prototype.updateElementVisibility=function(){this.cells.forEach(function(t){return t.question.updateElementVisibility()}),this.detailPanel&&this.detailPanel.updateElementVisibility()},i.prototype.setRowsVisibleIfValues=function(t){},i.prototype.getNamesWithDefaultValues=function(){var t=[];return this.questions.forEach(function(e){e.isValueDefault&&t.push(e.getValueName())}),t},i.prototype.clearValue=function(t){for(var e=this.questions,n=0;n<e.length;n++)e[n].clearValue(t)},i.prototype.onAnyValueChanged=function(t,e){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t,e)},i.prototype.getDataValueCore=function(t,e){var n=this.getSurvey();return n?n.getDataValueCore(t,e):t[e]},i.prototype.getValue=function(t){var e=this.getQuestionByName(t);return e?e.value:null},i.prototype.setValue=function(t,e){this.setValueCore(t,e,!1)},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getQuestionByName(t);return e?e.comment:""},i.prototype.setComment=function(t,e,n){this.setValueCore(t,e,!0)},i.prototype.findQuestionByName=function(t){if(t){var e=i.RowVariableName+".";if(t.indexOf(e)===0)return this.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.setValueCore=function(t,e,n){if(!this.isSettingValue){this.updateQuestionsValue(t,e,n),n||this.updateSharedQuestionsValue(t,e);var r=this.value,o=n?t+z.commentSuffix:t,s=e,a=this.getQuestionByName(t),l=this.data.onRowChanging(this,o,r);if(a&&!this.isTwoValueEquals(l,s)&&(this.isSettingValue=!0,n?a.comment=l:a.value=l,this.isSettingValue=!1,r=this.value),!(this.data.isValidateOnValueChanging&&this.hasQuestonError(a))){var u=e==null&&!a||n&&!e&&!!a;this.data.onRowChanged(this,o,r,u),o&&this.runTriggers(hn.RowVariableName+"."+o,r),this.onAnyValueChanged(i.RowVariableName,"")}}},i.prototype.updateQuestionsValue=function(t,e,n){if(this.detailPanel){var r=this.getQuestionByColumnName(t),o=this.detailPanel.getQuestionByName(t);if(!(!r||!o)){var s=this.isTwoValueEquals(e,n?r.comment:r.value),a=s?o:r;this.isSettingValue=!0,n?a.comment=e:a.value=e,this.isSettingValue=!1}}},i.prototype.updateSharedQuestionsValue=function(t,e){var n=this.getQuestionsByValueName(t);if(n.length>1)for(var r=0;r<n.length;r++)P.isTwoValueEquals(n[r].value,e)||(this.isSettingValue=!0,n[r].updateValueFromSurvey(e),this.isSettingValue=!1)},i.prototype.runTriggers=function(t,e){t&&this.questions.forEach(function(n){return n.runTriggers(t,e)})},i.prototype.hasQuestonError=function(t){if(!t)return!1;if(t.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(t.isEmpty())return!1;var e=this.getCellByColumnName(t.name);return!e||!e.column||!e.column.isUnique?!1:this.data.checkIfValueInRowDuplicated(this,t)},Object.defineProperty(i.prototype,"isEmpty",{get:function(){var t=this.value;if(P.isValueEmpty(t))return!0;for(var e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},enumerable:!1,configurable:!0}),i.prototype.getQuestionByColumn=function(t){var e=this.getCellByColumn(t);return e?e.question:null},i.prototype.getCellByColumn=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column==t)return this.cells[e];return null},i.prototype.getCellByColumnName=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column.name==t)return this.cells[e];return null},i.prototype.getQuestionByColumnName=function(t){var e=this.getCellByColumnName(t);return e?e.question:null},Object.defineProperty(i.prototype,"questions",{get:function(){for(var t=[],e=0;e<this.cells.length;e++)t.push(this.cells[e].question);for(var n=this.detailPanel?this.detailPanel.questions:[],e=0;e<n.length;e++)t.push(n[e]);return t},enumerable:!1,configurable:!0}),i.prototype.getQuestionByName=function(t){var e=this.getQuestionByColumnName(t);return e||(this.detailPanel?this.detailPanel.getQuestionByName(t):null)},i.prototype.getQuestionsByName=function(t){var e=[],n=this.getQuestionByColumnName(t);return n&&e.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(t),n&&e.push(n)),e},i.prototype.getQuestionsByValueName=function(t){for(var e=[],n=0;n<this.cells.length;n++){var r=this.cells[n];r.question&&r.question.getValueName()===t&&e.push(r.question)}return this.detailPanel&&(e=e.concat(this.detailPanel.getQuestionsByValueName(t))),e},i.prototype.getSharedQuestionByName=function(t){return this.data?this.data.getSharedQuestionByName(t,this):null},i.prototype.clearIncorrectValues=function(t){for(var e in t){var n=this.getQuestionByName(e);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(e,n.value)}else!this.getSharedQuestionByName(e)&&e.indexOf(b.matrix.totalsSuffix)<0&&this.setValue(e,null)}},i.prototype.getLocale=function(){return this.data?this.data.getLocale():""},i.prototype.getMarkdownHtml=function(t,e){return this.data?this.data.getMarkdownHtml(t,e):void 0},i.prototype.getRenderer=function(t){return this.data?this.data.getRenderer(t):null},i.prototype.getRendererContext=function(t){return this.data?this.data.getRendererContext(t):t},i.prototype.getProcessedText=function(t){return this.data?this.data.getProcessedText(t):t},i.prototype.locStrsChanged=function(){for(var t=0;t<this.cells.length;t++)this.cells[t].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},i.prototype.updateCellQuestionOnColumnChanged=function(t,e,n){var r=this.getCellByColumn(t);r&&this.updateCellOnColumnChanged(r,e,n)},i.prototype.updateCellQuestionOnColumnItemValueChanged=function(t,e,n,r,o,s){var a=this.getCellByColumn(t);a&&this.updateCellOnColumnItemValueChanged(a,e,n,r,o,s)},i.prototype.onQuestionReadOnlyChanged=function(){for(var t=this.questions,e=0;e<t.length;e++){var n=t[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},i.prototype.hasErrors=function(t,e,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=e.validationValues;for(var s=0;s<o.length;s++)if(o[s]){var a=o[s].question;!a||!a.visible||(a.onCompletedAsyncValidators=function(u){n()},!(e&&e.isOnValueChanged===!0&&a.isEmpty())&&(r=a.hasErrors(t,e)||r))}if(this.hasPanel){this.ensureDetailPanel();var l=this.detailPanel.hasErrors(t,!1,e);!e.hideErroredPanel&&l&&t&&(e.isSingleDetailPanel&&(e.hideErroredPanel=!0),this.showDetailPanel()),r=l||r}return this.validationValues=void 0,r},i.prototype.updateCellOnColumnChanged=function(t,e,n){e==="choices"&&Array.isArray(n)&&n.length===0&&this.data&&(n=this.data.choices),t.question[e]=n},i.prototype.updateCellOnColumnItemValueChanged=function(t,e,n,r,o,s){var a=t.question[e];if(Array.isArray(a)){var l=r==="value"?s:n.value,u=k.getItemByValue(a,l);u&&(u[r]=o)}},i.prototype.buildCells=function(t){this.isSettingValue=!0;for(var e=this.data.columns,n=0;n<e.length;n++){var r=e[n],o=this.createCell(r);this.cells.push(o);var s=this.getCellValue(t,r.name);if(!P.isValueEmpty(s)){o.question.value=s;var a=r.name+z.commentSuffix;t&&!P.isValueEmpty(t[a])&&(o.question.comment=t[a])}}this.isSettingValue=!1},i.prototype.isTwoValueEquals=function(t,e){return P.isTwoValueEquals(t,e,!1,!0,!1)},i.prototype.getCellValue=function(t,e){return this.editingObj?x.getObjPropertyValue(this.editingObj,e):t?t[e]:void 0},i.prototype.createCell=function(t){return new wr(t,this,this.data)},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(i.prototype,"rowIndex",{get:function(){return this.getRowIndex()},enumerable:!1,configurable:!0}),i.prototype.getRowIndex=function(){return this.data?this.data.getRowIndex(this)+1:-1},Object.defineProperty(i.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},i.prototype.subscribeToChanges=function(t){var e=this;!t||!t.getType||!t.onPropertyChanged||t!==this.editingObj&&(this.editingObjValue=t,this.onEditingObjPropertyChanged=function(n,r){e.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},i.prototype.updateOnSetValue=function(t,e){this.isSettingValue=!0;for(var n=this.getQuestionsByName(t),r=0;r<n.length;r++)n[r].value=e;this.isSettingValue=!1},i.RowVariableName="row",i.OwnerVariableName="self",i.IndexVariableName="rowIndex",i.RowValueVariableName="rowValue",i.RowNameVariableName="rowName",i.idCounter=1,i}(),hn=function(i){dn(t,i);function t(e){var n=i.call(this,e,null)||this;return n.buildCells(null),n}return t.prototype.createCell=function(e){return new ku(e,this,this.data)},t.prototype.setValue=function(e,n){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(e,n,r){var o=0,s;do s=P.getUnbindValue(this.value),i.prototype.runCondition.call(this,e,n,""),o++;while(!P.isTwoValueEquals(s,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,n,r){e.updateCellQuestion()},t}(_e),bt=function(i){dn(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],function(){n.updateColumnsAndRows()}),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],function(){n.clearRowsAndResetRenderedTable()}),n.registerPropertyChangedHandlers(["transposeData","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode","displayMode"],function(){n.resetRenderedTable()}),n}return Object.defineProperty(t,"defaultCellType",{get:function(){return b.matrix.defaultCellType},set:function(e){b.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var n=J.DefaultColums,r=0;r<n.length;r++)e.addColumn(n[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(n){n.colOwner=e,e.onAddColumn&&e.onAddColumn(n),e.survey&&e.survey.matrixColumnAdded(e,n)},function(n){n.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(n)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),e.ownerPropertyName==="choices"&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"transposeData",{get:function(){return this.getPropertyValue("transposeData")},set:function(e){this.setPropertyValue("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.transposeData?"vertical":"horizontal"},set:function(e){this.transposeData=e==="vertical"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailErrorLocation",{get:function(){return this.getPropertyValue("detailErrorLocation")},set:function(e){this.setPropertyValue("detailErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellErrorLocation",{get:function(){return this.getPropertyValue("cellErrorLocation")},set:function(e){this.setPropertyValue("cellErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){var n=e.parent?this.detailErrorLocation:this.cellErrorLocation;return n!=="default"?n:i.prototype.getChildErrorLocation.call(this,e)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return this.isMobile?!0:!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return this.isUniqueCaseSensitiveValue!==void 0?this.isUniqueCaseSensitiveValue:b.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return x.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,n){},t.prototype.onRowsChanged=function(){this.clearVisibleRows(),this.resetRenderedTable(),i.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,!!this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.clearVisibleRows(),!!this.generatedVisibleRows){for(var e=0;e<this.generatedVisibleRows.length;e++)this.generatedVisibleRows[e].dispose();i.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new Vr(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var n={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){n.column=this.columns[r],n.columnName=n.column.name;var o=e.cells[r];n.cell=o,n.cellQuestion=o.question,n.value=o.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(n),this.survey.matrixCellCreated(this,n)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",b.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.isSelectCellType=function(){return x.isDescendantOf(this.cellType,"selectbase")},t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var n=0;n<e.length;n++)e[n].setIndex(n)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,n,r){if(this.updateHasFooter(),!!this.generatedVisibleRows){for(var o=0;o<this.generatedVisibleRows.length;o++)this.generatedVisibleRows[o].updateCellQuestionOnColumnChanged(e,n,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,n,r),this.onColumnsChanged(),n=="isRequired"&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,n,r,o,s,a){if(this.generatedVisibleRows)for(var l=0;l<this.generatedVisibleRows.length;l++)this.generatedVisibleRows[l].updateCellQuestionOnColumnItemValueChanged(e,n,r,o,s,a)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnVisibilityChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnCellTypeChanged=function(e){this.resetTableAndRows()},t.prototype.resetTableAndRows=function(){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,n,r){if(!this.survey)return r;var o={rowValue:n.value,row:n,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,o),o.cellType},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);for(var r="",o=n.length-1;o>=0&&n[o]!=".";o--)r=n[o]+r;var s=void 0,a=this.getColumnByName(r);return a?s=a.createCellQuestion(null):this.detailPanelMode!=="none"&&(s=this.detailPanel.getQuestionByName(r)),s?s.getConditionJson(e):null},t.prototype.clearIncorrectValues=function(){if(Array.isArray(this.visibleRows))for(var e=this.generatedVisibleRows,n=0;n<e.length;n++)e[n].clearIncorrectValues(this.getRowValue(n))},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n],o=0;o<r.cells.length;o++)e(r.cells[o].question)},t.prototype.runCondition=function(e,n){var r=e[_e.RowVariableName];i.prototype.runCondition.call(this,e,n);var o=0,s;do s=P.getUnbindValue(this.totalValue),this.runCellsCondition(e,n),this.runTotalsCondition(e,n),o++;while(!P.isTwoValueEquals(s,this.totalValue)&&o<3);this.updateVisibilityBasedOnRows(),e[_e.RowVariableName]=r},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.runFuncForCellQuestions(function(o){o.runTriggers(e,n,r)})},t.prototype.updateElementVisibility=function(){i.prototype.updateElementVisibility.call(this);var e=this.generatedVisibleRows;e&&e.forEach(function(n){return n.updateElementVisibility()})},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,n){var r=this.generatedVisibleRows;if(r)for(var o=this.getRowConditionValues(e),s=0;s<r.length;s++)r[s].runCondition(o,n,this.rowsVisibleIf);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()},t.prototype.runConditionsForColumns=function(e,n){var r=this;return this.columns.forEach(function(o){if(!r.columnsVisibleIf)o.isColumnsVisibleIf=!0;else{var s=new de(r.columnsVisibleIf);e.item=o.name,o.isColumnsVisibleIf=s.run(e,n)===!0}}),!1},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,n=0;n<this.columns.length;n++){var r=this.columns[n],o=!!r.visibleIf||r.isFilteredMultipleColumns;!o&&!this.columnsVisibleIf&&r.isColumnVisible||(e=this.isColumnVisibilityChanged(r,o)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){var e=this.generatedVisibleRows;if(e)for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(!(!r.requiredIf||!r.isColumnVisible)){for(var o=e.length>0,s=0;s<e.length;s++)if(!e[s].cells[n].question.isRequired){o=!1;break}r.updateIsRenderedRequired(o)}}},t.prototype.isColumnVisibilityChanged=function(e,n){var r=e.isColumnVisible,o=!n,s=this.generatedVisibleRows,a=n&&s,l=a&&e.isFilteredMultipleColumns,u=l?e.getVisibleChoicesInCell:[],d=new Array;if(a)for(var v=0;v<s.length;v++){var V=s[v].cells[e.index],T=V==null?void 0:V.question;if(T&&T.isVisible)if(o=!0,l)this.updateNewVisibleChoices(T,d);else break}return e.hasVisibleCell=o&&e.isColumnsVisibleIf,l&&(e.setVisibleChoicesInCell(d),!P.isArraysEqual(u,d,!0,!1,!1))?!0:r!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,n){var r=e.visibleChoices;if(Array.isArray(r))for(var o=0;o<r.length;o++){var s=r[o];n.indexOf(s.value)<0&&n.push(s.value)}},t.prototype.runTotalsCondition=function(e,n){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),n)},t.prototype.getRowConditionValues=function(e){var n=e;n||(n={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),n.row={},n.totalRow=r,n},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.columns,n=0;n<e.length;n++)e[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(var n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var n=0;n<this.columns.length;n++)if(this.columns[n].name==e)return this.columns[n];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var n;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:((n=b.matrix.columnWidthsByType[e.cellType])===null||n===void 0?void 0:n.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.survey?this.survey.storeOthersAsComment:!1},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,n){var r=new jt(e,n,this);return this.columns.push(r),r},t.prototype.clearVisibleRows=function(){this.visibleRowsArray=null},t.prototype.isColumnVisible=function(e){return e.isColumnVisible},t.prototype.getVisibleRows=function(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:this.visibleRowsArray?this.visibleRowsArray:(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows),this.visibleRowsArray)},t.prototype.generateVisibleRowsIfNeeded=function(){var e=this;!this.isUpdateLocked&&!this.generatedVisibleRows&&!this.generatedVisibleRows&&(this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1,this.generatedVisibleRows.forEach(function(n){return e.onMatrixRowCreated(n)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()))},t.prototype.getVisibleFromGenerated=function(e){var n=[];return e?(e.forEach(function(r){r.isVisible&&n.push(r)}),n.length===e.length?e:n):n},t.prototype.updateValueOnRowsGeneration=function(e){for(var n=this.createNewValue(!0),r=this.createNewValue(),o=0;o<e.length;o++){var s=e[o];if(!s.editingObj){var a=this.getRowValue(o),l=s.value;this.isTwoValueEquals(a,l)||(r=this.getNewValueOnRowChanged(s,"",l,!1,r).value)}}this.isTwoValueEquals(n,r)||(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return!this.hasTotal||!this.visibleTotalRow?{}:this.visibleTotalRow.value},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0||!Array.isArray(this.visibleRows))return null;var n=this.generatedVisibleRows;if(e>=n.length)return null;var r=this.createNewValue();return this.getRowValueCore(n[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,n){return this.generatedVisibleRows?this.isValueInColumnDuplicated(n.name,!0,e):!1},t.prototype.setRowValue=function(e,n){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=n,this.onRowChanged(r[e],"",n,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new hn(this)},t.prototype.createNewValue=function(e){e===void 0&&(e=!1);var n=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(n)?null:n},t.prototype.getRowValueCore=function(e,n,r){r===void 0&&(r=!1);var o=n&&n[e.rowName]?n[e.rowName]:null;return!o&&r&&(o={},n&&(n[e.rowName]=o)),o},t.prototype.getRowObj=function(e){var n=this.getRowValueCore(e,this.value);return n&&n.getType?n:null},t.prototype.getRowDisplayValue=function(e,n,r){if(!r||n.editingObj)return r;for(var o=Object.keys(r),s=0;s<o.length;s++){var a=o[s],l=n.getQuestionByName(a);if(l||(l=this.getSharedQuestionByName(a,n)),l){var u=l.getDisplayValue(e,r[a]);e&&l.title&&l.title!==a?(r[l.title]=u,delete r[a]):r[a]=u}}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map(function(s){var a={name:s.dataName,title:s.text,value:s.value,displayValue:n.getRowDisplayValue(!1,s,s.value),getString:function(l){return typeof l=="object"?JSON.stringify(l):l},isNode:!0,data:s.cells.map(function(l){return l.question.getPlainData(e)}).filter(function(l){return!!l})};return(e.calculations||[]).forEach(function(l){a[l.propertyName]=s[l.propertyName]}),a}),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,n){var r=[].concat(this.columns);this.detailPanelMode!=="none"&&(r=r.concat(this.detailPanel.questions));var o=!!n&&r.indexOf(n)>-1,s=n===!0||o,a=this.getConditionObjectsRowIndeces();s&&a.push(-1);for(var l=0;l<a.length;l++){var u=a[l],d=u>-1?this.getConditionObjectRowName(u):"row";if(d)for(var v=u>-1?this.getConditionObjectRowText(u):"row",V=u>-1||n===!0,T=V&&u===-1?".":"",R=(V?this.getValueName():"")+T+d+".",N=(V?this.processedTitle:"")+T+v+".",j=0;j<r.length;j++){var A=r[j];if(!(u===-1&&n===A)){var Q={name:R+A.name,text:N+A.fullTitle,question:this};u===-1&&n===!0?Q.context=this:o&&R.startsWith("row.")&&(Q.context=n),e.push(Q)}}}},t.prototype.onHidingContent=function(){if(i.prototype.onHidingContent.call(this),!!this.generatedVisibleRows){var e=[];this.collectNestedQuestions(e,!0),e.forEach(function(n){return n.onHidingContent()})}},t.prototype.getIsReadyNestedQuestions=function(){if(!this.generatedVisibleRows)return[];var e=new Array;return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1),e},t.prototype.collectNestedQuestionsCore=function(e,n){this.collectNestedQuestonsInRows(this.visibleRows,e,n)},t.prototype.collectNestedQuestonsInRows=function(e,n,r){Array.isArray(e)&&e.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(n,r)})})},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return le.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=z.createProgressInfo();return this.updateProgressInfoByValues(e),e.requiredQuestionCount===0&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,n){for(var r=0;r<this.columns.length;r++){var o=this.columns[r];if(o.templateQuestion.hasInput){var s=!P.isValueEmpty(n[o.name]);!s&&o.templateQuestion.visibleIf||(e.questionCount+=1,e.requiredQuestionCount+=o.isRequired,e.answeredQuestionCount+=s?1:0,e.requiredAnsweredQuestionCount+=s&&o.isRequired?1:0)}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(n){e.push(n)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0))){this.isRowChanging=!0;for(var e=this.createNewValue(),n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];this.generatedVisibleRows[n].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(e){i.prototype.setQuestionValue.call(this,e,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var n=0;n<e.length;n++){var r=this.generatedVisibleRows[n].cells;if(r)for(var o=0;o<r.length;o++){var s=r[o].question;if(s&&(!s.supportGoNextPageAutomatic()||!s.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return i.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,n){n===void 0&&(n=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var o=0;o<r.length;o++){var s=r[o].cells;if(s){for(var a=0;a<s.length;a++)if(s[a]){var l=s[a].question;if(l&&l.isVisible){if(e(l)){if(!n)return!0}else if(n)return!1}}}}return!!n},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.hasErrorInRows(e,n),o=this.isValueDuplicated();return i.prototype.hasErrors.call(this,e,n)||r||o},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var e=0;e<this.generatedVisibleRows.length;e++){var n=this.generatedVisibleRows[e].cells;if(n){for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}}return!1},t.prototype.getAllErrors=function(){var e=i.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(n===null)return e;for(var r=0;r<n.length;r++)for(var o=n[r],s=0;s<o.cells.length;s++){var a=o.cells[s].question.getAllErrors();a&&a.length>0&&(e=e.concat(a))}return e},t.prototype.hasErrorInRows=function(e,n){var r=this,o=this.generatedVisibleRows;this.generatedVisibleRows||(o=this.visibleRows);var s=!1;if(n||(n={}),!o)return n;n.validationValues=this.getDataFilteredValues(),n.isSingleDetailPanel=this.detailPanelMode==="underRowSingle";for(var a=0;a<o.length;a++)o[a].isVisible&&(s=o[a].hasErrors(e,n,function(){r.raiseOnCompletedAsyncValidators()})||s);return s},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),n=!1,r=0;r<e.length;r++)n=this.isValueInColumnDuplicated(e[r],!0)||n;return n},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,n=0;n<this.columns.length;n++)this.columns[n].isUnique&&e.push(this.columns[n].name);return e},t.prototype.isValueInColumnDuplicated=function(e,n,r){var o=this.getDuplicatedRows(e);return n&&this.showDuplicatedErrorsInRows(o,e),this.removeDuplicatedErrorsInRows(o,e),r?o.indexOf(r)>-1:o.length>0},t.prototype.getDuplicatedRows=function(e){for(var n={},r=[],o=this.generatedVisibleRows,s=0;s<o.length;s++){var a=void 0,l=o[s].getQuestionByName(e);if(l)a=l.value;else{var u=this.getRowValue(s);a=u?u[e]:void 0}this.isValueEmpty(a)||(!this.isUniqueCaseSensitive&&typeof a=="string"&&(a=a.toLocaleLowerCase()),n[a]||(n[a]=[]),n[a].push(o[s]))}for(var d in n)n[d].length>1&&n[d].forEach(function(v){return r.push(v)});return r},t.prototype.showDuplicatedErrorsInRows=function(e,n){var r=this;e.forEach(function(o){var s=o.getQuestionByName(n),a=r.detailPanel.getQuestionByName(n);!s&&a&&(o.showDetailPanel(),o.detailPanel&&(s=o.detailPanel.getQuestionByName(n))),s&&(a&&o.showDetailPanel(),r.addDuplicationError(s))})},t.prototype.removeDuplicatedErrorsInRows=function(e,n){var r=this;this.generatedVisibleRows.forEach(function(o){if(e.indexOf(o)<0){var s=o.getQuestionByName(n);s&&r.removeDuplicationError(o,s)}})},t.prototype.getDuplicationError=function(e){for(var n=e.errors,r=0;r<n.length;r++)if(n[r].getErrorType()==="keyduplicationerror")return n[r];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new Co(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e,n){n.removeError(this.getDuplicationError(n))&&n.errors.length===0&&e.editingObj&&(e.editingObj[n.getValueName()]=n.value)},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var e=this.getFirstCellQuestion(!1);return e?e.inputId:i.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var e=this.getFirstCellQuestion(!0);return e?e.inputId:i.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n].cells,o=0;o<r.length;o++)if(!e||r[o].question.currentErrorCount>0)return r[o].question;return null},t.prototype.onReadOnlyChanged=function(){if(i.prototype.onReadOnlyChanged.call(this),!!this.generateRows)for(var e=0;e<this.visibleRows.length;e++)this.visibleRows[e].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,n){return this.createQuestionCore(e,n)},t.prototype.createQuestionCore=function(e,n){var r=n.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,n){return e&&(delete e[n.rowName],this.isObject(e)&&Object.keys(e).length==0?null:e)},t.prototype.onAnyValueChanged=function(e,n){if(!(this.isUpdateLocked||this.isDoingonAnyValueChanged||!this.generatedVisibleRows)){this.isDoingonAnyValueChanged=!0;for(var r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n);var s=this.visibleTotalRow;s&&s.onAnyValueChanged(e,n),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return e!==null&&typeof e=="object"},t.prototype.getOnCellValueChangedOptions=function(e,n,r){var o=function(s){return e.getQuestionByName(s)};return{row:e,columnName:n,rowValue:r,value:r?r[n]:null,getCellQuestion:o,cellQuestion:e.getQuestionByName(n),column:this.getColumnByName(n)}},t.prototype.onCellValueChanged=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(o),this.survey.matrixCellValueChanged(this,o)}},t.prototype.validateCell=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);return this.survey.matrixCellValidate(this,o)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.survey?this.survey.isValidateOnValueChanging:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInvisibleRows",{get:function(){var e=this.generatedVisibleRows;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(!e[n].isVisible)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredData=function(){return this.isEmpty()||!this.generatedVisibleRows||!this.hasInvisibleRows?this.value:this.getFilteredDataCore()},t.prototype.getFilteredDataCore=function(){return this.value},t.prototype.onRowChanging=function(e,n,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[n]:null;var o=this.getOnCellValueChangedOptions(e,n,r),s=this.getRowValueCore(e,this.createNewValue(),!0);return o.oldValue=s?s[n]:null,this.cellValueChangingCallback&&(o.value=this.cellValueChangingCallback(e,n,o.value,o.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,o),o.value},t.prototype.onRowChanged=function(e,n,r,o){var s=n?this.getRowObj(e):null;if(s){var a=null;r&&!o&&(a=r[n]),this.isRowChanging=!0,x.setObjPropertyValue(s,n,a),this.isRowChanging=!1,this.onCellValueChanged(e,n,s)}else{var l=this.createNewValue(!0),u=this.getNewValueOnRowChanged(e,n,r,o,this.createNewValue());if(this.isTwoValueEquals(l,u.value))return;this.isRowChanging=!0,this.setNewValue(u.value),this.isRowChanging=!1,n&&this.onCellValueChanged(e,n,u.rowValue)}this.getUniqueColumnsNames().indexOf(n)>-1&&this.isValueInColumnDuplicated(n,!!s)},t.prototype.getNewValueOnRowChanged=function(e,n,r,o,s){var a=this.getRowValueCore(e,s,!0);if(o&&delete a[n],e.questions.forEach(function(u){delete a[u.getValueName()]}),r){r=JSON.parse(JSON.stringify(r));for(var l in r)this.isValueEmpty(r[l])||(a[l]=r[l])}return this.isObject(a)&&Object.keys(a).length===0&&(s=this.deleteRowValue(s,e)),{value:s,rowValue:a}},t.prototype.getRowIndex=function(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return this.detailPanelMode=="none"?n=i.prototype.getElementsInDesign.call(this,e):n=e?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return this.detailPanelMode=="none"?!1:this.isDesignMode?!0:this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0},t.prototype.getIsDetailPanelShowing=function(e){if(this.detailPanelMode=="none")return!1;if(this.isDesignMode){var n=this.visibleRows.indexOf(e)==0;return n&&(e.detailPanel||e.showDetailPanel()),n}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,n){if(n!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,n),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,n),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,n),n&&this.detailPanelMode==="underRowSingle"))for(var r=this.visibleRows,o=0;o<r.length;o++)r[o].id!==e.id&&r[o].isDetailPanelShowing&&r[o].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var n=new O().append(this.getPropertyValue("detailButtonCss"+e.id));return n.append(this.cssClasses.detailButton,n.toString()==="").toString()},t.prototype.getDetailPanelIconCss=function(e){var n=new O().append(this.getPropertyValue("detailIconCss"+e.id));return n.append(this.cssClasses.detailIcon,n.toString()==="").toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var n=this.cssClasses,r=this.getIsDetailPanelShowing(e),o=new O().append(n.detailIcon).append(n.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,o.toString());var s=new O().append(n.detailButton).append(n.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,s.toString())},t.prototype.createRowDetailPanel=function(e){var n=this;if(this.isDesignMode)return this.detailPanel;var r=this.createNewDetailPanel();r.readOnly=this.isReadOnly||!e.isRowEnabled(),r.setSurveyImpl(e);var o=this.detailPanel.toJSON();return new fe().toObject(o,r),r.renderWidth="100%",r.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,r),r.questions.forEach(function(s){return s.setParentQuestion(n)}),r.onSurveyLoad(),r},t.prototype.getSharedQuestionByName=function(e,n){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(n);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+b.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.isMatrixReadOnly=function(){return this.isReadOnly},t.prototype.onRowVisibilityChanged=function(e){this.clearVisibleRows(),this.resetRenderedTable()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRows()},t.prototype.clearInvisibleValuesInRows=function(){var e;if(!(this.isEmpty()||!this.isRowsFiltered())){var n=((e=this.survey)===null||e===void 0?void 0:e.questionsByValueName(this.getValueName()))||[];n.length<2&&(this.value=this.getFilteredData())}},t.prototype.isRowsFiltered=function(){return i.prototype.isRowsFiltered.call(this)||this.visibleRows!==this.generatedVisibleRows},t.prototype.getQuestionFromArray=function(e,n){return n>=this.visibleRows.length?null:this.visibleRows[n].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0)return!1;return!0}return Object.keys(e).length==0}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof hn?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof hn?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.resetRenderedTable()},t.prototype.getRootCss=function(){return new O().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.afterRenderQuestionElement=function(e){i.prototype.afterRenderQuestionElement.call(this,e),this.setRootElement(e==null?void 0:e.parentElement)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.setRootElement(void 0)},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t}(gr);x.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn",isArray:!0},{name:"columnLayout",alternativeName:"columnsLocation",choices:["horizontal","vertical"],visible:!1,isSerializable:!1},{name:"transposeData:boolean",version:"1.9.130",oldName:"columnLayout"},{name:"detailElements",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},{name:"cellErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"detailErrorLocation",default:"default",choices:["default","top","bottom"],visibleIf:function(i){return!!i&&i.detailPanelMode!="none"}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value",visibleIf:function(i){return i.isSelectCellType()}},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return jt.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new bt("")},"matrixbase");var qo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qo=function(i){qo(t,i);function t(e,n,r,o){var s=i.call(this,r,o)||this;return s.name=e,s.item=n,s.buildCells(o),s}return Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t.prototype.isItemVisible=function(){return this.item.isVisible},t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t.prototype.setRowsVisibleIfValues=function(e){e.item=this.item.value,e.choice=this.item.value},t}(_e),xr=function(i){qo(t,i);function t(e){var n=i.call(this,e)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],function(){n.generatedVisibleRows&&(n.clearGeneratedRows(),n.resetRenderedTable(),n.getVisibleRows(),n.clearIncorrectValues())}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;var r=this.visibleRows,o={};if(!r)return o;for(var s=0;s<r.length;s++){var a=r[s].rowName,l=n[a];if(l){if(e){var u=k.getTextOrHtmlByValue(this.rows,a);u&&(a=u)}o[a]=this.getRowDisplayValue(e,r[s],l)}}return o},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=0;n<this.rows.length;n++)e.push(n);return e},t.prototype.isNewValueCorrect=function(e){return P.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){if(!this.isEmpty()){this.getVisibleRows();var e={},n=this.value;for(var r in n){var o=this.getRowByKey(r);o&&o.isVisible&&(e[r]=n[r])}this.value=e}i.prototype.clearIncorrectValues.call(this)},t.prototype.getRowByKey=function(e){var n=this.generatedVisibleRows;if(!n)return null;for(var r=0;r<n.length;r++)if(n[r].rowName===e)return n[r];return null},t.prototype.clearGeneratedRows=function(){var e=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach(function(n){e.defaultValuesInRows[n.rowName]=n.getNamesWithDefaultValues()}),i.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,n){var r=e[n];if(!r)return r;var o=this.defaultValuesInRows[n];return!Array.isArray(o)||o.length===0||o.forEach(function(s){delete r[s]}),r},t.prototype.generateRows=function(){var e=new Array,n=this.rows;if(!n||n.length===0)return e;var r=this.value;r||(r={});for(var o=0;o<n.length;o++){var s=n[o];this.isValueEmpty(s.value)||e.push(this.createMatrixRow(s,this.getRowValueForCreation(r,s.value)))}return e},t.prototype.createMatrixRow=function(e,n){return new Qo(e.value,e,this,n)},t.prototype.getFilteredDataCore=function(){var e={},n=this.createValueCopy();return this.generatedVisibleRows.forEach(function(r){var o=n[r.rowName];r.isVisible&&!P.isValueEmpty(o)&&(e[r.rowName]=o)}),e},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;n||(n={});for(var r=0;r<this.rows.length;r++){var o=this.rows[r],s=n[o.value];this.updateProgressInfoByRow(e,s||{})}},t}(bt);x.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new xr("")},"matrixdropdownbase"),J.Instance.registerQuestion("matrixdropdown",function(i){var t=new xr(i);return t.choices=[1,2,3,4,5],t.rows=J.DefaultRows,bt.addDefaultColumns(t),t});var Or=!1,zo=null;typeof navigator<"u"&&navigator&&E.isAvailable()&&(zo=navigator.userAgent||navigator.vendor||E.hasOwn("opera")),function(i){i&&(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>0||navigator.platform==="iPad"||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substring(0,4)))&&(Or=!0)}(zo);var Qu=!1,gn=Or||Qu,Ho={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return E.isAvailable()&&(E.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},zu=E.matchMedia;Ho.hasMouse=Uu(zu);var ne=Ho.isTouch;function Hu(i){ne=i}function Uu(i){if(!i||gn)return!1;var t=i("(pointer:fine)"),e=i("(any-hover:hover)");return!!t&&t.matches||!!e&&e.matches}var Wu=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};typeof window<"u"&&window.addEventListener("touchmove",function(i){Uo.PreventScrolling&&i.preventDefault()},{passive:!1});var Uo=function(){function i(t,e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=!1),this.dd=t,this.longTap=e,this.fitToContainer=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(o){o.preventDefault(),r.currentX=o.pageX,r.currentY=o.pageY,!r.isMicroMovement&&(r.returnUserSelectBack(),r.stopLongTap())},this.stopLongTap=function(o){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(o){r.clear()},this.handleEscapeButton=function(o){o.keyCode==27&&r.clear()},this.onContextMenu=function(o){o.preventDefault(),o.stopPropagation()},this.dragOver=function(o){r.moveShortcutElement(o),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(o)},this.clear=function(){cancelAnimationFrame(r.scrollIntervalId),document.removeEventListener("pointermove",r.dragOver),document.removeEventListener("pointercancel",r.handlePointerCancel),document.removeEventListener("keydown",r.handleEscapeButton),document.removeEventListener("pointerup",r.drop),r.draggedElementShortcut.removeEventListener("pointerup",r.drop),ne&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),r.draggedElementShortcut.parentElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,ne&&(r.savedTargetNode.style.cssText=null,r.savedTargetNode&&r.savedTargetNode.parentElement.removeChild(r.savedTargetNode),r.insertNodeToParentAtIndex(r.savedTargetNodeParent,r.savedTargetNode,r.savedTargetNodeIndex),i.PreventScrolling=!1),r.savedTargetNode=null,r.savedTargetNodeParent=null,r.savedTargetNodeIndex=null,r.returnUserSelectBack()},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(i.prototype,"documentOrShadowRoot",{get:function(){return b.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rootElement",{get:function(){return Lt(b.environment.root)?this.rootContainer||b.environment.root.host:this.rootContainer||b.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=5,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.startLongTapProcessing=function(t,e,n,r,o){var s=this;o===void 0&&(o=!1),this.startX=t.pageX,this.startY=t.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout(function(){s.doStartDrag(t,e,n,r),o||(s.savedTargetNode=t.target,s.savedTargetNode.style.cssText=`
+          position: absolute;
+          height: 1px!important;
+          width: 1px!important;
+          overflow: hidden;
+          clip: rect(1px 1px 1px 1px);
+          clip: rect(1px, 1px, 1px, 1px);
+        `,s.savedTargetNodeParent=s.savedTargetNode.parentElement,s.savedTargetNodeIndex=s.getNodeIndexInParent(s.savedTargetNode),s.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},i.prototype.moveShortcutElement=function(t){var e=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(t.clientY,t.clientX);var s=this.draggedElementShortcut.offsetHeight,a=this.draggedElementShortcut.offsetWidth,l=this.draggedElementShortcut.shortcutXOffset||a/2,u=this.draggedElementShortcut.shortcutYOffset||s/2;document.querySelectorAll("[dir='rtl']").length!==0&&(l=a/2,u=s/2);var d=document.documentElement.clientHeight,v=document.documentElement.clientWidth,V=t.pageX,T=t.pageY,R=t.clientX,N=t.clientY;e-=r,n-=o;var j=this.getShortcutBottomCoordinate(N,s,u),A=this.getShortcutRightCoordinate(R,a,l);if(A>=v){this.draggedElementShortcut.style.left=v-a-e+"px",this.draggedElementShortcut.style.top=N-u-n+"px";return}if(R-l<=0){this.draggedElementShortcut.style.left=V-R-e+"px",this.draggedElementShortcut.style.top=N-n-u+"px";return}if(j>=d){this.draggedElementShortcut.style.left=R-l-e+"px",this.draggedElementShortcut.style.top=d-s-n+"px";return}if(N-u<=0){this.draggedElementShortcut.style.left=R-l-e+"px",this.draggedElementShortcut.style.top=T-N-n+"px";return}this.draggedElementShortcut.style.left=R-e-l+"px",this.draggedElementShortcut.style.top=N-n-u+"px"},i.prototype.getShortcutBottomCoordinate=function(t,e,n){return t+e-n},i.prototype.getShortcutRightCoordinate=function(t,e,n){return t+e-n},i.prototype.requestAnimationFrame=function(t){return requestAnimationFrame(t)},i.prototype.scrollByDrag=function(t,e,n){var r=this,o=100,s,a,l,u;t.tagName==="HTML"?(s=0,a=document.documentElement.clientHeight,l=0,u=document.documentElement.clientWidth):(s=t.getBoundingClientRect().top,a=t.getBoundingClientRect().bottom,l=t.getBoundingClientRect().left,u=t.getBoundingClientRect().right);var d=function(){var v=e-s<=o,V=a-e<=o,T=n-l<=o,R=u-n<=o;v&&!T&&!R?t.scrollTop-=15:V&&!T&&!R?t.scrollTop+=15:R&&!v&&!V?t.scrollLeft+=15:T&&!v&&!V&&(t.scrollLeft-=15),r.scrollIntervalId=r.requestAnimationFrame(d)};this.scrollIntervalId=this.requestAnimationFrame(d)},i.prototype.doScroll=function(t,e){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var r=this.documentOrShadowRoot.elementFromPoint(e,t);this.draggedElementShortcut.style.display=n||"block";var o=rn(r);this.scrollByDrag(o,t,e)},i.prototype.doStartDrag=function(t,e,n,r){ne&&(i.PreventScrolling=!0),t.which!==3&&(this.dd.dragInit(t,e,n,r),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),ne?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},i.prototype.returnUserSelectBack=function(){document.body.style.setProperty("touch-action","auto"),document.body.style.setProperty("user-select","auto"),document.body.style.setProperty("-webkit-user-select","auto")},i.prototype.startDrag=function(t,e,n,r,o){if(o===void 0&&(o=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),ne){this.startLongTapProcessing(t,e,n,r,o);return}this.doStartDrag(t,e,n,r)},i.prototype.getNodeIndexInParent=function(t){return Wu([],t.parentElement.childNodes).indexOf(t)},i.prototype.insertNodeToParentAtIndex=function(t,e,n){t.insertBefore(e,t.childNodes[n])},i.PreventScrolling=!1,i}(),Sr=function(){function i(t,e,n,r){var o=this,s;this.surveyValue=t,this.creator=e,this._isBottom=null,this.onGhostPositionChanged=new Ve,this.onDragStart=new Ve,this.onDragEnd=new Ve,this.onDragClear=new Ve,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){o.allowDropHere=!1,o.doBanDropHere(),o.dropTarget=null,o.domAdapter.draggedElementShortcut.style.cursor="not-allowed",o.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=r||new Uo(this,n,(s=this.survey)===null||s===void 0?void 0:s.fitToContainer)}return Object.defineProperty(i.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(t){this._isBottom=t,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),i.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(i.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"survey",{get:function(){var t;return this.surveyValue||((t=this.creator)===null||t===void 0?void 0:t.survey)},enumerable:!1,configurable:!0}),i.prototype.startDrag=function(t,e,n,r,o){o===void 0&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(t,e,n,r,o)},i.prototype.getRootElement=function(t,e){return e?e.rootElement:t.rootElement},i.prototype.dragInit=function(t,e,n,r){this.draggedElement=e,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,t),this.onStartDrag(t);var s=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:s,draggedElement:this.draggedElement})},i.prototype.onStartDrag=function(t){},i.prototype.isDropTargetDoesntChanged=function(t){return this.dropTarget===this.prevDropTarget&&t===this.isBottom},i.prototype.getShortcutText=function(t){return t==null?void 0:t.shortcutText},i.prototype.createDraggedElementShortcut=function(t,e,n){var r=I.createElement("div");return r&&(r.innerText=t,r.className=this.getDraggedElementClass()),r},i.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},i.prototype.doDragOver=function(){},i.prototype.afterDragOver=function(t){},i.prototype.findDropTargetNodeFromPoint=function(t,e){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!I.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementsFromPoint(t,e);this.domAdapter.draggedElementShortcut.style.display=n||"block";for(var o=0,s=r[o];s&&s.className&&typeof s.className.indexOf=="function"&&s.className.indexOf("sv-drag-target-skipped")!=-1;)o++,s=r[o];return s?this.findDropTargetNodeByDragOverNode(s):null},i.prototype.getDataAttributeValueByNode=function(t){var e=this,n="svDropTarget",r=this.draggedElementType.split("-");return r.forEach(function(o){n+=e.capitalizeFirstLetter(o)}),t.dataset[n]},i.prototype.getDropTargetByNode=function(t,e){var n=this.getDataAttributeValueByNode(t);return this.getDropTargetByDataAttributeValue(n,t,e)},i.prototype.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},i.prototype.calculateVerticalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.y+e.height/2},i.prototype.calculateHorizontalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.x+e.width/2},i.prototype.calculateIsBottom=function(t,e){return!1},i.prototype.findDropTargetNodeByDragOverNode=function(t){var e=t.closest(this.dropTargetDataAttributeName);return e},i.prototype.dragOver=function(t){var e=this.findDropTargetNodeFromPoint(t.clientX,t.clientY);if(!e){this.banDropHere();return}this.dropTarget=this.getDropTargetByNode(e,t);var n=this.isDropTargetValid(this.dropTarget,e);if(this.doDragOver(),!n){this.banDropHere();return}var r=this.calculateIsBottom(t.clientY,e);this.allowDropHere=!0,!this.isDropTargetDoesntChanged(r)&&(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(e),this.prevDropTarget=this.dropTarget)},i.prototype.drop=function(){if(this.allowDropHere){var t=this.draggedElement.parent,e=this.doDrop();this.onDragEnd.fire(this,{fromElement:t,draggedElement:e,toElement:this.dropTarget})}},i.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,{})},i}(),$u=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ju=function(i){$u(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.fromIndex=null,e.toIndex=null,e.doDrop=function(){return e.parentElement.moveRowByIndex(e.fromIndex,e.toIndex),e.parentElement},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=I.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new O().append(this.parentElement.cssClasses.draggedRow).toString()},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=this,s=I.createElement("div");if(s){s.className=this.shortcutClass;var a=!0;if(n){var l=n.closest("[data-sv-drop-target-matrix-row]"),u=l.cloneNode(a);u.style.cssText=`
+        width: `+l.offsetWidth+`px;
+      `,u.classList.remove("sv-matrix__drag-drop--moveup"),u.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,s.appendChild(u);var d=n.getBoundingClientRect();s.shortcutXOffset=r.clientX-d.x,s.shortcutYOffset=r.clientY-d.y}var v=this.parentElement.renderedTable.rows;return v.forEach(function(V,T){V.row===o.draggedElement&&(V.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n=this.parentElement,r;return r=n.renderedTable.rows.filter(function(o){return o.row&&o.row.id===e})[0],r.row},t.prototype.canInsertIntoThisRow=function(e){var n=this.parentElement.lockedRowCount;return n<=0||e.rowIndex>n},t.prototype.isDropTargetValid=function(e,n){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var n=this.parentElement.renderedTable.rows,r=n.map(function(o){return o.row});return r.indexOf(this.dropTarget)-r.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,s,a=this.parentElement.renderedTable.rows;a.forEach(function(l,u){l.row===n.dropTarget&&(r=u),l.row===n.draggedElement&&(s=l,o=u,s.isGhostRow=!0)}),a.splice(o,1),a.splice(r,0,s),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),i.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){var e=this.parentElement.renderedTable.rows;e.forEach(function(r){r.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var n=I.getBody();n&&(n.style.userSelect=this.restoreUserSelectValue||"initial"),i.prototype.clear.call(this)},t}(Sr),Tr=function(){function i(t){var e=this;this.dragHandler=t,this.onPointerUp=function(n){e.clearListeners()},this.tryToStartDrag=function(n){if(e.currentX=n.pageX,e.currentY=n.pageY,!e.isMicroMovement)return e.clearListeners(),e.dragHandler(e.pointerDownEvent,e.currentTarget,e.itemModel),!0}}return i.prototype.onPointerDown=function(t,e){if(ne){this.dragHandler(t,t.currentTarget,e);return}this.pointerDownEvent=t,this.currentTarget=t.currentTarget,this.startX=t.pageX,this.startY=t.pageY,I.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=e},Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=10,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.clearListeners=function(){this.pointerDownEvent&&(I.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},i}(),Rr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wo=function(i){Rr(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.index=e,o.buildCells(r),o}return t.prototype.getRowIndex=function(){var e=i.prototype.getRowIndex.call(this);return e>0?e:this.index+1},Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataName",{get:function(){return"row"+(this.index+1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return"row "+(this.index+1)},enumerable:!1,configurable:!0}),t.prototype.getAccessbilityText=function(){return(this.index+1).toString()},Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data,n=e.visibleRows.indexOf(this)+1,r=this.cells.length>1?this.cells[1].questionValue:void 0,o=this.cells.length>0?this.cells[0].questionValue:void 0;return r&&r.value||o&&o.value||""+n},enumerable:!1,configurable:!0}),t}(_e),Er=function(i){Rr(t,i);function t(e){var n=i.call(this,e)||this;n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(o,s){n.dragDropMatrixRows.startDrag(o,n.draggedRow,n,o.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete");var r=n.createLocalizableString("addRowText",n);return r.onGetTextCallback=function(o){return o||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],function(){n.updateShowTableAndAddRow()}),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop","isReadOnly","lockedRowCount"],function(){n.resetRenderedTable()}),n.registerPropertyChangedHandlers(["minRowCount"],function(){n.onMinRowCountChanged()}),n.registerPropertyChangedHandlers(["maxRowCount"],function(){n.onMaxRowCountChanged()}),n.dragOrClickHelper=new Tr(n.startDragMatrixRow),n}return t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.dragDropMatrixRows=new Ju(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var n=e.target;return n.getAttribute("contenteditable")==="true"||n.nodeName==="INPUT"||!this.isDragHandleAreaValid(n)},t.prototype.isDragHandleAreaValid=function(e){return this.survey.matrixDragHandleArea==="icon"?e.classList.contains(this.cssClasses.dragElementDecorator):!0},t.prototype.onPointerDown=function(e,n){!n||!this.isRowsDragAndDrop||this.isDesignMode||this.isBanStartDrag(e)||n.isDetailPanelShowing||(this.draggedRow=n,this.dragOrClickHelper.onPointerDown(e))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(e){if(this.minRowCount<1||this.isEmpty())return i.prototype.valueFromData.call(this,e);Array.isArray(e)||(e=[]);for(var n=e.length;n<this.minRowCount;n++)e.push({});return e},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.rowCount==0)){for(var e=[],n=0;n<this.rowCount;n++)e.push(this.defaultRowValue);this.value=e}},t.prototype.moveRowByIndex=function(e,n){var r=this.createNewValue();if(!(!Array.isArray(r)&&Math.max(e,n)>=r.length)){var o=r[e];r.splice(e,1),r.splice(n,0,o),this.value=r}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.getVisibleRows()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(e=P.getNumber(e),!(e<0||e>b.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var n=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||n==0){this.generatedVisibleRows||(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var o=n;o<e;o++){var s=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(s),this.onMatrixRowCreated(s)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}},enumerable:!1,configurable:!0}),t.prototype.updateBindingProp=function(e,n){i.prototype.updateBindingProp.call(this,e,n);var r=this.generatedVisibleRows;if(!(e!=="rowCount"||!Array.isArray(r))){var o=this.getUnbindValue(this.value)||[];if(o.length<r.length){for(var s=!1,a=o.length;a<r.length;a++)s||(s=!r[a].isEmpty),o.push(r[a].value||{});s&&(this.value=o)}}},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;Array.isArray(n)||(n=[]);for(var r=0;r<this.rowCount;r++){var o=r<n.length?n[r]:{};this.updateProgressInfoByRow(e,o)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.allowRowsDragAndDrop&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lockedRowCount",{get:function(){return this.getPropertyValue("lockedRowCount",0)},set:function(e){this.setPropertyValue("lockedRowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new Gu(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinRowCountChanged=function(){var e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>b.matrix.maxRowCount&&(e=b.matrix.maxRowCount),e!=this.maxRowCount&&this.setPropertyValue("maxRowCount",e))},enumerable:!1,configurable:!0}),t.prototype.onMaxRowCountChanged=function(){var e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){if(!this.survey)return!0;var n=e.rowIndex-1;return this.lockedRowCount>0&&n<this.lockedRowCount?!1:this.survey.matrixAllowRemoveRow(this,n,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){if(this.visibleRows.length===0)return null;for(var e=this.visibleRows[this.visibleRows.length-1],n=0;n<e.cells.length;n++){var r=e.cells[n].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var n=this.rowCount,r=this.canAddRow,o={question:this,canAddRow:r,allow:r};this.survey&&this.survey.matrixBeforeRowAdded(o);var s=r!==o.allow?o.allow:r!==o.canAddRow?o.canAddRow:r;if(s&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&n!==this.rowCount)){var a=this.getQuestionToFocusOnAddingRow();a&&a.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,i.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(e){return this.isEditingSurveyElement||i.prototype.isValueSurveyElement.call(this,e)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var n=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(n)||(r=this.createNewValue(),r.length==this.rowCount&&(r[r.length-1]=n,this.value=r)),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var o=this.visibleRows;if(this.isValueEmpty(n)&&o.length>0){var s=o[o.length-1];this.isValueEmpty(s.value)||(r||(r=this.createNewValue()),!this.isValueSurveyElement(r)&&!this.isTwoValueEquals(r[r.length-1],s.value)&&(r[r.length-1]=s.value,this.value=r))}}if(this.survey){var o=this.visibleRows;if(e+1==this.rowCount&&o.length>0){var s=o[o.length-1];this.survey.matrixRowAdded(this,s),this.onRowsChanged()}}},t.prototype.getDefaultRowValue=function(e){for(var n=null,r=0;r<this.columns.length;r++){var o=this.columns[r].templateQuestion;o&&!this.isValueEmpty(o.getDefaultValue())&&(n=n||{},n[this.columns[r].name]=o.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var s in this.defaultRowValue)n=n||{},n[s]=this.defaultRowValue[s];if(e&&this.defaultValueFromLastRow){var a=this.value;if(a&&Array.isArray(a)&&a.length>=this.rowCount-1){var l=a[this.rowCount-2];for(var s in l)n=n||{},n[s]=l[s]}}return n},t.prototype.focusAddBUtton=function(){var e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){var n=e.querySelectorAll("."+this.cssClasses.buttonAdd)[0];n&&n.focus()}},t.prototype.getActionCellIndex=function(e){var n=this.showHeader?1:0;return this.isColumnLayoutHorizontal?e.cells.length-1+n:this.visibleRows.indexOf(e)+n},t.prototype.removeRowUI=function(e){var n=this;if(e&&e.rowName){var r=this.visibleRows.indexOf(e);if(r<0)return;e=r}this.removeRow(e,void 0,function(){var o=n.visibleRows.length,s=r>=o?o-1:r,a=s>-1?n.visibleRows[s]:void 0;setTimeout(function(){a?n.renderedTable.focusActionCell(a,n.getActionCellIndex(a)):n.focusAddBUtton()},10)})},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var n=this.createNewValue();return this.isValueEmpty(n)||!Array.isArray(n)||e>=n.length?!1:!this.isValueEmpty(n[e])},t.prototype.removeRow=function(e,n,r){var o=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var s=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;if(n===void 0&&(n=this.isRequireConfirmOnRowDelete(e)),n){At({message:this.confirmDeleteText,funcOnYes:function(){o.removeRowAsync(e,s),r&&r()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeRowAsync(e,s),r&&r()}},t.prototype.removeRowAsync=function(e,n){n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))},t.prototype.removeRowCore=function(e){var n=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];Array.isArray(this.value)&&e<this.value.length?r=this.createValueCopy():r=this.createNewValue(),r.splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,n)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,n){if(!n||!Array.isArray(n))return n;for(var r=this.getUnbindValue(n),o=this.visibleRows,s=0;s<o.length&&s<r.length;s++){var a=r[s];a&&(r[s]=this.getRowDisplayValue(e,o[s],a))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=Math.max(this.rowCount,1),r=0;r<Math.min(b.matrix.maxRowCountInCondition,n);r++)e.push(r);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.hasErrorInMinRows()&&e.push(new Su(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];r.isEmpty||e++}return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var e=i.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&e.indexOf(n)<0&&e.push(n),e},t.prototype.generateRows=function(){var e=new Array;if(this.rowCount===0)return e;for(var n=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(n,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=n),e},t.prototype.createMatrixRow=function(e){return new Wo(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,n){for(var r=Math.min(e.length,n.length),o=0;o<r;o++)if(n[o]!==e[o].editingObj)return o;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var n=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1||r.length===e.length)return!1;var o=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[o];var s=r[o];r.splice(o,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(s)}else{var a=void 0;n&&n.editingObj===e[o]?a=n:(n=void 0,a=this.createMatrixRow(e[o])),r.splice(o,0,a),n||this.onMatrixRowCreated(a),this.isRendredTableCreated&&this.renderedTable.onAddedRow(a,o)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(e,n){if(n===void 0&&(n=!1),this.setRowCountValueFromData=!0,this.minRowCount>0&&P.isValueEmpty(e)&&!P.isValueEmpty(this.defaultRowValue)){e=[];for(var r=0;r<this.minRowCount;r++)e.push(P.createCopy(this.defaultRowValue))}i.prototype.updateValueFromSurvey.call(this,e,n),this.setRowCountValueFromData=!1},t.prototype.getFilteredDataCore=function(){var e=[],n=this.createValueCopy();if(!Array.isArray(n))return e;for(var r=this.generatedVisibleRows,o=0;o<r.length&&o<n.length;o++){var s=n[o];r[o].isVisible&&!P.isValueEmpty(s)&&e.push(s)}return e},t.prototype.onBeforeValueChanged=function(e){if(!(!e||!Array.isArray(e))){var n=e.length;if(n!=this.rowCount&&!(!this.setRowCountValueFromData&&n<this.initialRowCount)&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=n,!!this.generatedVisibleRows)){if(n==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,n-1),o=this.createMatrixRow(r);this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();(!e||!Array.isArray(e))&&(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var n=this.getDefaultRowValue(!1);n=n||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(n));return e},t.prototype.deleteRowValue=function(e,n){if(!Array.isArray(e))return e;for(var r=!0,o=0;o<e.length;o++)if(this.isObject(e[o])&&Object.keys(e[o]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,n){return Array.isArray(e)&&n>=0&&n<e.length?e[n]:null},t.prototype.getRowValueCore=function(e,n,r){if(r===void 0&&(r=!1),!this.generatedVisibleRows)return{};var o=this.getRowValueByIndex(n,this.generatedVisibleRows.indexOf(e));return!o&&r&&(o={}),o},t.prototype.getAddRowButtonCss=function(e){return e===void 0&&(e=!1),new O().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var e;return new O().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(!((e=this.renderedTable)===null||e===void 0)&&e.showTable)).toString()},t}(bt),Gu=function(i){Rr(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setDefaultRowActions=function(e,n){i.prototype.setDefaultRowActions.call(this,e,n)},t}(Vr);x.addClass("matrixdynamic",[{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:b.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(i){return!i||i.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(i){return!i||i.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(i){return i.detailPanelMode!=="none"}},"allowRowsDragAndDrop:switch"],function(){return new Er("")},"matrixdropdownbase"),J.Instance.registerQuestion("matrixdynamic",function(i){var t=new Er(i);return t.choices=[1,2,3,4,5],bt.addDefaultColumns(t),t});var se={currentType:"",getCss:function(){var i=this.currentType?this[this.currentType]:yn;return i||(i=yn),i},getAvailableThemes:function(){return Object.keys(this).filter(function(i){return["currentType","getCss","getAvailableThemes"].indexOf(i)===-1})}},yn={root:"sd-root-modern",rootProgress:"sd-progress",rootMobile:"sd-root-modern--mobile",rootAnimationDisabled:"sd-root-modern--animation-disabled",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootFitToContainer:"sd-root-modern--full-container",rootWrapper:"sd-root-modern__wrapper",rootWrapperFixed:"sd-root-modern__wrapper--fixed",rootWrapperHasImage:"sd-root-modern__wrapper--has-image",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",bodyLoading:"sd-body--loading",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",completedBeforePage:"sd-completed-before-page",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:"sd-btn sd-btn--small"},panel:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-element__content sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",nested:"sd-element--nested sd-element--nested-with-borders",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact",errorsContainer:"sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"},paneldynamic:{mainRoot:"sd-element  sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",iconRemove:"sd-hidden",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",nested:"sd-element--nested sd-element--nested-with-borders",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelsContainer:"sd-paneldynamic__panels-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",panelWrapperEnter:"sd-paneldynamic__panel-wrapper--enter",panelWrapperLeave:"sd-paneldynamic__panel-wrapper--leave",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsContainer:"sd-paneldynamic__tabs-container",tabsContainerWithHeader:"sd-paneldynamic__tabs-container--with-header",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsRoot:"sd-progress-buttons",progressButtonsNumbered:"sd-progress-buttons--numbered",progressButtonsFitSurveyWidth:"sd-progress-buttons--fit-survey-width",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsConnector:"sd-progress-buttons__connector",progressButtonsButton:"sd-progress-buttons__button",progressButtonsButtonBackground:"sd-progress-buttons__button-background",progressButtonsButtonContent:"sd-progress-buttons__button-content",progressButtonsHeader:"sd-progress-buttons__header",progressButtonsFooter:"sd-progress-buttons__footer",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description",number:"sd-page__num",errorsContainer:"sd-page__errbox"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",rowEnter:"sd-row--enter",rowDelayedEnter:"sd-row--delayed-enter",rowLeave:"sd-row--leave",rowReplace:"sd-row--replace",pageRow:"sd-page__row",question:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",mobile:"sd-question--mobile",mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-element__content sd-question__content",contentSupportContainerQueries:"sd-question__content--support-container-queries",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleTopRoot:"sd-question--title-top",descriptionUnderInputRoot:"sd-question--description-under-input",titleBottomRoot:"sd-question--title-bottom",titleOnAnswer:"sd-question__title--answer",titleEmpty:"sd-question__title--empty",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleReadOnly:"sd-element__title--readonly",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",hasErrorTop:"sd-question--error-top",hasErrorBottom:"sd-question--error-bottom",collapsed:"sd-element--collapsed",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex sd-composite",disabled:"sd-question--disabled",readOnly:"sd-question--readonly",preview:"sd-question--preview",noPointerEventsMode:"sd-question--no-pointer-events",errorsContainer:"sd-element__erbox sd-question__erbox",errorsContainerTop:"sd-element__erbox--above-element sd-question__erbox--above-question",errorsContainerBottom:"sd-question__erbox--below-question",confirmDialog:"sd-popup--confirm sv-popup--confirm"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:"",nested:"sd-element--nested sd-html--nested"},error:{root:"sd-error",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemReadOnly:"sd-item--readonly sd-checkbox--readonly",itemPreview:"sd-item--preview sd-checkbox--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-check-16x16",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemExchanged:"sd-boolean--exchanged",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemReadOnly:"sd-boolean--readonly",itemPreview:"sd-boolean--preview",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",labelTrue:"sd-boolean__label--true",labelFalse:"sd-boolean__label--false",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",labelReadOnly:"sd-checkbox__label--readonly",labelPreview:"sd-checkbox__label--preview",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioItemDisabled:"sd-item--disabled sd-radio--disabled",radioItemReadOnly:"sd-item--readonly sd-radio--readonly",radioItemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-item--disabled sd-checkbox--disabled",checkboxItemReadOnly:"sd-item--readonly sd-checkbox--readonly",checkboxItemPreview:"sd-item--preview sd-checkbox--preview",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-check-16x16"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",constrolWithCharacterCounter:"sd-text__character-counter",characterCounterBig:"sd-text__character-counter--big",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",rootMobile:"sd-multipletext--mobile",itemLabel:"sd-multipletext__item-container sd-input",itemLabelReadOnly:"sd-input--readonly",itemLabelDisabled:"sd-input--disabled",itemLabelPreview:"sd-input--preview",itemLabelOnError:"sd-multipletext__item-container--error",itemLabelAllowFocus:"sd-multipletext__item-container--allow-focus",itemLabelAnswered:"sd-multipletext__item-container--answered",itemWithCharacterCounter:"sd-multipletext-item__character-counter",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell",cellError:"sd-multipletext__cell--error",cellErrorTop:"sd-multipletext__cell--error-top",cellErrorBottom:"sd-multipletext__cell--error-bottom"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemReadOnly:"sd-imagepicker__item--readonly",itemPreview:"sd-imagepicker__item--preview",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-check-24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",rowDisabled:"sd-table__row-disabled",rowReadOnly:"sd-table__row-readonly",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",itemCell:"sd-table__cell--item",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",expandedRow:"sd-table__row--expanded",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",expandedRow:"sd-table__row--expanded",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"sd-hidden",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-drag-24x24",footer:"sd-matrixdynamic__footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-rating--wrappable",rootLabelsTop:"sd-rating--labels-top",rootLabelsBottom:"sd-rating--labels-bottom",rootLabelsDiagonal:"sd-rating--labels-diagonal",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarReadOnly:"sd-rating__item-star--readonly",itemStarPreview:"sd-rating__item-star--preview",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyReadOnly:"sd-rating__item-smiley--readonly",itemSmileyPreview:"sd-rating__item-smiley--preview",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemReadOnly:"sd-rating__item--readonly",itemPreview:"sd-rating__item--preview",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",selectWrapper:"sv-dropdown_select-wrapper",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",rootDragging:"sd-file--dragging",rootAnswered:"sd-file--answered",rootDisabled:"sd-file--disabled",rootReadOnly:"sd-file--readonly",rootPreview:"sd-file--preview",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",previewItem:"sd-file__preview-item",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",controlDisabled:"sd-file__choose-file-btn--disabled",removeButton:"sd-context-btn--negative",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-close_16x16",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",imageWrapperDefaultImage:"sd-file__image-wrapper--default-image",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile",videoContainer:"sd-file__video-container",contextButton:"sd-context-btn",video:"sd-file__video",actionsContainer:"sd-file__actions-container",closeCameraButton:"sd-file__close-camera-button",changeCameraButton:"sd-file__change-camera-button",takePictureButton:"sd-file__take-picture-button",loadingIndicator:"sd-file__loading-indicator",page:"sd-file__page"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas sd-signaturepad__canvas",backgroundImage:"sjs_sp__background-image sd-signaturepad__background-image",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear",loadingIndicator:"sd-signaturepad__loading-indicator"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootReadOnly:"sd-ranking--readonly",rootPreview:"sd-ranking--preview",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankEmptyValueMod:"sv-ranking--select-to-rank-empty-value",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",itemDisabled:"sv-ranking-item--disabled",itemReadOnly:"sv-ranking-item--readonly",itemPreview:"sv-ranking-item--preview",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused",itemHovered:"sv-list__item--hovered sd-list__item--hovered"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-check-16x16",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel-24x24",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlEditable:"sd-input--editable",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},$o="defaultV2";se[$o]=yn;var Ku="surveyjs.io",Yu=65536,Jo=function(){function i(){}return Object.defineProperty(i,"serviceUrl",{get:function(){return b.web.surveyServiceUrl},set:function(t){b.web.surveyServiceUrl=t},enumerable:!1,configurable:!0}),i.prototype.loadSurvey=function(t,e){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var r=JSON.parse(n.response);e(n.status==200,r,n.response)},n.send()},i.prototype.getSurveyJsonAndIsCompleted=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+e),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var o=JSON.parse(r.response),s=o?o.survey:null,a=o?o.isCompleted:null;n(r.status==200,s,a,r.response)},r.send()},i.prototype.canSendResult=function(t){if(!this.isSurveJSIOService)return!0;var e=JSON.stringify(t);return e.length<Yu},Object.defineProperty(i.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf(Ku)>=0},enumerable:!1,configurable:!0}),i.prototype.sendResult=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1),this.canSendResult(e)?this.sendResultCore(t,e,n,r,o):n(!1,oe("savingExceedSize",this.locale),void 0)},i.prototype.sendResultCore=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1);var s=new XMLHttpRequest;s.open("POST",this.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(e)};r&&(a.clientId=r),o&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){n&&n(s.status===200,s.response,s)},s.send(l)},i.prototype.sendFile=function(t,e,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(r.status==200,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",e),o.append("postId",t),r.send(o)},i.prototype.getResult=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&name="+e;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null,a=null;if(r.status==200){s=JSON.parse(r.response),a=[];for(var l in s.QuestionResult){var u={name:l,value:s.QuestionResult[l]};a.push(u)}}n(r.status==200,s,a,r.response)},r.send()},i.prototype.isCompleted=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&clientId="+e;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null;r.status==200&&(s=JSON.parse(r.response)),n(r.status==200,s,r.response)},r.send()},Object.defineProperty(i.prototype,"serviceUrl",{get:function(){return i.serviceUrl||""},enumerable:!1,configurable:!0}),i}(),He={setTimeout:function(i){return He.safeTimeOut(i,1e3)},clearTimeout:function(i){clearTimeout(i)},safeTimeOut:function(i,t){return t<=0?(i(),0):setTimeout(i,t)},now:function(){return Date.now()}},Ir=function(){function i(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new Ve,this.onTimer=this.onTimerTick}return Object.defineProperty(i,"instance",{get:function(){return i.instanceValue||(i.instanceValue=new i),i.instanceValue},enumerable:!1,configurable:!0}),i.prototype.start=function(t){var e=this;t===void 0&&(t=null),t&&this.onTimerTick.add(t),this.prevTimeInMs=He.now(),this.timerId<0&&(this.timerId=He.setTimeout(function(){e.doTimer()})),this.listenerCounter++},i.prototype.stop=function(t){t===void 0&&(t=null),t&&this.onTimerTick.remove(t),this.listenerCounter--,this.listenerCounter==0&&this.timerId>-1&&(He.clearTimeout(this.timerId),this.timerId=-1)},i.prototype.doTimer=function(){var t=this;if((this.onTimerTick.isEmpty||this.listenerCounter==0)&&(this.timerId=-1),!(this.timerId<0)){var e=He.now(),n=Math.floor((e-this.prevTimeInMs)/1e3);this.prevTimeInMs=e,n<0&&(n=1);var r=this.timerId;this.onTimerTick.fire(this,{seconds:n}),r===this.timerId&&(this.timerId=He.setTimeout(function(){t.doTimer()}))}},i.instanceValue=null,i}(),Xu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ft=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Go=function(i){Xu(t,i);function t(e){var n=i.call(this)||this;return n.timerFunc=null,n.surveyValue=e,n.onCreating(),n}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add(function(){e.update()}),this.timerFunc=function(n,r){e.doTimer(r.seconds)},this.setIsRunning(!0),this.update(),Ir.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),Ir.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(e){var n=this.survey.currentPage;if(n){var r=n.getMaxTimeToFinish();r>0&&r<n.timeSpent+e&&(e=r-n.timeSpent),n.timeSpent=n.timeSpent+e}this.spent=this.spent+e,this.update(),this.onTimerTick&&this.onTimerTick(n)},t.prototype.updateProgress=function(){var e=this,n=this.survey.timerInfo,r=n.spent,o=n.limit;o?(r==0?(this.progress=0,setTimeout(function(){e.progress=Math.floor((r+1)/o*100)/100},0)):r<=o&&(this.progress=Math.floor((r+1)/o*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return this.progress!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return new O().append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return new O().append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),Ft([h()],t.prototype,"text",void 0),Ft([h()],t.prototype,"progress",void 0),Ft([h()],t.prototype,"clockMajorText",void 0),Ft([h()],t.prototype,"clockMinorText",void 0),Ft([h({defaultValue:0})],t.prototype,"spent",void 0),t}(z),Zu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ko=function(i){Zu(t,i);function t(e){var n=i.call(this)||this;return n.cssClasses=e,n.timeout=b.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new Ee,n.actionBar.updateCallback=function(r){n.actionBar.actions.forEach(function(o){return o.cssClasses={}})},n.css=n.cssClasses.root,n}return t.prototype.getCssClass=function(e){return new O().append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,e!=="error"&&e!=="success").append(this.cssClasses.error,e==="error").append(this.cssClasses.success,e==="success").append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var n=this;this.actionBar.actions.forEach(function(r){return r.visible=n.showActions&&n.actionsVisibility[r.id]===e})},t.prototype.notify=function(e,n,r){var o=this;n===void 0&&(n="info"),r===void 0&&(r=!1),this.isDisplayed=!0,setTimeout(function(){o.updateActionsVisibility(n),o.message=e,o.active=!0,o.css=o.getCssClass(n),o.timer&&(clearTimeout(o.timer),o.timer=void 0),r||(o.timer=setTimeout(function(){o.timer=void 0,o.active=!1,o.css=o.getCssClass(n)},o.timeout))},1)},t.prototype.addAction=function(e,n){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=n},mn([h({defaultValue:!1})],t.prototype,"active",void 0),mn([h({defaultValue:!1})],t.prototype,"isDisplayed",void 0),mn([h()],t.prototype,"message",void 0),mn([h()],t.prototype,"css",void 0),t}(z),ec=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),X=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Yo=function(){function i(t,e,n){this.cover=t,this.positionX=e,this.positionY=n}return i.prototype.calcRow=function(t){return t==="top"?1:t==="middle"?2:3},i.prototype.calcColumn=function(t){return t==="left"?1:t==="center"?2:3},i.prototype.calcAlignItems=function(t){return t==="left"?"flex-start":t==="center"?"center":"flex-end"},i.prototype.calcAlignText=function(t){return t==="left"?"start":t==="center"?"center":"end"},i.prototype.calcJustifyContent=function(t){return t==="top"?"flex-start":t==="middle"?"center":"flex-end"},Object.defineProperty(i.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){var t=i.CLASSNAME+" "+i.CLASSNAME+"--"+this.positionX+" "+i.CLASSNAME+"--"+this.positionY;return t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"style",{get:function(){var t={};return t.gridColumn=this.calcColumn(this.positionX),t.gridRow=this.calcRow(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"contentStyle",{get:function(){var t={};return t.textAlign=this.calcAlignText(this.positionX),t.alignItems=this.calcAlignItems(this.positionX),t.justifyContent=this.calcJustifyContent(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?""+this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),i.CLASSNAME="sv-header__cell",i}(),vn=function(i){ec(t,i);function t(){var e=i.call(this)||this;return e.cells=[],["top","middle","bottom"].forEach(function(n){return["left","center","right"].forEach(function(r){return e.cells.push(new Yo(e,r,n))})}),e.init(),e}return t.prototype.calcBackgroundSize=function(e){return e==="fill"?"100% 100%":e==="tile"?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=new O().append("sv-header").append("sv-header__without-background",this.backgroundColor==="transparent"&&!this.backgroundImage).append("sv-header__background-color--none",this.backgroundColor==="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&this.backgroundColor!=="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth=this.inheritWidthFrom==="survey"&&!!e&&e==="static"&&this.survey.renderedWidth,this.contentClasses=new O().append("sv-header__content").append("sv-header__content--static",this.inheritWidthFrom==="survey"&&!!e&&e==="static").append("sv-header__content--responsive",this.inheritWidthFrom==="container"||!!e&&e==="responsive").toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=new O().append("sv-header__background-image").append("sv-header__background-image--contain",this.backgroundImageFit==="contain").append("sv-header__background-image--tile",this.backgroundImageFit==="tile").toString()},t.prototype.fromTheme=function(e){i.prototype.fromJSON.call(this,e.header||{}),e.cssVariables&&(this.backgroundColor=e.cssVariables["--sjs-header-backcolor"],this.titleColor=e.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=e.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=tr(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){if(this.survey&&!this.survey.isMobile||!this.survey)return this.height?Math.max(this.height,this.actualHeight+40)+"px":void 0;if(this.survey&&this.survey.isMobile)return this.mobileHeight?Math.max(this.mobileHeight,this.actualHeight)+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedtextAreaWidth",{get:function(){return this.textAreaWidth?this.textAreaWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this._survey},set:function(e){var n=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add(function(r,o){(o.name=="widthMode"||o.name=="width")&&n.updateContentClasses()})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null},enumerable:!1,configurable:!0}),t.prototype.propertyValueChanged=function(e,n,r,o,s){i.prototype.propertyValueChanged.call(this,e,n,r),(e==="backgroundColor"||e==="backgroundImage"||e==="overlapEnabled")&&this.updateHeaderClasses(),e==="inheritWidthFrom"&&this.updateContentClasses(),e==="backgroundImageFit"&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,n,r){var o=["top","middle","bottom"],s=o.indexOf(this.logoPositionY),a=o.indexOf(this.titlePositionY),l=o.indexOf(this.descriptionPositionY),u=["left","center","right"],d=u.indexOf(this.logoPositionX),v=u.indexOf(this.titlePositionX),V=u.indexOf(this.descriptionPositionX),T=[[0,0,0],[0,0,0],[0,0,0]];return T[s][d]=e,T[a][v]+=n,T[l][V]+=r,T.reduce(function(R,N){return R+Math.max.apply(Math,N)},0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement)if(this.survey.isMobile){var u=this.survey.rootElement.querySelectorAll(".sv-header > div")[0];this.actualHeight=u?u.getBoundingClientRect().height:0}else{var n=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],o=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],s=n?n.getBoundingClientRect().height:0,a=r?r.getBoundingClientRect().height:0,l=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(s,a,l)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||this.backgroundColor!=="transparent"},enumerable:!1,configurable:!0}),X([h({defaultValue:0})],t.prototype,"actualHeight",void 0),X([h()],t.prototype,"height",void 0),X([h()],t.prototype,"mobileHeight",void 0),X([h()],t.prototype,"inheritWidthFrom",void 0),X([h()],t.prototype,"textAreaWidth",void 0),X([h()],t.prototype,"textGlowEnabled",void 0),X([h()],t.prototype,"overlapEnabled",void 0),X([h()],t.prototype,"backgroundColor",void 0),X([h()],t.prototype,"titleColor",void 0),X([h()],t.prototype,"descriptionColor",void 0),X([h({onSet:function(e,n){n.renderBackgroundImage=tr(e)}})],t.prototype,"backgroundImage",void 0),X([h()],t.prototype,"renderBackgroundImage",void 0),X([h()],t.prototype,"backgroundImageFit",void 0),X([h()],t.prototype,"backgroundImageOpacity",void 0),X([h()],t.prototype,"logoPositionX",void 0),X([h()],t.prototype,"logoPositionY",void 0),X([h()],t.prototype,"titlePositionX",void 0),X([h()],t.prototype,"titlePositionY",void 0),X([h()],t.prototype,"descriptionPositionX",void 0),X([h()],t.prototype,"descriptionPositionY",void 0),X([h()],t.prototype,"logoStyle",void 0),X([h()],t.prototype,"titleStyle",void 0),X([h()],t.prototype,"descriptionStyle",void 0),X([h()],t.prototype,"headerClasses",void 0),X([h()],t.prototype,"contentClasses",void 0),X([h()],t.prototype,"maxWidth",void 0),X([h()],t.prototype,"backgroundImageClasses",void 0),t}(z);x.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"mobileHeight:number",minValue:0,default:0},{name:"inheritWidthFrom",default:"container"},{name:"textAreaWidth:number",minValue:0,default:512},{name:"textGlowEnabled:boolean"},{name:"overlapEnabled:boolean"},{name:"backgroundImage:file"},{name:"backgroundImageOpacity:number",minValue:0,maxValue:1,default:1},{name:"backgroundImageFit",default:"cover",choices:["cover","fill","contain"]},{name:"logoPositionX",default:"right"},{name:"logoPositionY",default:"top"},{name:"titlePositionX",default:"left"},{name:"titlePositionY",default:"bottom"},{name:"descriptionPositionX",default:"left"},{name:"descriptionPositionY",default:"bottom"}],function(){return new vn});var tc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},rc=function(){function i(t){this.type=t,this.timestamp=new Date}return i}(),ic=function(i){tc(t,i);function t(){var e=i.call(this)||this;return e.taskList=[],e.onAllTasksCompleted=e.addEvent(),e}return t.prototype.runTask=function(e,n){var r=this,o=new rc(e);return this.taskList.push(o),this.hasActiveTasks=!0,n(function(){return r.taskFinished(o)}),o},t.prototype.waitAndExecute=function(e){if(!this.hasActiveTasks){e();return}this.onAllTasksCompleted.add(function(){e()})},t.prototype.taskFinished=function(e){var n=this.taskList.indexOf(e);n>-1&&this.taskList.splice(n,1),this.hasActiveTasks&&this.taskList.length==0&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},nc([h({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(z),Xo=function(){function i(t,e,n){n===void 0&&(n=-1),this.source=t,this.target=e,this.nestedPanelDepth=n}return i}(),oc=function(){function i(t){this.panel=t}return i.prototype.dragDropAddTarget=function(t){var e=this.dragDropFindRow(t.target);this.dragDropAddTargetToRow(t,e)&&this.panel.updateRowsRemoveElementFromRow(t.target,e)},i.prototype.dragDropFindRow=function(t){if(!t||t.isPage)return null;for(var e=t,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return n[r];for(var r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var s=o.dragDropFindRow(e);if(s)return s}}return null},i.prototype.dragDropMoveElement=function(t,e,n){var r=t.parent.elements.indexOf(t);n>r&&n--,this.panel.removeElement(t),this.panel.addElement(e,n)},i.prototype.updateRowsOnElementAdded=function(t,e,n,r){n||(n=new Xo(null,t),n.target=t,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=r:(n.isBottom=e>0,e==0?n.destination=this.panel.elements[1]:n.destination=this.panel.elements[e-1])),this.dragDropAddTargetToRow(n,null)},i.prototype.dragDropAddTargetToRow=function(t,e){if(!t.destination||this.dragDropAddTargetToEmptyPanel(t))return!0;var n=t.destination,r=this.dragDropFindRow(n);return r?t.target.startWithNewLine?this.dragDropAddTargetToNewRow(t,r,e):this.dragDropAddTargetToExistingRow(t,r,e):!0},i.prototype.dragDropAddTargetToEmptyPanel=function(t){if(t.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,t.target,t.isBottom),!0;var e=t.destination;if(e.isPanel&&!t.isEdge){var n=e;if(t.target.template===e)return!1;if(t.nestedPanelDepth<0||t.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(e,t.target,t.isBottom),!0}return!1},i.prototype.dragDropAddTargetToExistingRow=function(t,e,n){var r=e.elements.indexOf(t.destination);if(r==0&&!t.isBottom&&!this.panel.isDesignModeV2){if(e.elements[0].startWithNewLine)return e.index>0?(t.isBottom=!0,e=e.panel.rows[e.index-1],t.destination=e.elements[e.elements.length-1],this.dragDropAddTargetToExistingRow(t,e,n)):this.dragDropAddTargetToNewRow(t,e,n)}var o=-1;n==e&&(o=e.elements.indexOf(t.target)),t.isBottom&&r++;var s=this.panel.findRowByElement(t.source);return s==e&&s.elements.indexOf(t.source)==r||r==o?!1:(o>-1&&(e.elements.splice(o,1),o<r&&r--),e.elements.splice(r,0,t.target),e.updateVisible(),o<0)},i.prototype.dragDropAddTargetToNewRow=function(t,e,n){var r=e.panel.createRowAndSetLazy(e.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(t.target);var o=e.index;if(t.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var s=this.panel.findRowByElement(t.source);return s&&s.panel==r.panel&&s.elements.length==1&&s.index==o?!1:(e.panel.rows.splice(o,0,r),!0)},i.prototype.dragDropAddTargetToEmptyPanelCore=function(t,e,n){var r=t.createRow();r.addElement(e),t.elements.length==0||n?t.rows.push(r):t.rows.splice(0,0,r)},i}(),sc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ar=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Zo=function(i){sc(t,i);function t(e,n){var r=i.call(this)||this;return r.effectiveWidth=e,r.questionTitleWidth=n,r}return t.prototype.getType=function(){return"panellayoutcolumn"},t.prototype.isEmpty=function(){return!this.width&&!this.questionTitleWidth},Ar([h()],t.prototype,"width",void 0),Ar([h({onSet:function(e,n,r){e!==r&&(n.width=e)}})],t.prototype,"effectiveWidth",void 0),Ar([h()],t.prototype,"questionTitleWidth",void 0),t}(z);x.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(i){return new Zo});var Dr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_t=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},es=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},ts=function(i){Dr(t,i);function t(e){var n=i.call(this)||this;return n.panel=e,n._scrollableParent=void 0,n._updateVisibility=void 0,n.visibleElementsAnimation=new Qe(n.getVisibleElementsAnimationOptions(),function(r){n.setWidth(r),n.setPropertyValue("visibleElements",r)},function(){return n.visibleElements}),n.idValue=t.getRowId(),n.visible=e.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return t.getRowId=function(){return"pr_"+t.rowCounter++},Object.defineProperty(t.prototype,"allowRendering",{get:function(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.startLazyRendering=function(e,n){var r=this;if(n===void 0&&(n=rn),!!I.isAvailable()){this._scrollableParent=n(e),this._scrollableParent===I.getDocumentElement()&&(this._scrollableParent=E.getWindow());var o=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!o,o&&(this._updateVisibility=function(){if(r.allowRendering){var s=ru(e,50);!r.isNeedRender&&s&&(r.isNeedRender=!0,r.stopLazyRendering())}},setTimeout(function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.ensureVisibility()},10))}},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return this.isLazyRenderingValue===!0},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.equalsCore=function(e){return this==e},Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){var e;return i.prototype.getIsAnimationAllowed.call(this)&&this.visible&&((e=this.panel)===null||e===void 0?void 0:e.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,n=function(r){Ae(r),Mt(r,{width:sr(r)+"px"})};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(r){return r.getWrapperElement()},getLeaveOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.leave,onBeforeRunAnimation:n,onAfterRunAnimation:Ce}},getEnterOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.enter,onBeforeRunAnimation:n,onAfterRunAnimation:Ce}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(e.length)this.visible=!0;else{this.visible=!1,this.visibleElementsAnimation.cancel();return}this.visibleElementsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e),this.onVisibleChangedCallback&&this.onVisibleChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){for(var e=[],n=0;n<this.elements.length;n++)this.elements[n].isVisible&&e.push(this.elements[n]),(this.elements[n].isPanel||this.elements[n].getType()==="paneldynamic")&&(this.setIsLazyRendering(!1),this.stopLazyRendering());this.visibleElements=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(e){var n,r=e.length;if(r!=0){for(var o=e.length===1,s=0,a=[],l=0;l<this.elements.length;l++){var u=this.elements[l];if(u.isVisible){u.isSingleInRow=o;var d=this.getElementWidth(u);d&&(u.renderWidth=this.getRenderedWidthFromWidth(d),a.push(u)),s<r-1&&!(this.panel.isDefaultV2Theme||!((n=this.panel.parentQuestion)===null||n===void 0)&&n.isDefaultV2Theme)?u.rightIndent=1:u.rightIndent=0,s++}else u.renderWidth=""}for(var l=0;l<this.elements.length;l++){var u=this.elements[l];!u.isVisible||a.indexOf(u)>-1||(a.length==0?u.renderWidth=Number.parseFloat((100/r).toFixed(6))+"%":u.renderWidth=this.getRenderedCalcWidth(u,a,r))}}},t.prototype.getRenderedCalcWidth=function(e,n,r){for(var o="100%",s=0;s<n.length;s++)o+=" - "+n[s].renderWidth;var a=r-n.length;return a>1&&(o="("+o+")/"+a.toString()),"calc("+o+")"},t.prototype.getElementWidth=function(e){var n=e.width;return!n||typeof n!="string"?"":n.trim()},t.prototype.getRenderedWidthFromWidth=function(e){return P.isNumber(e)?e+"px":e},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new O().append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.rowCounter=100,_t([h({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(z),Lr=function(i){Dr(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.isQuestionsReady=!1,n.questionsValue=new Array,n._columns=void 0,n._columnsReady=!1,n.rowsAnimation=new Qe(n.getRowsAnimationOptions(),function(r){n.setPropertyValue("visibleRows",r)},function(){return n.visibleRows}),n.isRandomizing=!1,n.onColumnPropertyValueChangedCallback=function(r,o,s,a,l){n._columnsReady&&(n.updateColumnWidth(n.gridLayoutColumns),n.updateRootStyle())},n.locCountRowUpdates=0,n.createNewArray("rows",function(r,o){n.onAddRow(r)},function(r){n.onRemoveRow(r)}),n.createNewArray("visibleRows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",function(r,o){n.visible=o===!0},function(r){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(r,o){n.readOnly=o===!1}),n.addExpressionProperty("requiredIf",function(r,o){n.isRequired=o===!0}),n.createLocalizableString("requiredErrorText",n),n.createLocalizableString("navigationTitle",n,!0).onGetTextCallback=function(r){return r||n.title||n.name},n.registerPropertyChangedHandlers(["questionTitleLocation"],function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)}),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){n.updateVisibleIndexes()}),n.registerPropertyChangedHandlers(["title"],function(){n.resetHasTextInTitle()}),n.dragDropPanelHelper=new oc(n),n}return t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var n=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return n.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this;return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(n){return n.getRootElement()},getLeaveOptions:function(n,r){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:new O().append(o.rowEnter).append(o.rowDelayedEnter,r.isDeletingRunning).toString(),onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}}}},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getPropertyValue("visibleRows")},set:function(e){this.rowsAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.onRemoveRow=function(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter(function(n){return n.visible}),e.onVisibleChangedCallback=void 0},t.prototype.onRowVisibleChanged=function(){this.visibleRows=this.rows.filter(function(e){return e.visible})},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(e,n){this.blockAnimations(),i.prototype.setSurveyImpl.call(this,e,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(e,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged(),this.gridLayoutColumns.forEach(function(n){n.onPropertyValueChangedCallback=e.onColumnPropertyValueChangedCallback})},Object.defineProperty(t.prototype,"hasTextInTitle",{get:function(){var e=this;return this.getPropertyValue("hasTextInTitle",void 0,function(){return!!e.title})},enumerable:!1,configurable:!0}),t.prototype.resetHasTextInTitle=function(){this.resetPropertyValue("hasTextInTitle")},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle(this.survey)&&(this.hasTextInTitle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!(b.supportCreatorV2&&this.isPanel)&&this.showTitle&&b.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){e===void 0&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,n=0;n<e.length;n++){var r=e[n];r.isPanel&&r.deletePanel(),this.onRemoveElementNotifySurvey(r)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(e){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!this.hasTitle&&this.isDesignMode?!1:this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&b.designMode.showEmptyDescriptions},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].locStrsChanged()},t.prototype.getMarkdownHtml=function(e,n){return n==="navigationTitle"&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:i.prototype.getMarkdownHtml.call(this,e,n)},Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedNavigationTitle",{get:function(){return this.locNavigationTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&this.questionsOrder!=="initial"||this.questionsOrder==="random"},t.prototype.randomizeElements=function(e){if(!this.canRandomize(e)||this.isRandomizing)return!1;this.isRandomizing=!0;for(var n=[],r=this.elements,o=0;o<r.length;o++)n.push(r[o]);var s=P.randomizeArray(n);return this.setArrayPropertyDirectly("elements",s,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1,!0},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){var e=this.questionsOrder=="default"&&this.survey?this.survey.questionsOrder:this.questionsOrder;return e=="random"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return this.parent==null?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var n={panel:{},error:{},row:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(n.panel,e.panel),this.copyCssClasses(n.error,e.error),e.pageRow&&(n.pageRow=e.pageRow),e.rowCompact&&(n.rowCompact=e.rowCompact),e.row&&(n.row=e.row),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,n),n},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var n=this.elements[e];if(n.isPanel)for(var r=n.questions,o=0;o<r.length;o++)this.questionsValue.push(r[o]);else this.questionsValue.push(n)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var n=this.questions;if(!e)return n;var r=[];return n.forEach(function(o){r.push(o),o.getNestedQuestions().forEach(function(s){return r.push(s)})}),r},t.prototype.getValidName=function(e){return e&&e.trim()},t.prototype.getQuestionByName=function(e){for(var n=this.questions,r=0;r<n.length;r++)if(n[r].name==e)return n[r];return null},t.prototype.getElementByName=function(e){for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.name==e)return o;var s=o.getPanel();if(s){var a=s.getElementByName(e);if(a)return a}}return null},t.prototype.getQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);return n.length>0?n[0]:null},t.prototype.getQuestionsByValueName=function(e){for(var n=[],r=this.questions,o=0;o<r.length;o++)r[o].getValueName()==e&&n.push(r[o]);return n},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),P.getUnbindValue(e)},t.prototype.collectValues=function(e,n){var r=this.elements;n===0&&(r=this.questions);for(var o=0;o<r.length;o++){var s=r[o];if(s.isPanel||s.isPage){var a={};s.collectValues(a,n-1)&&(e[s.name]=a)}else{var l=s;if(!l.isEmpty()){var u=l.getValueName();if(e[u]=l.value,this.data){var d=this.data.getComment(u);d&&(e[u+z.commentSuffix]=d)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var n={},r=this.questions,o=0;o<r.length;o++){var s=r[o];if(!s.isEmpty()){var a=e?s.title:s.getValueName();n[a]=s.getDisplayValue(e)}}return n},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var n=this.questions,r=0;r<n.length;r++){var o=n[r],s=this.data.getComment(o.getValueName());s&&(e[o.getValueName()]=s)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return z.collectDependency(this,"elements"),this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return this.elements},t.prototype.containsElement=function(e){for(var n=0;n<this.elements.length;n++){var r=this.elements[n];if(r==e)return!0;var o=r.getPanel();if(o&&o.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(e,n){i.prototype.searchText.call(this,e,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(e,n)},t.prototype.hasErrors=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),!this.validate(e,n,r)},t.prototype.validate=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),r=r||{fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},r.result!==!0&&(r.result=!1),this.hasErrorsCore(r),!r.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.onQuestionValueChanged=function(e){var n=this.questions.indexOf(e);if(!(n<0)){for(var r=5,o=this.questions.length-1,s=n-r>0?n-r:0,a=n+r<o?n+r:o,l=s;l<=a;l++)if(l!==n){var u=this.questions[l];u.errors.length>0&&u.validate(!1)&&u.validate(!0)}}},t.prototype.hasErrorsInPanels=function(e){var n=[];if(this.hasRequiredError(e,n),this.isPanel&&this.survey){var r=this.survey.validatePanel(this);r&&(n.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,n),this.errors=n)},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.hasRequiredError=function(e,n){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),r.length!=0){for(var o=0;o<r.length;o++)if(!r[o].isEmpty())return;e.result=!0,n.push(new mo(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var n=this.elements,r=null,o=null,s=0;s<n.length;s++)if(r=n[s],!!r.isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var a=r;a.validate(e.fireCallback,e)||(o||(o=a),e.firstErrorQuestion||(e.firstErrorQuestion=a),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!o&&this.errors.length>0&&(o=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=o)),e.fireCallback&&o&&(o===e.firstErrorQuestion&&e.focusOnFirstError?o.focus(!0):o.expandAllParents())},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateElementVisibility();i.prototype.updateElementVisibility.call(this)},t.prototype.getFirstQuestionToFocus=function(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!e&&!n&&this.isCollapsed)return null;for(var r=this.elements,o=0;o<r.length;o++){var s=r[o];if(!(!s.isVisible||!n&&s.isCollapsed))if(s.isPanel){var a=s.getFirstQuestionToFocus(e,n);if(a)return a}else{var l=s.getFirstQuestionToFocus(e);if(l)return l}}return null},t.prototype.getFirstVisibleQuestion=function(){for(var e=this.questions,n=0;n<e.length;n++)if(e[n].isVisible)return e[n];return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!1)},t.prototype.addPanelsIntoList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!0)},t.prototype.addElementsToList=function(e,n,r,o){n&&!this.visible||this.addElementsToListCore(e,this.elements,n,r,o)},t.prototype.addElementsToListCore=function(e,n,r,o,s){for(var a=0;a<n.length;a++){var l=n[a];r&&!l.visible||((s&&l.isPanel||!s&&!l.isPanel)&&e.push(l),l.isPanel?l.addElementsToListCore(e,l.elements,r,o,s):o&&this.addElementsToListCore(e,l.getElementsInDesign(!1),r,o,s))}},t.prototype.calcMaxRowColSpan=function(){var e=0;return this.rows.forEach(function(n){var r=0,o=!1;n.elements.forEach(function(s){s.width&&(o=!0),r+=s.colSpan||1}),!o&&r>e&&(e=r)}),e},t.prototype.updateColumnWidth=function(e){var n=0,r=0;if(e.forEach(function(a){a.width?(n+=a.width,a.setPropertyValue("effectiveWidth",a.width)):r++}),r)for(var o=vu((100-n)/r),s=0;s<e.length;s++)e[s].width||e[s].setPropertyValue("effectiveWidth",o)},t.prototype.updateColumns=function(){this._columns=void 0,this.updateRootStyle()},t.prototype.updateRootStyle=function(){var e;i.prototype.updateRootStyle.call(this),(e=this.elements)===null||e===void 0||e.forEach(function(n){return n.updateRootStyle()})},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():this.questionTitleLocation!="default"?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){var e=this.getQuestionTitleLocation();return e==="left"?!0:this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){var e=this.elements.some(function(n){if(n instanceof t)return n.hasElementWithTitleLocationLeft();if(n instanceof ue)return n.getTitleLocation()==="left"});return e},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns||this.generateColumns(),this._columns||[]},enumerable:!1,configurable:!0}),t.prototype.generateColumns=function(){var e=this.calcMaxRowColSpan(),n=[].concat(this.gridLayoutColumns);if(e<=this.gridLayoutColumns.length)n=this.gridLayoutColumns.slice(0,e);else for(var r=this.gridLayoutColumns.length;r<e;r++){var o=new Zo;o.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback,n.push(o)}this._columns=n;try{this._columnsReady=!1,this.updateColumnWidth(n)}finally{this._columnsReady=!0}this.gridLayoutColumns=n},t.prototype.updateGridColumns=function(){this.updateColumns(),this.elements.forEach(function(e){e.isPanel&&e.updateGridColumns()})},t.prototype.getColumsForElement=function(e){var n=this.findRowByElement(e);if(!n||!this.survey||!this.survey.gridLayoutEnabled)return[];for(var r=n.elements.length-1;r>=0&&n.elements[r].getPropertyValueWithoutDefault("colSpan");)r--;for(var o=n.elements.indexOf(e),s=0,a=0;a<o;a++)s+=n.elements[a].colSpan;var l=e.getPropertyValueWithoutDefault("colSpan");if(!l&&o===r){for(var u=0,a=0;a<n.elements.length;a++)a!==r&&(u+=n.elements[a].colSpan);l=this.columns.length-u}var d=this.columns.slice(s,s+(l||1));return e.setPropertyValue("effectiveColSpan",d.length),d},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return le.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){var e=this.getIsPageVisible(null),n=this.getPropertyValue("isVisible",!0);e!==n&&this.onVisibleChanged()},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.isLazyRenderInRow=function(e){return!this.survey||!this.survey.isLazyRendering?!1:e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows()},t.prototype.createRowAndSetLazy=function(e){var n=this.createRow();return n.setIsLazyRendering(this.isLazyRenderInRow(e)),n},t.prototype.createRow=function(){return new ts(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.onRowsChanged(),this.elements.forEach(function(e){return e.onFirstRendering()})},t.prototype.updateRows=function(){this.isLoadingFromJson||(this.getElementsForRows().forEach(function(e){e.isPanel&&e.updateRows()}),this.onRowsChanged())},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach(function(e){e.ensureVisibility()})},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||(this.blockAnimations(),this.setArrayPropertyDirectly("rows",this.buildRows()),this.updateColumns(),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var n=this,r=this.findRowByElement(e),o=this.rows.indexOf(r),s=r.elements.indexOf(e);r.elements.splice(s,1),r.elements.length==0?this.rows.splice(o,1):!r.elements[0].startWithNewLine&&this.rows[o-1]?(r.elements.forEach(function(a){return n.rows[o-1].addElement(a)}),this.rows.splice(o,1)):r.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var n=this,r=this.elements.indexOf(e),o=this.elements[r+1],s=function(v){var V=n.createRowAndSetLazy(v);return n.isDesignModeV2&&V.setIsLazyRendering(!1),n.rows.splice(v,0,V),V},a=function(v,V,T){for(var R,N=[],j=3;j<arguments.length;j++)N[j-3]=arguments[j];var A=(R=v.elements).splice.apply(R,es([V,T],N));return v.updateVisible(),A};if(!o){r==0||e.startWithNewLine?a(s(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}var l=this.findRowByElement(o);if(l){var u=this.rows.indexOf(l),d=l.elements.indexOf(o);d==0?o.startWithNewLine?e.startWithNewLine||u<1?s(u).addElement(e):this.rows[u-1].addElement(e):a(l,0,0,e):e.startWithNewLine?a.apply(void 0,es([s(u+1),0,0],[e].concat(a(l,d,l.elements.length)))):a(l,d,0,e)}},t.prototype.canFireAddRemoveNotifications=function(e){return!!this.survey&&e.prevSurvey!==this.survey},t.prototype.onAddElement=function(e,n){var r=this,o=this.survey,s=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),s&&(e.isPanel?o.panelAdded(e,n,this,this.root):o.questionAdded(e,n,this,this.root)),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){r.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){r.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),!this.isRandomizing&&(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.unregisterElementPropertiesChanged=function(e){e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id)},t.prototype.onRemoveElementNotifySurvey=function(e){this.canFireAddRemoveNotifications(e)&&(e.isPanel?this.survey.panelRemoved(e):this.survey.questionRemoved(e))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.locCountRowUpdates>0||(this.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())},t.prototype.updateRowsVisibility=function(e){for(var n=this.rows,r=0;r<n.length;r++){var o=n[r];if(o.elements.indexOf(e)>-1){o.updateVisible(),o.visible&&!o.isNeedRender&&(o.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&this.getChildrenLayoutType()=="row"},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,n=this.getElementsForRows(),r=0;r<n.length;r++){var o=n[r],s=r==0||o.startWithNewLine,a=s?this.createRowAndSetLazy(e.length):e[e.length-1];s&&e.push(a),a.addElement(o)}return e.forEach(function(l){return l.updateVisible()}),e},t.prototype.getElementsForRows=function(){return this.elements},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&(this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e)),this.updateColumns())},t.prototype.updateRowsRemoveElementFromRow=function(e,n){if(!(!n||!n.panel)){var r=n.elements.indexOf(e);r<0||(n.elements.splice(r,1),n.elements.length>0?(this.blockRowsUpdates(),n.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),n.updateVisible()):n.index>=0&&n.panel.rows.splice(n.index,1))}},t.prototype.getAllRows=function(){var e=this,n=[];return this.rows.forEach(function(r){var o=[];r.elements.forEach(function(s){s.isPanel?o.push.apply(o,s.getAllRows()):s.getType()=="paneldynamic"&&(e.isDesignMode?o.push.apply(o,s.template.getAllRows()):s.panels.forEach(function(a){return o.push.apply(o,a.getAllRows())}))}),n.push(r),n.push.apply(n,o)}),n},t.prototype.findRowAndIndexByElement=function(e,n){if(!e)return{row:void 0,index:this.rows.length-1};n=n||this.rows;for(var r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return{row:n[r],index:r};return{row:null,index:-1}},t.prototype.forceRenderRow=function(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())},t.prototype.forceRenderElement=function(e,n,r){n===void 0&&(n=function(){}),r===void 0&&(r=0);var o=this.getAllRows(),s=this.findRowAndIndexByElement(e,o),a=s.row,l=s.index;if(l>=0&&l<o.length){var u=[];u.push(a);for(var d=l-1;d>=l-r&&d>=0;d--)u.push(o[d]);this.forceRenderRows(u,n)}},t.prototype.forceRenderRows=function(e,n){var r=this;n===void 0&&(n=function(){});var o=function(s){return function(){s--,s<=0&&n()}}(e.length);e.forEach(function(s){return new tu(s.visibleElements,o)}),e.forEach(function(s){return r.forceRenderRow(s)})},t.prototype.findRowByElement=function(e){return this.findRowAndIndexByElement(e).row},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var n=this.findRowByElement(e);n&&n.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return this.textProcessor!=null?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){this.questions.forEach(function(e){return e.onHidingContent()})},t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.getQuestionClearIfInvisible("default")!=="none"&&!this.isLoadingFromJson))for(var e=this.questions,n=this.isVisible,r=0;r<e.length;r++){var o=e[r];n?o.updateValueWithDefaults():(o.clearValueIfInvisible("onHiddenContainer"),o.onHidingContent())}},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.questions.forEach(function(n){return n.onHidingContent()})},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsContentVisible=function(e){if(this.areInvisibleElementsShowing)return!0;for(var n=0;n<this.elements.length;n++)if(this.elements[n]!=e&&this.elements[n].isVisible)return!0;return!1},t.prototype.getIsPageVisible=function(e){return this.visible&&this.getIsContentVisible(e)},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var n=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),o=r,s=0;s<this.elements.length;s++)o+=this.elements[s].setVisibleIndex(o);return this.isContinueNumbering()&&(e+=o-r),e-n},t.prototype.updateVisibleIndexes=function(){this.lastVisibleIndex!==void 0&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.elements.length;e++){var n=this.elements[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.elements.length;n++){var r=this.elements[n];r.updateElementCss(e)}},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,n){return n===void 0&&(n=-1),this.canAddElement(e)?(n<0||n>=this.elements.length?this.elements.push(e):this.elements.splice(n,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0):!1},t.prototype.insertElement=function(e,n,r){if(r===void 0&&(r="bottom"),!n){this.addElement(e);return}this.blockRowsUpdates();var o=this.elements.indexOf(n),s=this.findRowByElement(n);r=="left"||r=="right"?r=="right"?(e.startWithNewLine=!1,o++):s.elements.indexOf(n)==0?(n.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r=="top"?o=this.elements.indexOf(s.elements[0]):o=this.elements.indexOf(s.elements[s.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,o)},t.prototype.insertElementAfter=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addPanel=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addNewQuestion=function(e,n,r){n===void 0&&(n=null),r===void 0&&(r=-1);var o=J.Instance.createQuestion(e,n);return this.addQuestion(o,r)?o:null},t.prototype.addNewPanel=function(e){e===void 0&&(e=null);var n=this.createNewPanel(e);return this.addPanel(n)?n:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var n=x.createClass("panel");return n.name=e,n},t.prototype.removeElement=function(e){var n=this.elements.indexOf(e);if(n<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(n,1),this.updateColumns(),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,n){if(!(this.isDesignMode||this.isLoadingFromJson)){for(var r=this.elements.slice(),o=0;o<r.length;o++)r[o].runCondition(e,n);this.runConditionCore(e,n)}},t.prototype.onAnyValueChanged=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},t.prototype.checkBindings=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].checkBindings(e,n)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,n,r){this.dragDropPanelHelper.dragDropMoveElement(e,n,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(n){n.elements.length>1&&(e=!0)}),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return this.questionErrorLocation!=="default"?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.panel.number},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return this.cssClasses.panel.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return new O().append(e.error.root).toString()},t.prototype.getSerializableColumnsValue=function(){for(var e=-1,n=this.gridLayoutColumns.length-1;n>=0;n--)if(!this.gridLayoutColumns[n].isEmpty()){e=n;break}return this.gridLayoutColumns.slice(0,e+1)},t.prototype.afterRender=function(e){this.afterRenderCore(e)},t.prototype.dispose=function(){if(i.prototype.dispose.call(this),this.rows){for(var e=0;e<this.rows.length;e++)this.rows[e].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)},t.prototype.disposeElements=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose()},t.panelCounter=100,_t([ae()],t.prototype,"gridLayoutColumns",void 0),_t([h({defaultValue:!0})],t.prototype,"showTitle",void 0),_t([h({defaultValue:!0})],t.prototype,"showDescription",void 0),_t([h()],t.prototype,"questionTitleWidth",void 0),t}(le),Bt=function(i){Dr(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.forcusFirstQuestionOnExpand=!0,n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],function(){n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var r;(r=n.parent)===null||r===void 0||r.updateColumns()}),n}return t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e&&this.isPanel?this.parent?this.parent.getSurvey(e):null:i.prototype.getSurvey.call(this,e)},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:i.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){var e=this;return this.getPropertyValue("no",void 0,function(){return e.calcNo()})},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e=P.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedPanelNo(this,e)),e||""},t.prototype.notifyStateChanged=function(e){this.isLoadingFromJson||this.locTitle.strChanged(),i.prototype.notifyStateChanged.call(this,e)},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(r){return!r&&e.state!=="default"&&(r=e.name),r},n},t.prototype.beforeSetVisibleIndex=function(e){if(this.isPage)return i.prototype.beforeSetVisibleIndex.call(this,e);var n=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(n=e),this.setPropertyValue("visibleIndex",n),this.resetPropertyValue("no"),n<0?0:1},t.prototype.getPanelStartIndex=function(e){return this.showQuestionNumbers==="off"?-1:this.showQuestionNumbers==="onpanel"?0:e},t.prototype.hasParentInQuestionIndex=function(){if(this.showQuestionNumbers!=="onpanel")return!1;var e=this.questionStartIndex,n=e.indexOf(".");return n>-1&&n<e.length-1},t.prototype.isContinueNumbering=function(){return this.showQuestionNumbers!=="off"&&this.showQuestionNumbers!=="onpanel"},t.prototype.notifySurveyOnVisibilityChanged=function(){this.survey!=null&&!this.isLoadingFromJson&&this.page&&this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(e){if(this.isPanel&&!e){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return i.prototype.getRenderedTitle.call(this,e)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){var e=this,n=function(){return e.getIndentSize(e.innerIndent)};return this.getPropertyValue("innerPaddingLeft",void 0,n)},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.resetIndents=function(){this.resetPropertyValue("innerPaddingLeft"),i.prototype.resetIndents.call(this)},t.prototype.getIndentSize=function(e){if(this.survey){if(e<1)return"";var n=this.survey.css;return!n||!n.question||!n.question.indent?"":e*n.question.indent+"px"}},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof ue||e instanceof t)&&e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e=this,n,r;if(!this.footerToolbarValue){var o=this.footerActions;this.hasEditButton&&o.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){e.cancelPreview()}}),this.onGetFooterActionsCallback?o=this.onGetFooterActionsCallback():o=(n=this.survey)===null||n===void 0?void 0:n.getUpdatedPanelFooterActions(this,o),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var s=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";s||(s=(r=this.cssClasses.panel)===null||r===void 0?void 0:r.footer),s&&(this.footerToolbarValue.containerCss=s),this.footerToolbarValue.setItems(o)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssPanelTitle()},enumerable:!1,configurable:!0}),t.prototype.getCssPanelTitle=function(){return this.getCssTitle(this.cssClasses.panel)},t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.panel.titleExpandableSvg},Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){if(this.isPage)return i.prototype.getCssError.call(this,e);var n=new O().append(i.prototype.getCssError.call(this,e)).append(e.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){i.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return this.startWithNewLine?i.prototype.needResponsiveWidth.call(this):!0},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return i.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return i.prototype.getIsNested.call(this)&&this.parent!==void 0},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.expand=function(e){e===void 0&&(e=!0),this.forcusFirstQuestionOnExpand=e,i.prototype.expand.call(this)},t.prototype.onElementExpanded=function(e){var n=this;if(this.forcusFirstQuestionOnExpand&&this.survey!=null&&!this.isLoadingFromJson){var r=this.getFirstQuestionToFocus(!1);r&&setTimeout(function(){!n.isDisposed&&n.survey&&n.survey.scrollElementToTop(r,r,null,r.inputId,!1,{behavior:"smooth"})},e?0:15)}},t.prototype.getCssRoot=function(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.container).append(e.asPage,this.showPanelAsPage).append(e.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t.prototype.afterRenderCore=function(e){var n;i.prototype.afterRenderCore.call(this,e),this.isPanel&&((n=this.survey)===null||n===void 0||n.afterRenderPanel(this,e))},t}(Lr);x.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"readOnly:boolean",overridingProperty:"enableIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"questionTitleWidth",visibleIf:function(i){return!!i&&i.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"gridLayoutColumns:panellayoutcolumns",className:"panellayoutcolumn",isArray:!0,onSerializeValue:function(i){return i.getSerializableColumnsValue()},visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"questionErrorLocation",default:"default",choices:["default","top","bottom"]}],function(){return new Lr}),x.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"width"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return b.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i.survey&&i.survey.gridLayoutEnabled}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3],visible:!1},{name:"page",isSerializable:!1,visibleIf:function(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"showNumber:boolean"},{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},{name:"questionStartIndex",visibleIf:function(i){return i.isPanel}},{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new Bt},"panelbase"),ze.Instance.registerElement("panel",function(i){return new Bt(i)});var ac=function(){function i(t){this.page=t}return i.prototype.getDragDropInfo=function(){return this.dragDropInfo},i.prototype.dragDropStart=function(t,e,n){n===void 0&&(n=-1),this.dragDropInfo=new Xo(t,e,n)},i.prototype.dragDropMoveTo=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!this.dragDropInfo||(this.dragDropInfo.destination=t,this.dragDropInfo.isBottom=e,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert()))return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},i.prototype.correctDragDropInfo=function(t){if(t.destination){var e=t.destination.isPanel?t.destination:null;e&&(t.target.isLayoutTypeSupported(e.getChildrenLayoutType())||(t.isEdge=!0))}},i.prototype.dragDropAllowFromSurvey=function(){var t=this.dragDropInfo.destination;if(!t||!this.page.survey)return!0;var e=null,n=null,r=t.isPage||!this.dragDropInfo.isEdge&&t.isPanel?t:t.parent;if(!t.isPage){var o=t.parent;if(o){var s=o.elements,a=s.indexOf(t);a>-1&&(e=t,n=t,this.dragDropInfo.isBottom?e=a<s.length-1?s[a+1]:null:n=a>0?s[a-1]:null)}}var l={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,toElement:this.dragDropInfo.target,draggedElement:this.dragDropInfo.source,parent:r,fromElement:this.dragDropInfo.source?this.dragDropInfo.source.parent:null,insertAfter:n,insertBefore:e};return this.page.survey.dragAndDropAllow(l)},i.prototype.dragDropFinish=function(t){if(t===void 0&&(t=!1),!!this.dragDropInfo){var e=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(e),s=this.dragDropGetElementIndex(e,o);this.page.updateRowsRemoveElementFromRow(e,o);var a=[],l=[];if(!t&&o){var u=!1;if(this.page.isDesignModeV2){var d=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[s]&&o.panel.elements[s].startWithNewLine&&o.elements.length>1&&o.panel.elements[s]===r&&(a.push(e),l.push(o.panel.elements[s])),e.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[s]||!o.panel.elements[s].startWithNewLine)&&l.push(e),d&&d.elements[0]===n&&d.elements[1]&&a.push(d.elements[1]),o.elements.length<=1&&a.push(e),e.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&l.push(e)}this.page.survey.startMovingQuestion(),n&&n.parent&&(u=o.panel==n.parent,u?(o.panel.dragDropMoveElement(n,e,s),s=-1):n.parent.removeElement(n)),s>-1&&o.panel.addElement(e,s),this.page.survey.stopMovingQuestion()}return a.map(function(v){v.startWithNewLine=!0}),l.map(function(v){v.startWithNewLine=!1}),this.dragDropInfo=null,t?null:e}},i.prototype.dragDropGetElementIndex=function(t,e){if(!e)return-1;var n=e.elements.indexOf(t);if(e.index==0)return n;var r=e.panel.rows[e.index-1],o=r.elements[r.elements.length-1];return n+e.panel.elements.indexOf(o)+1},i.prototype.dragDropCanDropTagert=function(){var t=this.dragDropInfo.destination;return!t||t.isPage?!0:this.dragDropCanDropCore(this.dragDropInfo.target,t)},i.prototype.dragDropCanDropSource=function(){var t=this.dragDropInfo.source;if(!t)return!0;var e=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(t,e))return!1;if(this.page.isDesignModeV2){var n=this.page.dragDropFindRow(t),r=this.page.dragDropFindRow(e);if(n!==r&&(!t.startWithNewLine&&e.startWithNewLine||t.startWithNewLine&&!e.startWithNewLine))return!0;var o=this.page.dragDropFindRow(e);if(o&&o.elements.length==1)return!0}return this.dragDropCanDropNotNext(t,e,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},i.prototype.dragDropCanDropCore=function(t,e){if(!e)return!0;if(this.dragDropIsSameElement(e,t))return!1;if(t.isPanel){var n=t;if(n.containsElement(e)||n.getElementByName(e.name))return!1}return!0},i.prototype.dragDropCanDropNotNext=function(t,e,n,r){if(!e||e.isPanel&&!n||typeof t.parent>"u"||t.parent!==e.parent)return!0;var o=t.parent,s=o.elements.indexOf(t),a=o.elements.indexOf(e);return a<s&&!r&&a--,r&&a++,s<a?a-s>1:s-a>0},i.prototype.dragDropIsSameElement=function(t,e){return t==e||t.name==e.name},i}(),lc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),uc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Mr=function(i){lc(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.hasShownValue=!1,n.timeSpent=0,n._isReadyForClean=!0,n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new ac(n),n}return t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!this.isPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!!this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return this.isPanel&&this.survey&&this.survey.state==="preview"&&!!this.parent&&!this.parent.isPanel},enumerable:!1,configurable:!0}),t.prototype.getElementsForRows=function(){var e,n=(e=this.survey)===null||e===void 0?void 0:e.currentSingleQuestion;return n?n.page===this?[n]:[]:i.prototype.getElementsForRows.call(this)},t.prototype.disposeElements=function(){this.isPageContainer||i.prototype.disposeElements.call(this)},t.prototype.onRemoveElement=function(e){this.isPageContainer?(e.parent=null,this.unregisterElementPropertiesChanged(e)):i.prototype.onRemoveElement.call(this,e)},t.prototype.getTemplate=function(){return this.isPanel?"panel":i.prototype.getTemplate.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.canShowPageNumber()||!this.survey)return"";var e=this.isStartPage?"":this.num+". ";return this.survey.getUpdatedPageNo(this,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.page.number},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return null},Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(e){return!e||e.showPageTitles},t.prototype.setTitleValue=function(e){i.prototype.setTitleValue.call(this,e),this.navigationLocStrChanged()},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.isEmpty&&this.locTitle.strChanged(),this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},t.prototype.getMarkdownHtml=function(e,n){var r=i.prototype.getMarkdownHtml.call(this,e,n);return n==="navigationTitle"&&this.canShowPageNumber()&&r?this.num+". "+r:r},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||this.visibleIndex==0},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){if(this.isPanel)return i.prototype.calcCssClasses.call(this,e);var n={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowReplace:""};return this.copyCssClasses(n.page,e.page),this.copyCssClasses(n.error,e.error),e.pageTitle&&(n.pageTitle=e.pageTitle),e.pageDescription&&(n.pageDescription=e.pageDescription),e.row&&(n.row=e.row),e.pageRow&&(n.pageRow=e.pageRow),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),e.rowCompact&&(n.rowCompact=e.rowCompact),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowReplace&&(n.rowReplace=e.rowReplace),this.survey&&this.survey.updatePageCssClasses(this,n),n},t.prototype.getCssPanelTitle=function(){return this.isPanel?i.prototype.getCssPanelTitle.call(this):this.cssClasses.page?new O().append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.isPanel||!this.cssClasses.page||!this.survey?"":new O().append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!this.survey.renderedHasHeader&&!(this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString()},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return this.isPanel?i.prototype.getCssError.call(this,e):new O().append(i.prototype.getCssError.call(this,e)).append(e.page.errorsContainer).toString()},Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){var n;if(e!=this.hasShownValue&&(this.hasShownValue=e,!(this.isDesignMode||e!==!0))){for(var r=this.elements,o=0;o<r.length;o++)r[o].isPanel&&r[o].randomizeElements(this.areQuestionsRandomized);if(this.randomizeElements(this.areQuestionsRandomized)){var s=(n=this.survey)===null||n===void 0?void 0:n.currentSingleQuestion;(s==null?void 0:s.page)===this&&(this.survey.currentSingleQuestion=this.getFirstVisibleQuestion())}}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=new Array;return this.addPanelsIntoList(r,e,n),r},t.prototype.getPanels=function(e,n){return e===void 0&&(e=!1),n===void 0&&(n=!1),this.getAllPanels(e,n)},Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),t.prototype.getMaxTimeToFinish=function(){if(this.timeLimit!==0)return this.timeLimit;var e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0},t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(i.prototype.onVisibleChanged.call(this),this.survey!=null&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,n,r){r===void 0&&(r=-1),this.dragDropPageHelper.dragDropStart(e,n,r)},t.prototype.dragDropMoveTo=function(e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,n,r)},t.prototype.dragDropFinish=function(e){return e===void 0&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){i.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},Object.defineProperty(t.prototype,"isReadyForClean",{get:function(){return this._isReadyForClean},set:function(e){var n=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==n&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()},enumerable:!1,configurable:!0}),t.prototype.enableOnElementRerenderedEvent=function(){i.prototype.enableOnElementRerenderedEvent.call(this),this.isReadyForClean=!1},t.prototype.disableOnElementRerenderedEvent=function(){i.prototype.disableOnElementRerenderedEvent.call(this),this.isReadyForClean=!0},uc([h({defaultValue:-1,onSet:function(e,n){return n.onNumChanged(e)}})],t.prototype,"num",void 0),t}(Bt);x.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(i){return!!i.survey&&(i.survey.progressBarType==="buttons"||i.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(i){return!!i.survey&&i.survey.progressBarType==="buttons"},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"state",visible:!1},{name:"isRequired",visible:!1},{name:"startWithNewLine",visible:!1},{name:"width",visible:!1},{name:"minWidth",visible:!1},{name:"maxWidth",visible:!1},{name:"colSpan",visible:!1,isSerializable:!1},{name:"effectiveColSpan:number",visible:!1,isSerializable:!1},{name:"innerIndent",visible:!1},{name:"indent",visible:!1},{name:"page",visible:!1,isSerializable:!1},{name:"showNumber",visible:!1},{name:"showQuestionNumbers",visible:!1},{name:"questionStartIndex",visible:!1},{name:"allowAdaptiveActions",visible:!1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText",visible:!1}],function(){return new Mr},"panel");var cc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ns=function(i){cc(t,i);function t(e){var n=i.call(this)||this;return n.survey=e,n.onResize=n.addEvent(),n}return t.prototype.isListElementClickable=function(e){return!this.survey.onServerValidateQuestions||this.survey.onServerValidateQuestions.isEmpty||this.survey.checkErrorsMode==="onComplete"?!0:e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){e===void 0&&(e="center");var n=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(n+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(["footer","contentBottom"].indexOf(e)!==-1?"bottom":"top"),n+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(n+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(n+=" "+this.survey.css.progressButtonsFitSurveyWidth),n},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return new O().append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},t.prototype.getScrollButtonCss=function(e,n){return new O().append(this.survey.css.progressButtonsImageButtonLeft,n).append(this.survey.css.progressButtonsImageButtonRight,!n).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof Mr||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var n=e.querySelector("."+this.survey.css.progressButtonsListContainer);return n?n.scrollWidth>n.offsetWidth:!1},t.prototype.isCanShowItemTitles=function(e){var n=e.querySelector("ul");if(!n||n.children.length<2)return!0;if(n.clientWidth>n.parentElement.clientWidth)return!1;for(var r=n.children[0].clientWidth,o=0;o<n.children.length;o++)if(Math.abs(n.children[o].clientWidth-r)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=0;r<n.length;r++)n[r].style.width=""},t.prototype.adjustConnectors=function(e){var n=e.querySelector("ul");if(n)for(var r=e.querySelectorAll(".sd-progress-buttons__connector"),o=this.showItemNumbers?36:20,s=(n.clientWidth-o)/(n.children.length-1)-o,a=0;a<r.length;a++)r[a].style.width=s+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return se.currentType!=="defaultV2"?!1:this.survey.progressBarInheritWidthFrom==="survey"&&this.survey.widthMode=="static"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressWidth",{get:function(){return this.isFitToSurveyWidth?this.survey.renderedWidth:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemNumbers",{get:function(){return se.currentType!=="defaultV2"?!1:this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return se.currentType!=="defaultV2"?!0:this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var n="";return this.showItemNumbers&&(n+=this.survey.visiblePages.indexOf(e)+1),n},Object.defineProperty(t.prototype,"headerText",{get:function(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.processResponsiveness=function(e){this.onResize.fire(this,{width:e})},t}(z),fc=function(){function i(t,e,n){var r=this;this.model=t,this.element=e,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(o,s){if(r.viewModel.onUpdateScroller(o.isListContainerHasScroller(r.element)),r.model.clearConnectorsWidth(r.element),!o.showItemTitles){r.model.adjustConnectors(r.element);return}if(o.survey.isMobile){r.prevWidth=s.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),r.viewModel.onResize(r.canShowItemTitles);return}r.timer!==void 0&&clearTimeout(r.timer),r.timer=setTimeout(function(){(r.prevWidth===void 0||r.prevWidth<s.width&&!r.canShowItemTitles||r.prevWidth>s.width&&r.canShowItemTitles)&&(r.prevWidth=s.width,r.canShowItemTitles=o.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)},10)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,function(){return r.forceUpdate()},"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return i.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},i.prototype.dispose=function(){clearTimeout(this.timer),this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,"ProgressButtonsResponsivityManager"+this.viewModel.container),this.element=void 0,this.model=void 0},i}();function pc(i,t){return i.isDesignMode||t.focusFirstQuestion(),!0}function rs(i){if(i.parentQuestion)return rs(i.parentQuestion);for(var t=i.parent;t&&t.getType()!=="page"&&t.parent;)t=t.parent;return t&&t.getType()==="page"?t:null}function is(i,t){var e=os(i,t),n={items:e,searchEnabled:!1,locOwner:i},r=new Rt(n);r.allowSelection=!1;var o=function(s,a){r.selectedItem=!!s&&r.actions.filter(function(l){return l.id===s.name})[0]||a};return o(i.currentPage,e[0]),i.onCurrentPageChanged.add(function(s,a){o(i.currentPage)}),i.onFocusInQuestion.add(function(s,a){o(rs(a.question))}),i.registerFunctionOnPropertyValueChanged("pages",function(){r.setItems(os(i,t))},"toc"),r}function os(i,t){var e=i.pages,n=(e||[]).map(function(r){return new $({id:r.name,locTitle:r.locNavigationTitle,action:function(){if(I.activeElementBlur(),t&&t(),r.isPage)return i.tryNavigateToPage(r)},visible:new te(function(){return r.isVisible&&!r.isStartPage})})});return n}function ss(i,t){t===void 0&&(t=!1);var e=st.RootStyle;return t?e+" "+st.RootStyle+"--mobile":(e+=" "+st.RootStyle+"--"+(i.tocLocation||"").toLowerCase(),st.StickyPosition&&(e+=" "+st.RootStyle+"--sticky"),e)}var st=function(){function i(t){var e=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){e.popupModel.toggleVisibility()},this.listModel=is(t,function(){e.popupModel.isVisible=!1}),this.popupModel=new Et("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new te(function(){return e.isMobile?"overlay":"popup"}),i.StickyPosition&&(t.onAfterRenderSurvey.add(function(n,r){return e.initStickyTOCSubscriptions(r.htmlElement)}),this.initStickyTOCSubscriptions(t.rootElement))}return i.prototype.initStickyTOCSubscriptions=function(t){var e=this;i.StickyPosition&&t&&(t.addEventListener("scroll",function(n){e.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))},i.prototype.updateStickyTOCSize=function(t){if(t){var e=t.querySelector("."+i.RootStyle);if(e&&(e.style.height="",!this.isMobile&&i.StickyPosition&&t)){var n=t.getBoundingClientRect().height,r=this.survey.headerView==="advanced"?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),o=t.querySelector(r),s=o?o.getBoundingClientRect().height:0,a=t.scrollTop>s?0:s-t.scrollTop;e.style.height=n-a-1+"px"}}},Object.defineProperty(i.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerCss",{get:function(){return ss(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.survey.unRegisterFunctionOnPropertyValueChanged("pages","toc"),this.popupModel.dispose(),this.listModel.dispose()},i.RootStyle="sv_progress-toc",i.StickyPosition=!0,i}(),dc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),K=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ue=function(i){dc(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;r.valuesHash={},r.variablesHash={},r.onTriggerExecuted=r.addEvent(),r.onCompleting=r.addEvent(),r.onComplete=r.addEvent(),r.onShowingPreview=r.addEvent(),r.onNavigateToUrl=r.addEvent(),r.onStarted=r.addEvent(),r.onPartialSend=r.addEvent(),r.onCurrentPageChanging=r.addEvent(),r.onCurrentPageChanged=r.addEvent(),r.onValueChanging=r.addEvent(),r.onValueChanged=r.addEvent(),r.onVariableChanged=r.addEvent(),r.onQuestionVisibleChanged=r.addEvent(),r.onVisibleChanged=r.onQuestionVisibleChanged,r.onPageVisibleChanged=r.addEvent(),r.onPanelVisibleChanged=r.addEvent(),r.onQuestionCreated=r.addEvent(),r.onQuestionAdded=r.addEvent(),r.onQuestionRemoved=r.addEvent(),r.onPanelAdded=r.addEvent(),r.onPanelRemoved=r.addEvent(),r.onPageAdded=r.addEvent(),r.onValidateQuestion=r.addEvent(),r.onSettingQuestionErrors=r.addEvent(),r.onServerValidateQuestions=r.addEvent(),r.onValidatePanel=r.addEvent(),r.onErrorCustomText=r.addEvent(),r.onValidatedErrorsOnCurrentPage=r.addEvent(),r.onProcessHtml=r.addEvent(),r.onGetQuestionDisplayValue=r.addEvent(),r.onGetQuestionTitle=r.addEvent(),r.onGetTitleTagName=r.addEvent(),r.onGetQuestionNumber=r.addEvent(),r.onGetQuestionNo=r.onGetQuestionNumber,r.onGetPanelNumber=r.addEvent(),r.onGetPageNumber=r.addEvent(),r.onGetProgressText=r.addEvent(),r.onProgressText=r.onGetProgressText,r.onTextMarkdown=r.addEvent(),r.onTextRenderAs=r.addEvent(),r.onSendResult=r.addEvent(),r.onGetResult=r.addEvent(),r.onOpenFileChooser=r.addEvent(),r.onUploadFiles=r.addEvent(),r.onDownloadFile=r.addEvent(),r.onClearFiles=r.addEvent(),r.onLoadChoicesFromServer=r.addEvent(),r.onLoadedSurveyFromService=r.addEvent(),r.onProcessTextValue=r.addEvent(),r.onUpdateQuestionCssClasses=r.addEvent(),r.onUpdatePanelCssClasses=r.addEvent(),r.onUpdatePageCssClasses=r.addEvent(),r.onUpdateChoiceItemCss=r.addEvent(),r.onAfterRenderSurvey=r.addEvent(),r.onAfterRenderHeader=r.addEvent(),r.onAfterRenderPage=r.addEvent(),r.onAfterRenderQuestion=r.addEvent(),r.onAfterRenderQuestionInput=r.addEvent(),r.onAfterRenderPanel=r.addEvent(),r.onFocusInQuestion=r.addEvent(),r.onFocusInPanel=r.addEvent(),r.onShowingChoiceItem=r.addEvent(),r.onChoicesLazyLoad=r.addEvent(),r.onChoicesSearch=r.addEvent(),r.onGetChoiceDisplayValue=r.addEvent(),r.onMatrixRowAdded=r.addEvent(),r.onMatrixRowAdding=r.addEvent(),r.onMatrixBeforeRowAdded=r.onMatrixRowAdding,r.onMatrixRowRemoving=r.addEvent(),r.onMatrixRowRemoved=r.addEvent(),r.onMatrixRenderRemoveButton=r.addEvent(),r.onMatrixAllowRemoveRow=r.onMatrixRenderRemoveButton,r.onMatrixDetailPanelVisibleChanged=r.addEvent(),r.onMatrixCellCreating=r.addEvent(),r.onMatrixCellCreated=r.addEvent(),r.onAfterRenderMatrixCell=r.addEvent(),r.onMatrixAfterCellRender=r.onAfterRenderMatrixCell,r.onMatrixCellValueChanged=r.addEvent(),r.onMatrixCellValueChanging=r.addEvent(),r.onMatrixCellValidate=r.addEvent(),r.onMatrixColumnAdded=r.addEvent(),r.onMultipleTextItemAdded=r.addEvent(),r.onDynamicPanelAdded=r.addEvent(),r.onDynamicPanelRemoved=r.addEvent(),r.onDynamicPanelRemoving=r.addEvent(),r.onTimerTick=r.addEvent(),r.onTimer=r.onTimerTick,r.onTimerPanelInfoText=r.addEvent(),r.onDynamicPanelValueChanged=r.addEvent(),r.onDynamicPanelItemValueChanged=r.onDynamicPanelValueChanged,r.onDynamicPanelValueChanging=r.addEvent(),r.onGetDynamicPanelTabTitle=r.addEvent(),r.onDynamicPanelCurrentIndexChanged=r.addEvent(),r.onCheckAnswerCorrect=r.addEvent(),r.onIsAnswerCorrect=r.onCheckAnswerCorrect,r.onDragDropAllow=r.addEvent(),r.onScrollToTop=r.addEvent(),r.onScrollingElementToTop=r.onScrollToTop,r.onLocaleChangedEvent=r.addEvent(),r.onGetQuestionTitleActions=r.addEvent(),r.onGetPanelTitleActions=r.addEvent(),r.onGetPageTitleActions=r.addEvent(),r.onGetPanelFooterActions=r.addEvent(),r.onGetMatrixRowActions=r.addEvent(),r.onElementContentVisibilityChanged=r.addEvent(),r.onGetExpressionDisplayValue=r.addEvent(),r.onPopupVisibleChanged=r.addEvent(),r.onOpenDropdownMenu=r.addEvent(),r.onElementWrapperComponentName=r.addEvent(),r.onElementWrapperComponentData=r.addEvent(),r.jsonErrors=null,r.cssValue=null,r.showHeaderOnCompletePage="auto",r._isLazyRenderingSuspended=!1,r.hideRequiredErrors=!1,r.cssVariables={},r._isMobile=!1,r._isCompact=!1,r.setValueOnExpressionCounter=0,r._isDesignMode=!1,r.validationAllowSwitchPages=!1,r.validationAllowComplete=!1,r.isNavigationButtonPressed=!1,r.mouseDownPage=null,r.isCalculatingProgressText=!1,r.isSmoothScrollEnabled=!1,r.onResize=new Ve,r.isCurrentPageRendering=!0,r.isCurrentPageRendered=void 0,r.skeletonHeight=void 0,r.isTriggerIsRunning=!1,r.triggerValues=null,r.triggerKeys=null,r.conditionValues=null,r.isValueChangedOnRunningCondition=!1,r.conditionRunnerCounter=0,r.conditionUpdateVisibleIndexes=!1,r.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.setValueFromTriggerCounter=0,r.needRenderIcons=!0,r.skippedPages=[],r.skeletonComponentName="sv-skeleton",r.taskManager=new ic,r.questionErrorComponent="sv-question-error",r.onBeforeRunConstructor();var o=function(a){return"<h3>"+a+"</h3>"};r.createHtmlLocString("completedHtml","completingSurvey",o),r.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",o,"completed-before"),r.createHtmlLocString("loadingHtml","loadingSurvey",o,"loading"),r.createLocalizableString("emptySurveyText",r,!0,"emptySurvey"),r.createLocalizableString("logo",r,!1),r.createLocalizableString("startSurveyText",r,!1,!0),r.createLocalizableString("pagePrevText",r,!1,!0),r.createLocalizableString("pageNextText",r,!1,!0),r.createLocalizableString("completeText",r,!1,!0),r.createLocalizableString("previewText",r,!1,!0),r.createLocalizableString("editText",r,!1,!0),r.createLocalizableString("questionTitleTemplate",r,!0),r.timerModelValue=new Go(r),r.timerModelValue.onTimerTick=function(a){r.doTimer(a)},r.createNewArray("pages",function(a){a.isReadyForCleanChangedCallback&&a.isReadyForCleanChangedCallback(),r.doOnPageAdded(a)},function(a){a.isReadyForClean?r.doOnPageRemoved(a):a.isReadyForCleanChangedCallback=function(){r.doOnPageRemoved(a),a.isReadyForCleanChangedCallback=void 0}}),r.createNewArray("triggers",function(a){a.setOwner(r)}),r.createNewArray("calculatedValues",function(a){a.setOwner(r)}),r.createNewArray("completedHtmlOnCondition",function(a){a.locOwner=r}),r.createNewArray("navigateToUrlOnCondition",function(a){a.locOwner=r}),r.registerPropertyChangedHandlers(["locale"],function(){r.onSurveyLocaleChanged()}),r.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){r.onFirstPageIsStartedChanged()}),r.registerPropertyChangedHandlers(["mode"],function(){r.onModeChanged()}),r.registerPropertyChangedHandlers(["progressBarType"],function(){r.updateProgressText()}),r.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){r.resetVisibleIndexes()}),r.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],function(){r.updateState()}),r.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){r.onStateAndCurrentPageChanged()}),r.registerPropertyChangedHandlers(["logo","logoPosition"],function(){r.updateHasLogo()}),r.registerPropertyChangedHandlers(["backgroundImage"],function(){r.updateRenderBackgroundImage()}),r.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],function(){r.updateBackgroundImageStyle()}),r.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],function(){r.updateButtonsVisibility()}),r.onGetQuestionNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetPanelNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetProgressText.onCallbacksChanged=function(){r.updateProgressText()},r.onTextMarkdown.onCallbacksChanged=function(){r.locStrsChanged()},r.onProcessHtml.onCallbacksChanged=function(){r.locStrsChanged()},r.onGetQuestionTitle.onCallbacksChanged=function(){r.locStrsChanged()},r.onUpdatePageCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdatePanelCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdateQuestionCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onShowingChoiceItem.onCallbacksChanged=function(){r.rebuildQuestionChoices()},r.navigationBarValue=r.createNavigationBar(),r.navigationBar.locOwner=r,r.onBeforeCreating(),e&&((typeof e=="string"||e instanceof String)&&(e=JSON.parse(e)),e&&e.clientId&&(r.clientId=e.clientId),r.fromJSON(e),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),n&&r.render(n),r.updateCss(),r.setCalculatedWidthModeUpdater(),r.notifier=new Ko(r.css.saveData),r.notifier.addAction(r.createTryAgainAction(),"error"),r.onPopupVisibleChanged.add(function(a,l){l.visible?r.onScrollCallback=function(){l.popup.hide()}:r.onScrollCallback=void 0}),r.progressBarValue=new ns(r),r.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:r.timerModel}),r.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:r.progressBar,processResponsiveness:function(a){return r.progressBar.processResponsiveness&&r.progressBar.processResponsiveness(a)}}),r.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:r}),r.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:r}),r.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:r}),r.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:r});var s=new st(r);return r.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(a){return s.updateStickyTOCSize(r.rootElement)}}),r.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:r.navigationBar}),r.locTitle.onStringChanged.add(function(){return r.titleIsEmpty=r.locTitle.isEmpty}),r}return Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return b.commentSuffix},set:function(e){b.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sjsVersion",{get:function(){return this.getPropertyValue("sjsVersion")},set:function(e){this.setPropertyValue("sjsVersion",e)},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,n){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,n,r,o){var s=this,a=this.createLocalizableString(e,this,!1,n);a.onGetLocalizationTextCallback=r,o&&(a.onGetTextCallback=function(l){return s.processHtml(l,o)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,n,r){e==="questionsOnPageMode"&&this.onQuestionsOnPageModeChanged(n)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,n){var r=function(){if(s=="model"||s=="children")return"continue";if(s.indexOf("on")==0&&o[s]&&o[s].add){var a=e[s],l=function(u,d){a(u,d)};o[s].add(l)}else o[s]=e[s]},o=this;for(var s in e)r();e&&e.data&&this.onValueChanged.add(function(a,l){e.data[l.name]=l.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new O().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new O().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new O().append(this.css.body).append(this.css.bodyLoading).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,se.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,n){n===void 0&&(n=!0),n?this.mergeValues(e,this.css):this.cssValue=e,this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return new O().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new O().append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&this.state==="running").append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.insertAdvancedHeader=function(e){e.survey=this,this.layoutElements.push({id:"advanced-header",container:"header",component:"sv-header",index:-100,data:e,processResponsiveness:function(n){return e.processResponsiveness(n)}})},t.prototype.getNavigationCss=function(e,n){return new O().append(e).append(n).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return this.lazyRenderingValue===!0},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var n=this.currentPage;n&&n.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||b.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||b.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRenderingSuspended",{get:function(){return this._isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.suspendLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)},t.prototype.releaseLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)},t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&er(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){(e===!0||e===void 0)&&(e="bottom"),e===!1&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompleteButton",{get:function(){return this.getPropertyValue("showCompleteButton",!0)},set:function(e){this.setPropertyValue("showCompleteButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),n=e?e.url:this.navigateToUrl;return n&&(n=this.processText(n,!1)),n},t.prototype.navigateTo=function(){var e=this.getNavigateToUrl(),n={url:e,allow:!0};this.onNavigateToUrl.fire(this,n),!(!n.url||!n.allow)&&iu(n.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,n){this.makeRequiredErrorsInvisible(n),this.onSettingQuestionErrors.fire(this,{question:e,errors:n})},t.prototype.beforeSettingPanelErrors=function(e,n){this.makeRequiredErrorsInvisible(n)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var n=0;n<e.length;n++){var r=e[n].getErrorType();(r=="required"||r=="requireoneanswer")&&(e[n].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic")},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validateVisitedEmptyFields",{get:function(){return this.getPropertyValue("validateVisitedEmptyFields")},set:function(e){this.setPropertyValue("validateVisitedEmptyFields",e)},enumerable:!1,configurable:!0}),t.prototype.getValidateVisitedEmptyFields=function(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.getPropertyValue("commentAreaRows")},set:function(e){this.setPropertyValue("commentAreaRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){e===!0&&(e="onComplete"),e===!1&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){e===void 0&&(e=!1);for(var n=0;n<this.pages.length;n++)this.pages[n].clearIncorrectValues();if(e){var r=this.data,o=!1;for(var s in r)if(!this.getQuestionByValueName(s)&&!(this.iscorrectValueWithPostPrefix(s,b.commentSuffix)||this.iscorrectValueWithPostPrefix(s,b.matrix.totalsSuffix))){var a=this.getCalculatedValueByName(s);a&&a.includeIntoResult||(o=!0,delete r[s])}o&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n){return e.indexOf(n)!==e.length-n.length?!1:!!this.getQuestionByValueName(e.substring(0,e.indexOf(n)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValueWithoutDefault("locale")||ce.currentLocale},set:function(e){e===ce.defaultLocale&&!ce.currentLocale&&(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},Object.defineProperty(t.prototype,"localeDir",{get:function(){return ce.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var n=e.indexOf("default");if(n>-1){var r=ce.defaultLocale,o=e.indexOf(r);o>-1&&e.splice(o,1),n=e.indexOf("default"),e[n]=r}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(!this.isClearingUnsedValues&&(i.prototype.locStrsChanged.call(this),!!this.currentPage)){if(this.isDesignMode)this.pages.forEach(function(o){return o.locStrsChanged()});else{var e=this.activePage;e&&e.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,n){return this.getSurveyMarkdownHtml(this,e,n)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,n){var r=this.getBuiltInRendererForString(e,n);r=this.elementWrapperComponentNameCore(r,e,"string",n);var o={element:e,name:n,renderAs:r};return this.onTextRenderAs.fire(this,o),o.renderAs},t.prototype.getRendererContextForString=function(e,n){return this.elementWrapperDataCore(n,e,"string")},t.prototype.getExpressionDisplayValue=function(e,n,r){var o={question:e,value:n,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,o),o.displayValue},t.prototype.getBuiltInRendererForString=function(e,n){if(this.isDesignMode)return Se.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,n){return this.getSurveyErrorCustomText(this,e,n)},t.prototype.getSurveyErrorCustomText=function(e,n,r){var o={text:n,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,o),o.text},t.prototype.getQuestionDisplayValue=function(e,n){var r={question:e,displayValue:n};return this.onGetQuestionDisplayValue.fire(this,r),r.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizableStringText("emptySurveyText")},set:function(e){this.setLocalizableStringText("emptySurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?nt(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?on(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?nt(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?on(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&this.logoPosition!=="none")},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return this.isDesignMode?!1:this.renderedHasLogo&&(this.logoPosition==="left"||this.logoPosition==="top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&(this.logoPosition==="right"||this.logoPosition==="bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){var e={left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"};return new O().append(this.css.logo).append(e[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.titleIsEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){e===void 0&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(function(n){return n.setIsMobile(e)}))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(nu()||this.isMobile)&&!this.isValueEmpty(this.isLogoImageChoosen())&&!b.supportCreatorV2){var e=this.logoWidth;if(this.logoPosition==="left"||this.logoPosition==="right")return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=tr(e)},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),t.prototype.updateBackgroundImageStyle=function(){this.backgroundImageStyle={opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}},t.prototype.updateWrapperFormCss=function(){this.wrapperFormCss=new O().append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&this.backgroundImageAttachment==="fixed").toString()},Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e,n){if(!e)return null;var r=this.getFilteredValues(),o=this.getFilteredProperties(),s=new et(e),a=void 0;return s.onRunComplete=function(l){a=l,n&&n(l)},s.run(r,o)||a},Object.defineProperty(t.prototype,"isSettingValueOnExpression",{get:function(){return this.setValueOnExpressionCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueOnExpression=function(){this.setValueOnExpressionCounter++},t.prototype.finishSetValueOnExpression=function(){this.setValueOnExpressionCounter--},t.prototype.runCondition=function(e){if(!e)return!1;var n=this.getFilteredValues(),r=this.getFilteredProperties();return new de(e).run(n,r)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(e.length==0)return null;for(var n=this.getFilteredValues(),r=this.getFilteredProperties(),o=0;o<e.length;o++)if(e[o].runCondition(n,r))return e[o];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,n){if(this.onGetTitleTagName.isEmpty)return n;var r={element:e,tagName:n};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){e!=="numRequireTitle"&&e!=="requireNumTitle"&&e!="numTitle"&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,n=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+n+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+n}),e.push({value:"numTitle",text:r+" "+n}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var n=[];e.indexOf("{")>-1;){e=e.substring(e.indexOf("{")+1);var r=e.indexOf("}");if(r<0)break;n.push(e.substring(0,r)),e=e.substring(r+1)}if(n.length>1){if(n[0]=="require")return"requireNumTitle";if(n[1]=="require"&&n.length==3)return"numRequireTitle";if(n.indexOf("require")<0)return"numTitle"}if(n.length==1&&n[0]=="title")return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,n,r,o){if(n="{"+n+"}",!e||e.indexOf(n)<0)return r;for(var s=e.indexOf(n),a="",l="",u=s-1;u>=0&&e[u]!="}";u--);for(u<s-1&&(a=e.substring(u+1,s)),s+=n.length,u=s;u<e.length&&e[u]!="{";u++);for(u>s&&(l=e.substring(s,u)),u=0;u<a.length&&a.charCodeAt(u)<33;)u++;for(a=a.substring(u),u=l.length-1;u>=0&&l.charCodeAt(u)<33;)u--;if(l=l.substring(0,u+1),!a&&!l)return r;var d=r||o;return a+d+l},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,n){if(this.onGetQuestionTitle.isEmpty)return n;var r={question:e,title:n};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,n){if(this.onGetQuestionNumber.isEmpty)return n;var r={question:e,number:n,no:n};return this.onGetQuestionNumber.fire(this,r),r.no===n?r.number:r.no},t.prototype.getUpdatedPanelNo=function(e,n){if(this.onGetPanelNumber.isEmpty)return n;var r={panel:e,number:n};return this.onGetPanelNumber.fire(this,r),r.number},t.prototype.getUpdatedPageNo=function(e,n){if(this.onGetPageNumber.isEmpty)return n;var r={page:e,number:n};return this.onGetPageNumber.fire(this,r),r.number},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){e===!0&&(e="on"),e===!1&&(e="off"),e=e.toLowerCase(),e=e==="onpage"?"onPage":e,e!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBar",{get:function(){return this.progressBarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){e===!0&&(e="auto"),e===!1&&(e="off"),this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){e==="correctquestion"&&(e="correctQuestion"),e==="requiredquestion"&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return!b.legacyProgressBarView&&se.currentType==="defaultV2"&&We(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return this.canShowProresBar()?["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)!==-1:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return this.canShowProresBar()?this.showProgressBar==="bottom"||this.showProgressBar==="both"||this.showProgressBar==="topbottom":!1},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return e===void 0&&(e=""),new O().append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||e=="header")).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||e=="footer")).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||this.showPreviewBeforeComplete!="showAllQuestions"},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){e=e.toLowerCase(),e!=this.mode&&(e!="edit"&&e!="display"||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var n=this.pages[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r],s=this.getDataValueCore(this.valuesHash,o);s!==void 0&&(e[o]=s)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e,!e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var n=this.data;this.mergeValues(e,n),this.setDataCore(n)}},t.prototype.setDataCore=function(e,n){if(n===void 0&&(n=!1),n&&(this.valuesHash={}),e)for(var r in e){var o=typeof r=="string"?r.trim():r;this.setDataValueCore(this.valuesHash,o,e[r])}this.updateAllQuestionsValue(n),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(n)},Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getData=function(e){var n=e||{includePages:!1,includePanels:!1};return!n.includePages&&!n.includePanels?this.data:this.getStructuredData(!!n.includePages,n.includePanels?-1:n.includePages?1:0)},t.prototype.getStructuredData=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=-1),n===0)return this.data;var r={};return this.pages.forEach(function(o){if(e){var s={};o.collectValues(s,n-1)&&(r[o.name]=s)}else o.collectValues(r,n)}),r},t.prototype.setStructuredData=function(e,n){if(n===void 0&&(n=!1),!!e){var r={};for(var o in e){var s=this.getQuestionByValueName(o);if(s)r[o]=e[o];else{var a=this.getPageByName(o);a||(a=this.getPanelByName(o)),a&&this.collectDataFromPanel(a,r,e[o])}}n?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,n,r){for(var o in r){var s=e.getElementByName(o);s&&(s.isPanel?this.collectDataFromPanel(s,n,r[o]):n[o]=r[o])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var n=this;if(this.editingObj!=e&&(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),o=0;o<r.length;o++)r[o].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(s,a){x.hasOriginalProperty(n.editingObj,a.name)&&(a.name==="locale"&&n.setDataCore({}),n.updateOnSetValue(a.name,n.editingObj[a.name],a.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),t.prototype.unConnectEditingObj=function(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var n=0;n<this.calculatedValues.length;n++){var r=this.calculatedValues[n];r.includeIntoResult&&r.name&&this.getVariable(r.name)!==void 0&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var n=[],r=[];if(this.getAllQuestions().forEach(function(u){var d=u.getPlainData(e);d&&(n.push(d),r.push(u.valueName||u.name))}),e.includeValues)for(var o=this.getValuesKeys(),s=0;s<o.length;s++){var a=o[s];if(r.indexOf(a)==-1){var l=this.getDataValueCore(this.valuesHash,a);l&&n.push({name:a,title:a,value:l,displayValue:l,isNode:!1,getString:function(u){return typeof u=="object"?JSON.stringify(u):u}})}}return n},t.prototype.getFilteredValues=function(){var e={};for(var n in this.variablesHash)e[n]=this.variablesHash[n];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var n=r[o];e[n]=this.getDataValueCore(this.valuesHash,n)}this.getAllQuestions().forEach(function(s){s.hasFilteredValue&&(e[s.getFilteredName()]=s.getFilteredValue())})}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var n=this.calculatedValues,r=0;r<n.length;r++)e[n[r].name]=n[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=x.getPropertiesByObj(this.editingObj),n=[],r=0;r<e.length;r++)n.push(e[r].name);return n},t.prototype.getDataValueCore=function(e,n){return this.editingObj?x.getObjPropertyValue(this.editingObj,n):this.getDataFromValueHash(e,n)},t.prototype.setDataValueCore=function(e,n,r){this.editingObj?x.setObjPropertyValue(this.editingObj,n,r):this.setDataToValueHash(e,n,r)},t.prototype.deleteDataValueCore=function(e,n){this.editingObj?this.editingObj[n]=null:this.deleteDataFromValueHash(e,n)},t.prototype.getDataFromValueHash=function(e,n){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,n):e[n]},t.prototype.setDataToValueHash=function(e,n,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,n,r):e[n]=r},t.prototype.deleteDataFromValueHash=function(e,n){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,n):delete e[n]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r];o.indexOf(this.commentSuffix)>0&&(e[o]=this.getDataValueCore(this.valuesHash,o))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=new Array,n=0;n<this.pages.length;n++)this.isPageInVisibleList(this.pages[n])&&e.push(this.pages[n]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.pages.length==0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var n=this.getPageByObject(e);if(!(e&&!n)&&!(!n&&this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(n!=null&&r.indexOf(n)<0)&&n!=this.currentPage){var o=this.currentPage;!this.isShowingPreview&&!this.currentSingleQuestion&&!this.currentPageChanging(n,o)||(this.setPropertyValue("currentPage",n),n&&(n.onFirstRendering(),n.updateCustomWidgets(),n.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(n,o))}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(!this.performValidationOnPageChanging(e))return!1;var n=this.visiblePages.indexOf(e),r=n<this.currentPageNo||!this.doServerValidation(!1,!1,e);return r&&(this.currentPage=e),r},t.prototype.performValidationOnPageChanging=function(e){if(this.isDesignMode)return!1;if(this.canGoTroughValidation())return!0;var n=this.visiblePages.indexOf(e);if(n<0||n>=this.visiblePageCount||n===this.currentPageNo)return!1;if(n<this.currentPageNo||this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(var r=this.currentPageNo+1;r<n;r++){var o=this.visiblePages[r];if(!o.validate(!0,!0))return!1;o.passed=!0}return!0},t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1?!0:!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return this.state==="starting"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return this.state=="running"||this.state=="preview"||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;e!==this.activePage&&this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&e.getType()=="page")return e;if(typeof e=="string"||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var n=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[n]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var n=this.visiblePages;e<0||e>=n.length||(this.currentPage=n[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){e===void 0&&(e=!0);var n=this.activePage;n&&(e&&n.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(n.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,n){this.setPropertyValue("completedState",e),n||(e=="saving"&&(n=this.getLocalizationString("savingData")),e=="error"&&(n=this.getLocalizationString("savingDataError")),e=="success"&&(n=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",n),this.state==="completed"&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,e==="error")},t.prototype.notify=function(e,n,r){r===void 0&&(r=!1),this.notifier.showActions=r,this.notifier.notify(e,n,r)},t.prototype.clear=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;if(this.onFirstPageIsStartedChanged(),n&&(this.currentPage=this.firstVisiblePage,this.currentSingleQuestion)){var o=this.getAllQuestions(!0);this.currentSingleQuestion=o.length>0?o[0]:void 0}e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,n){mt(e,n)},t.prototype.updateValuesWithDefaults=function(){if(!(this.isDesignMode||this.isLoading))for(var e=0;e<this.pages.length;e++)for(var n=this.pages[e].questions,r=0;r<n.length;r++)n[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,n,r,o){var s=this.createPageChangeEventOptions(e,n,r,o);return this.currentPageChangingFromOptions(s)},t.prototype.currentPageChangingFromOptions=function(e){e.allow=!0,e.allowChanging=!0,this.onCurrentPageChanging.fire(this,e);var n=e.allowChanging&&e.allow;return n&&e.newCurrentPage!==e.oldCurrentPage&&(this.isCurrentPageRendering=!0),n},t.prototype.currentPageChanged=function(e,n){if(this.notifyQuestionsOnHidingContent(n),n&&!n.isDisposed&&!n.passed&&n.validate(!1)&&(n.passed=!0),this.isCurrentPageRendered===!0&&(this.isCurrentPageRendered=!1),!this.currentSingleQuestion){var r=this.createPageChangeEventOptions(e,n);this.onCurrentPageChanged.fire(this,r)}},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&!e.isDisposed&&e.questions.forEach(function(n){return n.onHidingContent()})},t.prototype.createPageChangeEventOptions=function(e,n,r,o){var s=e&&n?e.visibleIndex-n.visibleIndex:0,a=s;return a===0&&o&&r&&(a=e.elements.indexOf(r)-e.elements.indexOf(o)),{oldCurrentQuestion:o,newCurrentQuestion:r,oldCurrentPage:n,newCurrentPage:e,isNextPage:s===1,isPrevPage:s===-1,isGoingForward:a>0,isGoingBackward:a<0,isAfterPreview:this.changeCurrentPageFromPreview===!0}},t.prototype.getProgress=function(){if(this.currentPage==null)return 0;if(this.progressBarType!=="pages"){var e=this.getProgressInfo();return this.progressBarType==="requiredQuestions"?e.requiredQuestionCount>=1?Math.ceil(e.requiredAnsweredQuestionCount*100/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(e.answeredQuestionCount*100/e.questionCount):100}var n=this.visiblePages,r=n.indexOf(this.currentPage);return Math.ceil(r*100/n.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.activePage;return e?e.navigationButtonsVisibility==="show"?this.showNavigationButtons==="none"?"bottom":this.showNavigationButtons:e.navigationButtonsVisibility==="hide"?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var n=this.isNavigationButtonsShowing;return n=="both"||n==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return this.mode=="edit"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.mode=="display"&&!this.isDesignMode||this.state=="preview"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return this.textUpdateMode=="onTyping"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var n=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(n))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&this.showPreviewBeforeComplete=="showAnsweredQuestions"&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)if(!e[n].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=I.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&I.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&I.setCookie(this.cookieName+"=;")},Object.defineProperty(t.prototype,"ignoreValidation",{get:function(){return!this.validationEnabled},set:function(e){this.validationEnabled=!e},enumerable:!1,configurable:!0}),t.prototype.nextPage=function(){return this.currentSingleQuestion?this.performNext():this.isLastPage?!1:this.doCurrentPageComplete(!1)},t.prototype.performNext=function(){var e=this.currentSingleQuestion;if(!e)return this.nextPage();if(!e.validate(!0))return!1;var n=this.getAllQuestions(!0),r=n.indexOf(e);return r<0||r===n.length-1?!1:(this.currentSingleQuestion=n[r+1],!0)},t.prototype.performPrevious=function(){var e=this.currentSingleQuestion;if(!e)return this.prevPage();var n=this.getAllQuestions(!0),r=n.indexOf(e);return r===0?!1:(this.currentSingleQuestion=n[r-1],!0)},t.prototype.hasErrorsOnNavigate=function(e){var n=this;if(this.canGoTroughValidation())return!1;var r=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,o=function(s){(!s||r)&&n.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?this.isLastPage?this.validate(!0,this.focusOnFirstError,o,!0)!==!0&&!r:!1:this.validateCurrentPage(o)!==!0&&!r},t.prototype.canGoTroughValidation=function(){return!this.isEditMode||!this.validationEnabled},t.prototype.checkForAsyncQuestionValidation=function(e,n){var r=this;this.clearAsyncValidationQuesitons();for(var o=function(){if(e[a].isRunningValidators){var l=e[a];l.onCompletedAsyncValidators=function(u){r.onCompletedAsyncQuestionValidators(l,n,u)},s.asyncValidationQuesitons.push(e[a])}},s=this,a=0;a<e.length;a++)o();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,n=0;n<e.length;n++)e[n].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,n,r){if(r){if(this.clearAsyncValidationQuesitons(),n(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var o=this.currentPage.questions,s=0;s<o.length;s++)if(o[s]!==e&&o[s].errors.length>0)return;e.focus(!0)}return}for(var a=this.asyncValidationQuesitons,l=0;l<a.length;l++)if(a[l].isRunningValidators)return;n(!1)},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,n){var r=this.validatePage(e,n);return r===void 0?r:!r},t.prototype.validatePage=function(e,n){return e||(e=this.activePage),e?this.checkIsPageHasErrors(e)?!1:n&&this.checkForAsyncQuestionValidation(e.questions,function(r){return n(r)})?void 0:!0:!0},t.prototype.hasErrors=function(e,n,r){e===void 0&&(e=!0),n===void 0&&(n=!1);var o=this.validate(e,n,r);return o===void 0?o:!o},t.prototype.validate=function(e,n,r,o){e===void 0&&(e=!0),n===void 0&&(n=!1),r&&(e=!0);for(var s=this.visiblePages,a=!0,l={fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},u=0;u<s.length;u++)s[u].validate(e,n,l)||(a=!1);return l.firstErrorQuestion&&(n||o)&&(n?l.firstErrorQuestion.focus(!0):this.currentPage=l.firstErrorQuestion.page),!a||!r?a:this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(d){return r(d)})?void 0:!0},t.prototype.ensureUniqueNames=function(e){if(e===void 0&&(e=null),e==null)for(var n=0;n<this.pages.length;n++)this.ensureUniqueName(this.pages[n]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var n=e.elements,r=0;r<n.length;r++)this.ensureUniqueNames(n[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPageByName(r)})},t.prototype.ensureUniquePanelName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPanelByName(r)})},t.prototype.ensureUniqueQuestionName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getQuestionByName(r)})},t.prototype.ensureUniqueElementName=function(e,n){var r=n(e.name);if(!(!r||r==e)){for(var o=this.getNewName(e.name);n(o);)var o=this.getNewName(e.name);e.name=o}},t.prototype.getNewName=function(e){for(var n=e.length;n>0&&e[n-1]>="0"&&e[n-1]<="9";)n--;var r=e.substring(0,n),o=0;return n<e.length&&(o=parseInt(e.substring(n))),o++,r+o},t.prototype.checkIsCurrentPageHasErrors=function(e){return e===void 0&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,n){if(n===void 0&&(n=void 0),n===void 0&&(n=this.focusOnFirstError),!e)return!0;var r=!1;return this.currentSingleQuestion?r=!this.currentSingleQuestion.validate(!0):r=!e.validate(!0,n),this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!(this.onValidatedErrorsOnCurrentPage.isEmpty||!e)){for(var n=e.questions,r=new Array,o=new Array,s=0;s<n.length;s++){var a=n[s];if(a.errors.length>0){r.push(a);for(var l=0;l<a.errors.length;l++)o.push(a.errors[l])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:o,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.currentSingleQuestion)return this.performPrevious();if(this.isFirstPage||this.state==="starting")return!1;this.resetNavigationButton();var n=this.skippedPages.find(function(s){return s.to==e.currentPage});if(n)this.currentPage=n.from,this.skippedPages.splice(this.skippedPages.indexOf(n),1);else{var r=this.visiblePages,o=r.indexOf(this.currentPage);this.currentPage=r[o-1]}return!0},t.prototype.tryComplete=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.completeLastPage=function(){return this.tryComplete()},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){return this.mouseDownPage&&this.mouseDownPage!==this.activePage?!1:(this.mouseDownPage=null,this.performNext())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.isValidateOnComplete&&(this.hasErrorsOnNavigate(!0)||this.doServerValidation(!0,!0))?!1:(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){e===void 0&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e)},t.prototype.doCurrentPageComplete=function(e){return this.isValidatingOnServer||(this.resetNavigationButton(),this.hasErrorsOnNavigate(e))?!1:this.doCurrentPageCompleteCore(e)},t.prototype.doCurrentPageCompleteCore=function(e){return this.doServerValidation(e)?!1:e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.questionsOnPageMode=="singlePage"},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleVisibleQuestion",{get:function(){return this.isSingleVisibleQuestionVal(this.questionsOnPageMode)},enumerable:!1,configurable:!0}),t.prototype.isSingleVisibleQuestionVal=function(e){return e==="questionPerPage"||e==="questionOnPage"},Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return e=="showAllQuestions"||e=="showAnsweredQuestions"},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.updatePagesContainer()},t.prototype.createRootPage=function(e,n){var r=x.createClass("page");return r.name=e,r.isPageContainer=!0,n.forEach(function(o){o.isStartPage||r.addElement(o)}),r},t.prototype.disposeContainerPage=function(){var e=this.pageContainerValue,n=[].concat(e.elements);n.forEach(function(r){return e.removeElement(r)}),e.dispose(),this.pageContainerValue=void 0},t.prototype.updatePagesContainer=function(){if(!this.isDesignMode){this.getAllQuestions().forEach(function(a){return a.updateElementVisibility()}),this.setPropertyValue("currentPage",void 0);var e="single-page",n="preview-page",r=void 0;if(this.isSinglePage){var o=this.pageContainerValue;o&&o.name===n?(r=o.elements[0],this.disposeContainerPage()):r=this.createRootPage(e,this.pages)}if(this.isShowingPreview&&(r=this.createRootPage(n,r?[r]:this.pages)),r&&(r.setSurveyImpl(this),this.pageContainerValue=r,this.currentPage=r),!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();var s=this.gotoPageFromPreview;this.gotoPageFromPreview=null,P.isValueEmpty(s)&&this.visiblePageCount>0&&(s=this.visiblePages[this.visiblePageCount-1]),s&&(this.changeCurrentPageFromPreview=!0,this.currentPage=s,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),this.pages.forEach(function(a){a.hasShown&&a.updateElementCss(!0)}),this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"currentSingleQuestion",{get:function(){return this.currentSingleQuestionValue},set:function(e){var n=this.currentSingleQuestion;if(e!==n){var r=e&&n?this.createPageChangeEventOptions(e.page,n.page,e,n):void 0;if(r&&!this.currentPageChangingFromOptions(r))return;if(this.currentSingleQuestionValue=e,e){var o=e.page;o.updateRows(),o!==this.currentPage?this.currentPage=o:this.focusFirstQuestionAutomatic&&e.focus(),this.updateButtonsVisibility(),r&&this.onCurrentPageChanged.fire(this,r)}else this.visiblePages.forEach(function(s){return s.updateRows()})}},enumerable:!1,configurable:!0}),t.prototype.onQuestionsOnPageModeChanged=function(e){if(!(this.isShowingPreview||this.isDesignMode)&&(this.currentSingleQuestion=void 0,e==="singlePage"&&this.updatePagesContainer(),this.isSinglePage&&this.updatePagesContainer(),this.isSingleVisibleQuestion)){var n=this.getAllQuestions(!0);n.length>0&&(this.currentSingleQuestion=n[0])}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstElement",{get:function(){return this.getPropertyValue("isFirstElement")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastElement",{get:function(){return this.getPropertyValue("isLastElement")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage);var n=void 0,r=void 0,o=this.currentSingleQuestion;if(o){var s=this.getAllQuestions(!0),a=s.indexOf(o);a>=0&&(n=a===0,r=a===s.length-1)}this.setPropertyValue("isFirstElement",n),this.setPropertyValue("isLastElement",r)},Object.defineProperty(t.prototype,"isLastPageOrElement",{get:function(){return this.isLastElement!==void 0?this.isLastElement:this.isLastPage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstPageOrElement",{get:function(){return this.isFirstElement!==void 0?this.isFirstElement:this.isFirstPage},enumerable:!1,configurable:!0}),t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPageOrElement||!this.showPrevButton||this.state!=="running")return!1;if(this.isFirstElement!==void 0)return!0;var e=this.visiblePages[this.currentPageNo-1];return e&&e.getMaxTimeToFinish()<=0},t.prototype.calcIsShowNextButton=function(){return this.state==="running"&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&(this.state==="running"&&(this.isLastPageOrElement&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||e==="preview")&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="running"&&this.isLastPageOrElement},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="preview"},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=0;n<e.length;n++)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=e.length-1;n>=0;n--)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,n){if(e===void 0&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,n)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,n),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,n){var r=this;e===void 0&&(e=!1);var o=this.hasCookie,s=function(V){d=!0,r.setCompletedState("saving",V)},a=function(V){r.setCompletedState("error",V)},l=function(V){r.setCompletedState("success",V),r.navigateTo()},u=function(V){r.setCompletedState("","")},d=!1,v={isCompleteOnTrigger:e,completeTrigger:n,showSaveInProgress:s,showSaveError:a,showSaveSuccess:l,clearSaveMessages:u,showDataSaving:s,showDataSavingError:a,showDataSavingSuccess:l,showDataSavingClear:u};this.onComplete.fire(this,v),!o&&this.surveyPostId&&this.sendResult(),d||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,n){var r={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:n};return this.onCompleting.fire(this,r),r.allowComplete&&r.allow},t.prototype.start=function(){return!this.firstPageIsStarted||(this.isCurrentPageRendering=!0,this.checkIsPageHasErrors(this.startedPage,!0))?!1:(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,n,r){var o=this,s={data:{},errors:{},survey:this,complete:function(){o.completeServerValidation(s,n,r)}};if(e&&this.isValidateOnComplete)s.data=this.data;else for(var a=this.activePage.questions,l=0;l<a.length;l++){var u=a[l];if(u.visible){var d=this.getValue(u.getValueName());this.isValueEmpty(d)||(s.data[u.getValueName()]=d)}}return s},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,n,r){var o=this;if(n===void 0&&(n=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var s=typeof this.onServerValidateQuestions=="function";return this.serverValidationEventCount=s?1:this.onServerValidateQuestions.length,s?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,n,r)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return o.createServerValidationOptions(e,n,r)}),!0},t.prototype.completeServerValidation=function(e,n,r){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&Object.keys(e.errors).length===0))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),!(!e&&!e.survey))){var o=e.survey,s=!1;if(e.errors){var a=this.focusOnFirstError;for(var l in e.errors){var u=o.getQuestionByName(l);u&&u.errors&&(s=!0,u.addError(new we(e.errors[l],this)),a&&(a=!1,u.page&&(this.currentPage=u.page),u.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}s||(n?this.showPreviewCore():r?this.currentPage=r:o.isLastPage?o.doComplete():o.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,n){var r;if(b.triggers.changeNavigationButtonsOnComplete){var o=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),n?this.completedByTriggers[e.id]={trigger:e,pageId:(r=this.currentPage)===null||r===void 0?void 0:r.id}:delete this.completedByTriggers[e.id],o!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var n=Object.keys(this.completedByTriggers);if(n.length===0)return!1;var r=(e=this.currentPage)===null||e===void 0?void 0:e.id;if(!r)return!0;for(var o=0;o<n.length;o++)if(r===this.completedByTriggers[n[o]].pageId)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedTrigger",{get:function(){if(this.canBeCompletedByTrigger){var e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return le.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){e===void 0&&(e=!1),!(this.isCalculatingProgressText||this.isShowingPreview)&&(e&&this.progressBarType=="pages"&&this.onGetProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1))},t.prototype.getProgressText=function(){if(!this.isDesignMode&&this.currentPage==null)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},n=this.progressBarType.toLowerCase();if(n==="questions"||n==="requiredquestions"||n==="correctquestions"||!this.onGetProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onGetProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var n=this.progressBarType.toLowerCase();if(n==="questions")return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if(n==="requiredquestions")return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if(n==="correctquestions"){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var o=this.isDesignMode?this.pages:this.visiblePages,s=o.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",s,o.length)},t.prototype.getRootCss=function(){return new O().append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!b.animationEnabled).append(this.css.rootReadOnly,this.mode==="display"&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var n=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=le.GetFirstNonTextElement(e));var r=e,o=this.css.variables;if(o){var s=Number.parseFloat(I.getComputedStyle(r).getPropertyValue(o.mobileWidth));if(s){var a=!1;this.resizeObserver=new ResizeObserver(function(l){E.requestAnimationFrame(function(){a||!ar(r)?a=!1:a=n.processResponsiveness(r.offsetWidth,s,r.offsetHeight)})}),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.beforeDestroySurveyElement=function(){this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0},t.prototype.processResponsiveness=function(e,n,r){var o=e<n,s=this.isMobile!==o;this.setIsMobile(o),this.layoutElements.forEach(function(l){return l.processResponsiveness&&l.processResponsiveness(e)});var a={height:r,width:e};return this.onResize.fire(this,a),s},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach(function(n){n.triggerResponsiveness(e)})},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,n){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:n})},t.prototype.updatePanelCssClasses=function(e,n){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:n})},t.prototype.updatePageCssClasses=function(e,n){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:n})},t.prototype.updateChoiceItemCss=function(e,n){n.question=e,this.onUpdateChoiceItemCss.fire(this,n)},t.prototype.afterRenderPage=function(e){var n=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var r=this.isCurrentPageRendered===!1;setTimeout(function(){return n.scrollToTopOnPageChange(r)},1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,!this.onAfterRenderPage.isEmpty&&this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,n){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:n})},t.prototype.afterRenderQuestionInput=function(e,n){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,o=b.environment.root;if(r&&(!n||n.id!==r)&&typeof o<"u"){var s=o.getElementById(r);s&&(n=s)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:n})}},t.prototype.afterRenderPanel=function(e,n){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:n})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach(function(e){return e.surveyChoiceItemVisibilityChange()})},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,n,r){var o={question:e,item:n,visible:r};return this.onShowingChoiceItem.fire(this,o),o.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,n){this.onMatrixRowAdded.fire(this,{question:e,row:n})},t.prototype.matrixColumnAdded=function(e,n){this.onMatrixColumnAdded.fire(this,{question:e,column:n})},t.prototype.multipleTextItemAdded=function(e,n){this.onMultipleTextItemAdded.fire(this,{question:e,item:n})},t.prototype.getQuestionByValueNameFromArray=function(e,n,r){var o=this.getQuestionsByValueName(e);if(o){for(var s=0;s<o.length;s++){var a=o[s].getQuestionFromArray(n,r);if(a)return a}return null}},t.prototype.matrixRowRemoved=function(e,n,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:n,row:r})},t.prototype.matrixRowRemoving=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,o),o.allow},t.prototype.matrixAllowRemoveRow=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,o),o.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,n,r,o){var s={question:e,rowIndex:n,row:r,visible:o,detailPanel:r.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,s)},t.prototype.matrixCellCreating=function(e,n){n.question=e,this.onMatrixCellCreating.fire(this,n)},t.prototype.matrixCellCreated=function(e,n){n.question=e,this.onMatrixCellCreated.fire(this,n)},t.prototype.matrixAfterCellRender=function(e,n){n.question=e,this.onAfterRenderMatrixCell.fire(this,n)},t.prototype.matrixCellValueChanged=function(e,n){n.question=e,this.onMatrixCellValueChanged.fire(this,n)},t.prototype.matrixCellValueChanging=function(e,n){n.question=e,this.onMatrixCellValueChanging.fire(this,n)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.checkErrorsMode==="onValueChanging"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return this.checkErrorsMode==="onValueChanged"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChange",{get:function(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,n){return n.question=e,this.onMatrixCellValidate.fire(this,n),n.error?new we(n.error,this):null},t.prototype.dynamicPanelAdded=function(e,n,r){if(!this.isLoadingFromJson&&this.hasQuestionVisibleIndeces(e)&&this.updateVisibleIndexes(e.page),!this.onDynamicPanelAdded.isEmpty){var o=e.panels;n===void 0&&(n=o.length-1,r=o[n]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:n})}},t.prototype.dynamicPanelRemoved=function(e,n,r){for(var o=r?r.questions:[],s=0;s<o.length;s++)o[s].clearOnDeletingContainer();this.hasQuestionVisibleIndeces(e)&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:n,panel:r})},t.prototype.hasQuestionVisibleIndeces=function(e){for(var n=e.getNestedQuestions(!0),r=0;r<n.length;r++)if(n[r].visibleIndex>-1)return!0;return!1},t.prototype.dynamicPanelRemoving=function(e,n,r){var o={question:e,panelIndex:n,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,o),o.allow},t.prototype.dynamicPanelItemValueChanged=function(e,n){n.question=e,this.onDynamicPanelValueChanged.fire(this,n)},t.prototype.dynamicPanelItemValueChanging=function(e,n){n.question=e,this.onDynamicPanelValueChanging.fire(this,n)},t.prototype.dynamicPanelGetTabTitle=function(e,n){n.question=e,this.onGetDynamicPanelTabTitle.fire(this,n)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,n){n.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,n)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,n,r){var o={question:r,panel:e,actions:n};return this.onGetPanelFooterActions.fire(this,o),o.actions},t.prototype.getUpdatedElementTitleActions=function(e,n){return e.isPage?this.getUpdatedPageTitleActions(e,n):e.isPanel?this.getUpdatedPanelTitleActions(e,n):this.getUpdatedQuestionTitleActions(e,n)},t.prototype.getTitleActionsResult=function(e,n){return e!=n.actions?n.actions:e!=n.titleActions?n.titleActions:e},t.prototype.getUpdatedQuestionTitleActions=function(e,n){var r={question:e,actions:n,titleActions:n};return this.onGetQuestionTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPanelTitleActions=function(e,n){var r={panel:e,actions:n,titleActions:n};return this.onGetPanelTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPageTitleActions=function(e,n){var r={page:e,actions:n,titleActions:n};return this.onGetPageTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedMatrixRowActions=function(e,n,r){var o={question:e,actions:r,row:n};return this.onGetMatrixRowActions.fire(this,o),o.actions},t.prototype.scrollElementToTop=function(e,n,r,o,s,a,l,u){var d=this,v={element:e,question:n,page:r,elementId:o,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,v),!v.cancel&&v.allow){var V=this.getPageByElement(e);if(this.isLazyRendering&&V){var T=1,R=b.environment.rootElement,N=this.rootElement||l||R;this.skeletonHeight&&N&&typeof N.getBoundingClientRect=="function"&&(T=N.getBoundingClientRect().height/this.skeletonHeight-1),V.forceRenderElement(e,function(){d.suspendLazyRendering(),le.ScrollElementToTop(v.elementId,s,a,function(){d.releaseLazyRendering(),er(V.id),u&&u()})},T)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var j=this.rootElement.querySelector(be(this.css.rootWrapper));le.ScrollElementToViewCore(j,!1,s,a,u)}else le.ScrollElementToTop(v.elementId,s,a,u)}},t.prototype.chooseFiles=function(e,n,r){this.onOpenFileChooser.isEmpty?go(e,n):this.onOpenFileChooser.fire(this,{input:e,element:r&&r.element||this.survey,elementType:r&&r.elementType,item:r&&r.item,propertyName:r&&r.propertyName,callback:n,context:r})},t.prototype.uploadFiles=function(e,n,r,o){var s=this;this.onUploadFiles.isEmpty?o("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",function(a){s.onUploadFiles.fire(s,{question:e,name:n,files:r||[],callback:function(l,u){o(l,u),a()}})}),this.surveyPostId&&this.uploadFilesCore(n,r,o)},t.prototype.downloadFile=function(e,n,r,o){this.onDownloadFile.isEmpty&&o&&o("skipped",r.content||r),this.onDownloadFile.fire(this,{question:e,name:n,content:r.content||r,fileValue:r,callback:o})},t.prototype.clearFiles=function(e,n,r,o,s){this.onClearFiles.isEmpty&&s&&s("success",r),this.onClearFiles.fire(this,{question:e,name:n,value:r,fileName:o,callback:s})},t.prototype.updateChoicesFromServer=function(e,n,r){var o={question:e,choices:n,serverResult:r};return this.onLoadChoicesFromServer.fire(this,o),o.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new Jo},t.prototype.uploadFilesCore=function(e,n,r){var o=this,s=[];n.forEach(function(a){r&&r("uploading",a),o.createSurveyService().sendFile(o.surveyPostId,a,function(l,u){l?(s.push({content:u,file:a}),s.length===n.length&&r&&r("success",s)):r&&r("error",{response:u,file:a})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,n){n===void 0&&(n=-1),e!=null&&(n<0||n>=this.pages.length?this.pages.push(e):this.pages.splice(n,0,e))},t.prototype.addNewPage=function(e,n){e===void 0&&(e=null),n===void 0&&(n=-1);var r=this.createNewPage(e);return this.addPage(r,n),r},t.prototype.removePage=function(e){var n=this.pages.indexOf(e);n<0||(this.pages.splice(n,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,n){if(n===void 0&&(n=!1),!e)return null;n&&(e=e.toLowerCase());var r=n?this.questionHashes.namesInsensitive:this.questionHashes.names,o=r[e];return o?o[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getQuestionByValueName=function(e,n){n===void 0&&(n=!1);var r=this.getQuestionsByValueName(e,n);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,n){n===void 0&&(n=!1);var r=n?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,o=r[e];return o||null},t.prototype.getCalculatedValueByName=function(e){for(var n=0;n<this.calculatedValues.length;n++)if(e==this.calculatedValues[n].name)return this.calculatedValues[n];return null},t.prototype.getQuestionsByNames=function(e,n){n===void 0&&(n=!1);var r=[];if(!e)return r;for(var o=0;o<e.length;o++)if(e[o]){var s=this.getQuestionByName(e[o],n);s&&r.push(s)}return r},t.prototype.getPageByElement=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var n=0;n<this.pages.length;n++)if(this.pages[n].name==e)return this.pages[n];return null},t.prototype.getPagesByNames=function(e){var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getPageByName(e[r]);o&&n.push(o)}return n},t.prototype.getAllQuestions=function(e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1),r===void 0&&(r=!1),r&&(n=!1);for(var o=[],s=0;s<this.pages.length;s++)this.pages[s].addQuestionsToList(o,e,n);if(!r)return o;var a=[];return o.forEach(function(l){a.push(l),l.getNestedQuestions(e).forEach(function(u){return a.push(u)})}),a},t.prototype.getQuizQuestions=function(){for(var e=new Array,n=this.getPageStartIndex(),r=n;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var o=this.pages[r].questions,s=0;s<o.length;s++){var a=o[s];a.quizQuestionCount>0&&e.push(a)}return e},t.prototype.getPanelByName=function(e,n){n===void 0&&(n=!1);var r=this.getAllPanels();n&&(e=e.toLowerCase());for(var o=0;o<r.length;o++){var s=r[o].name;if(n&&(s=s.toLowerCase()),s==e)return r[o]}return null},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);for(var r=new Array,o=0;o<this.pages.length;o++)this.pages[o].addPanelsIntoList(r,e,n);return r},t.prototype.createNewPage=function(e){var n=x.createClass("page");return n.name=e,n},t.prototype.getValueChangeReason=function(){return this.isSettingValueOnExpression?"expression":this.isSettingValueFromTrigger?"trigger":void 0},t.prototype.questionOnValueChanging=function(e,n,r){if(this.editingObj){var o=x.findProperty(this.editingObj.getType(),e);o&&(n=o.settingValue(this.editingObj,n))}if(this.onValueChanging.isEmpty)return n;var s={name:e,question:this.getQuestionByValueName(r||e),value:this.getUnbindValue(n),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,s),s.value},t.prototype.updateQuestionValue=function(e,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var s=r[o].value;(s===n&&Array.isArray(s)&&this.editingObj||!this.isTwoValueEquals(s,n))&&r[o].updateValueFromSurvey(n,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var n=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&this.isValidateOnValueChange&&(n>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,n){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var o=!1,s=0;s<r.length;s++){var a=r[s];this.isTwoValueEquals(a.valueForSurvey,n)||(a.value=n),this.checkQuestionErrorOnValueChangedCore(a)&&(o=!0),o=o||a.errors.length>0}return o},t.prototype.fireOnValueChanged=function(e,n,r){this.onValueChanged.fire(this,{name:e,question:r,value:n,reason:this.getValueChangeReason()})},t.prototype.notifyQuestionOnValueChanged=function(e,n,r){if(!this.isLoadingFromJson){var o=this.getQuestionsByValueName(e);if(o)for(var s=0;s<o.length;s++){var a=o[s];this.checkQuestionErrorOnValueChanged(a),a.onSurveyValueChanged(n)}this.fireOnValueChanged(e,n,r?this.getQuestionByName(r):void 0),!this.isDisposed&&(this.checkElementsBindings(e,n),this.notifyElementsOnAnyValueOrVariableChanged(e,r))}},t.prototype.checkElementsBindings=function(e,n){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,n);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,n){if(this.isEndLoadingFromJson!=="processing"){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var r=0;r<this.pages.length;r++)this.pages[r].onAnyValueChanged(e,n);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var n=this.getAllQuestions(),r=0;r<n.length;r++){var o=n[r],s=o.getValueName();o.updateValueFromSurvey(this.getValue(s),e),o.requireUpdateCommentValue&&o.updateCommentFromSurvey(this.getComment(s))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].onSurveyValueChanged(this.getValue(e[n].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var n=this.getCurrentPageQuestions(!0),r={},o=0;o<n.length;o++){var s=n[o],a=s.getValueName();r[a]=this.getValue(a)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){e===void 0&&(e=!1);var n=[],r=this.currentPage;if(!r)return n;for(var o=0;o<r.questions.length;o++){var s=r.questions[o];!e&&!s.visible||!s.name||n.push(s)}return n},t.prototype.checkTriggers=function(e,n,r,o){if(r===void 0&&(r=!1),!(this.isCompleted||this.triggers.length==0||this.isDisplayMode)){if(this.isTriggerIsRunning){this.triggerValues=this.getFilteredValues();for(var s in e)this.triggerKeys[s]=e[s];return}var a=!1;if(!r&&o&&this.hasRequiredValidQuestionTrigger){var l=this.getQuestionByValueName(o);a=l&&!l.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var u=this.getFilteredProperties(),d=this.canBeCompletedByTrigger,v=0;v<this.triggers.length;v++){var V=this.triggers[v];a&&V.requireValidQuestion||V.checkExpression(n,r,this.triggerKeys,this.triggerValues,u)}d!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,n,r){var o={};o[e]={newValue:n,oldValue:r},this.runConditionOnValueChanged(e,n),this.checkTriggers(o,!1,!1,e)},Object.defineProperty(t.prototype,"hasRequiredValidQuestionTrigger",{get:function(){for(var e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runExpressions=function(){this.runConditions()},t.prototype.runConditions=function(){if(!(this.isCompleted||this.isEndLoadingFromJson==="processing"||this.isRunningConditions)){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),n=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(n),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<b.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,n){this.isRunningConditions?(this.conditionValues[e]=n,this.questionTriggersKeys&&(this.questionTriggersKeys[e]=n),this.isValueChangedOnRunningCondition=!0):(this.questionTriggersKeys={},this.questionTriggersKeys[e]=n,this.runConditions(),this.runQuestionsTriggers(e,n),this.questionTriggersKeys=void 0)},t.prototype.runConditionsCore=function(e){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(var r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,e);i.prototype.runConditionCore.call(this,this.conditionValues,e);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,e)},t.prototype.runQuestionsTriggers=function(e,n){var r=this;if(!(this.isDisplayMode||this.isDesignMode)){var o=this.getAllQuestions();o.forEach(function(s){s.runTriggers(e,n,r.questionTriggersKeys)})}},t.prototype.checkIfNewPagesBecomeVisible=function(e){var n=this.pages.indexOf(this.currentPage);if(!(n<=e+1)){for(var r=e+1;r<n;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}}},t.prototype.sendResult=function(e,n,r){var o=this;if(e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=!1),!!this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),!!e&&(n&&(this.clientId=n),!(r&&!this.clientId)))){var s=this.createSurveyService();s.locale=this.getLocale();var a=this.surveyShowDataSaving||!r&&s.isSurveJSIOService;a&&this.setCompletedState("saving",""),s.sendResult(e,this.data,function(l,u,d){(a||s.isSurveJSIOService)&&(l?o.setCompletedState("success",""):o.setCompletedState("error",u));var v={success:l,response:u,request:d};o.onSendResult.fire(o,v)},this.clientId,r)}},t.prototype.getResult=function(e,n){var r=this;this.createSurveyService().getResult(e,n,function(o,s,a,l){r.onGetResult.fire(r,{success:o,data:s,dataList:a,response:l})})},t.prototype.loadSurveyFromService=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null),e&&(this.surveyId=e),n&&(this.clientId=n);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),n?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(o,s,a,l){o&&(r.isCompletedBefore=a=="completed",r.loadSurveyFromServiceJson(s)),r.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(o,s,a){o&&r.loadSurveyFromServiceJson(s),r.isLoading=!1})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)e[n].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(e){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson)){if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)}},t.prototype.updatePageElementsVisibleIndexes=function(e){if(this.showQuestionNumbers=="onPage")for(var n=e?[e]:this.visiblePages,r=0;r<n.length;r++)n[r].setVisibleIndex(0);else for(var o=this.getStartVisibleIndex(),s=0;s<this.pages.length;s++)o+=this.pages[s].setVisibleIndex(o)},t.prototype.getStartVisibleIndex=function(){return this.showQuestionNumbers=="on"?0:-1},t.prototype.updatePageVisibleIndexes=function(){this.updateButtonsVisibility();for(var e=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?e++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,n){if(e){this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;var r=new fe;r.toObject(e,this,n),r.errors.length>0&&(this.jsonErrors=r.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&b.version&&P.compareVerions(this.sjsVersion,b.version)>0&&Fe.warn("The version of the survey JSON schema (v"+this.sjsVersion+") is newer than your current Form Library version ("+b.version+"). Please update the Form Library to make sure that all survey features work as expected.")}},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&e.locale&&(this.locale=e.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),i.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged("standard"),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.titleIsEmpty=this.locTitle.isEmpty,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new Ee;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,n="sv-nav-btn",r=new $({id:"sv-nav-start",visible:new te(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:n}),o=new $({id:"sv-nav-prev",visible:new te(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:n}),s=new $({id:"sv-nav-next",visible:new te(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:n}),a=new $({id:"sv-nav-preview",visible:new te(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:n}),l=new $({id:"sv-nav-complete",visible:new te(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute(function(){return e.tryComplete()})},component:n});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,o.innerCss=e.cssNavigationPrev,s.innerCss=e.cssNavigationNext,a.innerCss=e.cssNavigationPreview,l.innerCss=e.cssNavigationComplete},[r,o,s,a,l]},t.prototype.onBeforeRunConstructor=function(){},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var n=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||n&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if(e==="pageno"){var n=this.currentPage;return n!=null?this.visiblePages.indexOf(n)+1:0}if(e==="pagecount")return this.visiblePageCount;if(e==="correctedanswers"||e==="correctanswers"||e==="correctedanswercount")return this.getCorrectedAnswerCount();if(e==="incorrectedanswers"||e==="incorrectanswers"||e==="incorrectedanswercount")return this.getInCorrectedAnswerCount();if(e==="questioncount")return this.getQuizQuestionCount()},t.prototype.getProcessedTextValueCore=function(e){var n=e.name.toLocaleLowerCase();if(["no","require","title"].indexOf(n)===-1){var r=this.getBuiltInVariableValue(n);if(r!==void 0){e.isExists=!0,e.value=r;return}if(n==="locale"){e.isExists=!0,e.value=this.locale?this.locale:ce.defaultLocale;return}var o=this.getVariable(n);if(o!==void 0){e.isExists=!0,e.value=o;return}var s=this.getFirstName(n);if(s){var a=s.useDisplayValuesInDynamicTexts;e.isExists=!0;var l=s.getValueName().toLowerCase();n=l+n.substring(l.length),n=n.toLocaleLowerCase();var u={};u[l]=e.returnDisplayValue&&a?s.getDisplayValue(!1,void 0):s.value,e.value=new me().getValue(n,u);return}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var n=this.getValue(e.name);if(n!==void 0){e.isExists=!0,e.value=n;return}var r=new me,o=r.getFirstName(e.name);if(o!==e.name){var s={},a=this.getValue(o);P.isValueEmpty(a)&&(a=this.getVariable(o)),!P.isValueEmpty(a)&&(s[o]=a,e.value=r.getValue(e.name,s),e.isExists=r.hasValue(e.name,s))}},t.prototype.getFirstName=function(e){e=e.toLowerCase();var n;do n=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e);while(!n&&e);return n},t.prototype.reduceFirstName=function(e){var n=e.lastIndexOf("."),r=e.lastIndexOf("[");if(n<0&&r<0)return"";var o=Math.max(n,r);return e.substring(0,o)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&o.isParentVisible&&!o.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){var n=this.getQuestionsByValueName(e);return n||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.clearInvisibleValues==="none"?"none":"onComplete",n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var n=this.variablesHash[e];return this.isValueEmpty(n)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&new me().hasValue(e,this.variablesHash)?new me().getValue(e,this.variablesHash):n},t.prototype.setVariable=function(e,n){if(e){var r=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=n,this.notifyElementsOnAnyValueOrVariableChanged(e),P.isTwoValueEquals(r,n)||(this.checkTriggersAndRunConditions(e,n,r),this.onVariableChanged.fire(this,{name:e,value:n}))}},t.prototype.getVariableNames=function(){var e=[];for(var n in this.variablesHash)e.push(n);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:P.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||e.length==0)return null;var n=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(n)},t.prototype.setValue=function(e,n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!0);var a=n;if(o&&(a=this.questionOnValueChanging(e,n)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,a))&&!(!this.editingObj&&this.isValueEqual(e,a)&&this.isTwoValueEquals(a,n))){var l=this.getValue(e);this.isValueEmpyOnSetValue(e,a)?this.deleteDataValueCore(this.valuesHash,e):(a=this.getUnbindValue(a),this.setDataValueCore(this.valuesHash,e,a)),this.updateOnSetValue(e,a,l,r,o,s)}},t.prototype.isValueEmpyOnSetValue=function(e,n){return this.isValueEmpty(n,!1)?!this.editingObj||n===null||n===void 0?!0:this.editingObj.getDefaultPropertyValue(e)===n:!1},t.prototype.updateOnSetValue=function(e,n,r,o,s,a){o===void 0&&(o=!1),s===void 0&&(s=!0),this.updateQuestionValue(e,n),!(o===!0||this.isDisposed||this.isRunningElementsBindings)&&(a=a||e,this.checkTriggersAndRunConditions(e,n,r),s&&this.notifyQuestionOnValueChanged(e,n,a),o!=="text"&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,n){(n===""||n===void 0)&&(n=null);var r=this.getValue(e);return(r===""||r===void 0)&&(r=null),n===null||r===null?n===r:this.isTwoValueEquals(n,r)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var n={page:e};this.onPageAdded.fire(this,n)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),!this.runningPages&&(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,n){for(var r={},o=0;o<e.length;o++)r[e[o].name]=!0;for(var s=1;r[n+s];)s++;return n+s},t.prototype.tryGoNextPageAutomatic=function(e){var n=this;if(!(this.isEndLoadingFromJson||!this.goNextPageAutomatic||!this.currentPage)){var r=this.getQuestionByValueName(e);if(!(!r||r&&(!r.visible||!r.supportGoNextPageAutomatic()))&&!(!r.validate(!1)&&!r.supportGoNextPageError())){if(this.currentSingleQuestion){var o=this.currentSingleQuestion,s=function(){o===n.currentSingleQuestion&&(n.isLastElement?n.allowCompleteSurveyAutomatic&&n.tryCompleteOrShowPreview():n.performNext())};He.safeTimeOut(s,b.autoAdvanceDelay)}var a=this.getCurrentPageQuestions();if(!(a.indexOf(r)<0)){for(var l=0;l<a.length;l++)if(a[l].hasInput&&a[l].isEmpty())return;if(!(this.isLastPage&&(this.goNextPageAutomatic!==!0||!this.allowCompleteSurveyAutomatic))&&!this.checkIsCurrentPageHasErrors(!1)){var u=this.currentPage,d=function(){u===n.currentPage&&(n.isLastPage?n.tryCompleteOrShowPreview():n.nextPage())};He.safeTimeOut(d,b.autoAdvanceDelay)}}}}},t.prototype.tryCompleteOrShowPreview=function(){this.isShowPreviewBeforeComplete?this.showPreview():this.tryComplete()},t.prototype.getComment=function(e){var n=this.getValue(e+this.commentSuffix);return n||""},t.prototype.setComment=function(e,n,r){if(r===void 0&&(r=!1),n||(n=""),!this.isTwoValueEquals(n,this.getComment(e))){var o=e+this.commentSuffix;n=this.questionOnValueChanging(o,n,e),this.isValueEmpty(n)?this.deleteDataValueCore(this.valuesHash,o):this.setDataValueCore(this.valuesHash,o,n);var s=this.getQuestionsByValueName(e);if(s)for(var a=0;a<s.length;a++)s[a].updateCommentFromSurvey(n),this.checkQuestionErrorOnValueChanged(s[a]);r||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),r!=="text"&&this.tryGoNextPageAutomatic(e);var l=this.getQuestionByValueName(e);l&&(this.fireOnValueChanged(o,n,l),l.comment=n,l.comment!=n&&(l.comment=n))}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":e!=="default"?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,n,r){r&&this.updateVisibleIndexes(e.page),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:n})},t.prototype.pageVisibilityChanged=function(e,n){this.isLoadingFromJson||((n&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:n}))},t.prototype.panelVisibilityChanged=function(e,n){this.updateVisibleIndexes(e.page),this.onPanelVisibleChanged.fire(this,{panel:e,visible:n})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||(this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!b.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,n,r){this.questionHashesRemoved(e,n,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var n=e.questions,r=0;r<n.length;r++)this.questionHashesAdded(n[r])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,n,r){n&&(this.questionHashRemovedCore(this.questionHashes.names,e,n),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,n.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,n,r){var o=e[r];if(o){var o=e[r];o.indexOf(n)<0&&o.push(n)}else e[r]=[n]},t.prototype.questionHashRemovedCore=function(e,n,r){var o=e[r];if(o){var s=o.indexOf(n);s>-1&&o.splice(s,1),o.length==0&&delete e[r]}},t.prototype.panelAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var n={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,n),n.error?new we(n.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var n={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,n),n.error?new we(n.error,this):null},t.prototype.processHtml=function(e,n){n||(n="");var r={html:e,reason:n};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,n){return this.processTextEx({text:e,returnDisplayValue:n,doEncoding:!1}).text},t.prototype.processTextEx=function(e){var n=e.doEncoding===void 0?b.web.encodeUrlParams:e.doEncoding,r=e.text;(e.runAtDesign||!this.isDesignMode)&&(r=this.textPreProcessor.process(r,e.returnDisplayValue===!0,n,e.replaceUndefinedValues));var o={text:r,hasAllValuesOnLastRun:!0};return o.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,o},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new yr,this.textPreProcessorValue.onProcess=function(n){e.getProcessedTextValue(n)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getSurveyMarkdownHtml=function(e,n,r){var o={element:e,text:n,name:r,html:null};return this.onTextMarkdown.fire(this,o),o.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectAnswerCount()},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),n=0,r=0;r<e.length;r++)n+=e[r].quizQuestionCount;return n},t.prototype.getInCorrectedAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getIncorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,n){this.onIsAnswerCorrect.isEmpty||(n.question=e,this.onIsAnswerCorrect.fire(this,n))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var n=this.getQuizQuestions(),r=0,o=0;o<n.length;o++){var s=n[o],a=s.correctAnswerCount;e?r+=a:r+=s.quizQuestionCount-a}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.showTimer?this.timerLocation:"none"},set:function(e){this.showTimer=e!=="none",this.showTimer&&(this.timerLocation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimer",{get:function(){return this.getPropertyValue("showTimer")},set:function(e){this.setPropertyValue("showTimer",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerLocation",{get:function(){return this.getPropertyValue("timerLocation")},set:function(e){this.setPropertyValue("timerLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.showTimer&&this.timerLocation==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.showTimer&&this.timerLocation==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoMode",{get:function(){return this.getTimerInfoVal(this.getPropertyValue("timerInfoMode"))},set:function(e){this.setPropertyValue("timerInfoMode",e)},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoVal=function(e){return e==="all"?"combined":e},Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){var e=this.timerInfoMode;return e==="combined"?"all":e},set:function(e){this.timerInfoMode=this.getTimerInfoVal(e)},enumerable:!1,configurable:!0}),t.prototype.updateGridColumns=function(){this.pages.forEach(function(e){return e.updateGridColumns()})},Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.isLoadingFromJson||(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new te(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater)},t.prototype.calculateWidthMode=function(){if(this.widthMode=="auto"){var e=!1;return this.pages.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("calculatedWidthMode")=="static",n=this.getPropertyValue("width");if(this.isScaled&&this.responsiveStartWidth>1){var r=this.responsiveStartWidth;try{n=n||this.staticStartWidth,r=isNaN(n)?parseFloat(n.toString().replace("px","")):n}catch{}return(e?r:this.responsiveStartWidth)*this.widthScale/100+"px"}return n&&!isNaN(n)&&(n=n+"px"),e&&n||void 0},enumerable:!1,configurable:!0}),t.prototype.setStaticStartWidth=function(e){this.staticStartWidth=e},t.prototype.setResponsiveStartWidth=function(e){this.responsiveStartWidth=e},Object.defineProperty(t.prototype,"isScaled",{get:function(){return Math.abs(this.widthScale-100)>.001},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,n;if(this.currentPage){var r=this.getTimerInfo(),o=r.spent,s=r.limit,a=r.minorSpent,l=r.minorLimit;s>0?e=this.getDisplayClockTime(s-o):e=this.getDisplayClockTime(o),a!==void 0&&(l>0?n=this.getDisplayClockTime(l-a):n=this.getDisplayClockTime(a))}return{majorText:e,minorText:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var n=new Se(this,!0);return n.text=e.text,n.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var n=e.timeSpent,r=this.timeSpent,o=e.getMaxTimeToFinish(),s=this.timeLimit;return this.timerInfoMode=="page"?{spent:n,limit:o}:this.timerInfoMode=="survey"?{spent:r,limit:s}:o>0&&s>0?{spent:n,limit:o,minorSpent:r,minorLimit:s}:o>0?{spent:n,limit:o,minorSpent:r}:s>0?{spent:r,limit:s,minorSpent:n}:{spent:n,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var n=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),o=e.getMaxTimeToFinish(),s=this.getDisplayTime(o),a=this.getDisplayTime(this.timeLimit);if(this.timerInfoMode=="page")return this.getTimerInfoPageText(e,n,s);if(this.timerInfoMode=="survey")return this.getTimerInfoSurveyText(r,a);if(this.timerInfoMode=="combined"){if(o<=0&&this.timeLimit<=0)return this.getLocalizationFormatString("timerSpentAll",n,r);if(o>0&&this.timeLimit>0)return this.getLocalizationFormatString("timerLimitAll",n,s,r,a);var l=this.getTimerInfoPageText(e,n,s),u=this.getTimerInfoSurveyText(r,a);return l+" "+u}return""},t.prototype.getTimerInfoPageText=function(e,n,r){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString("timerLimitPage",n,r):this.getLocalizationFormatString("timerSpentPage",n,r)},t.prototype.getTimerInfoSurveyText=function(e,n){var r=this.timeLimit>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,n)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var n=Math.floor(e/60),r=e%60,o=r.toString();return r<10&&(o="0"+o),n+":"+o},t.prototype.getDisplayTime=function(e){var n=Math.floor(e/60),r=e%60,o="";return n>0&&(o+=n+" "+this.getLocalizationString("timerMin")),o&&r==0?o:(o&&(o+=" "),o+r+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.isEditMode&&this.timerModel.start()},t.prototype.startTimerFromUI=function(){this.showTimer&&this.state==="running"&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimitPerPage",{get:function(){return this.getPropertyValue("timeLimitPerPage",0)},set:function(e){this.setPropertyValue("timeLimitPerPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.timeLimitPerPage},set:function(e){this.timeLimitPerPage=e},enumerable:!1,configurable:!0}),t.prototype.doTimer=function(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var n=e.getMaxTimeToFinish();n>0&&n==e.timeSpent&&(this.isLastPage?this.tryComplete():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,n){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(n)),r},t.prototype.setTriggerValue=function(e,n,r){if(e)if(r)this.setVariable(e,n);else{var o=this.getQuestionByName(e);if(this.startSetValueFromTrigger(),o)o.value=n;else{var s=new me,a=s.getFirstName(e);if(a==e)this.setValue(e,n);else{if(!this.getQuestionByName(a))return;var l=this.getUnbindValue(this.getFilteredValues());s.setValue(l,e,n),this.setValue(a,l[a])}}this.finishSetValueFromTrigger()}},t.prototype.copyTriggerValue=function(e,n,r){if(!(!e||!n)){var o;if(r)o=this.processText("{"+n+"}",!0);else{var s=new me;o=s.getValue(n,this.getFilteredValues())}this.setTriggerValue(e,o,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},Object.defineProperty(t.prototype,"isSettingValueFromTrigger",{get:function(){return this.setValueFromTriggerCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueFromTrigger=function(){this.setValueFromTriggerCounter++},t.prototype.finishSetValueFromTrigger=function(){this.setValueFromTriggerCounter--},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},Object.defineProperty(t.prototype,"isQuestionDragging",{get:function(){return this.isMovingQuestion},enumerable:!1,configurable:!0}),t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,n){var r;if(n===void 0&&(n=!1),!e||!e.isVisible||!e.page)return!1;var o=(r=this.focusingQuestionInfo)===null||r===void 0?void 0:r.question;if(o===e)return!1;this.focusingQuestionInfo={question:e,onError:n},this.skippedPages.push({from:this.currentPage,to:e.page});var s=this.activePage!==e.page&&!e.page.isStartPage;return s&&(this.currentPage=e.page,this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleQuestion=e)),s||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,n=(e=this.focusingQuestionInfo)===null||e===void 0?void 0:e.question;n&&!n.isDisposed&&n.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,n){var r=this.enterKeyAction||b.enterKeyAction;if(r=="loseFocus"&&n.target.blur(),r=="moveToNextEditor"){var o=this.currentPage.questions,s=o.indexOf(e);s>-1&&s<o.length-1?o[s+1].focus():n.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,n,r,o,s){if(this.onElementWrapperComponentName.isEmpty)return e;var a={componentName:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentName.fire(this,a),a.componentName},t.prototype.elementWrapperDataCore=function(e,n,r,o,s){if(this.onElementWrapperComponentData.isEmpty)return e;var a={data:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentData.fire(this,a),a.data},t.prototype.getElementWrapperComponentName=function(e,n){var r=n==="logo-image"?"sv-logo-image":t.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(r,e,"component",n)},t.prototype.getQuestionContentWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"content-component")},t.prototype.getRowWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"row")},t.prototype.getItemValueWrapperComponentName=function(e,n){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,n,"itemvalue",void 0,e)},t.prototype.getElementWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,e,"component",n)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,n,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var n=e.question;return this.elementWrapperDataCore(n,n,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var n=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,n);return n},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var n=this.removeLayoutElement(e.id);return this.layoutElements.push(e),n},t.prototype.findLayoutElement=function(e){var n=this.layoutElements.filter(function(r){return r.id===e})[0];return n},t.prototype.removeLayoutElement=function(e){var n=this.findLayoutElement(e);if(n){var r=this.layoutElements.indexOf(n);this.layoutElements.splice(r,1)}return n},t.prototype.getContainerContent=function(e){for(var n=[],r=0,o=this.layoutElements;r<o.length;r++){var s=o[r];if(this.mode!=="display"&&We(s.id,"timerpanel"))e==="header"&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&n.push(s),e==="footer"&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&n.push(s);else if(this.state==="running"&&We(s.id,this.progressBarComponentName)){if(this.questionsOnPageMode!="singlePage"||this.progressBarType=="questions"){var a=this.findLayoutElement("advanced-header"),l=a&&a.data,u=!l||l.hasBackground;We(this.showProgressBar,"aboveHeader")&&(u=!1),We(this.showProgressBar,"belowHeader")&&(u=!0),e==="header"&&!u&&(s.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="center"&&u&&(s.index&&delete s.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="footer"&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&n.push(s)}}else We(s.id,"buttons-navigation")?(e==="contentTop"&&["top","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s),e==="contentBottom"&&["bottom","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s)):this.state==="running"&&We(s.id,"toc-navigation")&&this.showTOC?(e==="left"&&["left","both"].indexOf(this.tocLocation)!==-1&&n.push(s),e==="right"&&["right","both"].indexOf(this.tocLocation)!==-1&&n.push(s)):We(s.id,"advanced-header")?(this.state==="running"||this.state==="starting"||this.showHeaderOnCompletePage===!0&&this.state==="completed")&&s.container===e&&n.push(s):(Array.isArray(s.container)&&s.container.indexOf(e)!==-1||s.container===e)&&n.push(s)}return n.sort(function(d,v){return(d.index||0)-(v.index||0)}),n},t.prototype.processPopupVisiblityChanged=function(e,n,r){this.onPopupVisibleChanged.fire(this,{question:e,popup:n,visible:r})},t.prototype.processOpenDropdownMenu=function(e,n){var r=Object.assign({question:e},n);this.onOpenDropdownMenu.fire(this,r),n.menuType=r.menuType},t.prototype.getCssTitleExpandableSvg=function(){return null},t.prototype.applyTheme=function(e){var n=this;if(e){if(Object.keys(e).forEach(function(o){o!=="header"&&(o==="isPanelless"?n.isCompact=e[o]:n[o]=e[o])}),this.headerView==="advanced"||"header"in e){this.removeLayoutElement("advanced-header");var r=new vn;r.fromTheme(e),this.insertAdvancedHeader(r)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach(function(n){return n.themeChanged(e)})},t.prototype.dispose=function(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var e=0;e<this.layoutElements.length;e++)this.layoutElements[e].data&&this.layoutElements[e].data!==this&&this.layoutElements[e].data.dispose&&this.layoutElements[e].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(i.prototype.dispose.call(this),this.editingObj=null,!!this.pages){this.currentPage=null;for(var e=0;e<this.pages.length;e++)this.pages[e].setSurveyImpl(void 0),this.pages[e].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype._isElementShouldBeSticky=function(e){if(!e)return!1;var n=this.rootElement.querySelector(e);return n?this.rootElement.scrollTop>0&&n.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y:!1},t.prototype.onScroll=function(){this.rootElement&&(this._isElementShouldBeSticky(".sv-components-container-center")?this.rootElement.classList&&this.rootElement.classList.add("sv-root--sticky-top"):this.rootElement.classList&&this.rootElement.classList.remove("sv-root--sticky-top")),this.onScrollCallback&&this.onScrollCallback()},t.prototype.addScrollEventListener=function(){var e=this,n;this.scrollHandler=function(){e.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((n=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||n===void 0||n.addEventListener("scroll",this.scrollHandler))},t.prototype.removeScrollEventListener=function(){var e;this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||e===void 0||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.platform="unknown",K([h()],t.prototype,"completedCss",void 0),K([h()],t.prototype,"completedBeforeCss",void 0),K([h()],t.prototype,"loadingBodyCss",void 0),K([h()],t.prototype,"containerCss",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"fitToContainer",void 0),K([h({onSet:function(e,n){if(e==="advanced"){var r=n.findLayoutElement("advanced-header");if(!r){var o=new vn;o.logoPositionX=n.logoPosition==="right"?"right":"left",o.logoPositionY="middle",o.titlePositionX=n.logoPosition==="right"?"left":"right",o.titlePositionY="middle",o.descriptionPositionX=n.logoPosition==="right"?"left":"right",o.descriptionPositionY="middle",n.insertAdvancedHeader(o)}}else n.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),K([h()],t.prototype,"showBrandInfo",void 0),K([h()],t.prototype,"enterKeyAction",void 0),K([h()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),K([h({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),K([h({defaultValue:{}})],t.prototype,"cssVariables",void 0),K([h()],t.prototype,"_isMobile",void 0),K([h()],t.prototype,"_isCompact",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImage",void 0),K([h()],t.prototype,"renderBackgroundImage",void 0),K([h()],t.prototype,"backgroundImageFit",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),K([h()],t.prototype,"backgroundImageStyle",void 0),K([h()],t.prototype,"wrapperFormCss",void 0),K([h({getDefaultValue:function(e){return e.progressBarType==="buttons"}})],t.prototype,"progressBarShowPageTitles",void 0),K([h()],t.prototype,"progressBarShowPageNumbers",void 0),K([h()],t.prototype,"progressBarInheritWidthFrom",void 0),K([h({defaultValue:!0})],t.prototype,"validationEnabled",void 0),K([h()],t.prototype,"rootCss",void 0),K([h({onSet:function(e,n){n.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),K([h()],t.prototype,"calculatedWidthMode",void 0),K([h({defaultValue:100,onSet:function(e,n,r){n.pages.forEach(function(o){return o.updateRootStyle()})}})],t.prototype,"widthScale",void 0),K([h()],t.prototype,"staticStartWidth",void 0),K([h()],t.prototype,"responsiveStartWidth",void 0),K([ae()],t.prototype,"layoutElements",void 0),t}(nn);function We(i,t){return!i||!t?!1:i.toUpperCase()===t.toUpperCase()}x.addClass("survey",[{name:"locale",choices:function(){return ce.getLocales(!0)},onGetValue:function(i){return i.locale==ce.defaultLocale?null:i.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo:file",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean"},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem",isArray:!0},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page",isArray:!0,onSerializeValue:function(i){return i.originalPages||i.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(i){return null},onSetValue:function(i,t,e){i.pages.splice(0,i.pages.length);var n=i.addNewPage("");e.toObject({questions:t},n,e==null?void 0:e.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"sjsVersion",visible:!1},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0,visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem",isArray:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},{name:"matrixDragHandleArea",visible:!1,default:"entireItem",choices:["entireItem","icon"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","auto","aboveheader","belowheader","bottom","topbottom"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions"],visibleIf:function(i){return i.showProgressBar!=="off"}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(i){return!!i&&i.showTOC}},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(i,t){t!=="autogonext"&&(t=P.isTwoValueEquals(t,!0)),i.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(i){return i.goNextPageAutomatic===!0}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"validateVisitedEmptyFields:boolean",dependsOn:"checkErrorsMode",visibleIf:function(i){return i.checkErrorsMode==="onValueChanged"}},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"commentAreaRows:number",minValue:1},{name:"startSurveyText",serializationProperty:"locStartSurveyText",visibleIf:function(i){return i.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(i){return i.showNavigationButtons!=="none"&&i.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(i){return!i||i.showQuestionNumbers!=="off"}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(i){return i?i.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["standard","singlePage","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"showTimer:boolean"},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timeLimitPerPage:number",alternativeName:"maxTimeToFinishPage",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timerLocation",default:"top",choices:["top","bottom"],enableIf:function(i){return i.showTimer}},{name:"timerInfoMode",alternativeName:"showTimerPanelMode",default:"combined",choices:["page","survey","combined"],enableIf:function(i){return i.showTimer}},{name:"showTimerPanel",visible:!1,isSerializable:!1},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"gridLayoutEnabled:boolean",default:!1},{name:"width",visibleIf:function(i){return i.widthMode==="static"}},{name:"fitToContainer:boolean",default:!0,visible:!1},{name:"headerView",default:"basic",choices:["basic","advanced"],visible:!1},{name:"backgroundImage:file",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}]);var as=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},jr=function(i){as(t,i);function t(e){var n=i.call(this,e)||this;n.otherItemValue=new k("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n._renderedChoices=[],n.renderedChoicesAnimation=new Qe(n.getRenderedChoicesAnimationOptions(),function(o){n._renderedChoices=o,n.renderedChoicesChangedCallback&&n.renderedChoicesChangedCallback()},function(){return n._renderedChoices}),n.headItemsCount=0,n.footItemsCount=0,n.prevIsOtherSelected=!1,n.noneItemValue=n.createDefaultItem(b.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(b.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(b.dontKnowItemValue,"dontKnowText","dontKnowItemText"),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],function(){n.filterItems()||n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem","showRefuseItem","showDontKnowItem","isUsingRestful","isMessagePanelVisible"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],function(){n.onVisibleChanged()}),n.createNewArray("visibleChoices",function(){return n.updateRenderedChoices()},function(){return n.updateRenderedChoices()}),n.setNewRestfulProperty();var r=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(r),n.choicesByUrl.createItemValue=function(o){return n.createItemValue(o)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(o){n.onLoadChoicesFromUrl(o)},n.choicesByUrl.updateResultCallback=function(o,s){return n.survey?n.survey.updateChoicesFromServer(n,o,s):o},n}return Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&this.hasChoicesUrl},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){i.prototype.dispose.call(this);var e=this.getQuestionWithChoices();e&&e.removeDependedQuestion(this)},Object.defineProperty(t.prototype,"otherTextAreaModel",{get:function(){return this.otherTextAreaModelValue||(this.otherTextAreaModelValue=new ln(this.getOtherTextAreaOptions())),this.otherTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getOtherTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.otherId},propertyName:"otherValue",className:function(){return e.cssClasses.other},placeholder:function(){return e.otherPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},maxLength:function(){return e.getOthersMaxLength()},autoGrow:function(){return e.survey&&e.survey.autoGrowComment},ariaRequired:function(){return e.ariaRequired||e.a11y_input_ariaRequired},ariaLabel:function(){return e.ariaLabel||e.a11y_input_ariaLabel},getTextValue:function(){return e.otherValue},onTextAreaChange:function(r){e.onOtherValueChange(r)},onTextAreaInput:function(r){e.onOtherValueInput(r)}};return n},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,n){var r=x.createClass(this.getItemValueType(),{value:e});return r.locOwner=this,n&&(r.text=n),r},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,n){var r=e?"select":n?"array":void 0;this.setPropertyValue("carryForwardQuestionType",r)},Object.defineProperty(t.prototype,"isUsingRestful",{get:function(){return this.getPropertyValueWithoutDefault("isUsingRestful")||!1},enumerable:!1,configurable:!0}),t.prototype.updateIsUsingRestful=function(){this.setPropertyValueDirectly("isUsingRestful",this.hasChoicesUrl)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.choicesOrder!=="none"&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(k.locStrsChanged(this.choicesFromUrl),k.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&k.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var n=this.otherValue;e!==n&&(this.prevOtherErrorValue=n)},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.updatePrevOtherErrorValue(e),this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRefuseItem",{get:function(){return this.getPropertyValue("showRefuseItem")},set:function(e){this.setPropertyValue("showRefuseItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseItem",{get:function(){return this.refuseItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseText",{get:function(){return this.getLocalizableStringText("refuseText")},set:function(e){this.setLocalizableStringText("refuseText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRefuseText",{get:function(){return this.getLocalizableString("refuseText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDontKnowItem",{get:function(){return this.getPropertyValue("showDontKnowItem")},set:function(e){this.setPropertyValue("showDontKnowItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowItem",{get:function(){return this.dontKnowItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowText",{get:function(){return this.getLocalizableStringText("dontKnowText")},set:function(e){this.setLocalizableStringText("dontKnowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDontKnowText",{get:function(){return this.getLocalizableString("dontKnowText")},enumerable:!1,configurable:!0}),t.prototype.createDefaultItem=function(e,n,r){var o=new k(e),s=this.createLocalizableString(n,o,!0,r);return o.locOwner=this,o.setLocText(s),o},Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n),this.choices.forEach(function(r){r.runConditionCore(e,n)})},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0;var e=this.comment;i.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&e!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(e==null||e==null)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),n=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n)},t.prototype.runItemsCondition=function(e,n){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,n);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,n){var r=this;this.setConditionalEnableChoicesRunner();var o=k.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,n,function(s,a){return a&&r.onEnableItemCallBack(s)});o&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.survey)===null||n===void 0||n.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.waitingChoicesByURL?this.createItemValue(e,n):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var n=k.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(n),!n&&(!e||this.value!=e.id)&&this.updateSelectedItemValues(),n||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new de(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new de(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisibility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(n,r){return e.survey.getChoiceItemVisibility(e,n,r)}:null},t.prototype.runConditionsForItems=function(e,n){this.filteredChoicesValue=[];var r=this.changeItemVisibility();return k.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,n,!this.survey||!this.survey.areInvisibleElementsShowing,function(o,s){return r?r(o,s):s})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,n){return e===n.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new ot},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?i.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?i.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){e&&(this.prevIsOtherSelected=!0),this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(e){if(this.updatePrevOtherErrorValue(e),this.showCommentArea){i.prototype.setQuestionComment.call(this,e);return}this.onUpdateCommentOnAutoOtherMode(e),this.getStoreOthersAsComment()?i.prototype.setQuestionComment.call(this,e):this.setOtherValueInternally(e),this.updateChoicesDependedQuestions()},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var n=this.isOtherSelected;(!n&&e||n&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){!this.isSettingComment&&e!=this.otherValueCore&&(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(e){i.prototype.clearValue.call(this,e),this.prevOtherValue=void 0,this.selectedItemValues=void 0},t.prototype.updateCommentFromSurvey=function(e){i.prototype.updateCommentFromSurvey.call(this,e),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(n){if(!this.isReadOnlyAttr){this.setPropertyValue("renderedValue",n);var n=this.rendredValueToData(n);this.isTwoValueEquals(n,this.value)||(this.value=n)}},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(e,n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,e))&&(i.prototype.setQuestionValue.call(this,e,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(e)),this.updateChoicesDependedQuestions(),!(this.hasComment||!r))){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var s=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=s}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(e){i.prototype.setValueCore.call(this,e),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(e){e=this.valueFromData(e),(!this.choicesByUrl.isRunning&&!this.choicesByUrl.isWaitingForParameters||!this.isValueEmpty(e))&&(this.cachedValueForUrlRequests=e),i.prototype.setNewValue.call(this,e)},t.prototype.valueFromData=function(e){var n=k.getItemByValue(this.activeChoices,e);return n?n.value:i.prototype.valueFromData.call(this,e)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!e||(e=e.trim(),!e)?!1:this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!(this.waitingGetChoiceDisplayValueResponse||!this.survey||this.isEmpty())){var n=this.value,r=Array.isArray(n)?n:[n],o=r.some(function(s){return!k.getItemByValue(e.choices,s)});o&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:r,setItems:function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(e.waitingGetChoiceDisplayValueResponse=!1,!s||!s.length){e.updateIsReady();return}var u=s.map(function(d,v){return e.createItemValue(r[v],d)});e.setCustomValuesIntoItems(u,a),Array.isArray(n)?e.selectedItemValues=u:e.selectedItemValues=u[0],e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,n){!Array.isArray(n)||n.length===0||n.forEach(function(r){var o=r.values,s=r.propertyName;if(Array.isArray(o))for(var a=0;a<e.length&&a<o.length;a++)e[a][s]=o[a]})},t.prototype.hasUnknownValue=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,n,r,o);for(var s=0;s<e.length;s++)if(this.hasUnknownValueItem(e,n,r,o))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!o&&this.isValueEmpty(e)||n&&e==this.otherItem.value||this.showNoneItem&&e==this.noneItem.value||this.showRefuseItem&&e==this.refuseItem.value||this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var s=r?this.getFilteredChoices():this.activeChoices;return k.getItemByValue(s,e)==null},t.prototype.isValueDisabled=function(e){var n=k.getItemByValue(this.getFilteredChoices(),e);return!!n&&!n.isEnabled},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibleChoices()},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var n=this.getQuestionWithChoices();this.isLockVisibleChoices=!!n&&n.name===e,n&&n.name!==e&&(n.removeDependedQuestion(this),this.isInDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue("choicesFromQuestion",void 0)),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){e=e.toLowerCase(),e!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++)n[r].isEnabled&&e.push(n[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!(this.isLoadingFromJson||this.isDisposed)){var e=new Array,n=this.calcVisibleChoices();n||(n=[]);for(var r=0;r<n.length;r++)e.push(n[r]);var o=this.visibleChoices;(!this.isTwoValueEquals(o,e)||this.choicesLazyLoadEnabled)&&(this.setArrayPropertyDirectly("visibleChoices",e),this.updateRenderedChoices())}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.showNoneItem&&!this.showRefuseItem&&!this.showDontKnowItem&&!this.hasOther&&this.choicesOrder=="none"},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,n){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,n);var r=new Array;this.addNonChoicesItems(r,n),r.sort(function(a,l){return a.index===l.index?0:a.index<l.index?-1:1});for(var o=0;o<r.length;o++){var s=r[o];s.index<0?(e.splice(o,0,s.item),this.headItemsCount++):(e.push(s.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,n){var r=this;n&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",function(){r.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,n,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,n){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,n,this.showNoneItem,b.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,n,this.showRefuseItem,b.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,n,this.showDontKnowItem,b.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,n,this.hasOther,b.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,n,r,o,s){this.canShowOptionItem(n,r,o)&&s.forEach(function(a){return e.push({index:a,item:n})})},t.prototype.canShowOptionItem=function(e,n,r){var o=n&&(this.canShowOptionItemCallback?this.canShowOptionItemCallback(e):!0)||r;if(this.canSurveyChangeItemVisibility()){var s=this.changeItemVisibility();return s(e,o)}return o},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.showNoneItem:e===this.refuseItem?this.showRefuseItem:e===this.dontKnowItem?this.showDontKnowItem:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return b.showDefaultItemsInCreatorV2&&this.isInDesignModeV2&&!this.customWidget},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0,includeQuestionTypes:!1});var r=i.prototype.getPlainData.call(this,e);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map(function(s,a){var l=k.getItemByValue(n.visibleChoices,s),u={name:a,title:"Choice",value:s,displayValue:n.getChoicesDisplayValue(n.visibleChoices,s),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!1};return l&&(e.calculations||[]).forEach(function(d){u[d.propertyName]=l[d.propertyName]}),n.isOtherSelected&&n.otherItemValue===l&&(u.isOther=!0,u.displayValue=n.otherValue),u}))}return r},t.prototype.getDisplayValueCore=function(e,n){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,n):n},t.prototype.getDisplayValueEmpty=function(){return k.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,n){if(n==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=this.getSingleSelectedItem();if(r&&this.isTwoValueEquals(r.value,n))return r.locText.textOrHtml;var o=k.getTextOrHtmlByValue(e,n);return o==""&&n?n:o},t.prototype.getDisplayArrayValue=function(e,n,r){for(var o=this,s=this.visibleChoices,a=[],l=[],u=0;u<n.length;u++)l.push(r?r(u):n[u]);if(P.isTwoValueEquals(this.value,l)&&this.getMultipleSelectedItems().forEach(function(v,V){return a.push(o.getItemDisplayValue(v,l[V]))}),a.length===0)for(var u=0;u<l.length;u++){var d=this.getChoicesDisplayValue(s,l[u]);d&&a.push(d)}return a.join(b.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,n){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&n)return n;if(this.comment)return this.comment}return e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return this.carryForwardQuestionType==="select"?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):this.carryForwardQuestionType==="array"?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMessagePanelVisible",{get:function(){return this.getPropertyValue("isMessagePanelVisible",!1)},set:function(e){this.setPropertyValue("isMessagePanelVisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyActiveChoicesInDesign",{get:function(){return this.isInDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var n=this.findCarryForwardQuestion(e),r=this.getQuestionWithChoicesCore(n),o=r?null:this.getQuestionWithArrayValue(n);return this.setCarryForwardQuestionType(!!r,!!o),r||o?n:null},t.prototype.getIsReadyDependsOn=function(){var e=i.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&e.push(this.carryForwardQuestion),e},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return e||(e=this.data),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&x.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isInDesignMode)return[];var n=e.value;if(!Array.isArray(n))return[];for(var r=[],o=0;o<n.length;o++){var s=n[o];if(P.isValueObject(s)){var a=this.getValueKeyName(s);if(a&&!this.isValueEmpty(s[a])){var l=this.choiceTextsFromQuestion?s[this.choiceTextsFromQuestion]:void 0;r.push(this.createItemValue(s[a],l))}}}return r},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var n=Object.keys(e);return n.length>0?n[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isInDesignMode)return[];for(var n=[],r=this.choicesFromQuestionMode=="selected"?!0:this.choicesFromQuestionMode=="unselected"?!1:void 0,o=e.visibleChoices,s=0;s<o.length;s++)if(!e.isBuiltInChoice(o[s])){if(r===void 0){n.push(this.copyChoiceItem(o[s]));continue}var a=e.isItemSelected(o[s]);(a&&r||!a&&!r)&&n.push(this.copyChoiceItem(o[s]))}return this.choicesFromQuestionMode==="selected"&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&n.push(this.createItemValue(e.otherItem.value,e.comment)),n},t.prototype.copyChoiceItem=function(e){var n=this.createItemValue(e.value);return n.setData(e),n},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;(!e||e.length==0)&&(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var n=0;n<e.length;n++)if(!this.isBuiltInChoice(e[n]))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return this.isNoneItem(e)||e===this.otherItem||e===this.newItemValue},t.prototype.isNoneItem=function(e){return this.getNoneItems().indexOf(e)>-1},t.prototype.getNoneItems=function(){return[this.noneItem,this.refuseItem,this.dontKnowItem]},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.supportRefuse=function(){return this.isSupportProperty("showRefuseItem")},t.prototype.supportDontKnow=function(){return this.isSupportProperty("showDontKnowItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!(!this.hasOther||!this.isOtherSelected||this.otherValue||n&&!this.prevOtherErrorValue)){var s=new wu(this.otherErrorText,this);s.onUpdateErrorTextCallback=function(a){a.text=o.otherErrorText},e.push(s)}},t.prototype.setSurveyImpl=function(e,n){this.isRunningChoices=!0,i.prototype.setSurveyImpl.call(this,e,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(e){i.prototype.setSurveyCore.call(this,e),e&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return this.isSettingDefaultValue||this.showCommentArea?!1:this.storeOthersAsComment===!0||this.storeOthersAsComment=="default"&&(this.survey!=null?this.survey.storeOthersAsComment:!0)||this.hasChoicesUrl&&!this.choicesFromUrl},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),i.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),e!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;e&&r&&(e===r||n===r)&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues())},t.prototype.updateValueFromSurvey=function(e,n){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(e)&&!this.getHasOther(e)?(r=this.getCommentFromValue(e),e=this.setOtherValueIntoValue(e)):this.data&&(r=this.data.getComment(this.getValueName()))),i.prototype.updateValueFromSurvey.call(this,e,n),(this.isRunningChoices||this.choicesByUrl.isRunning)&&!this.isEmpty()&&(this.cachedValueForUrlRequests=this.value),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.updateIsUsingRestful(),!(!this.choicesByUrl||this.isLoadingFromJson||this.isRunningChoices||this.isInDesignModeV2)){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){b.web.disableQuestionWhileLoadingChoices===!0&&!this.isReadOnly&&(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var n=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&n.push(this.choicesByUrl.error);var r=null,o=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,o=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var s=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,o);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=new Array,k.setData(r,e)),r)for(var a=0;a<r.length;a++)r[a].locOwner=this;this.setChoicesFromUrl(r,n,s)},t.prototype.canAvoidSettChoicesFromUrl=function(e){if(this.isFirstLoadChoicesFromUrl)return!1;var n=!e||Array.isArray(e)&&e.length===0;return n&&!this.isEmpty()?!1:P.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,n,r){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var o=this.updateCachedValueForUrlRequests(r,e);if(o&&!this.isReadOnly){var s=!this.isTwoValueEquals(this.value,o.value);try{this.isValueEmpty(o.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=s,s?this.value=o.value:this.setQuestionValue(o.value)}finally{this.allowNotifyValueChanged=!0}}}!this.isReadOnly&&!e&&!this.isFirstLoadChoicesFromUrl&&(this.value=null),this.errors=n,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++)r.push(this.createCachedValueForUrlRequests(e[o],!0));return r}var s=n?!this.hasUnknownValue(e):!0;return{value:e,isExists:s}},t.prototype.updateCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++){var s=this.updateCachedValueForUrlRequests(e[o],n);if(s&&!this.isValueEmpty(s.value)){var a=s.value,u=k.getItemByValue(n,s.value);u&&(a=u.value),r.push(a)}}return{value:r}}var l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,u=k.getItemByValue(n,l);return u&&(l=u.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var e=i.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!e)return e;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isInDesignMode)return e;var n=this.choicesOrder.toLowerCase();return n=="asc"?this.sortArray(e,1):n=="desc"?this.sortArray(e,-1):n=="random"?this.randomizeArray(e):e},t.prototype.sortArray=function(e,n){return e.sort(function(r,o){return P.compareStrings(r.calculatedText,o.calculatedText)*n})},t.prototype.randomizeArray=function(e){return P.randomizeArray(e)},Object.defineProperty(t.prototype,"hasChoicesUrl",{get:function(){return this.choicesByUrl&&!!this.choicesByUrl.url},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(){!this.hasValueToClearIncorrectValues()||!this.canClearIncorrectValues()||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.canClearIncorrectValues=function(){return!(this.carryForwardQuestion&&!this.carryForwardQuestion.isReady||this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1||this.hasChoicesUrl&&(!this.choicesFromUrl||this.choicesFromUrl.length==0))},t.prototype.hasValueToClearIncorrectValues=function(){return this.survey&&this.survey.keepIncorrectValues?!1:!this.keepIncorrectValues&&!this.isEmpty()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){!this.survey||!this.survey.clearValueOnDisableItems||this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)},t.prototype.canClearValueAnUnknown=function(e){return!this.getStoreOthersAsComment()&&this.isOtherSelected?!1:this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){i.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),!this.showCommentArea&&!this.getStoreOthersAsComment()&&!this.isOtherSelected&&(this.comment="")},t.prototype.getColumnClass=function(){return new O().append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var n={item:e},r=this.getItemClassCore(e,n);return n.css=r,this.survey&&this.survey.updateChoiceItemCss(this,n),n.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,n){var r=new O().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&this.colCount===0).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&this.colCount!==0).append(this.cssClasses.itemOnError,this.hasCssError()),o=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),s=o[0],a=o[1],l=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,u=!a&&!l&&!(this.survey&&this.survey.isDesignMode),d=e===this.noneItem;return n.isDisabled=a||s,n.isChecked=l,n.isNone=d,r.append(this.cssClasses.itemDisabled,a).append(this.cssClasses.itemReadOnly,s).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,l).append(this.cssClasses.itemHover,u).append(this.cssClasses.itemNone,d).toString()},t.prototype.getLabelClass=function(e){return new O().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new O().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},t.prototype.updateRenderedChoices=function(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices},t.prototype.getRenderedChoicesAnimationOptions=function(){var e=this;return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getKey:function(n){return n!=e.newItemValue?n.value:e.newItemValue},getLeaveOptions:function(n){var r=e.cssClasses.itemLeave;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}},getAnimatedElement:function(n){return n.getRootElement()},getEnterOptions:function(n){var r=e.cssClasses.itemEnter;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:function(s){if(e.getCurrentColCount()==0&&e.bodyItems.indexOf(n)>=0){var a=s.parentElement.firstElementChild.offsetLeft;s.offsetLeft>a&&Mt(s,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}Ae(s)},onAfterRunAnimation:Ce}}}},Object.defineProperty(t.prototype,"renderedChoices",{get:function(){return this._renderedChoices},set:function(e){this.renderedChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,n=[],r=0;r<e;r++)this.renderedChoices[r]&&n.push(this.renderedChoices[r]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,n=[],r=this.renderedChoices,o=0;o<e;o++)this.renderedChoices[r.length-e+o]&&n.push(this.renderedChoices[r.length-e+o]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.renderedChoices.filter(function(n){return!e.isBuiltInChoice(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],n=this.getCurrentColCount();if(this.hasColumns&&this.renderedChoices.length>0){var r=!this.separateSpecialChoices&&!this.isInDesignMode?this.renderedChoices:this.dataChoices;if(b.showItemsInOrder=="column")for(var o=0,s=r.length%n,a=0;a<n;a++){for(var l=[],u=o;u<o+Math.floor(r.length/n);u++)l.push(r[u]);s>0&&(s--,l.push(r[u]),u++),o=u,e.push(l)}else for(var a=0;a<n;a++){for(var l=[],u=a;u<r.length;u+=n)l.push(r[u]);e.push(l)}}return e},enumerable:!1,configurable:!0}),t.prototype.getItemsColumnKey=function(e){return(e||[]).map(function(n){return n.value||""}).join("")},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return this.getCurrentColCount()==0&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return this.getCurrentColCount()==0&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var n=this.survey;return n?n.getItemValueWrapperComponentName(e,this):Ue.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var n=this.survey;return n?n.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return new O().append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isDisabledAttr&&e.isEnabled},t.prototype.focusOtherComment=function(){var e;le.FocusElement(this.otherId,!1,(e=this.survey)===null||e===void 0?void 0:e.rootElement)},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),!this.isDesignMode&&!this.prevIsOtherSelected&&this.isOtherSelected&&this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),bn([h({onSet:function(e,n){n.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),bn([h()],t.prototype,"separateSpecialChoices",void 0),bn([h({localizable:!0})],t.prototype,"otherPlaceholder",void 0),bn([ae()],t.prototype,"_renderedChoices",void 0),t}(ue),kt=function(i){as(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:void 0)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){i.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(jr);function Nr(i,t){var e;if(!i)return!1;if(i.templateQuestion){var n=(e=i.colOwner)===null||e===void 0?void 0:e.data;if(i=i.templateQuestion,!i.getCarryForwardQuestion(n))return!1}return i.carryForwardQuestionType===t}x.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(i){return i.choicesByUrl.getData()},onSetValue:function(i,t){i.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"defaultValue:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"correctAnswer:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"showRefuseItem:boolean",visible:!1,version:"1.9.128"},{name:"showDontKnowItem:boolean",visible:!1,version:"1.9.128"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(i){return i.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(i){return i.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(i){return i.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),x.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var Fr=function(){function i(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(i.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),i}(),at=function(){function i(){}return i.calculatePosition=function(t,e,n,r,o,s){s===void 0&&(s="flex");var a=t.left,l=t.top;return s==="flex"&&(o=="center"?a=(t.left+t.right-n)/2:o=="left"?a=t.left-n:a=t.right),r=="middle"?l=(t.top+t.bottom-e)/2:r=="top"?l=t.top-e:l=t.bottom,o!="center"&&r!="middle"&&(r=="top"?l=l+t.height:l=l-t.height),{left:Math.round(a),top:Math.round(l)}},i.getCorrectedVerticalDimensions=function(t,e,n,r,o,s){o===void 0&&(o=!0),s===void 0&&(s={top:0,bottom:0});var a,l=n-i.bottomIndent;if(r==="top"&&(a={height:e,top:t}),t<-s.top)a={height:o?e+t:e,top:-s.top};else if(e+t>n){var u=Math.min(e,l-t);a={height:o?u:e,top:o?t:t-(e-u)}}return a&&(a.height=Math.min(a.height,l),a.top=Math.max(a.top,-s.top)),a},i.updateHorizontalDimensions=function(t,e,n,r,o,s){o===void 0&&(o="flex"),s===void 0&&(s={left:0,right:0}),e+=s.left+s.right;var a=void 0,l=t;return r==="center"&&(o==="fixed"?(t+e>n&&(a=n-t),l-=s.left):t<0?(l=s.left,a=Math.min(e,n)):e+t>n&&(l=n-e,l=Math.max(l,s.left),a=Math.min(e,n))),r==="left"&&t<0&&(l=s.left,a=Math.min(e,n)),r==="right"&&e+t>n&&(a=n-t),{width:a-s.left-s.right,left:l}},i.updateVerticalPosition=function(t,e,n,r,o){if(r==="middle")return r;var s=e-(t.top+(n!=="center"?t.height:0)),a=e+t.bottom-(n!=="center"?t.height:0)-o;return s>0&&a<=0&&r=="top"?r="bottom":a>0&&s<=0&&r=="bottom"?r="top":a>0&&s>0&&(r=s<a?"top":"bottom"),r},i.updateHorizontalPosition=function(t,e,n,r){if(n==="center")return n;var o=e-t.left,s=e+t.right-r;return o>0&&s<=0&&n=="left"?n="right":s>0&&o<=0&&n=="right"?n="left":s>0&&o>0&&(n=o<s?"left":"right"),n},i.calculatePopupDirection=function(t,e){var n;return e=="center"&&t!="middle"?n=t:e!="center"&&(n=e),n},i.calculatePointerTarget=function(t,e,n,r,o,s,a){s===void 0&&(s=0),a===void 0&&(a=0);var l={};return o!="center"?(l.top=t.top+t.height/2,l.left=t[o]):r!="middle"&&(l.top=t[r],l.left=t.left+t.width/2),l.left=Math.round(l.left-n),l.top=Math.round(l.top-e),o=="left"&&(l.left-=s+a),o==="center"&&(l.left-=s),l},i.bottomIndent=16,i}(),hc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),lt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ls='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',_r=function(i){hc(t,i);function t(e){var n=i.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.visibilityAnimation=new Kn(n,function(r){n._isVisible!==r&&(r?(n.updateBeforeShowing(),n.updateIsVisible(r)):(n.updateOnHiding(),n.updateIsVisible(r),n.updateAfterHiding(),n._isPositionSetValue=!1))},function(){return n._isVisible}),n.onVisibilityChanged=new Ve,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=e,n.locale=n.model.locale,n}return t.prototype.updateIsVisible=function(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})},t.prototype.updateBeforeShowing=function(){this.model.onShow()},t.prototype.updateAfterHiding=function(){this.model.onHiding()},t.prototype.getLeaveOptions=function(){return{cssClass:"sv-popup--leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return this.model.displayMode!=="overlay"&&b.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return(e=this.container)===null||e===void 0?void 0:e.querySelector(this.fixedPopupContainer)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this.visibilityAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:i.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return new O().append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new Ee,this.footerToolbar.updateCallback=function(r){e.footerToolbarValue.actions.forEach(function(o){return o.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}})};var n=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];n=this.model.updateFooterActions(n),this.footerToolbarValue.setItems(n)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.onModelChanging=function(e){},t.prototype.setupModel=function(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return this.model.displayMode==="overlay"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){e.key==="Tab"||e.keyCode===9?this.trapFocus(e):(e.key==="Escape"||e.keyCode===27)&&this.hidePopup()},t.prototype.trapFocus=function(e){var n=this.container.querySelectorAll(ls),r=n[0],o=n[n.length-1];e.shiftKey?b.environment.root.activeElement===r&&(o.focus(),e.preventDefault()):b.environment.root.activeElement===o&&(r.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},Object.defineProperty(t.prototype,"isPositionSet",{get:function(){return this._isPositionSetValue},enumerable:!1,configurable:!0}),t.prototype.updateOnShowing=function(){this.prevActiveElement=b.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);e==null||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var n=e.container.querySelector(e.model.focusFirstInputSelector||ls);n?n.focus():e.focusContainer()}},100)},t.prototype.clickOutside=function(e){this.hidePopup(),e==null||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=I.createElement("div");this.createdContainer=e,Zn(b.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,n){for(var r=e.target;r!==this.container;){if(I.getComputedStyle(r).overflowY==="auto"&&r.scrollHeight!==r.offsetHeight){var o=r.scrollHeight,s=r.scrollTop,a=r.clientHeight;if(!(n>0&&Math.abs(o-a-s)<1)&&!(n<0&&s<=0))return}r=r.parentElement}e.cancelable&&e.preventDefault()},lt([h({defaultValue:"0px"})],t.prototype,"top",void 0),lt([h({defaultValue:"0px"})],t.prototype,"left",void 0),lt([h({defaultValue:"auto"})],t.prototype,"height",void 0),lt([h({defaultValue:"auto"})],t.prototype,"width",void 0),lt([h({defaultValue:"auto"})],t.prototype,"minWidth",void 0),lt([h({defaultValue:!1})],t.prototype,"_isVisible",void 0),lt([h()],t.prototype,"locale",void 0),t}(z),gc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Br=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function us(i,t){var e=i||E.getInnerWidth(),n=t||E.getInnerHeight(),r=Math.min(e,n),o=r>=kr.tabletSizeBreakpoint;return o}var kr=function(i){gc(t,i);function t(e){var n=i.call(this,e)||this;return n.scrollEventCallBack=function(r){if(n.isOverlay&&ne){r.stopPropagation(),r.preventDefault();return}n.hidePopup()},n.resizeEventCallback=function(){if(E.isAvailable()){var r=E.getVisualViewport(),o=I.getDocumentElement();o&&r&&o.style.setProperty("--sv-popup-overlay-height",r.height*r.scale+"px")}},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,Ue.platform==="vue"||Ue.platform==="vue3"||Ue.platform=="react")},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(r){n.clientY=r.touches[0].clientY},n.touchMoveEventCallback=function(r){n.preventScrollOuside(r,n.clientY-r.changedTouches[0].clientY)},n.model.onRecalculatePosition.add(n.recalculatePositionHandler),n}return t.prototype.calculateIsTablet=function(e,n){this.isTablet=us(e,n)},t.prototype.getAvailableAreaRect=function(){var e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){var n=e.getBoundingClientRect();return new Fr(n.x,n.y,n.width,n.height)}return new Fr(0,0,E.getInnerWidth(),E.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.container,n=this.model.getTargetCallback?this.model.getTargetCallback(e):void 0;if(e&&e.parentElement&&!this.isModal&&!n&&(n=e.parentElement),!n)return null;var r=n.getBoundingClientRect(),o=this.getAvailableAreaRect();return new Fr(r.left-o.left,r.top-o.top,r.width,r.height)},t.prototype._updatePosition=function(){var e,n,r,o=this.getTargetElementRect();if(o){var s=this.getAvailableAreaRect(),a=(e=this.container)===null||e===void 0?void 0:e.querySelector(this.containerSelector);if(a){var l=(n=this.container)===null||n===void 0?void 0:n.querySelector(this.fixedPopupContainer),u=a.querySelector(this.scrollingContentSelector),d=I.getComputedStyle(a),v=parseFloat(d.marginLeft)||0,V=parseFloat(d.marginRight)||0,T=parseFloat(d.marginTop)||0,R=parseFloat(d.marginBottom)||0,N=a.offsetHeight-u.offsetHeight+u.scrollHeight,j=a.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=o.width+"px");var A=this.model.verticalPosition,Q=this.getActualHorizontalPosition();if(E.isAvailable()){var re=[N,E.getInnerHeight()*.9,(r=E.getVisualViewport())===null||r===void 0?void 0:r.height];N=Math.ceil(Math.min.apply(Math,re.filter(function(ct){return typeof ct=="number"}))),A=at.updateVerticalPosition(o,N,this.model.horizontalPosition,this.model.verticalPosition,s.height),Q=at.updateHorizontalPosition(o,j,Q,s.width)}this.popupDirection=at.calculatePopupDirection(A,Q);var ie=at.calculatePosition(o,N,j+v+V,A,Q,this.model.positionMode);if(E.isAvailable()){var xe=at.getCorrectedVerticalDimensions(ie.top,N,s.height,A,this.model.canShrink,{top:T,bottom:R});if(xe&&(this.height=xe.height+"px",ie.top=xe.top),this.model.setWidthByTarget)this.width=o.width+"px",ie.left=o.left;else{var Re=at.updateHorizontalDimensions(ie.left,j,E.getInnerWidth(),Q,this.model.positionMode,{left:v,right:V});Re&&(this.width=Re.width?Re.width+"px":void 0,ie.left=Re.left)}}if(l){var wt=l.getBoundingClientRect();ie.top-=wt.top,ie.left-=wt.left}ie.left+=s.left,ie.top+=s.top,this.left=ie.left+"px",this.top=ie.top+"px",this.showHeader&&(this.pointerTarget=at.calculatePointerTarget(o,ie.top,ie.left,A,Q,v,V),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;if(I.isAvailable()){var n=I.getComputedStyle(I.getBody()).direction=="rtl";n&&(this.model.horizontalPosition==="left"?e="right":this.model.horizontalPosition==="right"&&(e="left"))}return e},t.prototype.getStyleClass=function(){var e=this.model.overlayDisplayMode;return i.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&e!=="plain").append("sv-popup--tablet",this.isOverlay&&(e=="tablet-dropdown-overlay"||e=="auto"&&this.isTablet)).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||this.popupDirection=="top"||this.popupDirection=="bottom"))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(e){i.prototype.setComponentElement.call(this,e)},t.prototype.resetComponentElement=function(){i.prototype.resetComponentElement.call(this)},t.prototype.updateOnShowing=function(){var e=b.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),E.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(E.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(),this.resizeEventCallback()),E.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!E.getVisualViewport()&&this.isOverlay&&ne},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,n){var r=this;n===void 0&&(n=!0),e&&(this.height="auto"),n?setTimeout(function(){r._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){i.prototype.updateOnHiding.call(this),E.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(E.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),E.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.prototype.onModelChanging=function(e){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(r,o){n.isOverlay||n.updatePosition(o.isResetHeight)}),i.prototype.onModelChanging.call(this,e),e.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,Br([h()],t.prototype,"isTablet",void 0),Br([h({defaultValue:"left"})],t.prototype,"popupDirection",void 0),Br([h({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(_r),yc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Cn=function(i){yc(t,i);function t(e,n){var r=i.call(this)||this;r.question=e,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r.timer=void 0,r._markdownMode=!1,r.filteredItems=void 0,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.listModelFilterStringChanged=function(s){r.filterString!==s&&(r.filterString=s)},r.questionPropertyChangedHandler=function(s,a){r.onPropertyChangedHandler(s,a)},r.htmlCleanerElement=I.createElement("div"),e.onPropertyChanged.add(r.questionPropertyChangedHandler),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setChoicesLazyLoadEnabled(r.question.choicesLazyLoadEnabled),r.setSearchEnabled(r.question.searchEnabled),r.setTextWrapEnabled(r.question.textWrapEnabled),r.createPopup(),r.resetItemsSettings();var o=e.cssClasses;return r.updateCssClasses(o.popup,o.list),r}return Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return ne?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,n){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=n,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.loadQuestionChoices=function(e){var n=this;this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,o){n.setItems(r||[],o||0),n.popupRecalculatePosition(n.itemsSettings.skip===n.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var n=this,r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||r)&&(this.resetTimer(),this.filterString&&b.dropdownSearchDelay>0?this.timer=setTimeout(function(){n.loadQuestionChoices(e)},b.dropdownSearchDelay):this.loadQuestionChoices(e))},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.getDropdownMenuOptions=function(){var e=E.getInnerWidth(),n=E.getInnerHeight(),r=us(e,n),o="dropdown",s="desktop";return ne&&(o=r?"popup":"overlay",s=r?"tablet":"mobile"),{menuType:o,deviceType:s,hasTouchScreen:ne,screenHeight:n,screenWidth:e}},t.prototype.createPopup=function(){var e=this,n={verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1};this._popupModel=new Et("sv-list",{model:this.listModel},n),this._popupModel.displayMode=ne?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=ne,this._popupModel.setWidthByTarget=!ne,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add(function(r,o){if(o.isVisible&&(e.listModel.renderElements=!0),o.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),o.isVisible){e.updatePopupFocusFirstInputSelector();var s=e.getDropdownMenuOptions(),a=s.menuType;e.question.processOpenDropdownMenu(s),a!==s.menuType&&(e._popupModel.updateDisplayMode(s.menuType),e.listModel.setSearchEnabled(e.searchEnabled&&s.menuType!=="dropdown")),e.question.onOpenedCallBack&&e.question.onOpenedCallBack()}o.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.ariaExpanded=o.isVisible?"true":"false",e.question.processPopupVisiblilityChanged(e.popupModel,o.isVisible)})},t.prototype.setFilterStringToListModel=function(e){var n=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0){this.listModel.focusedItem=this.getAvailableItems().filter(function(r){return r.id==n.question.selectedItem.value})[0],this.listModel.filterString&&this.listModel.actions.map(function(r){return r.selectedValue=!1});return}(!this.listModel.focusedItem||!this.listModel.isItemVisible(this.listModel.focusedItem))&&this.listModel.focusFirstVisibleItem()},t.prototype.setTextWrapEnabled=function(e){this.listModel.textWrapEnabled=e},t.prototype.popupRecalculatePosition=function(e){var n=this;setTimeout(function(){n.popupModel.recalculatePosition(e)},1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.setOnTextSearchCallbackForListModel=function(e){var n=this;e.setOnTextSearchCallback(function(r,o){if(n.filteredItems)return n.filteredItems.indexOf(r)>=0;var s=r.text.toLocaleLowerCase();s=b.comparator.normalizeTextCallback(s,"filter");var a=s.indexOf(o.toLocaleLowerCase());return n.question.searchMode=="startsWith"?a==0:a>-1})},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(a){e.question.value=a.id,e.question.searchEnabled&&e.applyInputString(a),e.popupModel.hide()});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new Rt(o);return this.setOnTextSearchCallbackForListModel(s),s.renderElements=!1,s.forceShowFilter=!0,s.areSameItemsCallback=function(a,l){return a===l},s},t.prototype.updateAfterListModelCreated=function(e){var n=this;e.isItemSelected=function(r){return!!r.selected},e.onPropertyChanged.add(function(r,o){o.name=="hasVerticalScroller"&&(n.hasScroll=o.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach(function(r){return r.disableTabStop=!0})},t.prototype.getPopupCssClasses=function(){return"sv-single-select-list"},t.prototype.updateCssClasses=function(e,n){this.popupModel.cssClass=new O().append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=n},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;if(this.filteredItems=void 0,!(!this.filterString&&!this.popupModel.isVisible)){var n={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,n),this.filteredItems=n.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var r=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(r)):r()}},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowSelectedItem",{get:function(){return!this.focused||this._markdownMode||!this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(e==null?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=e==null?void 0:e.title,this.hintString=e==null?void 0:e.title)},t.prototype.cleanHtml=function(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):""},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=e==null?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,e?this.applyHintString(this.listModel.focusedItem||this.question.selectedItem):this.hintString=""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return((e=this.hintString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return((e=this.inputString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return e==-1?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noTabIndex",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterReadOnly",{get:function(){return this.question.isInputReadOnly||!this.searchEnabled||!this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return ne?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.setSearchEnabled(ne&&e),this.searchEnabled=e},t.prototype.setChoicesLazyLoadEnabled=function(e){this.listModel.setOnFilterStringChangedCallback(e?this.listModelFilterStringChanged:void 0)},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){this.question.readOnly||this.question.isDesignMode||this.question.isPreviewStyle||this.question.isReadOnlyAttr||(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.question.focusInputElement(!1))},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,n){n.name=="value"&&(this.showInputFieldComponent=this.question.showInputFieldComponent),n.name=="textWrapEnabled"&&this.setTextWrapEnabled(n.newValue)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(!0),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var n,r=this.listModel.focusedItem;!r&&this.question.selectedItem?k.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=(n=this.listModel.focusedItem)===null||n===void 0?void 0:n.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=(e=this.listModel.focusedItem)===null||e===void 0?void 0:e.elementId},t.prototype.keyHandler=function(e){var n=e.which||e.keyCode;if(this.popupModel.isVisible&&e.keyCode===38?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):e.keyCode===40&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),e.keyCode===9)this.popupModel.hide();else if(!this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32))e.keyCode===32&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),e.keyCode===13&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32&&(!this.question.searchEnabled||!this.inputString)))e.keyCode===13&&this.question.searchEnabled&&!this.inputString&&this.question instanceof qt&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else if(n===46||n===8)this.searchEnabled||this.onClear(e);else if(e.keyCode===27)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((e.keyCode===38||e.keyCode===40||e.keyCode===32&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),e.keyCode===32&&this.question.searchEnabled)return;po(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var n=e.target;n.scrollHeight-(n.scrollTop+n.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){if(this.focused=!1,this.popupModel.isVisible&&ne){this._popupModel.show();return}fo(e),this._popupModel.hide(),this.resetFilterString(),this.inputString=null,this.hintString="",e.stopPropagation()},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},$e([h({defaultValue:!1})],t.prototype,"focused",void 0),$e([h({defaultValue:!0})],t.prototype,"searchEnabled",void 0),$e([h({defaultValue:"",onSet:function(e,n){n.onSetFilterString()}})],t.prototype,"filterString",void 0),$e([h({defaultValue:"",onSet:function(e,n){n.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),$e([h({})],t.prototype,"showInputFieldComponent",void 0),$e([h()],t.prototype,"ariaActivedescendant",void 0),$e([h({defaultValue:!1,onSet:function(e,n){e?n.listModel.addScrollEventListener(function(r){n.onScroll(r)}):n.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),$e([h({defaultValue:""})],t.prototype,"hintString",void 0),t}(z),mc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Be=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},qt=function(i){mc(t,i);function t(e){var n=i.call(this,e)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;this.renderAs=="select"&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||b.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!this.isOtherSelected},t.prototype.getChoices=function(){var e=i.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return e;for(var n=[],r=0;r<e.length;r++)n.push(e[r]);if(this.minMaxChoices.length===0||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r))}return n=n.concat(this.minMaxChoices),n},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new O().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),this.useDropdownList&&lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return e==null?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDropdownList",{get:function(){return this.renderAs!=="select"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.useDropdownList&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new Cn(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.dropdownListModelValue)===null||n===void 0||n.setInputStringFromSelectedItem(e),i.prototype.onSelectedItemValuesChangedHandler.call(this,e)},t.prototype.hasUnknownValue=function(e,n,r,o){return this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),this.lastSelectedItemValue=null,(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.dropdownListModelValue&&this.dropdownListModelValue.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){var n=e.which||e.keyCode;n===46&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},Be([h()],t.prototype,"allowClear",void 0),Be([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Be([h()],t.prototype,"searchMode",void 0),Be([h()],t.prototype,"textWrapEnabled",void 0),Be([h({defaultValue:!1})],t.prototype,"inputHasValue",void 0),Be([h({defaultValue:""})],t.prototype,"readOnlyText",void 0),Be([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Be([h()],t.prototype,"choicesLazyLoadPageSize",void 0),Be([h()],t.prototype,"suggestedItem",void 0),t}(jr);x.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:b.questions.dataList},{name:"textWrapEnabled:boolean",default:!0},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"searchMode",default:"contains",choices:["contains","startsWith"]},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new qt("")},"selectbase"),J.Instance.registerQuestion("dropdown",function(i){var t=new qt(i);return t.choices=J.DefaultChoices,t});var qr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cs=function(i){qr(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.item=e,s.fullName=n,s.data=r,s.setValueDirectly(o),s.cellClick=function(a){s.value=a.value},s.registerPropertyChangedHandlers(["value"],function(){s.data&&s.data.onMatrixRowChanged(s)}),s.data&&s.data.hasErrorInRow(s)&&(s.hasError=!0),s}return Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.isReadOnly||this.setValueDirectly(this.data.getCorrectedRowValue(e))},enumerable:!1,configurable:!0}),t.prototype.setValueDirectly=function(e){this.setPropertyValue("value",e)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.item.enabled||this.data.isInputReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.data.isReadOnlyAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return!this.item.enabled||this.data.isDisabledAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTextClasses",{get:function(){return new O().append(this.data.cssClasses.rowTextCell).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasError",{get:function(){return this.getPropertyValue("hasError",!1)},set:function(e){this.setPropertyValue("hasError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses;return new O().append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()},enumerable:!1,configurable:!0}),t}(z),fs=function(i){qr(t,i);function t(e){var n=i.call(this)||this;return n.cellsOwner=e,n.values={},n.locs={},n}return t.prototype.getType=function(){return"cells"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return Object.keys(this.values).length==0},enumerable:!1,configurable:!0}),t.prototype.valuesChanged=function(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()},t.prototype.getDefaultCellLocText=function(e){return this.getCellLocCore(this.defaultRowValue,e)},t.prototype.getCellDisplayLocText=function(e,n){return this.getCellLocCore(e,n)},t.prototype.getCellLocCore=function(e,n){var r=this;if(e=this.getCellRowColumnValue(e,this.rows),n=this.getCellRowColumnValue(n,this.columns),P.isValueEmpty(e)||P.isValueEmpty(n))return null;this.locs[e]||(this.locs[e]={});var o=this.locs[e][n];return o||(o=this.createString(),o.setJson(this.getCellLocData(e,n)),o.onGetTextCallback=function(s){if(!s){var a=k.getItemByValue(r.columns,n);if(a)return a.locText.getJson()||a.value}return s},o.onStrChanged=function(s,a){r.updateValues(e,n,a)},this.locs[e][n]=o),o},Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return b.matrix.defaultRowName},enumerable:!1,configurable:!0}),t.prototype.getCellLocData=function(e,n){var r=this.getCellLocDataFromValue(e,n);return r||this.getCellLocDataFromValue(this.defaultRowValue,n)},t.prototype.getCellLocDataFromValue=function(e,n){return!this.values[e]||!this.values[e][n]?null:this.values[e][n]},t.prototype.getCellText=function(e,n){var r=this.getCellLocCore(e,n);return r?r.calculatedText:null},t.prototype.setCellText=function(e,n,r){var o=this.getCellLocCore(e,n);o&&(o.text=r)},t.prototype.updateValues=function(e,n,r){r?(this.values[e]||(this.values[e]={}),this.values[e][n]=r,this.valuesChanged()):this.values[e]&&this.values[e][n]&&(delete this.values[e][n],Object.keys(this.values[e]).length==0&&delete this.values[e],this.valuesChanged())},t.prototype.getDefaultCellText=function(e){var n=this.getCellLocCore(this.defaultRowValue,e);return n?n.calculatedText:null},t.prototype.setDefaultCellText=function(e,n){this.setCellText(this.defaultRowValue,e,n)},t.prototype.getCellDisplayText=function(e,n){var r=this.getCellDisplayLocText(e,n);return r?r.calculatedText:null},Object.defineProperty(t.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),t.prototype.getCellRowColumnValue=function(e,n){if(e==null)return null;if(typeof e=="number"){if(e<0||e>=n.length)return null;e=n[e].value}return e.value?e.value:e},t.prototype.getJson=function(){if(this.isEmpty)return null;var e=this.values[this.defaultRowValue],n={};for(var r in this.values){var o={},s=this.values[r];for(var a in s)(r===this.defaultRowValue||!e||e[a]!==s[a])&&(o[a]=s[a]);n[r]=o}return n},t.prototype.setJson=function(e,n){var r=this;if(this.values={},e){for(var o in e)if(o!="pos"){var s=e[o];this.values[o]={};for(var a in s)a!="pos"&&(this.values[o][a]=s[a])}}this.locNotification=!0,this.runFuncOnLocs(function(l,u,d){return d.setJson(r.getCellLocData(l,u))}),this.locNotification=!1,this.valuesChanged()},t.prototype.locStrsChanged=function(){this.runFuncOnLocs(function(e,n,r){return r.strChanged()})},t.prototype.runFuncOnLocs=function(e){for(var n in this.locs){var r=this.locs[n];for(var o in r)e(n,o,r[o])}},t.prototype.createString=function(){return new Se(this.cellsOwner,!0)},t}(z),Qr=function(i){qr(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new Se(n),n.cellsValue=new fs(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],function(){n.onColumnsChanged()}),n.registerPropertyChangedHandlers(["rows"],function(){n.runCondition(n.getDataFilteredValues(),n.getDataFilteredProperties()),n.onRowsChanged()}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"cellComponent",{get:function(){return this.getPropertyValue("cellComponent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponent",{set:function(e){this.setPropertyValue("cellComponent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eachRowUnique",{get:function(){return this.getPropertyValue("eachRowUnique")},set:function(e){this.setPropertyValue("eachRowUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){e=e.toLowerCase(),e!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,n){var r=new k(e,n);return this.columns.push(r),r},t.prototype.getItemClass=function(e,n){var r=e.value==n.value,o=this.isReadOnly,s=!r&&!o,a=this.hasCellText,l=this.cssClasses;return new O().append(l.cell,a).append(a?l.cellText:l.label).append(l.itemOnError,!a&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(a?l.cellTextSelected:l.itemChecked,r).append(a?l.cellTextDisabled:l.itemDisabled,this.isDisabledStyle).append(a?l.cellTextReadOnly:l.itemReadOnly,this.isReadOnlyStyle).append(a?l.cellTextPreview:l.itemPreview,this.isPreviewStyle).append(l.itemHover,s&&!a).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,n=0;n<this.rows.length;n++)this.isValueEmpty(this.correctAnswer[this.rows[n].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,n=this.value,r=0;r<this.rows.length;r++){var o=this.rows[r].value;!this.isValueEmpty(n[o])&&this.isTwoValueEquals(this.correctAnswer[o],n[o])&&e++}return e},t.prototype.runCondition=function(e,n){k.runEnabledConditionsForItems(this.rows,void 0,e,n),i.prototype.runCondition.call(this,e,n)},t.prototype.createRowsVisibleIfRunner=function(){return this.rowsVisibleIf?new de(this.rowsVisibleIf):null},t.prototype.onRowsChanged=function(){this.clearGeneratedRows(),i.prototype.onRowsChanged.call(this)},t.prototype.getVisibleRows=function(){if(this.generatedVisibleRows)return this.generatedVisibleRows;var e=new Array,n=this.value;n||(n={});for(var r=this.filteredRows||this.rows,o=0;o<r.length;o++){var s=r[o];if(!this.isValueEmpty(s.value)){var a=this.id+"_"+s.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(s,a,n[s.value]))}}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){if(this.survey&&this.survey.isDesignMode)return e;var n=this.rowsOrder.toLowerCase();return n==="random"?P.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()},t.prototype.isNewValueCorrect=function(e){return P.isValueObject(e,!0)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,n,r){this.cells.setCellText(e,n,r)},t.prototype.getCellText=function(e,n){return this.cells.getCellText(e,n)},t.prototype.setDefaultCellText=function(e,n){this.cells.setDefaultCellText(e,n)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,n){return this.cells.getCellDisplayText(e,n)},t.prototype.getCellDisplayLocText=function(e,n){var r=this.cells.getCellDisplayLocText(e,n);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n||this.hasCssError()){var o={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(r,o),o.noValue&&e.push(new xu(null,this)),o.isNotUnique&&e.push(new Ou(null,this))}},t.prototype.hasValuesInAllRows=function(){var e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue},t.prototype.checkErrorsAllRows=function(e,n,r){var o=this,s=this.generatedVisibleRows;if(s||(s=this.visibleRows),!!s){var a=this.isAllRowRequired||r,l=this.eachRowUnique;if(n.noValue=!1,n.isNotUnique=!1,e&&(this.errorsInRow=void 0),!(!a&&!l)){for(var u={},d=0;d<s.length;d++){var v=s[d].value,V=this.isValueEmpty(v),T=l&&!V&&u[v]===!0;V=V&&a,e&&(V||T)&&this.addErrorIntoRow(s[d]),V||(u[v]=!0),n.noValue=n.noValue||V,n.isNotUnique=n.isNotUnique||T}e&&s.forEach(function(R){R.hasError=o.hasErrorInRow(R)})}}},t.prototype.addErrorIntoRow=function(e){this.errorsInRow||(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0},t.prototype.refreshRowsErrors=function(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,n,r){var o=new cs(e,n,this,r);return this.onMatrixRowCreated(o),o},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(e,n){if(n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,this.isRowChanging||n),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0)){this.isRowChanging=!0;var r=this.value;if(r||(r={}),this.rows.length==0)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var s=this.generatedVisibleRows[o],a=r[s.name];this.isValueEmpty(a)&&(a=null),this.generatedVisibleRows[o].setValueDirectly(a)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,n){var r={};for(var o in n){var s=e?k.getTextOrHtmlByValue(this.rows,o):o;s||(s=o);var a=k.getTextOrHtmlByValue(this.columns,n[o]);a||(a=n[o]),r[s]=a}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map(function(s){var a=n.rows.filter(function(d){return d.value===s})[0],l={name:s,title:a?a.text:"row",value:o[s],displayValue:k.getTextOrHtmlByValue(n.visibleColumns,o[s]),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!1},u=k.getItemByValue(n.visibleColumns,o[s]);return u&&(e.calculations||[]).forEach(function(d){l[d.propertyName]=u[d.propertyName]}),l})}return r},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.rows.length;r++){var o=this.rows[r];o.value&&e.push({name:this.getValueName()+"."+o.value,text:this.processedTitle+"."+o.calculatedText,question:this})}},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=new qt(n);r.choices=this.columns;var o=new fe().toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearIncorrectValues=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),i.prototype.clearIncorrectValues.call(this)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)},t.prototype.clearInvisibleColumnValues=function(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)},t.prototype.clearInvisibleValuesInRows=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)},t.prototype.clearInvisibleValuesInRowsAndColumns=function(e,n,r){if(!this.isEmpty()){for(var o=this.getUnbindValue(this.value),s={},a=this.rows,l=0;l<a.length;l++){var u=a[l].value;o[u]&&(e&&!a[l].isVisible||n&&!this.getVisibleColumnByValue(o[u])?delete o[u]:s[u]=o[u])}r&&(o=s),!this.isTwoValueEquals(o,this.value)&&(this.value=o)}},t.prototype.getVisibleColumnByValue=function(e){var n=k.getItemByValue(this.columns,e);return n&&n.isVisible?n:null},t.prototype.getFirstInputElementId=function(){var e=this.generatedVisibleRows;return e||(e=this.visibleRows),e.length>0&&this.visibleColumns.length>0?this.inputId+"_"+e[0].name+"_0":i.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,!this.hasRows)this.setNewValue(e.value);else{var n=this.value;n||(n={}),n[e.name]=e.value,this.setNewValue(n)}this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var n=0;n<this.columns.length;n++)if(e===this.columns[n].value)return e;for(var n=0;n<this.columns.length;n++)if(this.isTwoValueEquals(e,this.columns[n].value))return this.columns[n].value;return e},t.prototype.hasErrorInRow=function(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(gr);x.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean",{name:"eachRowUnique:boolean",category:"validation"},"hideIfRowsEmpty:boolean",{name:"cellComponent",visible:!1,default:"survey-matrix-cell"}],function(){return new Qr("")},"matrixbase"),J.Instance.registerQuestion("matrix",function(i){var t=new Qr(i);return t.rows=J.DefaultRows,t.columns=J.DefaultColums,t});var ps=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ds=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},hs=function(i){ps(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.updateRemainingCharacterCounter=function(e,n){this.remainingCharacterCounter=P.getRemainingCharacterCounterText(e,n)},ds([h()],t.prototype,"remainingCharacterCounter",void 0),t}(z),Pn=function(i){ps(t,i);function t(e){var n=i.call(this,e)||this;return n.characterCounter=new hs,n}return t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return P.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return i.prototype.isEmpty.call(this)||this.value===""},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.textUpdateMode=="default"?i.prototype.getIsInputTextUpdate.call(this):this.textUpdateMode=="onTyping"},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){var e=this,n=function(){return e.hasPlaceholder()?e.placeHolder:void 0};return this.getPropertyValue("renderedPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){i.prototype.onReadOnlyChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.resetRenderedPlaceholder=function(){this.resetPropertyValue("renderedPlaceholder")},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateRemainingCharacterCounter(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateRemainingCharacterCounter(e)},t.prototype.convertToCorrectValue=function(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e},t.prototype.getValueSeparator=function(){return", "},t.prototype.getControlCssClassBuilder=function(){return new O().append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)},t.prototype.getControlClass=function(){return this.getControlCssClassBuilder().toString()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),ds([h({localizable:!0,onSet:function(e,n){return n.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(ue);x.addClass("textbase",[],function(){return new Pn("")},"question");var vc=function(){function i(t,e,n){var r=this;this.inputMaskInstance=t,this.inputElement=e,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(s,a){if(a.name!=="saveMaskedValue"){var l=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=l}},this.clickHandler=function(s){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&r.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(s){var a=r.createArgs(s),l=r.inputMaskInstance.processInput(a);r.inputElement.value=l.value,r.inputElement.setSelectionRange(l.caretPosition,l.caretPosition),l.cancelPreventDefault||s.preventDefault()},this.changeHandler=function(s){var a=r.inputMaskInstance.processInput({prevValue:"",insertedChars:s.target.value,selectionStart:0,selectionEnd:0});r.inputElement.value=a.value};var o=n;o==null&&(o=""),this.inputElement.value=t.getMaskedValue(o),this.prevUnmaskedValue=o,t.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return i.prototype.createArgs=function(t){var e={insertedChars:t.data,selectionStart:t.target.selectionStart,selectionEnd:t.target.selectionEnd,prevValue:t.target.value,inputDirection:"forward"};return t.inputType==="deleteContentBackward"&&(e.inputDirection="backward",e.selectionStart===e.selectionEnd&&(e.selectionStart=Math.max(e.selectionStart-1,0))),t.inputType==="deleteContentForward"&&e.selectionStart===e.selectionEnd&&(e.selectionEnd+=1),e},i.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler),this.inputElement.addEventListener("change",this.changeHandler))},i.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler),this.inputElement.removeEventListener("change",this.changeHandler))},i.prototype.dispose=function(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},i}(),zr=/[0-9]/;function gs(){var i=x.getChildrenClasses("masksettings")||[],t=i.map(function(e){var n=e.name;return e.name.indexOf("mask")!==-1&&(n=n.slice(0,n.indexOf("mask"))),n});return t.unshift("none"),t}var bc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Vn=function(i){bc(t,i);function t(e){var n=i.call(this,e)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(r){n.isInputTextUpdate&&setTimeout(function(){n.updateValueOnEvent(r)},1),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyUp=function(r){n.updateDateValidationMessage(r),n.isInputTextUpdate?(!n._isWaitingForEnter||r.keyCode===13)&&(n.updateValueOnEvent(r),n._isWaitingForEnter=!1):r.keyCode===13&&n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyDown=function(r){n.onKeyDownPreprocess&&n.onKeyDownPreprocess(r),n.isInputTextUpdate&&(n._isWaitingForEnter=r.keyCode===229),n.onTextKeyDownHandler(r)},n.onChange=function(r){n.updateDateValidationMessage(r);var o=r.target===b.environment.root.activeElement;o?n.isInputTextUpdate&&n.updateValueOnEvent(r):n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new ao(n),n.locDataListValue.onValueChanged=function(r,o){n.propertyValueChanged("dataList",r,o)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){n.setRenderedMinMax()}),n.registerPropertyChangedHandlers(["inputType","size"],function(){n.updateInputSize(),n.resetRenderedPlaceholder()}),n}return t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new vc(this.maskInstance,this.input,this.value))},t.prototype.deleteMaskAdapter=function(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)},t.prototype.updateMaskAdapter=function(){this.deleteMaskAdapter(),this.createMaskAdapter()},t.prototype.onSetMaskType=function(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()},Object.defineProperty(t.prototype,"maskTypeIsEmpty",{get:function(){switch(this.inputType){case"tel":case"text":return this.maskType==="none";default:return!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){e&&(this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter())},enumerable:!1,configurable:!0}),t.prototype.setNewMaskSettingsProperty=function(){this.setPropertyValue("maskSettings",this.createMaskSettings())},t.prototype.createMaskSettings=function(){var e=!this.maskType||this.maskType==="none"?"masksettings":this.maskType+"mask";x.findClass(e)||(e="masksettings");var n=x.createClass(e);return n.owner=this.survey,n},t.prototype.isTextValue=function(){return this.isDateInputType||["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),(e==="datetime_local"||e==="datetime")&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return this.isTextInput?i.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(e,n)},t.prototype.getDisplayValueCore=function(e,n){return!this.maskTypeIsEmpty&&!P.isValueEmpty(n)?this.maskInstance.getMaskedValue(n):i.prototype.getDisplayValueCore.call(this,e,n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return Le(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskInstance",{get:function(){return this.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputValue",{get:function(){return!this._inputValue&&!this.maskTypeIsEmpty?this.maskInstance.getMaskedValue(""):this._inputValue},set:function(e){var n=e;this._inputValue=e,this.maskTypeIsEmpty||(n=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(n),n&&this.maskSettings.saveMaskedValue&&(n=this.maskInstance.getMaskedValue(n))),this.value=n},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.updateInputValue()},t.prototype.updateInputValue=function(){this.maskTypeIsEmpty?this._inputValue=this.value:this.maskSettings.saveMaskedValue?this._inputValue=this.value?this.value:this.maskInstance.getMaskedValue(""):this._inputValue=this.maskInstance.getMaskedValue(this.value)},t.prototype.hasToConvertToUTC=function(e){return b.storeUtcDates&&this.isDateTimeLocaleType()&&!!e},t.prototype.createDate=function(e){return Z("question-text",e)},t.prototype.valueForSurveyCore=function(e){return this.hasToConvertToUTC(e)&&(e=this.createDate(e).toISOString()),i.prototype.valueForSurveyCore.call(this,e)},t.prototype.valueFromDataCore=function(e){if(this.hasToConvertToUTC(e)){var n=this.createDate(e),r=this.createDate(n.getTime()-n.getTimezoneOffset()*60*1e3),o=r.toISOString();e=o.substring(0,o.length-2)}return i.prototype.valueFromDataCore.call(this,e)},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!n){if(this.isValueLessMin){var s=new we(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);s.onUpdateErrorTextCallback=function(v){v.text=o.getMinMaxErrorText(o.minErrorText,o.getCalculatedMinMax(o.renderedMin))},e.push(s)}if(this.isValueGreaterMax){var a=new we(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);a.onUpdateErrorTextCallback=function(v){v.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},e.push(a)}this.dateValidationMessage&&e.push(new we(this.dateValidationMessage,this));var l=this.getValidatorTitle(),u=new ur;if(u.errorOwner=this,this.inputType==="email"&&!this.validators.some(function(v){return v.getType()==="emailvalidator"})){var d=u.validate(this.value,l);d&&d.error&&e.push(d.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions();return P.convertValToQuestionVal(e,n)},t.prototype.getMinMaxErrorText=function(e,n){if(P.isValueEmpty(n))return e;var r=n.toString();return this.inputType==="date"&&n.toDateString&&(r=n.toDateString()),e.replace("{0}",r)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return this.inputType==="date"||this.isDateTimeLocaleType()},enumerable:!1,configurable:!0}),t.prototype.isDateTimeLocaleType=function(){return this.inputType==="datetime-local"},t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e},t.prototype.setRenderedMinMax=function(e,n){var r=this;e===void 0&&(e=null),n===void 0&&(n=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(o){!o&&r.isDateInputType&&b.minDate&&(o=b.minDate),r.setPropertyValue("renderedMin",o)},e,n),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(o){!o&&r.isDateInputType&&(o=b.maxDate?b.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",o)},e,n)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?this.inputType!=="number"?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.maskTypeIsEmpty?i.prototype.getIsInputTextUpdate.call(this):!1},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&!this.isDateInputType},t.prototype.supportGoNextPageError=function(){return!this.isDateInputType},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.setNewValue=function(e){e=this.correctValueType(e),e&&(this.dateValidationMessage=void 0),i.prototype.setNewValue.call(this,e)},t.prototype.correctValueType=function(e){if(!e)return e;if(this.inputType==="number"||this.inputType==="range")return P.isNumber(e)?P.getNumber(e):"";if(this.inputType==="month"){var n=this.createDate(e),r=n.toISOString().indexOf(e)==0&&e.indexOf("T")==-1,o=r?n.getUTCMonth():n.getMonth(),s=r?n.getUTCFullYear():n.getFullYear(),a=o+1;return s+"-"+(a<10?"0":"")+a}return e},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&this.inputType!=="range"},t.prototype.getControlCssClassBuilder=function(){var e=this.getMaxLength();return i.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!e).append(this.cssClasses.characterCounterBig,e>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&b.readOnly.textRenderMode==="div"},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e},enumerable:!1,configurable:!0}),t.prototype.updateTextAlign=function(e){this.inputTextAlignment!=="auto"?e.textAlign=this.inputTextAlignment:!this.maskTypeIsEmpty&&this.maskSettings.getTextAlignment()!=="auto"&&(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var n=e.target.value;this.isTwoValueEquals(this.value,n)||(this.inputValue=n)},t.prototype.updateDateValidationMessage=function(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0},t.prototype.onBlurCore=function(e){this.updateDateValidationMessage(e),this.updateValueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.updateRemainingCharacterCounter(e.target.value),i.prototype.onFocusCore.call(this,e)},t.prototype.afterRenderQuestionElement=function(e){e&&(this.input=e instanceof HTMLInputElement?e:e.querySelector("input"),this.createMaskAdapter()),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter(),this.input=void 0},Hr([h({onSet:function(e,n){n.onSetMaskType(e)}})],t.prototype,"maskType",void 0),Hr([h()],t.prototype,"inputTextAlignment",void 0),Hr([h()],t.prototype,"_inputValue",void 0),t}(Pn),Cc=["number","range","date","datetime-local","month","time","week"];function Le(i){var t=i?i.inputType:"";return t?Cc.indexOf(t)>-1:!1}function ys(i,t){var e=i.split(t);return e.length!==2||!P.isNumber(e[0])||!P.isNumber(e[1])?-1:parseFloat(e[0])*60+parseFloat(e[1])}function Pc(i,t,e){var n=ys(i,e),r=ys(t,e);return n<0||r<0?!1:n>r}function ms(i,t,e,n){var r=n?e:t;if(!Le(i)||P.isValueEmpty(t)||P.isValueEmpty(e))return r;if(i.inputType.indexOf("date")===0||i.inputType==="month"){var o=i.inputType==="month",s="question-text-minmax",a=Z(s,o?t+"-01":t),l=Z(s,o?e+"-01":e);if(!a||!l)return r;if(a>l)return n?t:e}if(i.inputType==="week"||i.inputType==="time"){var u=i.inputType==="week"?"-W":":";return Pc(t,e,u)?n?t:e:r}if(i.inputType==="number"){if(!P.isNumber(t)||!P.isNumber(e))return r;if(P.getNumber(t)>P.getNumber(e))return n?t:e}return typeof t=="string"||typeof e=="string"?r:t>e?n?t:e:r}function vs(i,t){i&&i.inputType&&(t.inputType=i.inputType!=="range"?i.inputType:"number",t.textUpdateMode="onBlur")}x.addClass("text",[{name:"inputType",default:"text",choices:b.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"autocomplete",alternativeName:"autoComplete",choices:b.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(i){return Le(i)},onPropertyEditorUpdate:function(i,t){vs(i,t)},onSettingValue:function(i,t){return ms(i,t,i.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(i){return Le(i)},onSettingValue:function(i,t){return ms(i,i.min,t,!0)},onPropertyEditorUpdate:function(i,t){vs(i,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},choices:function(i){var t=gs();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:["inputType","maskType"],visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="number"||i.inputType==="range":!1}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="text":!1}}],function(){return new Vn("")},"textbase"),J.Instance.registerQuestion("text",function(i){return new Vn(i)});var Ct=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ur=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},bs=function(i){Ct(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(Vn),Wr=function(i){Ct(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(e),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r.editor.onPropertyChanged.add(function(o,s){r.onPropertyChanged.fire(r,s)}),r}return t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new bs(e)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.editor.addUsedLocales(e)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return P.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.editor.defaultValueExpression},set:function(e){this.editor.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.editor.minValueExpression},set:function(e){this.editor.minValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.editor.maxValueExpression},set:function(e){this.editor.maxValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"maskType",{get:function(){return this.editor.maskType},set:function(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){this.setPropertyValue("maskSettings",e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputTextAlignment",{get:function(){return this.editor.inputTextAlignment},set:function(e){this.editor.inputTextAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){this.data!=null&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,n){this.data&&this.data.setMultipleTextValue(e,n)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,n){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,n){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var n=this.getSurvey();return n?n.getQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(z),wn=function(i){Ct(t,i);function t(e){var n=i.call(this,e)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",function(r){r.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,r)}),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],function(){n.calcVisibleRows()}),n.registerPropertyChangedHandlers(["itemSize"],function(){n.updateItemsSize()}),n}return t.addDefaultItems=function(e){for(var n=J.DefaultMutlipleTextItems,r=0;r<n.length;r++)e.addItem(n[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var n;(n=this.items)===null||n===void 0||n.map(function(r,o){return r.editor.id=e+"_"+o}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),i.prototype.onSurveyLoad.call(this),P.isValueEmpty(this.rows)||this.calcVisibleRows()},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.performForEveryEditor(function(r){r.editor.updateValueFromSurvey(r.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.performForEveryEditor(function(n){n.editor.onSurveyValueChanged(n.value)})},t.prototype.updateItemsSize=function(){this.performForEveryEditor(function(e){e.editor.updateInputSize()})},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor(function(e){e.editor.onSurveyLoad()})},t.prototype.performForEveryEditor=function(e){for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&e(r)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,n){n===void 0&&(n=null);var r=this.createTextItem(e,n);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var n=0;n<this.items.length;n++)if(this.items[n].name==e)return this.items[n];return null},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return n=i.prototype.getElementsInDesign.call(this,e),n.concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.items.length;r++){var o=this.items[r];e.push({name:this.getValueName()+"."+o.name,text:this.processedTitle+"."+o.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,n){this.items.forEach(function(r){return r.editor.collectNestedQuestions(e,n)})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=this.getItemByName(n);if(!r)return null;var o=new fe().toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].localeChanged()},Object.defineProperty(t.prototype,"itemErrorLocation",{get:function(){return this.getPropertyValue("itemErrorLocation")},set:function(e){this.setPropertyValue("itemErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return this.itemErrorLocation!=="default"?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return this.getQuestionErrorLocation()=="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return this.getQuestionErrorLocation()=="bottom"},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return P.isValueObject(e,!0)},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTitleWidth",{get:function(){return this.getPropertyValue("itemTitleWidth")||""},set:function(e){this.setPropertyValue("itemTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.onRowCreated=function(e){return e},t.prototype.calcVisibleRows=function(){for(var e=this.colCount,n=this.items,r=0,o,s,a=[],l=0;l<n.length;l++)r==0&&(o=this.onRowCreated(new $r),s=this.onRowCreated(new Cs),this.showItemErrorOnTop?(a.push(s),a.push(o)):(a.push(o),a.push(s))),o.cells.push(new Jr(n[l],this)),s.cells.push(new Ps(n[l],this)),r++,(r>=e||l==n.length-1)&&(r=0,s.onAfterCreated());this.rows=a},t.prototype.getRows=function(){return P.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,n){return new Wr(e,n)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var n=null;this.value&&this.items[e].name in this.value&&(n=this.value[this.items[e].name]),this.items[e].onValueChanged(n)}},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.items.forEach(function(r){return r.editor.runCondition(e,n)})},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.items.length;e++)if(this.items[e].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=null);for(var o=!1,s=0;s<this.items.length;s++)this.items[s].editor.onCompletedAsyncValidators=function(a){r.raiseOnCompletedAsyncValidators()},!(n&&n.isOnValueChanged===!0&&this.items[s].editor.isEmpty())&&(o=this.items[s].editor.hasErrors(e,n)||o);return i.prototype.hasErrors.call(this,e)||o},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(e=e.concat(r))}return e},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.items.length;e++)this.items[e].editor.clearErrors()},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=0;e<this.items.length;e++){var n=this.items[e].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],n=0;n<this.items.length;n++)e.push(this.items[n].editor);return le.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;for(var r={},o=0;o<this.items.length;o++){var s=this.items[o],a=n[s.name];if(!P.isValueEmpty(a)){var l=s.name;e&&s.title&&(l=s.title),r[l]=s.editor.getDisplayValue(e,a)}}return r},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,n){this.isMultipleItemValueChanging=!0,this.isValueEmpty(n)&&(n=void 0);var r=this.value;r||(r={}),r[e]=n,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getItemLabelCss=function(e){return new O().append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasses.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()},t.prototype.getItemCss=function(){return new O().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new O().append(this.cssClasses.itemTitle).toString()},Ur([ae()],t.prototype,"rows",void 0),t}(ue),$r=function(i){Ct(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isVisible=!0,e.cells=[],e}return Ur([h()],t.prototype,"isVisible",void 0),Ur([ae()],t.prototype,"cells",void 0),t}(z),Cs=function(i){Ct(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onAfterCreated=function(){var e=this,n=function(){e.isVisible=e.cells.some(function(r){var o,s;return((o=r.item)===null||o===void 0?void 0:o.editor)&&((s=r.item)===null||s===void 0?void 0:s.editor.hasVisibleErrors)})};this.cells.forEach(function(r){var o,s;!((o=r.item)===null||o===void 0)&&o.editor&&((s=r.item)===null||s===void 0||s.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n))}),n()},t}($r),Jr=function(){function i(t,e){this.item=t,this.question=e,this.isErrorsCell=!1}return i.prototype.getClassName=function(){return new O().append(this.question.cssClasses.cell).toString()},Object.defineProperty(i.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),i}(),Ps=function(i){Ct(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isErrorsCell=!0,e}return t.prototype.getClassName=function(){return new O().append(i.prototype.getClassName.call(this)).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()},t}(Jr);x.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:b.questions.inputTypes},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},choices:function(i){var t=gs();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"defaultValueExpression:expression",visible:!1},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new Wr("")}),x.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem",isArray:!0},{name:"itemSize:number",minValue:0,visible:!1},{name:"colCount:number",default:1,choices:[1,2,3,4,5]},{name:"itemErrorLocation",default:"default",choices:["default","top","bottom"],visible:!1},{name:"itemTitleWidth",category:"layout"}],function(){return new wn("")},"question"),J.Instance.registerQuestion("multipletext",function(i){var t=new wn(i);return wn.addDefaultItems(t),t});var Vc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vs=function(i){Vc(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],function(){n.onContentChanged()}),n}return t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e="";this.onCustomHtmlProducing?e=this.onCustomHtmlProducing():e=this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],n=/{(.*?(element:)[^$].*?)}/g,r=this.content,o=0,s=null;(s=n.exec(r))!==null;){s.index>o&&(e.push(r.substring(o,s.index)),o=s.index);var a=this.getQuestionFromText(s[0]);a?e.push(this.getHtmlForQuestion(a)):e.push(r.substring(o,s.index+s[0].length)),o=s.index+s[0].length}return o<r.length&&e.push(r.substring(o,r.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substring(1,e.length-1),e=e.replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(e,n){i.prototype.onAddElement.call(this,e,n),this.addElementToContent(e),e.renderWidth=""},t.prototype.onRemoveElement=function(e){var n=this.getElementContentText(e);this.content=this.content.replace(n,""),i.prototype.onRemoveElement.call(this,e)},t.prototype.dragDropMoveElement=function(e,n,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var n=this.getElementContentText(e);this.insertTextAtCursor(n)||(this.content=this.content+n)}},t.prototype.insertTextAtCursor=function(e,n){if(n===void 0&&(n=null),!this.isDesignMode||!E.isAvailable())return!1;var r=E.getSelection();if(r.getRangeAt&&r.rangeCount){var o=r.getRangeAt(0);o.deleteContents();var s=new Text(e);o.insertNode(s);var a=this;if(a.getContent){var l=a.getContent(n);this.content=l}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(Bt);x.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new Vs},"panel");var wc=function(){function i(){}return i.getIconCss=function(t,e){return new O().append(t.icon).append(t.iconExpanded,!e).toString()},i}(),xc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xn=function(i){xc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){return!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,n){},t.prototype.getConditionJson=function(e,n){return null},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(ue);x.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],function(){return new xn("")},"question");var Oc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ws=function(i){Oc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"empty"},t}(ue);x.addClass("empty",[],function(){return new ws("")},"question");var Sc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qt=function(i){Sc(t,i);function t(e){var n=i.call(this,e)||this;return n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new k(""),n.selectAllItemValue.id="selectall",n.selectAllItemText=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText"),n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(n.selectAllItemText),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){n.onVisibleChoicesChanged()}),n}return t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){i.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&n<r.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){return this.allElementsSelected()},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.allElementsSelected=function(){for(var e=this.getNoneItems(),n=0;n<e.length;n++)if(this.isItemSelected(e[n]))return!1;var r=this.getVisibleEnableItems();if(r.length===0)return!1;var o=this.value;if(!o||!Array.isArray(o)||o.length===0||o.length<r.length)return!1;for(var s=[],n=0;n<o.length;n++)s.push(this.getRealValue(o[n]));for(var n=0;n<r.length;n++)if(s.indexOf(r[n].value)<0)return!1;return!0},t.prototype.selectAll=function(){for(var e=[],n=this.getVisibleEnableItems(),r=0;r<n.length;r++)e.push(n[r].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,n){if(!this.isReadOnlyAttr)if(e===this.selectAllItem)n===!0||n===!1?this.isAllSelected=n:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=n?[e.value]:[];else{var r=[].concat(this.renderedValue||[]),o=r.indexOf(e.value);n?o<0&&r.push(e.value):o>-1&&r.splice(o,1),this.renderedValue=r}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var n=this.renderedValue;if(!n||!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(this.isTwoValueEquals(n[r],e.value))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1);var s=this.valuePropertyName;return s&&typeof e=="object"&&e[s]!==void 0&&(e=e[s]),i.prototype.hasUnknownValueItem.call(this,e,n,r,o)},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this;if(this.valuePropertyName&&Array.isArray(e)&&e.length>0){var r=[];e.forEach(function(o){var s=typeof o=="object",a=s?o:{};s||(a[n.valuePropertyName]=o),r.push(a)}),e=r}return i.prototype.convertDefaultValue.call(this,e)},t.prototype.getRealValue=function(e){return e&&(this.valuePropertyName?e[this.valuePropertyName]:e)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.renderedValue,n=this.visibleChoices,r=this.selectedItemValues;if(this.isEmpty())return[];var o=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,n):n,s=e.map(function(l){return k.getItemByValue(o,l)}).filter(function(l){return!!l});!s.length&&!r&&this.updateSelectedItemValues();var a=this.validateItemValues(s);return a},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!!this.valuePropertyName},enumerable:!1,configurable:!0}),t.prototype.getFilteredName=function(){var e=i.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(e+="-unwrapped"),e},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:i.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var n=this;if(e.length)return e;var r=this.selectedItemValues;if(r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=this.renderedValue;return o.map(function(s){return n.createItemValue(s)})},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var o=new we(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);e.push(o)}},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return this.shouldCheckMaxSelectedChoices()?this.isItemSelected(e):!0},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.updateSelectAllItemProps(),this.maxSelectedChoices<1){this.otherItem.setIsEnabled(!0);return}this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.updateSelectAllItemProps=function(){this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())},t.prototype.getSelectAllEnabled=function(){if(!this.hasSelectAll)return!0;this.activeChoices;var e=this.getVisibleEnableItems().length,n=this.maxSelectedChoices;return n>0&&n<e?!1:e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,n=this.activeChoices,r=0;r<n.length;r++){var o=n[r];o.isEnabled&&o.isVisible&&e.push(o)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.minSelectedChoices},t.prototype.getItemClassCore=function(e,n){return this.value,n.isSelectAllItem=e===this.selectAllItem,new O().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){i.prototype.setDefaultValue.call(this);var e=this.defaultValue;if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=this.getRealValue(e[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return i.prototype.hasValueToClearIncorrectValues.call(this)||!P.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(e){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),e=this.valueFromData(e);var n=this.value;e||(e=[]),n||(n=[]),!this.isTwoValueEquals(n,e)&&(this.removeNoneItemsValues(n,e),i.prototype.setNewValue.call(this,e))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var n=this.getFirstUnknownIndex(e);return n<0?"":e[n]},t.prototype.getStoreOthersAsComment=function(){return this.valuePropertyName?!1:i.prototype.getStoreOthersAsComment.call(this)},t.prototype.setOtherValueIntoValue=function(e){var n=this.getFirstUnknownIndex(e);if(n<0)return e;var r=this.otherItem.value,o=this.valuePropertyName;if(o){var s={};s[o]=r,r=s}return e.splice(n,1,r),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(this.hasUnknownValueItem(e[n],!1,!1))return n;return-1},t.prototype.removeNoneItemsValues=function(e,n){var r=[];if(this.showNoneItem&&r.push(this.noneItem.value),this.showRefuseItem&&r.push(this.refuseItem.value),this.showDontKnowItem&&r.push(this.dontKnowItem.value),r.length>0){var o=this.noneIndexInArray(e,r),s=this.noneIndexInArray(n,r);if(o.index>-1)if(o.val===s.val)n.length>0&&n.splice(s.index,1);else{var a=this.noneIndexInArray(n,[o.val]);a.index>-1&&a.index<n.length-1&&n.splice(a.index,1)}else if(s.index>-1&&n.length>1){var l=this.convertValueToObject([s.val])[0];n.splice(0,n.length,l)}}},t.prototype.noneIndexInArray=function(e,n){if(!Array.isArray(e))return{index:-1,val:void 0};for(var r=e.length-1;r>=0;r--){var o=n.indexOf(this.getRealValue(e[r]));if(o>-1)return{index:r,val:n[o]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&i.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(e,n){i.prototype.addNonChoicesItems.call(this,e,n),this.supportSelectAll()&&this.addNonChoiceItem(e,this.selectAllItem,n,this.hasSelectAll,b.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(e){return e===this.selectAllItem||i.prototype.isBuiltInChoice.call(this,e)},t.prototype.isItemInList=function(e){return e==this.selectAllItem?this.hasSelectAll:i.prototype.isItemInList.call(this,e)},t.prototype.getDisplayValueEmpty=function(){var e=this;return k.getTextOrHtmlByValue(this.visibleChoices.filter(function(n){return n!=e.selectAllItemValue}),void 0)},t.prototype.getDisplayValueCore=function(e,n){if(!Array.isArray(n))return i.prototype.getDisplayValueCore.call(this,e,n);var r=this.valuePropertyName,o=function(s){var a=n[s];return r&&a[r]&&(a=a[r]),a};return this.getDisplayArrayValue(e,n,o)},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var n=this.value,r=!1,o=this.restoreValuesFromInvisible();if(!(!n&&o.length==0)){if(!Array.isArray(n)||n.length==0){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,o.length==0)return;n=[]}for(var s=[],a=0;a<n.length;a++){var l=this.getRealValue(n[a]),u=this.canClearValueAnUnknown(l);!e&&!u||e&&!this.isValueDisabled(l)?s.push(n[a]):(r=!0,u&&this.addIntoInvisibleOldValues(n[a]))}for(var a=0;a<o.length;a++)s.push(o[a]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,s.length==0?this.clearValue(!0):this.value=s,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++){var o=n[r];if(o!==this.selectAllItem){var s=n[r].value;P.isTwoValueEquals(s,this.invisibleOldValues[s])&&(this.isItemSelected(o)||e.push(s),delete this.invisibleOldValues[s])}}return e},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return(e=="contains"||e=="notcontains")&&(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return P.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,n){return!e||!Array.isArray(e)?!1:e.indexOf(n.value)>=0},t.prototype.valueFromData=function(e){if(!e)return e;if(!Array.isArray(e))return[i.prototype.valueFromData.call(this,e)];for(var n=[],r=0;r<e.length;r++){var o=k.getItemByValue(this.activeChoices,e[r]);o?n.push(o.value):n.push(e[r])}return n},t.prototype.rendredValueFromData=function(e){return e=this.convertValueFromObject(e),i.prototype.rendredValueFromData.call(this,e)},t.prototype.rendredValueToData=function(e){return e=i.prototype.rendredValueToData.call(this,e),this.convertValueToObject(e)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?P.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var n=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(n=this.data.getValue(this.getValueName())),P.convertArrayValueToObject(e,this.valuePropertyName,n)},t.prototype.renderedValueFromDataCore=function(e){if((!e||!Array.isArray(e))&&(e=[]),!this.hasActiveChoices)return e;for(var n=0;n<e.length;n++){if(e[n]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[n],!0,!1)){this.otherValue=e[n];var r=e.slice();return r[n]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var n=0;n<e.length;n++)if(e[n]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[n]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var n=[],r=this.renderedValue;if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]!==this.otherItem.value&&n.push(r[o]);e&&n.push(this.otherItem.value),this.value=n},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(kt);x.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.minSelectedChoices;return e>0&&t<e?e:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.maxSelectedChoices;return e>0&&t>e?e:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(i){return i.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new Qt("")},"checkboxbase"),J.Instance.registerQuestion("checkbox",function(i){var t=new Qt(i);return t.choices=J.DefaultChoices,t});var Tc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},xs=function(i){Tc(t,i);function t(e){var n=i.call(this,e)||this;return n.onItemClick=function(r){n.isItemDisabled(r)||(n.isExpanded=!1,n.isItemSelected(r)?(n.selectedItems.splice(n.selectedItems.indexOf(r),1)[0],n.onSelectionChanged&&n.onSelectionChanged(r,"removed")):(n.selectedItems.push(r),n.onSelectionChanged&&n.onSelectionChanged(r,"added")))},n.isItemDisabled=function(r){return r.enabled!==void 0&&!r.enabled},n.isItemSelected=function(r){return!!n.allowSelection&&n.selectedItems.filter(function(o){return n.areSameItems(o,r)}).length>0},n.setSelectedItems(e.selectedItems||[]),n}return t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(n){var r=e.isItemSelected(n);n.visible=e.hideSelectedItems?!r:!0})},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){i.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},Rc([h()],t.prototype,"hideSelectedItems",void 0),t}(Rt),Ec=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),On=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Os=function(i){Ec(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.setHideSelectedItems(e.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=e.closeOnSelect,r}return t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){var e=this.getSelectedActions();e.length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter(function(e){return e.selected})},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&ne&&!this.isValueEmpty(this.question.value)?this.itemSelector:i.prototype.getFocusFirstInputSelector.call(this)},t.prototype.getPopupCssClasses=function(){return"sv-multi-select-list"},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(a,l){e.resetFilterString(),a.id==="selectall"?e.selectAllItems():l==="added"&&a.value===b.noneItemValue?e.selectNoneItem():l==="added"?e.selectItem(a.value):l==="removed"&&e.deselectItem(a.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new xs(o);return this.setOnTextSearchCallbackForListModel(s),s.forceShowFilter=!0,s},t.prototype.resetFilterString=function(){i.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return ne&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var e=this;i.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add(function(n,r){e.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:e.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){e.popupModel.isVisible=!1},enabled:new te(function(){return!e.isTwoValueEquals(e.question.renderedValue,e.previousValue)})})}),this.popupModel.onVisibilityChanged.add(function(n,r){e.shouldResetAfterCancel&&r.isVisible&&(e.previousValue=[].concat(e.question.renderedValue||[]))}),this.popupModel.onCancel=function(){e.shouldResetAfterCancel&&(e.question.renderedValue=e.previousValue,e.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[b.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.push(e),this.question.renderedValue=n,this.updateListState()},t.prototype.deselectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.splice(n.indexOf(e),1),this.question.renderedValue=n,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){i.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(e){i.prototype.onClear.call(this,e),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){e.keyCode===8&&!this.filterString&&(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;!((e=this.listModel.focusedItem)===null||e===void 0)&&e.selected?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(e,n){i.prototype.onPropertyChangedHandler.call(this,e,n),(n.name==="value"||n.name==="renderedValue"||n.name==="placeholder")&&this.syncFilterStringPlaceholder()},On([h({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),On([h({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),On([h()],t.prototype,"previousValue",void 0),On([h({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(Cn),Ic=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Je=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Gr=function(i){Ic(t,i);function t(e){var n=i.call(this,e)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.deselectAllItemText=n.createLocalizableString("deselectAllText",n.selectAllItem,!0,"deselectAllItemText"),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.locStrsChanged=function(){var e;i.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),(e=this.dropdownListModelValue)===null||e===void 0||e.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue||(this.dropdownListModelValue=new Os(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new O().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(e,n,r,o){return n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.validateItemValues=function(e){var n=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var o=this.selectedItemValues;if(!e.length&&o&&o.length)return this.defaultSelectedItemValues=[].concat(o),o;var s=e.map(function(a){return a.value});return r.filter(function(a){return s.indexOf(a)===-1}).forEach(function(a){var l=n.getItemIfChoicesNotContainThisValue(a,n.itemDisplayNameMap[a]);l&&e.push(l)}),e.sort(function(a,l){return r.indexOf(a.value)-r.indexOf(l.value)}),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,n=function(r){e.itemDisplayNameMap[r.value]=r.text};(this.defaultSelectedItemValues||[]).forEach(n),(this.selectedItemValues||[]).forEach(n),this.visibleChoices.forEach(n)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.allElementsSelected=function(){var e=i.prototype.allElementsSelected.call(this);return this.updateSelectAllItemText(e),e},t.prototype.updateSelectAllItemText=function(e){this.selectAllItem.setLocText(e?this.deselectAllItemText:this.selectAllItemText)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||b.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Je([h()],t.prototype,"searchMode",void 0),Je([h()],t.prototype,"allowClear",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Je([h()],t.prototype,"choicesLazyLoadPageSize",void 0),Je([h({getDefaultValue:function(){return b.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),Je([h()],t.prototype,"textWrapEnabled",void 0),t}(Qt);x.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"textWrapEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""},{name:"searchMode",default:"contains",choices:["contains","startsWith"]}],function(){return new Gr("")},"checkbox"),J.Instance.registerQuestion("tagbox",function(i){var t=new Gr(i);return t.choices=J.DefaultChoices,t});var Ac=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ss=function(i){Ac(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.doDragOver=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="grabbing"}},e.doBanDropHere=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="not-allowed"}},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){if(this.parentElement.getType()==="imagepicker")return this.createImagePickerShortcut(this.draggedElement,e,n,r);var o=I.createElement("div");if(o){o.className="sv-drag-drop-choices-shortcut";var s=!0,a=n.closest("[data-sv-drop-target-item-value]").cloneNode(s);a.classList.add("sv-drag-drop-choices-shortcut__content");var l=a.querySelector(".svc-item-value-controls__drag-icon");l.style.visibility="visible";var u=a.querySelector(".svc-item-value-controls__remove");u.style.backgroundColor="transparent",a.classList.remove("svc-item-value--moveup"),a.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(a);var d=n.getBoundingClientRect();return o.shortcutXOffset=r.clientX-d.x,o.shortcutYOffset=r.clientY-d.y,this.isBottom=null,typeof this.onShortcutCreated=="function"&&this.onShortcutCreated(o),o}},t.prototype.createImagePickerShortcut=function(e,n,r,o){var s=I.createElement("div");if(s){s.style.cssText=` 
+      cursor: grabbing;
+      position: absolute;
+      z-index: 10000;
+      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));
+      background-color: var(--sjs-general-backcolor, var(--background, #fff));
+      padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
+      border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
+    `;var a=r.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=a.querySelector(".svc-image-item-value-controls");var l=a.querySelector(".sd-imagepicker__image-container"),u=a.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),l.style.width=u.width+"px",l.style.height=u.height+"px",u.style.objectFit="cover",u.style.borderRadius="4px",s.appendChild(u),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n;return n=this.parentElement.choices.filter(function(r){return""+r.value==e})[0],n},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return e.getType()==="ranking"?e.selectToRankEnabled?e.visibleChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,n){var r=this.getVisibleChoices();if(this.parentElement.getType()!=="imagepicker"){var o=r.indexOf(this.dropTarget),s=r.indexOf(this.draggedElement);if(s>o&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(s<o&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return r.indexOf(e)!==-1},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.calculateIsBottom=function(e,n){var r=n.getBoundingClientRect();return e>=r.y+r.height/2},t.prototype.afterDragOver=function(e){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o<r&&this.isBottom===!0)n.splice(o,1),n.splice(r,0,this.draggedElement);else if(o>r&&this.isBottom===!1)n.splice(r,1),n.splice(o,0,this.dropTarget);else return;this.parentElement.getType()!=="imagepicker"&&(o!==r&&(e.classList.remove("svc-item-value--moveup"),e.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),i.prototype.ghostPositionChanged.call(this))},t.prototype.doDrop=function(){var e=this.parentElement.choices,n=this.getVisibleChoices().filter(function(s){return e.indexOf(s)!==-1}),r=e.indexOf(this.draggedElement),o=n.indexOf(this.draggedElement);return e.splice(r,1),e.splice(o,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="flex",this.imagepickerControlsNode=null),i.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){e.getType()==="ranking"?e.updateRankingChoices():e.updateVisibleChoices()},t}(Sr),Dc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ts=function(i){Dc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isDragOverRootNode=!1,e.doDragOver=function(){var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="grabbing"},e.reorderRankedItem=function(n,r,o){if(r!=o){var s=n.rankingChoices,a=s[r];n.isValueSetByUser=!0,s.splice(r,1),s.splice(o,0,a),e.updateDraggedElementShortcut(o+1)}},e.doBanDropHere=function(){if(e.isDragOverRootNode){e.allowDropHere=!0;return}var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="not-allowed"},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=I.createElement("div");if(o){o.className=this.shortcutClass+" sv-ranking-shortcut";var s=!0,a=n.cloneNode(s);o.appendChild(a);var l=n.getBoundingClientRect();o.style.left=l.x,o.style.top=l.y,this.domAdapter.rootElement.append(o);var u=o.offsetHeight,d=r.clientY;return d>l.y+u&&(d=l.y+u-10),o.shortcutXOffset=r.clientX-l.x,o.shortcutYOffset=d-l.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px"),o}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new O().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,gn).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(e){return this.isDragOverRootNode=this.getIsDragOverRootNode(e),i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getIsDragOverRootNode=function(e){return typeof e.className=="string"&&e.className.indexOf("sv-ranking")!==-1},t.prototype.isDropTargetValid=function(e,n){var r=this.parentElement.rankingChoices;return r.indexOf(e)!==-1},t.prototype.calculateIsBottom=function(e,n){return this.dropTarget instanceof k&&this.draggedElement!==this.dropTarget?i.prototype.calculateIsBottom.call(this,e,n):!1},t.prototype.getIndices=function(e,n,r){var o=n.indexOf(this.draggedElement),s=r.indexOf(this.dropTarget);if(o<0&&this.draggedElement&&(this.draggedElement=k.getItemByValue(n,this.draggedElement.value)||this.draggedElement,o=n.indexOf(this.draggedElement)),s===-1){var a=e.value.length;s=a}else n==r?(!this.isBottom&&o<s&&s--,this.isBottom&&o>s&&s++):n!=r&&this.isBottom&&s++;return{fromIndex:o,toIndex:s}},t.prototype.afterDragOver=function(e){var n=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),r=n.fromIndex,o=n.toIndex;this.reorderRankedItem(this.parentElement,r,o)},t.prototype.updateDraggedElementShortcut=function(e){var n;if(!((n=this.domAdapter)===null||n===void 0)&&n.draggedElementShortcut){var r=e!==null?e+"":"",o=this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index");o.innerText=r}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,i.prototype.ghostPositionChanged.call(this)},t.prototype.doDrop=function(){return this.parentElement.setValue(),this.parentElement},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),i.prototype.clear.call(this)},t}(Ss),Lc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rs=function(i){Lc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.selectToRank=function(n,r,o){var s=[].concat(n.rankingChoices),a=n.unRankingChoices,l=a[r];s.splice(o,0,l),e.updateChoices(n,s)},e.unselectFromRank=function(n,r,o){var s=[].concat(n.rankingChoices);s.splice(r,1),e.updateChoices(n,s)},e}return t.prototype.findDropTargetNodeByDragOverNode=function(e){if(e.dataset.ranking==="from-container"||e.dataset.ranking==="to-container")return e;var n=e.closest("[data-ranking='to-container']"),r=e.closest("[data-ranking='from-container']");return this.parentElement.unRankingChoices.length===0&&r?r:this.parentElement.rankingChoices.length===0&&n?n:i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(e,n){return e.dataset.ranking==="to-container"?"to-container":e.dataset.ranking==="from-container"||e.closest("[data-ranking='from-container']")?"from-container":i.prototype.getDropTargetByNode.call(this,e,n)},t.prototype.isDropTargetValid=function(e,n){return e==="to-container"||e==="from-container"?!0:i.prototype.isDropTargetValid.call(this,e,n)},t.prototype.afterDragOver=function(e){var n=this.parentElement,r=n.rankingChoices,o=n.unRankingChoices;if(this.isDraggedElementUnranked&&this.isDropTargetRanked){this.doRankBetween(e,o,r,this.selectToRank);return}if(this.isDraggedElementRanked&&this.isDropTargetRanked){this.doRankBetween(e,r,r,this.reorderRankedItem);return}if(this.isDraggedElementRanked&&!this.isDropTargetRanked){this.doRankBetween(e,r,o,this.unselectFromRank);return}},t.prototype.doRankBetween=function(e,n,r,o){var s=this.parentElement,a=this.getIndices(s,n,r),l=a.fromIndex,u=a.toIndex;o(s,l,u,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return this.parentElement.rankingChoices.indexOf(this.draggedElement)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return this.dropTarget==="to-container"?!0:this.parentElement.rankingChoices.indexOf(this.dropTarget)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,n){e.isValueSetByUser=!0,e.rankingChoices=n,e.updateUnRankingChoices(n)},t}(Ts),Mc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Kr=function(i){Mc(t,i);function t(e){var n=i.call(this,e)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(i.prototype.onVisibleChoicesChanged.call(n),n.carryForwardStartUnranked&&!n.isValueSetByUser&&!n.selectToRankEnabled&&!n.defaultValue&&(n.value=[]),n.visibleChoices.length===1&&!n.selectToRankEnabled){n.value=[],n.value.push(n.visibleChoices[0].value),n.updateRankingChoices();return}if(n.isEmpty()){n.updateRankingChoices();return}if(n.selectToRankEnabled){n.updateRankingChoices();return}n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices(),n.updateRankingChoices()},n.localeChanged=function(){i.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new Qe(n.getChoicesAnimationOptions(!0),function(r){n._renderedRankingChoices=r},function(){return n.renderedRankingChoices}),n._unRankingChoicesAnimation=new Qe(n.getChoicesAnimationOptions(!1),function(r){n._renderedUnRankingChoices=r},function(){return n.renderedUnRankingChoices}),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(r,o,s){var a=r.target;n.isDragStartNodeValid(a)&&n.isAllowStartDrag(a,o)&&(n.draggedChoiceValue=o.value,n.draggedTargetNode=s,n.dragOrClickHelper.onPointerDown(r))},n.startDrag=function(r){var o=k.getItemByValue(n.activeChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(r,o,n,n.draggedTargetNode)},n.handlePointerUp=function(r,o,s){if(n.selectToRankEnabled){var a=r.target;n.isAllowStartDrag(a,o)&&n.handleKeydownSelectToRank(r,o," ",!1)}},n.handleKeydown=function(r,o){if(!n.isReadOnlyAttr&&!n.isDesignMode){var s=r.key,a=n.rankingChoices.indexOf(o);if(n.selectToRankEnabled){n.handleKeydownSelectToRank(r,o);return}if(s==="ArrowUp"&&a||s==="ArrowDown"&&a!==n.rankingChoices.length-1){var l=s=="ArrowUp"?a-1:a+1;n.dragDropRankingChoices.reorderRankedItem(n,a,l),n.setValueAfterKeydown(l,"",!0,r)}}},n.focusItem=function(r,o){if(n.domNode)if(n.selectToRankEnabled&&o){var s="[data-ranking='"+o+"']",a=n.domNode.querySelectorAll(s+" ."+n.cssClasses.item);a[r].focus()}else{var a=n.domNode.querySelectorAll("."+n.cssClasses.item);a[r].focus()}},n.isValueSetByUser=!1,n.setValue=function(){var r=[];n.rankingChoices.forEach(function(o){r.push(o.value)}),n.value=r,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()}),n.dragOrClickHelper=new Tr(n.startDrag),n}return t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){if(!(this.isDesignMode||e.disabled))return 0},t.prototype.supportContainerQueries=function(){return this.selectToRankEnabled},Object.defineProperty(t.prototype,"rootClass",{get:function(){return new O().append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,b.rankingDragHandleArea==="icon").append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal").append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="vertical").append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal"&&this.selectToRankSwapAreas).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(e){return this.selectToRankEnabled?i.prototype.isItemSelectedCore.call(this,e):!0},t.prototype.getItemClassCore=function(e,n){return new O().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===e).toString()},t.prototype.getContainerClasses=function(e){var n=!1,r=e==="to",o=e==="from";return r?n=this.renderedRankingChoices.length===0:o&&(n=this.renderedUnRankingChoices.length===0),new O().append(this.cssClasses.container).append(this.cssClasses.containerToMode,r).append(this.cssClasses.containerFromMode,o).append(this.cssClasses.containerEmptyMode,n).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return this.ghostPosition==="top"?this.cssClasses.dragDropGhostPositionTop:this.ghostPosition==="bottom"?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var n;return this.selectToRankEnabled?n=this.unRankingChoices.indexOf(e)!==-1:n=this.isEmpty(),new O().append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,n).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.updateRankingChoicesSync=function(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return P.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),!this.isLoadingFromJson&&this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),e&&(this.isValueSetByUser=!0)},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(n){e.indexOf(n.value)===-1&&e.push(n.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),n=this.visibleChoices,r=this.value.length-1;r>=0;r--)k.getItemByValue(n,this.value[r])||e.splice(r,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var n=this;return{getKey:function(r){return r.value},getRerenderEvent:function(){return n.onElementRerendered},isAnimationEnabled:function(){return n.animationAllowed&&!n.isDesignMode&&n.isVisible&&!!n.domNode},getReorderOptions:function(r,o){var s="";return r!==n.currentDropTarget&&(s=o?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:s}},getLeaveOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getEnterOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getAnimatedElement:function(r){var o,s=n.cssClasses,a="";n.selectToRankEnabled&&(!e&&s.containerFromMode?a=be(s.containerFromMode):e&&s.containerToMode&&(a=be(s.containerToMode)));var l=e?n.renderedRankingChoices.indexOf(r):n.renderedUnRankingChoices.indexOf(r);return(o=n.domNode)===null||o===void 0?void 0:o.querySelector(a+" [data-sv-drop-target-ranking-item='"+l+"']")},allowSyncRemovalAddition:!0}},Object.defineProperty(t.prototype,"rankingChoicesAnimation",{get:function(){return this._rankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoicesAnimation",{get:function(){return this._unRankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRankingChoices",{get:function(){return this._renderedRankingChoices},set:function(e){this.rankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedUnRankingChoices",{get:function(){return this._renderedUnRankingChoices},set:function(e){this.unRankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.updateRenderedRankingChoices=function(){this.renderedRankingChoices=this.rankingChoices},t.prototype.updateRenderedUnRankingChoices=function(){this.renderedUnRankingChoices=this.unRankingChoices},t.prototype.updateRankingChoices=function(e){var n=this;if(e===void 0&&(e=!1),this.selectToRankEnabled){this.updateRankingChoicesSelectToRankMode(e);return}var r=[];if(e&&(this.rankingChoices=[]),this.isEmpty()){this.rankingChoices=this.visibleChoices;return}this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.rankingChoices=r},t.prototype.updateUnRankingChoices=function(e){var n=[];this.visibleChoices.forEach(function(r){n.push(r)}),e.forEach(function(r){n.forEach(function(o,s){o.value===r.value&&n.splice(s,1)})}),this.unRankingChoices=n},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var n=this,r=[];this.isEmpty()||this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.updateUnRankingChoices(r),this.rankingChoices=r},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new Rs(this.survey,null,this.longTap):new Ts(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return b.rankingDragHandleArea==="icon"?e.classList.contains(this.cssClasses.itemIconHoverMod):!0},t.prototype.isAllowStartDrag=function(e,n){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(n)},t.prototype.canStartDragDueMaxSelectedChoices=function(e){if(!this.selectToRankEnabled)return!0;var n=e.closest("[data-ranking='from-container']");return n?this.checkMaxSelectedChoicesUnreached():!0},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(e){this.domNode=e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.domNode=void 0,i.prototype.beforeDestroyQuestionElement.call(this,e)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,n,r,o){if(o===void 0&&(o=!0),!this.isDesignMode){var s=e.key;if(r&&(s=r),!(s!==" "&&s!=="ArrowUp"&&s!=="ArrowDown")){var a=this.dragDropRankingChoices,l=this.rankingChoices,u=l.indexOf(n)!==-1,d=u?l:this.unRankingChoices,v=d.indexOf(n);if(!(v<0)){var V;if(s===" "&&!u){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(n))return;V=this.value.length,a.selectToRank(this,v,V),this.setValueAfterKeydown(V,"to-container",o,e);return}if(u){if(s===" "){a.unselectFromRank(this,v),V=this.unRankingChoices.indexOf(n),this.setValueAfterKeydown(V,"from-container",o,e);return}var T=s==="ArrowUp"?-1:s==="ArrowDown"?1:0;T!==0&&(V=v+T,!(V<0||V>=l.length)&&(a.reorderRankedItem(this,v,V),this.setValueAfterKeydown(V,"to-container",o,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,n,r,o){var s=this;r===void 0&&(r=!0),this.setValue(),r&&setTimeout(function(){s.focusItem(e,n)},1),o&&o.preventDefault()},t.prototype.getIconHoverCss=function(){return new O().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new O().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"sv-ranking-item"},Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankSwapAreas",{get:function(){return this.getPropertyValue("selectToRankSwapAreas",!1)},set:function(e){this.setPropertyValue("selectToRankSwapAreas",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return this.getPropertyValue("selectToRankAreasLayout")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedSelectToRankAreasLayout",{get:function(){return this.isMobileMode()?"vertical":this.selectToRankAreasLayout},enumerable:!1,configurable:!0}),t.prototype.isMobileMode=function(){return gn},Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropSvgIcon",{get:function(){return this.cssClasses.dragDropSvgIconId||"#icon-drag-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-reorder-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-rankingundefined-16x16"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Ge([ae({onSet:function(e,n){return n.updateRenderedRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedRankingChoices()},onPush:function(e,n,r){return r.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),Ge([ae({onSet:function(e,n){return n.updateRenderedUnRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedUnRankingChoices()},onPush:function(e,n,r){return r.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),Ge([ae()],t.prototype,"_renderedRankingChoices",void 0),Ge([ae()],t.prototype,"_renderedUnRankingChoices",void 0),Ge([h({defaultValue:null})],t.prototype,"currentDropTarget",void 0),Ge([h({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),Ge([h({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),Ge([h({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(Qt);x.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"showRefuseItem",visible:!1,isSerializable:!1},{name:"showDontKnowItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankSwapAreas:switch",default:!1,visible:!1,isSerializable:!0,dependsOn:"selectToRankEnabled"},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],function(){return new Kr("")},"checkbox"),J.Instance.registerQuestion("ranking",function(i){var t=new Kr(i);return t.choices=J.DefaultChoices,t});var jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yr=function(i){jc(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"textAreaModel",{get:function(){return this.textAreaModelValue||(this.textAreaModelValue=new ln(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,n=this,r=function(s){P.isTwoValueEquals(n.value,s,!1,!0,!1)||(n.value=s)},o={question:this,id:function(){return e.inputId},propertyName:"value",className:function(){return e.className},placeholder:function(){return e.renderedPlaceholder},isDisabledAttr:function(){return e.isDisabledAttr},isReadOnlyAttr:function(){return e.isReadOnlyAttr},autoGrow:function(){return e.renderedAutoGrow},maxLength:function(){return e.getMaxLength()},rows:function(){return e.rows},cols:function(){return e.cols},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},ariaLabelledBy:function(){return e.a11y_input_ariaLabelledBy},ariaDescribedBy:function(){return e.a11y_input_ariaDescribedBy},ariaInvalid:function(){return e.a11y_input_ariaInvalid},ariaErrormessage:function(){return e.a11y_input_ariaErrormessage},getTextValue:function(){return e.value},onTextAreaChange:function(s){r(s.target.value)},onTextAreaInput:function(s){e.onInput(s)},onTextAreaKeyDown:function(s){e.onKeyDown(s)},onTextAreaFocus:function(s){e.onFocus(s)},onTextAreaBlur:function(s){e.onBlur(s)}};return o},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAutoGrow",{get:function(){var e=this.autoGrow;return e===void 0&&this.survey?this.survey.autoGrowComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAllowResize",{get:function(){var e=this.allowResize;return e===void 0&&this.survey?this.survey.allowResizeComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.renderedAllowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(e){var n=b.environment.root;this.element=n.getElementById(this.inputId)||e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onBlurCore=function(e){i.prototype.onBlurCore.call(this,e)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),!this.acceptCarriageReturn&&(e.key==="Enter"||e.keyCode===13)&&(e.preventDefault(),e.stopPropagation())},t.prototype.setNewValue=function(e){!this.acceptCarriageReturn&&e&&(e=e.replace(new RegExp(`(\r
+|
+|\r)`,"gm"),"")),i.prototype.setNewValue.call(this,e)},t.prototype.getValueSeparator=function(){return`
+`},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed||this.textAreaModel.updateElement()},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(Pn);x.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean",defaultFunc:function(){}},{name:"allowResize:boolean",defaultFunc:function(){}},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new Yr("")},"textbase"),J.Instance.registerQuestion("comment",function(i){return new Yr(i)});var zt="environment",Ke="user",Nc=function(){function i(){this.canFlipValue=void 0}return i.clear=function(){i.cameraList=void 0,i.cameraIndex=-1},i.setCameraList=function(t){var e=function(n){var r=n.label.toLocaleLowerCase();return r.indexOf(Ke)>-1?Ke:r.indexOf(zt)>-1?zt:r.indexOf("front")>-1?Ke:r.indexOf("back")>-1?zt:""};i.clear(),Array.isArray(t)&&t.length>0&&(i.cameraIndex=-1,t.sort(function(n,r){if(n===r)return 0;if(n.label!==r.label){var o=e(n),s=e(r);if(o!==s){if(o===Ke)return-1;if(s===Ke)return 1;if(o===zt)return-1;if(s===zt)return 1}}var a=t.indexOf(n),l=t.indexOf(r);return a<l?-1:1})),i.cameraList=t},i.prototype.hasCamera=function(t){var e=this;if(i.cameraList!==void 0){this.hasCameraCallback(t);return}if(i.mediaDevicesCallback){var n=function(r){e.setVideoInputs(r),e.hasCameraCallback(t)};i.mediaDevicesCallback(n);return}typeof navigator<"u"&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(function(r){e.setVideoInputs(r),e.hasCameraCallback(t),e.updateCanFlipValue()}).catch(function(r){i.cameraList=null,e.hasCameraCallback(t)}):(i.cameraList=null,this.hasCameraCallback(t))},i.prototype.getMediaConstraints=function(t){var e=i.cameraList;if(!(!Array.isArray(e)||e.length<1)){i.cameraIndex<0&&(i.cameraIndex=0);var n=e[i.cameraIndex],r={};return n&&n.deviceId?r.deviceId={exact:n.deviceId}:r.facingMode=i.cameraFacingMode,t&&(t!=null&&t.height&&(r.height={ideal:t.height}),t!=null&&t.width&&(r.width={ideal:t.width})),{video:r,audio:!1}}},i.prototype.startVideo=function(t,e,n,r){var o=this;if(!t){e(void 0);return}t.style.width="100%",t.style.height="auto",t.style.height="100%",t.style.objectFit="contain";var s=this.getMediaConstraints({width:n,height:r});navigator.mediaDevices.getUserMedia(s).then(function(a){var l;t.srcObject=a,!(!((l=i.cameraList[i.cameraIndex])===null||l===void 0)&&l.deviceId)&&a.getTracks()[0].getCapabilities().facingMode&&(i.canSwitchFacingMode=!0,o.updateCanFlipValue()),t.play(),e(a)}).catch(function(a){e(void 0)})},i.prototype.getImageSize=function(t){return{width:t.videoWidth,height:t.videoHeight}},i.prototype.snap=function(t,e){if(!t||!I.isAvailable())return!1;var n=I.getDocument(),r=n.createElement("canvas"),o=this.getImageSize(t);r.height=o.height,r.width=o.width;var s=r.getContext("2d");return s.clearRect(0,0,r.width,r.height),s.drawImage(t,0,0,r.width,r.height),r.toBlob(e,"image/png"),!0},i.prototype.updateCanFlipValue=function(){var t=i.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||i.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},i.prototype.canFlip=function(t){return this.canFlipValue===void 0&&this.updateCanFlipValue(),t&&(this.onCanFlipChangedCallback=t),this.canFlipValue},i.prototype.flip=function(){this.canFlip()&&(i.canSwitchFacingMode?i.cameraFacingMode=i.cameraFacingMode===Ke?"environment":Ke:i.cameraIndex>=i.cameraList.length-1?i.cameraIndex=0:i.cameraIndex++)},i.prototype.hasCameraCallback=function(t){t(Array.isArray(i.cameraList))},i.prototype.setVideoInputs=function(t){var e=[];t.forEach(function(n){n.kind==="videoinput"&&e.push(n)}),i.setCameraList(e.length>0?e:null)},i.cameraIndex=-1,i.cameraFacingMode=Ke,i.canSwitchFacingMode=!1,i}(),Xr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ee=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Fc(i,t,e){var n=atob(i.split(",")[1]),r=new Uint8Array(n.split("").map(function(o){return o.charCodeAt(0)})).buffer;return new File([r],t,{type:e})}var Es=function(i){Xr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isUploading=!1,e.onUploadStateChanged=e.addEvent(),e.onStateChanged=e.addEvent(),e}return t.prototype.stateChanged=function(e){this.currentState!=e&&(e==="loading"&&(this.isUploading=!0),e==="loaded"&&(this.isUploading=!1),e==="error"&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},Object.defineProperty(t.prototype,"showLoadingIndicator",{get:function(){return this.isUploading&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(e){this.clearOnDeletingContainer(),i.prototype.clearValue.call(this,e)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),this.isUploading&&this.waitForUpload&&e.push(new an(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var n=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,function(r,o){Array.isArray(r)&&(n.setValueFromResult(r),Array.isArray(o)&&(o.forEach(function(s){return n.errors.push(new an(s,n))}),n.stateChanged("error"))),r==="success"&&Array.isArray(o)&&n.setValueFromResult(o),r==="error"&&(typeof o=="string"&&n.errors.push(new an(o,n)),Array.isArray(o)&&o.length>0&&o.forEach(function(s){return n.errors.push(new an(s,n))}),n.stateChanged("error")),n.stateChanged("loaded")}))},t.prototype.loadPreview=function(e){},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.stateChanged(this.isEmpty()?"empty":"loaded")},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),ee([h()],t.prototype,"isUploading",void 0),ee([h({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(ue),Is=function(i){Xr(t,i);function t(e,n){var r=i.call(this)||this;return r.question=e,r.index=n,r.id=t.getId(),r}return t.getId=function(){return"sv_sfp_"+t.pageCounter++},Object.defineProperty(t.prototype,"css",{get:function(){return this.question.cssClasses.page},enumerable:!1,configurable:!0}),t.pageCounter=0,ee([ae({})],t.prototype,"items",void 0),t}(z),Zr=function(i){Xr(t,i);function t(e){var n=i.call(this,e)||this;return n.isDragging=!1,n.fileNavigator=new Ee,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n._renderedPages=[],n.pagesAnimation=new Yn(n.getPagesAnimationOptions(),function(r){n._renderedPages=r},function(){return n.renderedPages}),n.calcAvailableItemsCount=function(r,o,s){var a=Math.floor(r/(o+s));return(a+1)*(o+s)-s<=r&&a++,a},n.dragCounter=0,n.onDragEnter=function(r){n.canDragDrop()&&(r.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(r){if(!n.canDragDrop())return r.returnValue=!1,!1;r.dataTransfer.dropEffect="copy",r.preventDefault()},n.onDrop=function(r){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,r.preventDefault();var o=r.dataTransfer;n.onChange(o)}},n.onDragLeave=function(r){n.canDragDrop()&&(n.dragCounter--,n.dragCounter===0&&(n.isDragging=!1))},n.doChange=function(r){var o=r.target||r.srcElement;n.onChange(o)},n.doClean=function(){if(n.needConfirmRemoveFile){At({message:n.confirmRemoveAllMessage,funcOnYes:function(){n.clearFilesCore()},locale:n.getLocale(),rootElement:n.survey.rootElement,cssClass:n.cssClasses.confirmDialog});return}n.clearFilesCore()},n.doDownloadFileFromContainer=function(r){r.stopPropagation();var o=r.currentTarget;if(o&&o.getElementsByTagName){var s=o.getElementsByTagName("a")[0];s==null||s.click()}},n.doDownloadFile=function(r,o){r.stopPropagation(),Dt()&&(r.preventDefault(),uo(o.content,o.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new Ee,n.actionsContainer.locOwner=n,n.fileIndexAction=new $({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new $({id:"prevPage",iconSize:16,action:function(){n.navigationDirection="left",n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new $({id:"nextPage",iconSize:16,action:function(){n.navigationDirection="right",n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new $({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()}),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new $({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()}),action:function(){n.stopVideo()}}),n.changeCameraAction=new $({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()}),visible:new te(function(){return n.canFlipCamera()}),action:function(){n.flipCamera()}}),n.chooseFileAction=new $({iconName:"icon-choosefile",id:"sv-file-choose-file",iconSize:"auto",data:{question:n},enabledIf:function(){return!n.isInputReadOnly},component:"sv-file-choose-btn"}),n.startCameraAction=new $({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new te(function(){return!n.isAnswered}),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new $({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new te(function(){return n.cssClasses.removeButton}),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach(function(r){r.cssClasses={}}),n.registerFunctionOnPropertiesValueChanged(["sourceType","currentMode","isAnswered"],function(){n.updateActionsVisibility()}),n.actionsContainer.actions=[n.chooseFileAction,n.startCameraAction,n.cleanAction],n.fileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return Object.defineProperty(t.prototype,"supportFileNavigator",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.containsMultiplyFiles,o=this.pageSize<this.previewValue.length;return!e&&!n&&r&&o&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return Math.ceil(this.previewValue.length/this.pageSize)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionsContainerVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.isDefaultV2Theme;return!e&&!n&&r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoId",{get:function(){return this.id+"_video"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVideoUI",{get:function(){return this.currentMode!=="file"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return this.currentMode!=="camera"},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;this.currentMode==="file"||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout(function(){e.startVideoInCamera()},0))},Object.defineProperty(t.prototype,"videoHtmlElement",{get:function(){var e;return(e=this.rootElement)===null||e===void 0?void 0:e.querySelector("#"+this.videoId)},enumerable:!1,configurable:!0}),t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoHtmlElement,function(n){e.videoStream=n,n||e.stopVideo()},nt(this.imageWidth),nt(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;if(this.isPlayingVideo){var n=function(r){if(r){var o=new File([r],"snap_picture.png",{type:"image/png"});e.loadFiles([o])}};this.camera.snap(this.videoHtmlElement,n),this.stopVideo()}},t.prototype.canFlipCamera=function(){var e=this;return this.canFlipCameraValue===void 0&&(this.canFlipCameraValue=this.camera.canFlip(function(n){e.canFlipCameraValue=n})),this.canFlipCameraValue},t.prototype.flipCamera=function(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())},t.prototype.closeVideoStream=function(){this.videoStream&&(this.videoStream.getTracks().forEach(function(e){e.stop()}),this.videoStream=void 0)},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(e){i.prototype.updateElementCssCore.call(this,e),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId,this.updateCurrentMode()},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.pagesCount)},t.prototype.updateFileNavigator=function(){this.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.updateRenderedPages=function(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])},t.prototype.updatePages=function(){var e=this;this.blockAnimations();var n;this.pages=[],this.renderedPages=[],this.previewValue.forEach(function(r,o){o%e.pageSize==0&&(n=new Is(e,e.pages.length),e.pages.push(n)),n.items.push(r)}),this.releaseAnimations(),this.updateRenderedPages()},t.prototype.previewValueChanged=function(){var e=this;this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection="left-delete"):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout(function(){e.processResponsiveness(0,e._width)},1),this.prevPreviewLength=this.previewValue.length},t.prototype.getType=function(){return"file"},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||this.loadPreview(e)},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),t.prototype.chooseFile=function(e){var n=this;if(this.rootElement){var r=this.rootElement.querySelector("#"+this.inputId);r&&(e.preventDefault(),e.stopImmediatePropagation(),r&&(this.survey?this.survey.chooseFiles(r,function(o){return n.loadFiles(o)},{element:this,elementType:this.getType(),propertyName:this.name}):r.click()))}},Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"takePhotoCaption",{get:function(){return this.getLocalizableStringText("takePhotoCaption")},set:function(e){this.setLocalizableStringText("takePhotoCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTakePhotoCaption",{get:function(){return this.getLocalizableString("takePhotoCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearButtonCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){var e=this;return this.locRenderedPlaceholderValue===void 0&&(this.locRenderedPlaceholderValue=new te(function(){var n=e.isReadOnly,r=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&e.sourceType!="camera",o=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&e.sourceType!="file",s;return n?s=e.locNoFileChosenCaption:r&&o?s=e.locFileOrPhotoPlaceholder:r?s=e.locFilePlaceholder:s=e.locPhotoPlaceholder,s})),this.locRenderedPlaceholderValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMode",{get:function(){return this.getPropertyValue("currentMode",this.sourceType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayingVideo",{get:function(){return this.getPropertyValue("isPlayingVideo",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsPlayingVideo=function(e){this.setPropertyValue("isPlayingVideo",e)},t.prototype.updateCurrentMode=function(){var e=this;!this.isDesignMode&&this.survey&&(this.sourceType!=="file"?this.camera.hasCamera(function(n){e.setPropertyValue("currentMode",n&&e.isDefaultV2Theme?e.sourceType:"file")}):this.setPropertyValue("currentMode",this.sourceType))},t.prototype.updateActionsVisibility=function(){var e=this.isDesignMode;this.chooseFileAction.visible=!e&&this.hasFileUI||e&&this.sourceType!=="camera",this.startCameraAction.visible=!e&&this.hasVideoUI||e&&this.sourceType!=="file",this.cleanAction.visible=!!this.isAnswered},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var n=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(r,o){r==="success"&&(n.value=void 0,n.errors=[],e&&e(),n.indexToShow=0,n.fileIndexAction.title=n.getFileIndexCaption())}))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChooseButton",{get:function(){return!this.isReadOnly&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFileDecorator",{get:function(){var e=this.isPlayingVideo,n=this.showLoadingIndicator;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,n=this.isPlayingVideo;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPreviewContainer",{get:function(){return this.previewValue&&this.previewValue.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonCore",{get:function(){var e=this.showLoadingIndicator,n=this.isReadOnly,r=this.isEmpty();return!n&&!r&&!e&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return this.showRemoveButtonCore&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){var e=new O().append(this.cssClasses.removeButtonBottom).append(this.cssClasses.contextButton).toString();return this.showRemoveButtonCore&&e},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter(function(n){return n.name===e})[0])},t.prototype.removeFileByContent=function(e){var n=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(r,o){if(r==="success"){var s=n.value;Array.isArray(s)?n.value=s.filter(function(a){return!P.isTwoValueEquals(a,e,!0,!1,!1)}):n.value=void 0}})},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map(function(n){return{name:n.file.name,type:n.file.type,content:n.content}}))},t.prototype.loadFiles=function(e){var n=this;if(this.survey&&(this.errors=[],!!this.allFilesOk(e))){var r=function(){n.stateChanged("loading");var o=[];n.storeDataAsText?e.forEach(function(s){var a=new FileReader;a.onload=function(l){o=o.concat([{name:s.name,type:s.type,content:a.result}]),o.length===e.length&&(n.value=(n.value||[]).concat(o))},a.readAsDataURL(s)}):n.uploadFiles(e)};this.allowMultiple?r():this.clear(r)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new Nc),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var n=this;if(!(this.showPreview&&this.prevLoadedPreviewValue===e)&&(this.previewValue.splice(0,this.previewValue.length),!(!this.showPreview||!e))){this.prevLoadedPreviewValue=e;var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(r.forEach(function(o){var s=o.content||o;n.previewValue.push({name:o.name,type:o.type,content:s})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new As(this,function(o,s){o!=="error"&&(s.forEach(function(a){n.previewValue.push(a)}),n.previewValueChanged()),n.isFileLoading=!1,n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r))}},t.prototype.allFilesOk=function(e){var n=this,r=this.errors?this.errors.length:0;return(e||[]).forEach(function(o){n.maxSize>0&&o.size>n.maxSize&&n.errors.push(new bo(n.maxSize,n))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var n="data:image",r=e.content&&e.content.substring(0,n.length);r=r&&r.toLowerCase();var o=r===n||!!e.type&&e.type.toLowerCase().indexOf("image/")===0;return o},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(o,s){return{name:s,title:"File",value:o.content&&o.content||o,displayValue:o.name&&o.name||o,getString:function(a){return typeof a=="object"?JSON.stringify(a):a},isNode:!1}})}return n},t.prototype.getImageWrapperCss=function(e){return new O().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return new O().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return new O().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return new O().append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return new O().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new O().append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return new O().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(E.isFileReaderAvailable()&&!(!e||!e.files||e.files.length<1)){for(var n=[],r=this.allowMultiple?e.files.length:1,o=0;o<r;o++)n.push(e.files[o]);e.value="",this.loadFiles(n)}},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.actionsContainer.cssClasses=e.actionBar,this.actionsContainer.cssClasses.itemWithTitle=this.actionsContainer.cssClasses.item,this.actionsContainer.cssClasses.item="",this.actionsContainer.cssClasses.itemAsIcon=n.contextButton,this.actionsContainer.containerCss=n.actionsContainer,n},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.updateCurrentMode(),this.updateActionsVisibility(),this.loadPreview(this.value)},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getObservedElementSelector=function(){return be(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return be(this.cssClasses.fileList)},Object.defineProperty(t.prototype,"renderedPages",{get:function(){return this._renderedPages},set:function(e){this.pagesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.getPagesAnimationOptions=function(){var e=this;return{getEnterOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new O().append(r+"--enter-from-left",e.navigationDirection=="left"||e.navigationDirection=="left-delete").append(r+"--enter-from-right",e.navigationDirection=="right").toString():""}},getLeaveOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new O().append(r+"--leave-to-left",e.navigationDirection=="right").append(r+"--leave-to-right",e.navigationDirection=="left").toString():""}},getAnimatedElement:function(n){var r;return(r=e.rootElement)===null||r===void 0?void 0:r.querySelector("#"+n.id)},isAnimationEnabled:function(){return e.animationAllowed&&!!e.rootElement},getRerenderEvent:function(){return e.onElementRerendered}}},t.prototype.triggerResponsiveness=function(e){e&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),i.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,n){if(this._width=n,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector(),o=r?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(o){var s=o.querySelector(be(this.cssClasses.page));if(s){var a=s.querySelector(be(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(I.getComputedStyle(s).gap)),a&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(I.getComputedStyle(a).width)))}}}return this.calculatedGapBetweenItems&&this.calculatedItemWidth?(this.pageSize=this.calcAvailableItemsCount(n,this.calculatedItemWidth,this.calculatedGapBetweenItems),!0):!1},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&this.currentMode!=="camera"&&!this.isPlayingVideo},t.prototype.afterRenderQuestionElement=function(e){this.rootElement=e},t.prototype.beforeDestroyQuestionElement=function(e){this.rootElement=void 0},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,n){var r=this;if(n.stopPropagation(),this.needConfirmRemoveFile){At({message:this.getConfirmRemoveMessage(e.name),funcOnYes:function(){r.clearFilesCore()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var n=this.previewValue.indexOf(e);this.removeFileByContent(n===-1?e:this.value[n])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),i.prototype.dispose.call(this)},ee([h()],t.prototype,"isDragging",void 0),ee([ae({})],t.prototype,"previewValue",void 0),ee([ae({})],t.prototype,"pages",void 0),ee([h({defaultValue:0,onSet:function(e,n){n.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),ee([h({defaultValue:1,onSet:function(e,n){n.updateFileNavigator()}})],t.prototype,"pageSize",void 0),ee([h({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),ee([h()],t.prototype,"allowCameraAccess",void 0),ee([h({onSet:function(e,n){n.isLoadingFromJson||n.updateCurrentMode()}})],t.prototype,"sourceType",void 0),ee([h()],t.prototype,"canFlipCameraValue",void 0),ee([h({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),ee([h({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),ee([h({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),ee([h({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),ee([h({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),ee([h({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),ee([h({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),ee([h({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),ee([h({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),ee([h({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),ee([h({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),ee([h()],t.prototype,"locRenderedPlaceholderValue",void 0),ee([ae()],t.prototype,"_renderedPages",void 0),t}(Es);x.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0,visible:!1},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(i){return!!i.showPreview}},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"},{name:"sourceType",choices:["file","camera","file-camera"],default:"file",category:"general",visible:!0,visibleIf:function(){return b.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],function(){return new Zr("")},"question"),J.Instance.registerQuestion("file",function(i){return new Zr(i)});var As=function(){function i(t,e){this.fileQuestion=t,this.callback=e,this.loaded=[]}return i.prototype.load=function(t){var e=this,n=0;this.loaded=new Array(t.length),t.forEach(function(r,o){e.fileQuestion.survey&&e.fileQuestion.survey.downloadFile(e.fileQuestion,e.fileQuestion.name,r,function(s,a){!e.fileQuestion||!e.callback||(s!=="error"?(e.loaded[o]={content:a,name:r.name,type:r.type},n++,n===t.length&&e.callback(s,e.loaded)):e.callback("error",e.loaded))})})},i.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},i}(),_c=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ei=function(i){_c(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("html",n);return r.onGetTextCallback=function(o){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(o):o},n}return t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(e){return this.ignoreHtmlProgressing?e:i.prototype.getProcessedText.call(this,e)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return new O().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(xn);x.addClass("html",[{name:"html:html",serializationProperty:"locHtml"},{name:"hideNumber",visible:!1},{name:"state",visible:!1},{name:"titleLocation",visible:!1},{name:"descriptionLocation",visible:!1},{name:"errorLocation",visible:!1},{name:"indent",visible:!1},{name:"width",visible:!1}],function(){return new ei("")},"nonvalue"),J.Instance.registerQuestion("html",function(i){return new ei(i)});var Bc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ti=function(i){Bc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&!this.isOtherSelected},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(e){this.isMouseDown=!0,i.prototype.setNewComment.call(this,e),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.isReadOnlyAttr||(this.renderedValue=e.value)},t.prototype.getDefaultTitleActions=function(){var e=this,n=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new $({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new te(function(){return e.canShowClearButton})});n.push(r)}return n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}(kt);x.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new ti("")},"checkboxbase"),J.Instance.registerQuestion("radiogroup",function(i){var t=new ti(i);return t.choices=J.DefaultChoices,t});var ni=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ye=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Sn=function(i){ni(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.itemValue=e,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),ye([h({defaultValue:""})],t.prototype,"highlight",void 0),ye([h({defaultValue:""})],t.prototype,"text",void 0),ye([h()],t.prototype,"style",void 0),t}(z),kc=function(i){ni(t,i);function t(e,n,r){var o=i.call(this,e,n)||this;return o.description=r,o}return t}(k),ri=function(i){ni(t,i);function t(e){var n=i.call(this,e)||this;return n._syncPropertiesChanging=!1,n.iCounter=0,n.createItemValues("rateValues"),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateType"],function(){n.setIconsToRateValues(),n.resetRenderedItems(),n.updateRateCount()}),n.registerFunctionOnPropertiesValueChanged(["rateValues"],function(){n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerSychProperties(["rateValues"],function(){n.autoGenerate=n.rateValues.length==0,n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],function(){n.updateColors(n.survey.themeVariables)}),n.registerFunctionOnPropertiesValueChanged(["displayMode"],function(){n.updateRenderAsBasedOnDisplayMode(!0)}),n.registerSychProperties(["autoGenerate"],function(){!n.autoGenerate&&n.rateValues.length===0&&n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.resetRenderedItems()}),n.createLocalizableString("minRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMinRateDescription=!r.isEmpty}),n.createLocalizableString("maxRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMaxRateDescription=!r.isEmpty}),n.initPropertyDependencies(),n}return t.prototype.setIconsToRateValues=function(){var e=this;this.rateType=="smileys"&&this.rateValues.map(function(n){return n.icon=e.getItemSmiley(n)})},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.jsonObj.rateMin!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMax===void 0&&this.updateRateMax(),this.jsonObj.rateMax!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMin===void 0&&this.updateRateMin(),this.jsonObj.autoGenerate===void 0&&this.jsonObj.rateValues!==void 0&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()},t.prototype.registerSychProperties=function(e,n){var r=this;this.registerFunctionOnPropertiesValueChanged(e,function(){r._syncPropertiesChanging||(r._syncPropertiesChanging=!0,n(),r._syncPropertiesChanging=!1)})},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;this.useRateValues()?e=this.rateValues.length:e=Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1,e>10&&this.rateDisplayMode=="smileys"&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],function(){if(!e.useRateValues())e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1);else if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&e.rateDisplayMode=="smileys")return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var n=e.rateValues.length;n<e.rateCount;n++)e.rateValues.push(new k(oe("choices_Item")+(n+1)))}),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],function(){e.updateRateCount()})},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this,n;return!this.readOnly&&((n=this.visibleRateValues.filter(function(r){return r.value==e.value})[0])===null||n===void 0?void 0:n.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){if(this.colorMode==="monochrome"||!I.isAvailable()||t.colorsCalculated)return;function n(o){var s=getComputedStyle(I.getDocumentElement());return s.getPropertyValue&&s.getPropertyValue(o)}function r(o,s){var a=!!e&&e[o];if(a||(a=n(s)),!a)return null;var l=I.createElement("canvas");if(!l)return null;var u=l.getContext("2d");u.fillStyle=a,u.fillStyle=="#000000"&&(u.fillStyle=n(s));var d=u.fillStyle;if(d.startsWith("rgba"))return d.substring(5,d.length-1).split(",").map(function(V){return+V.trim()});var v=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(d);return v?[parseInt(v[1],16),parseInt(v[2],16),parseInt(v[3],16),1]:null}t.badColor=r("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=r("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=r("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=r("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=r("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=r("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0,this.resetRenderedItems()},t.prototype.getDisplayValueCore=function(e,n){if(!this.useRateValues)return i.prototype.getDisplayValueCore.call(this,e,n);var r=k.getTextOrHtmlByValue(this.visibleRateValues,n);return r||n},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return this.renderAs==="dropdown"},t.prototype.itemValuePropertyChanged=function(e,n,r,o){!this.useRateValues()&&o!==void 0&&(this.autoGenerate=!1),i.prototype.itemValuePropertyChanged.call(this,e,n,r,o)},t.prototype.runConditionCore=function(e,n){i.prototype.runConditionCore.call(this,e,n),this.runRateItesmCondition(e,n)},t.prototype.runRateItesmCondition=function(e,n){var r;if(this.useRateValues()){var o=!1;if(!((r=this.survey)===null||r===void 0)&&r.areInvisibleElementsShowing?this.rateValues.forEach(function(a){o=o||!a.isVisible,a.setIsVisible(a,!0)}):o=k.runConditionsForItems(this.rateValues,void 0,void 0,e,n,!0),o&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){var s=k.getItemByValue(this.rateValues,this.value);s&&!s.isVisible&&this.clearValue()}}},t.prototype.getRateValuesCore=function(){if(!this.useRateValues())return this.createRateValues();var e=new Array;return this.rateValues.forEach(function(n){n.isVisible&&e.push(n)}),e},t.prototype.calculateRateValues=function(){var e=this.getRateValuesCore();return this.rateType=="smileys"&&e.length>10&&(e=e.slice(0,10)),e},t.prototype.calculateRenderedRateItems=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){var s=null;return e.displayRateDescriptionsAsExtremeItems&&(o==0&&(s=new Sn(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),o==n.length-1&&(s=new Sn(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),s||(s=new Sn(r)),s})},t.prototype.calculateVisibleChoices=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){return e.getRatingItemValue(r,o)})},t.prototype.resetRenderedItems=function(){if(this.autoGenerate){var e=this.getRateValuesCore();this.rateMax=e[e.length-1].value}Array.isArray(this.getPropertyValueWithoutDefault("renderedRateItems"))&&this.setArrayPropertyDirectly("renderedRateItems",this.calculateRenderedRateItems()),Array.isArray(this.getPropertyValueWithoutDefault("visibleChoices"))&&this.setArrayPropertyDirectly("visibleChoices",this.calculateVisibleChoices)},Object.defineProperty(t.prototype,"renderedRateItems",{get:function(){var e=this;return this.getPropertyValue("renderedRateItems",void 0,function(){return e.calculateRenderedRateItems()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){var e=this;return this.getPropertyValue("visibleChoices",void 0,function(){return e.calculateVisibleChoices()})},enumerable:!1,configurable:!0}),t.prototype.createRateValues=function(){for(var e=[],n=this.rateMin,r=this.rateStep;n<=this.rateMax&&e.length<b.ratingMaximumRateValueCount;){var o=new k(n);o.locOwner=this,o.ownerPropertyName="rateValues",e.push(o),n=this.correctValue(n+r,r)}return e},t.prototype.getRatingItemValue=function(e,n){if(!e)return null;var r=e.value,o;r===this.rateMin&&(o=this.minRateDescription&&this.locMinRateDescription),(r===this.rateMax||n===b.ratingMaximumRateValueCount)&&(o=this.maxRateDescription&&this.locMaxRateDescription);var s=new kc(r,e.text,o);return s.locOwner=e.locOwner,s.ownerPropertyName=e.ownerPropertyName,s},t.prototype.correctValue=function(e,n){if(!e||Math.round(e)==e)return e;for(var r=0;Math.round(n)!=n;)n*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0||this.renderAs==="dropdown"},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(e){var n=i.prototype.getPlainDataCalculatedValue.call(this,e);if(n!==void 0||!this.useRateValues||this.isEmpty())return n;var r=k.getItemByValue(this.visibleRateValues,this.value);return r?r[e]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.updateRenderAsBasedOnDisplayMode=function(e){this.isDesignMode?(e||this.renderAs==="dropdown")&&(this.renderAs="default"):(e||this.displayMode!=="auto")&&(this.renderAs=this.displayMode==="dropdown"?"dropdown":"default")},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.renderAs==="dropdown"&&this.displayMode==="auto"?this.displayMode=this.renderAs:this.updateRenderAsBasedOnDisplayMode()},Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return this.rateType=="stars"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return this.rateType=="smileys"},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return this.renderAs=="dropdown"?"sv-rating-dropdown-item":this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var n=k.getItemByValue(this.rateValues,e);return n?n.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===(typeof this.value=="string"?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!ne&&!(this.isReadOnly||!e.itemValue.isEnabled||this.isDesignMode)){var n=!0,r=this.value!=null;if(this.rateType!=="stars"){e.highlight="highlighted";return}for(var o=0;o<this.renderedRateItems.length;o++)this.renderedRateItems[o].highlight=n&&!r&&"highlighted"||!n&&r&&"unhighlighted"||"none",this.renderedRateItems[o]==e&&(n=!1),this.renderedRateItems[o].itemValue.value==this.value&&(r=!1)}},t.prototype.onItemMouseOut=function(e){ne||this.renderedRateItems.forEach(function(n){return n.highlight="none"})},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&b.matrix.rateSize=="small"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=(this.displayMode=="buttons"||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",n="";return(this.hasMaxLabel||this.hasMinLabel)&&(this.rateDescriptionLocation=="top"&&(n=this.cssClasses.rootLabelsTop),this.rateDescriptionLocation=="bottom"&&(n=this.cssClasses.rootLabelsBottom),this.rateDescriptionLocation=="topBottom"&&(n=this.cssClasses.rootLabelsDiagonal)),new O().append(this.cssClasses.root).append(e).append(n).append(this.cssClasses.itemSmall,this.itemSmallMode&&this.rateType!="labels").toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var n=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"],r=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"],o=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,s=r.slice(0,o),a=n.filter(function(l){return s.indexOf(l)!=-1});return this.useRateValues()?a[this.rateValues.indexOf(e)]:a[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,n){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,s=(this.rateCount-1)/2,a=n?t.normalColorLight:t.normalColor;if(e<s?o=a:(r=a,e-=s),!r||!o)return null;for(var l=[0,0,0,0],u=0;u<4;u++)l[u]=r[u]+(o[u]-r[u])*e/s,u<3&&(l[u]=Math.trunc(l[u]));return"rgba("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"},t.prototype.getItemStyle=function(e,n){if(n===void 0&&(n="none"),this.scaleColorMode==="monochrome"&&this.rateColorMode=="default"||this.isPreviewStyle||this.isReadOnlyStyle)return{};var r=this.visibleRateValues.indexOf(e),o=this.getRenderedItemColor(r,!1),s=n=="highlighted"&&this.scaleColorMode==="colored"&&this.getRenderedItemColor(r,!0);return s?{"--sd-rating-item-color":o,"--sd-rating-item-color-light":s}:{"--sd-rating-item-color":o}},t.prototype.getItemClass=function(e,n){var r=this,o=this.value==e.value;this.isStar&&(this.useRateValues()?o=this.rateValues.indexOf(this.rateValues.filter(function(ct){return ct.value==r.value})[0])>=this.rateValues.indexOf(e):o=this.value>=e.value);var s=this.isReadOnly||!e.isEnabled,a=!s&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),l=this.renderedRateItems.filter(function(ct){return ct.itemValue==e})[0],u=this.isStar&&(l==null?void 0:l.highlight)=="highlighted",d=this.isStar&&(l==null?void 0:l.highlight)=="unhighlighted",v=this.cssClasses.item,V=this.cssClasses.selected,T=this.cssClasses.itemDisabled,R=this.cssClasses.itemReadOnly,N=this.cssClasses.itemPreview,j=this.cssClasses.itemHover,A=this.cssClasses.itemOnError,Q=null,re=null,ie=null,xe=null,Re=null;this.isStar&&(v=this.cssClasses.itemStar,V=this.cssClasses.itemStarSelected,T=this.cssClasses.itemStarDisabled,R=this.cssClasses.itemStarReadOnly,N=this.cssClasses.itemStarPreview,j=this.cssClasses.itemStarHover,A=this.cssClasses.itemStarOnError,Q=this.cssClasses.itemStarHighlighted,re=this.cssClasses.itemStarUnhighlighted,Re=this.cssClasses.itemStarSmall),this.isSmiley&&(v=this.cssClasses.itemSmiley,V=this.cssClasses.itemSmileySelected,T=this.cssClasses.itemSmileyDisabled,R=this.cssClasses.itemSmileyReadOnly,N=this.cssClasses.itemSmileyPreview,j=this.cssClasses.itemSmileyHover,A=this.cssClasses.itemSmileyOnError,Q=this.cssClasses.itemSmileyHighlighted,ie=this.cssClasses.itemSmileyScaleColored,xe=this.cssClasses.itemSmileyRateColored,Re=this.cssClasses.itemSmileySmall);var wt=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return new O().append(v).append(V,o).append(T,this.isDisabledStyle).append(R,this.isReadOnlyStyle).append(N,this.isPreviewStyle).append(j,a).append(Q,u).append(ie,this.scaleColorMode=="colored").append(xe,this.rateColorMode=="scale"&&o).append(re,d).append(A,this.hasCssError()).append(Re,this.itemSmallMode).append(this.cssClasses.itemFixedSize,wt).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new O().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),n=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return this.displayMode!="dropdown"&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(n-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){this.dropdownListModelValue||(this.dropdownListModelValue=new Cn(this),this.ariaExpanded="false")},t.prototype.getCompactRenderAs=function(){return this.displayMode=="buttons"?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return this.displayMode=="dropdown"?"dropdown":"default"},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.renderAs==="dropdown"&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.ariaExpanded=e?"false":void 0,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.onBlurCore=function(e){var n;(n=this.dropdownListModel)===null||n===void 0||n.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.colorsCalculated=!1,ye([h({defaultValue:!1})],t.prototype,"inputHasValue",void 0),ye([h()],t.prototype,"autoGenerate",void 0),ye([h()],t.prototype,"rateCount",void 0),ye([h({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),ye([h({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),ye([h()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),ye([h()],t.prototype,"displayMode",void 0),ye([h()],t.prototype,"rateDescriptionLocation",void 0),ye([h()],t.prototype,"rateType",void 0),ye([h()],t.prototype,"scaleColorMode",void 0),ye([h()],t.prototype,"rateColorMode",void 0),t}(ue);x.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:1},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(i){return i.rateDisplayMode=="smileys"},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(i){return i.rateDisplayMode=="smileys"&&i.scaleColorMode=="monochrome"},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(i,t){return t<2?2:t>b.ratingMaximumRateValueCount&&t>i.rateValues.length?b.ratingMaximumRateValueCount:t>10&&i.rateDisplayMode=="smileys"?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return oe("choices_Item")},category:"rateValues",visibleIf:function(i){return!i.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(i,t){return t>i.rateMax-i.rateStep?i.rateMax-i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(i,t){return t<i.rateMin+i.rateStep?i.rateMin+i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(i,t){return t<=0&&(t=1),t>i.rateMax-i.rateMin&&(t=i.rateMax-i.rateMin),t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:9},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:18},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:19},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:21,visibleIf:function(i){return i.rateType=="labels"}},{name:"rateDescriptionLocation",default:"leftRight",choices:["leftRight","top","bottom","topBottom"],visibleIndex:20},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:0},{name:"itemComponent",visible:!1,defaultFunc:function(i){return i?(i.getOriginalObj&&(i=i.getOriginalObj()),i.getDefaultItemComponent()):"sv-rating-item"}}],function(){return new ri("")},"question"),J.Instance.registerQuestion("rating",function(i){return new ri(i)});var qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ii=function(i){qc(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return this.renderAs!=="checkbox"},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.isDesignMode||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=void 0,this.booleanValueRendered=void 0):(this.value=e==!0?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){e===!0&&(e="true"),e===!1&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if(!(e==="indeterminate"||e===void 0||e===null))return e=="true"?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return this.titleLocation==="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return this.booleanValue!==null&&this.booleanValue!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelLeft",{get:function(){return this.swapOrder?this.getLocalizableString("labelTrue"):this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelRight",{get:function(){return this.swapOrder?this.getLocalizableString("labelFalse"):this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return this.valueTrue!==void 0?this.valueTrue:!0},t.prototype.getValueFalse=function(){return this.valueFalse!==void 0?this.valueFalse:!1},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;(e==="indeterminate"||e===null||e===void 0)&&this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,n){return this.defaultValue==e||n!==void 0&&this.defaultValue===n},t.prototype.getDisplayValueCore=function(e,n){return n==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return new O().append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return new O().append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&e===!this.swapOrder).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this)},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){if(this.booleanValue===!0)return this.locLabelTrue;if(this.booleanValue===!1)return this.locLabelFalse},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e==="true"&&this.valueTrue!=="true"&&(e=!0),e==="false"&&this.valueFalse!=="false"&&(e=!1),(e==="indeterminate"||e===null)&&(e=void 0),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.onLabelClick=function(e,n){return this.allowClick&&(ho(e),this.booleanValue=n),!0},t.prototype.calculateBooleanValueByEvent=function(e,n){var r=!1;I.isAvailable()&&(r=I.getComputedStyle(e.target).direction=="rtl"),this.booleanValue=r?!n:n},t.prototype.onSwitchClickModel=function(e){if(this.allowClick){ho(e);var n=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,n);return}return!0},t.prototype.onKeyDownCore=function(e){return(e.key==="ArrowLeft"||e.key==="ArrowRight")&&(e.stopPropagation(),this.calculateBooleanValueByEvent(e,e.key==="ArrowRight")),!0},t.prototype.getRadioItemClass=function(e,n){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&n===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(r+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(r+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(r+=" "+e.radioItemPreview),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(e){return i.prototype.createActionContainer.call(this,this.renderAs!=="checkbox")},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"switch"},enumerable:!1,configurable:!0}),Pt([h()],t.prototype,"booleanValueRendered",void 0),Pt([h()],t.prototype,"showTitle",void 0),Pt([h({localizable:!0})],t.prototype,"label",void 0),Pt([h({defaultValue:!1})],t.prototype,"swapOrder",void 0),Pt([h()],t.prototype,"valueTrue",void 0),Pt([h()],t.prototype,"valueFalse",void 0),t}(ue);x.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"swapOrder:boolean",category:"general"},{name:"renderAs",default:"default",visible:!1}],function(){return new ii("")},"question"),J.Instance.registerQuestion("boolean",function(i){return new ii(i)});var Ds=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Me=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ls=function(i){Ds(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="imageitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e),this.imageNotLoaded=!1,this.videoNotLoaded=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof Ht&&this.locOwner.contentMode=="video"?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof Ht&&this.locOwner.contentMode=="video"?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),Me([h({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),Me([h({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(k),Ht=function(i){Ds(t,i);function t(e){var n=i.call(this,e)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(r,o){r.contentNotLoaded=!1;var s=o.target;n.contentMode=="video"?r.aspectRatio=s.videoWidth/s.videoHeight:r.aspectRatio=s.naturalWidth/s.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],function(){n._width&&n.processResponsiveness(0,n._width)}),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],function(){n.calcIsResponsive()}),n.calcIsResponsive(),n}return t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?P.isArrayContainsEqual(this.value,this.correctAnswer):i.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var n=this.value,r=e;if(this.isValueEmpty(n)||!r.imageLink||r.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(n,e.value);if(!Array.isArray(n))return!1;for(var o=0;o<n.length;o++)if(this.isTwoValueEquals(n[o],e.value))return!0;return!1},t.prototype.getItemEnabled=function(e){var n=e;return!n.imageLink||n.contentNotLoaded?!1:i.prototype.getItemEnabled.call(this,e)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var e=this.value;if(!e)return;if(!Array.isArray(e)||e.length==0){this.clearValue(!0);return}for(var n=[],r=0;r<e.length;r++)this.hasUnknownValue(e[r],!0)||n.push(e[r]);if(n.length==e.length)return;n.length==0?this.clearValue(!0):this.value=n}else i.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(e,n){return!this.multiSelect&&!Array.isArray(n)?i.prototype.getDisplayValueCore.call(this,e,n):this.getDisplayArrayValue(e,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var e=i.prototype.getValueCore.call(this);return e!==void 0?e:this.multiSelect?[]:e},t.prototype.convertValToArrayForMultSelect=function(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(e)?e:[e]},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageScale",{get:function(){return this.survey?this.survey.widthScale/100:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale;return e||150*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale;return e||200*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),e==="video"&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return!1},t.prototype.addToVisibleChoices=function(e,n){this.addNewItemToVisibleChoices(e,n)},t.prototype.getSelectBaseRootCss=function(){return new O().append(i.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,this.getCurrentColCount()==1).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some(function(n){return e[n]!==void 0&&e[n]!==null})},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return be(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.needResponsiveWidth=function(){return this.colCount>2},t.prototype.getCurrentColCount=function(){return this.responsiveColCount===void 0||this.colCount===0?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,n){this._width=n=Math.floor(n);var r=function(Q,re,ie){var xe=Math.floor(Q/(re+ie));return(xe+1)*(re+ie)-ie<=Q&&xe++,xe};if(this.isResponsive){var o=this.choices.length+(this.isDesignMode?1:0),s=(this.gapBetweenItems||0)*this.imageScale,a=this.minImageWidth*this.imageScale,l=this.maxImageWidth*this.imageScale,u=this.maxImageHeight*this.imageScale,d=this.minImageHeight*this.imageScale,v=this.colCount,V;if(v===0)if((s+a)*o-s>n){var T=r(n,a,s);V=Math.floor((n-s*(T-1))/T)}else V=Math.floor((n-s*(o-1))/o);else{var R=r(n,a,s);R<v?(this.responsiveColCount=R>=1?R:1,v=this.responsiveColCount):this.responsiveColCount=v,V=Math.floor((n-s*(v-1))/v)}V=Math.max(a,Math.min(V,l));var N=Number.MIN_VALUE;this.choices.forEach(function(Q){var re=V/Q.aspectRatio;N=re>N?re:N}),N>u?N=u:N<d&&(N=d);var j=this.responsiveImageWidth,A=this.responsiveImageHeight;return this.responsiveImageWidth=V,this.responsiveImageHeight=N,j!==this.responsiveImageWidth||A!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),e&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),i.prototype.triggerResponsiveness.call(this,e)},t.prototype.afterRender=function(e){var n=this;i.prototype.afterRender.call(this,e);var r=this.getObservedElementSelector(),o=e&&r?e.querySelector(r):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(I.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},Me([h({})],t.prototype,"responsiveImageHeight",void 0),Me([h({})],t.prototype,"responsiveImageWidth",void 0),Me([h({})],t.prototype,"isResponsiveValue",void 0),Me([h({})],t.prototype,"maxImageWidth",void 0),Me([h({})],t.prototype,"minImageWidth",void 0),Me([h({})],t.prototype,"maxImageHeight",void 0),Me([h({})],t.prototype,"minImageHeight",void 0),Me([h({})],t.prototype,"responsiveColCount",void 0),t}(kt);x.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(i){return new Ls(i)},"itemvalue"),x.addClass("responsiveImageSize",[],void 0,"number"),x.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"showRefuseItem",visible:!1},{name:"showDontKnowItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return b.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return b.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return b.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return b.supportCreatorV2}}],function(){return new Ht("")},"checkboxbase"),x.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),x.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),x.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),x.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),J.Instance.registerQuestion("imagepicker",function(i){var t=new Ht(i);return t});var Qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ms=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],Hc="https://www.youtube.com/",js="embed",oi=function(i){Qc(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("imageLink",n,!1);return r.onGetTextCallback=function(o){return Uc(o,n.contentMode=="youtube")},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return n.calculateRenderedMode()}),n}return t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?on(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?nt(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?on(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?nt(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),e==="video"&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),n=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&n.isDefaultValue(this.imageWidth);return new O().append(this.cssClasses.image).append(this.cssClasses.adaptive,r).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){this.contentMode!=="auto"?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return P.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var n=0;n<Ms.length;n++)if(e.endsWith(Ms[n]))return!0;return!1},zc([h({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(xn);function Uc(i,t){if(!i||!P.isUrlYoutubeVideo(i))return t?"":i;var e=i.toLocaleLowerCase();if(e.indexOf(js)>-1)return i;for(var n="",r=i.length-1;r>=0&&!(i[r]==="="||i[r]==="/");r--)n=i[r]+n;return Hc+js+"/"+n}x.addClass("image",[{name:"imageLink:file",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],function(){return new oi("")},"nonvalue"),J.Instance.registerQuestion("image",function(i){return new oi(i)});/*!
+ * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
+ * (c) 2024 Szymon Nowak | Released under the MIT license
+ */class Tn{constructor(t,e,n,r){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=n||0,this.time=r||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class si{static fromPoints(t,e){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new si(t[1],n,r,t[2],e.start,e.end)}static calculateControlPoints(t,e,n){const r=t.x-e.x,o=t.y-e.y,s=e.x-n.x,a=e.y-n.y,l={x:(t.x+e.x)/2,y:(t.y+e.y)/2},u={x:(e.x+n.x)/2,y:(e.y+n.y)/2},d=Math.sqrt(r*r+o*o),v=Math.sqrt(s*s+a*a),V=l.x-u.x,T=l.y-u.y,R=v/(d+v),N={x:u.x+V*R,y:u.y+T*R},j=e.x-N.x,A=e.y-N.y;return{c1:new Tn(l.x+j,l.y+A),c2:new Tn(u.x+j,u.y+A)}}constructor(t,e,n,r,o,s){this.startPoint=t,this.control2=e,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=s}length(){let e=0,n,r;for(let o=0;o<=10;o+=1){const s=o/10,a=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const u=a-n,d=l-r;e+=Math.sqrt(u*u+d*d)}n=a,r=l}return e}point(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}class Wc{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,e,n){this._et.addEventListener(t,e,n)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,n){this._et.removeEventListener(t,e,n)}}function $c(i,t=250){let e=0,n=null,r,o,s;const a=()=>{e=Date.now(),n=null,r=i.apply(o,s),n||(o=null,s=[])};return function(...u){const d=Date.now(),v=t-(d-e);return o=this,s=u,v<=0||v>t?(n&&(clearTimeout(n),n=null),e=d,r=i.apply(o,s),n||(o=null,s=[])):n||(n=window.setTimeout(a,v)),r}}class Rn extends Wc{constructor(t,e={}){super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=n=>{n.buttons===1&&this._strokeBegin(n)},this._handleMouseMove=n=>{this._strokeMoveUpdate(n)},this._handleMouseUp=n=>{n.buttons===1&&this._strokeEnd(n)},this._handleTouchStart=n=>{if(n.cancelable&&n.preventDefault(),n.targetTouches.length===1){const r=n.changedTouches[0];this._strokeBegin(r)}},this._handleTouchMove=n=>{n.cancelable&&n.preventDefault();const r=n.targetTouches[0];this._strokeMoveUpdate(r)},this._handleTouchEnd=n=>{if(n.target===this.canvas){n.cancelable&&n.preventDefault();const o=n.changedTouches[0];this._strokeEnd(o)}},this._handlePointerStart=n=>{n.preventDefault(),this._strokeBegin(n)},this._handlePointerMove=n=>{this._strokeMoveUpdate(n)},this._handlePointerEnd=n=>{this._drawingStroke&&(n.preventDefault(),this._strokeEnd(n))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle="throttle"in e?e.throttle:16,this.minDistance="minDistance"in e?e.minDistance:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in e?e.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?$c(Rn.prototype._strokeUpdate,this.throttle):Rn.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise((n,r)=>{const o=new Image,s=e.ratio||window.devicePixelRatio||1,a=e.width||this.canvas.width/s,l=e.height||this.canvas.height/s,u=e.xOffset||0,d=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,u,d,a,l),n()},o.onerror=v=>{r(v)},o.crossOrigin="anonymous",o.src=t,this._isEmpty=!1})}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return typeof e!="object"&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`;default:return typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;this._drawingStroke=!0;const n=this._getPointGroupOptions(),r=Object.assign(Object.assign({},n),{points:[]});this._data.push(r),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=t.clientX,n=t.clientY,r=t.pressure!==void 0?t.pressure:t.force!==void 0?t.force:0,o=this._createPoint(e,n,r),s=this._data[this._data.length-1],a=s.points,l=a.length>0&&a[a.length-1],u=l?o.distanceTo(l)<=this.minDistance:!1,d=this._getPointGroupOptions(s);if(!l||!(l&&u)){const v=this._addPoint(o,d);l?v&&this._drawCurve(v,d):this._drawDot(o,d),a.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,n){const r=this.canvas.getBoundingClientRect();return new Tn(t-r.left,e-r.top,n,new Date().getTime())}_addPoint(t,e){const{_lastPoints:n}=this;if(n.push(t),n.length>2){n.length===3&&n.unshift(n[0]);const r=this._calculateCurveWidths(n[1],n[2],e),o=si.fromPoints(n,r);return n.shift(),o}return null}_calculateCurveWidths(t,e,n){const r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),s={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,s}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,n){const r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const n=this._ctx,r=t.endWidth-t.startWidth,o=Math.ceil(t.length())*2;n.beginPath(),n.fillStyle=e.penColor;for(let s=0;s<o;s+=1){const a=s/o,l=a*a,u=l*a,d=1-a,v=d*d,V=v*d;let T=V*t.startPoint.x;T+=3*v*a*t.control1.x,T+=3*d*l*t.control2.x,T+=u*t.endPoint.x;let R=V*t.startPoint.y;R+=3*v*a*t.control1.y,R+=3*d*l*t.control2.y,R+=u*t.endPoint.y;const N=Math.min(t.startWidth+u*r,e.maxWidth);this._drawCurveSegment(T,R,N)}n.closePath(),n.fill()}_drawDot(t,e){const n=this._ctx,r=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}_fromData(t,e,n){for(const r of t){const{points:o}=r,s=this._getPointGroupOptions(r);if(o.length>1)for(let a=0;a<o.length;a+=1){const l=o[a],u=new Tn(l.x,l.y,l.pressure,l.time);a===0&&this._reset(s);const d=this._addPoint(u,s);d&&e(d,s)}else this._reset(s),n(o[0],s)}}toSVG({includeBackgroundColor:t=!1}={}){const e=this._data,n=Math.max(window.devicePixelRatio||1,1),r=0,o=0,s=this.canvas.width/n,a=this.canvas.height/n,l=document.createElementNS("http://www.w3.org/2000/svg","svg");if(l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),l.setAttribute("viewBox",`${r} ${o} ${s} ${a}`),l.setAttribute("width",s.toString()),l.setAttribute("height",a.toString()),t&&this.backgroundColor){const u=document.createElement("rect");u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("fill",this.backgroundColor),l.appendChild(u)}return this._fromData(e,(u,{penColor:d})=>{const v=document.createElement("path");if(!isNaN(u.control1.x)&&!isNaN(u.control1.y)&&!isNaN(u.control2.x)&&!isNaN(u.control2.y)){const V=`M ${u.startPoint.x.toFixed(3)},${u.startPoint.y.toFixed(3)} C ${u.control1.x.toFixed(3)},${u.control1.y.toFixed(3)} ${u.control2.x.toFixed(3)},${u.control2.y.toFixed(3)} ${u.endPoint.x.toFixed(3)},${u.endPoint.y.toFixed(3)}`;v.setAttribute("d",V),v.setAttribute("stroke-width",(u.endWidth*2.25).toFixed(3)),v.setAttribute("stroke",d),v.setAttribute("fill","none"),v.setAttribute("stroke-linecap","round"),l.appendChild(v)}},(u,{penColor:d,dotSize:v,minWidth:V,maxWidth:T})=>{const R=document.createElement("circle"),N=v>0?v:(V+T)/2;R.setAttribute("r",N.toString()),R.setAttribute("cx",u.x.toString()),R.setAttribute("cy",u.y.toString()),R.setAttribute("fill",d),l.appendChild(R)}),l.outerHTML}}var Jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ke=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Gc=300,Kc=200,ai=function(i){Jc(t,i);function t(e){var n=i.call(this,e)||this;return n.valueIsUpdatingInternally=!1,n._loadedData=void 0,n.updateValueHandler=function(){n._loadedData=void 0,n.scaleCanvas(!1,!0),n.loadPreview(n.value)},n}return t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var n=this.getPenColorFromTheme(),r=this.getPropertyByName("penColor");e.penColor=this.penColor||n||r.defaultValue||"#1ab394";var o=this.getPropertyByName("backgroundColor"),s=n?"transparent":void 0,a=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=a||s||o.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.small,this.signatureWidth.toString()==="300").toString()},t.prototype.getFormat=function(){return this.dataFormat==="jpeg"?"image/jpeg":this.dataFormat==="svg"?"image/svg+xml":""},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(e){e&&(this.isDesignMode||this.initSignaturePad(e),this.element=e),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.themeChanged=function(e){this.signaturePad&&this.updateColors(this.signaturePad)},t.prototype.resizeCanvas=function(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight},t.prototype.scaleCanvas=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!1);var r=this.canvas,o=r.offsetWidth/this.containerWidth;(this.scale!=o||n)&&(this.scale=o,r.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*o,this.signaturePad.maxWidth=this.penMaxWidth*o,r.getContext("2d").scale(1/o,1/o),e&&this.loadPreview(this.value))},t.prototype.fromUrl=function(e){var n=this;if(this.isFileLoading=!0,ou(e))this.fromDataUrl(e),this.isFileLoading=!1;else{var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=function(){if(n.canvas){var o=I.createElement("canvas");o.width=n.containerWidth,o.height=n.containerHeight;var s=o.getContext("2d");s.drawImage(r,0,0);var a=o.toDataURL(n.getFormat());n.fromDataUrl(a)}n.isFileLoading=!1},r.onerror=function(){n.isFileLoading=!1}}},t.prototype.fromDataUrl=function(e){this._loadedData=e,this.signaturePad&&this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},Object.defineProperty(t.prototype,"loadedData",{get:function(){return this._loadedData},enumerable:!1,configurable:!0}),t.prototype.loadPreview=function(e){var n=this;if(!e){this.signaturePad&&this.canvas&&(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.valueWasChangedFromLastUpload=!1;return}if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var r=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new As(this,function(o,s){o==="success"&&s&&s.length>0&&s[0].content?(n.fromDataUrl(s[0].content),n.isFileLoading=!1):o==="skipped"&&n.fromUrl(e),n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r)}},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||(this._loadedData=void 0,this.loadPreview(e))},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.loadPreview(this.value)},t.prototype.initSignaturePad=function(e){var n=this,r=e.getElementsByTagName("canvas")[0];this.canvas=r,this.resizeCanvas();var o=new Rn(r,{backgroundColor:"#ffffff"});this.signaturePad=o,this.isInputReadOnly&&o.off(),this.readOnlyChangedCallback=function(){n.isInputReadOnly?o.off():o.on()},this.updateColors(o),o.addEventListener("beginStroke",function(){n.scaleCanvas(),n.isDrawingValue=!0,r.focus()},{once:!1}),o.addEventListener("endStroke",function(){n.isDrawingValue=!1,n.storeDataAsText?n.updateValue():n.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var s=function(a,l){(l.name==="signatureWidth"||l.name==="signatureHeight")&&(n.valueIsUpdatingInternally||n.updateValueHandler())};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat")},set:function(e){this.setPropertyValue("dataFormat",li(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.signatureHeight||Kc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||Gc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCanvasWidth",{get:function(){return this.signatureAutoScaleEnabled?"100%":this.containerWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){var e=!this.nothingIsDrawn(),n=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getPropertyValue("backgroundImage")},set:function(e){this.setPropertyValue("backgroundImage",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.nothingIsDrawn=function(){var e=this.isDrawingValue,n=this.isEmpty(),r=this.isUploading,o=this.valueWasChangedFromLastUpload;return!e&&n&&!r&&!o},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.onBlurCore=function(e){if(i.prototype.onBlurCore.call(this,e),!this.storeDataAsText&&!this.element.contains(e.relatedTarget)){if(!this.valueWasChangedFromLastUpload)return;this.uploadFiles([Fc(this.signaturePad.toDataURL(this.getFormat()),this.name+"."+li(this.dataFormat),this.getFormat())]),this.valueWasChangedFromLastUpload=!1}},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=e!=null&&e.length?e.map(function(n){return n.content})[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(e){this.valueWasChangedFromLastUpload=!1,i.prototype.clearValue.call(this,e),this._loadedData=void 0,this.loadPreview(this.value)},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.signatureWidth===300&&this.width&&typeof this.width=="number"&&this.width&&(Fe.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&this.height&&(Fe.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},ke([h({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),ke([h({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),ke([h({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),ke([h()],t.prototype,"signatureAutoScaleEnabled",void 0),ke([h()],t.prototype,"penMinWidth",void 0),ke([h()],t.prototype,"penMaxWidth",void 0),ke([h({})],t.prototype,"showPlaceholder",void 0),ke([h({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),ke([h({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(Es);function li(i){return i||(i="png"),i=i.replace("image/","").replace("+xml",""),i!=="jpeg"&&i!=="svg"&&(i="png"),i}x.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"signatureAutoScaleEnabled:boolean",category:"general",default:!1},{name:"penMinWidth:number",category:"general",default:.5},{name:"penMaxWidth:number",category:"general",default:2.5},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"showPlaceholder:boolean",category:"general",default:!0},{name:"placeholder:text",serializationProperty:"locPlaceholder",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.showPlaceholder}},{name:"backgroundImage:file",category:"general"},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"jpeg",text:"JPEG"},{value:"svg",text:"SVG"}],onSettingValue:function(i,t){return li(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new ai("")},"question"),J.Instance.registerQuestion("signaturepad",function(i){return new ai(i)});var ui=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ut=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Yc=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},Xc=function(i){ui(t,i);function t(e,n,r){var o=i.call(this,r)||this;return o.data=e,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(e){var n=i.prototype.getQuestionByName.call(this,e);if(n)return n;var r=this.panelIndex;n=r>-1?this.data.getSharedQuestionFromArray(e,r):void 0;var o=n?n.name:e;return this.sharedQuestions[o]=e,n},t.prototype.getQuestionDisplayText=function(e){var n=this.sharedQuestions[e.name];if(!n)return i.prototype.getQuestionDisplayText.call(this,e);var r=this.panelItem.getValue(n);return e.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){if(e.name==pe.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name==pe.VisibleIndexVariableName){var n=this.visiblePanelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name.toLowerCase().indexOf(pe.ParentItemVariableName+".")==0){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,pe.ItemVariableName),s=pe.ItemVariableName+e.name.substring(pe.ParentItemVariableName.length),a=o.processValue(s,e.returnDisplayValue);e.isExists=a.isExists,e.value=a.value}return!0}return!1},t}(mr),Zc=function(i){ui(t,i);function t(e){return i.call(this,e)||this}return t}($),pe=function(){function i(t,e){this.data=t,this.panelValue=e,this.textPreProcessor=new Xc(t,this,i.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(i.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),i.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},i.prototype.getValue=function(t){var e=this.getAllValues();return e[t]},i.prototype.setValue=function(t,e){var n=this.data.getPanelItemData(this),r=n?n[t]:void 0;if(!P.isTwoValueEquals(e,r,!1,!0,!1)){this.data.setPanelItemData(this,t,P.getUnbindValue(e));for(var o=this.panel.questions,s=i.ItemVariableName+"."+t,a=0;a<o.length;a++){var l=o[a];l.getValueName()!==t&&l.checkBindings(t,e),l.runTriggers(s,e)}}},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getValue(t+b.commentSuffix);return e||""},i.prototype.setComment=function(t,e,n){this.setValue(t+b.commentSuffix,e)},i.prototype.findQuestionByName=function(t){if(t){var e=i.ItemVariableName+".";if(t.indexOf(e)===0)return this.panel.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},i.prototype.getFilteredValues=function(){var t={},e=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in e)t[n]=e[n];if(t[i.ItemVariableName]=this.getAllValues(),this.data){var r=i.IndexVariableName,o=i.VisibleIndexVariableName;delete t[r],delete t[o],t[r.toLowerCase()]=this.data.getItemIndex(this),t[o.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[i.ParentItemVariableName]=s.parent.getValue())}return t},i.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},i.ItemVariableName="panel",i.ParentItemVariableName="parentpanel",i.IndexVariableName="panelIndex",i.VisibleIndexVariableName="visiblePanelIndex",i}(),ef=function(){function i(t){this.data=t}return i.prototype.getSurveyData=function(){return null},i.prototype.getSurvey=function(){return this.data.getSurvey()},i.prototype.getTextProcessor=function(){return null},i}(),ci=function(i){ui(t,i);function t(e){var n=i.call(this,e)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",function(r){n.onPanelAdded(r)},function(r){n.onPanelRemoved(r)}),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(r){n.addOnPropertyChangedCallback(r),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.createLocalizableString("tabTitlePlaceholder",n,!0,"tabTitlePlaceholder"),n.registerPropertyChangedHandlers(["panelsState"],function(){n.setPanelsState()}),n.registerPropertyChangedHandlers(["newPanelPosition","displayMode","showProgressBar"],function(){n.updateFooterActions()}),n.registerPropertyChangedHandlers(["allowAddPanel"],function(){n.updateNoEntriesTextDefaultLoc()}),n.registerPropertyChangedHandlers(["minPanelCount"],function(){n.onMinPanelCountChanged()}),n.registerPropertyChangedHandlers(["maxPanelCount"],function(){n.onMaxPanelCountChanged()}),n}return Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var n=0;n<this.visiblePanelsCore.length;n++){var r=this.visiblePanelsCore[n].getFirstQuestionToFocus(e);if(r)return r}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.showAddPanelButton?this.addButtonId:i.prototype.getFirstInputElementId.call(this)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,n=0;n<e.length;n++)this.addOnPropertyChangedCallback(e[n])},t.prototype.addOnPropertyChangedCallback=function(e){var n=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add(function(r,o){n.onTemplateElementPropertyChanged(r,o)}),e.isPanel&&(e.addElementCallback=function(r){n.addOnPropertyChangedCallback(r)})},t.prototype.onTemplateElementPropertyChanged=function(e,n){if(!(this.isLoadingFromJson||this.useTemplatePanel||this.panelsCore.length==0)){var r=x.findProperty(e.getType(),n.name);if(r)for(var o=this.panelsCore,s=0;s<o.length;s++){var a=o[s].getQuestionByName(e.name);a&&a[n.name]!==n.newValue&&(a[n.name]=n.newValue)}}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},t.prototype.clearOnDeletingContainer=function(){this.panelsCore.forEach(function(e){e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabTitlePlaceholder",{get:function(){return this.locTabTitlePlaceholder.text},set:function(e){this.locTabTitlePlaceholder.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTabTitlePlaceholder",{get:function(){return this.getLocalizableString("tabTitlePlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.getPropertyValue("templateVisibleIf")},set:function(e){this.setPropertyValue("templateVisibleIf",e),this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],n=0;n<this.panelsCore.length;n++)e.push(this.panelsCore[n].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsCore",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelsCore",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),!!e.visible){for(var n=0,r=this.panelsCore,o=0;o<r.length&&r[o]!==e;o++)r[o].visible&&n++;this.visiblePanelsCore.splice(n,0,e),this.addTabFromToolbar(e,n),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var n=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanelsCore;n>=r.length&&(n=r.length-1),this.currentPanel=n>=0?r[n]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var n=this.visiblePanelsCore,r=n.indexOf(e);return r>-1&&(n.splice(r,1),this.removeTabFromToolbar(e)),r},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e},set:function(e){if(!(this.isRenderModeList||this.useTemplatePanel)){var n=this.getPropertyValue("currentPanel"),r=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&r<0||e===n)&&(n&&n.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),r>-1&&this.survey)){var o={panel:e,visiblePanelIndex:r};this.survey.dynamicPanelCurrentIndexChanged(this,o)}}},enumerable:!1,configurable:!0}),t.prototype.updateRenderedPanels=function(){this.isRenderModeList?this.renderedPanels=[].concat(this.visiblePanels):this.currentPanel?this.renderedPanels=[this.currentPanel]:this.renderedPanels=[]},Object.defineProperty(t.prototype,"renderedPanels",{get:function(){return this._renderedPanels},set:function(e){this.renderedPanels.length==0||e.length==0?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))},enumerable:!1,configurable:!0}),t.prototype.getPanelsAnimationOptions=function(){var e=this,n=function(){if(e.isRenderModeList)return"";var r=new O,o=!1,s=e.renderedPanels.filter(function(l){return l!==e.currentPanel})[0],a=e.visiblePanels.indexOf(s);return a<0&&(o=!0,a=e.removedPanelIndex),r.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",o).append("sv-pd-animation-left",a<=e.currentIndex).append("sv-pd-animation-right",a>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(r){var o,s;if(r&&e.cssContent){var a=be(e.cssContent);return(s=(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+a+" #"+r.id))===null||s===void 0?void 0:s.parentElement}},getEnterOptions:function(){var r=new O().append(e.cssClasses.panelWrapperEnter).append(n()).toString();return{onBeforeRunAnimation:function(o){if(e.focusNewPanelCallback){var s=e.isRenderModeList?o:o.parentElement;le.ScrollElementToViewCore(s,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&o.parentElement?Mt(o.parentElement,{heightTo:o.offsetHeight+"px"}):Ae(o)},onAfterRunAnimation:function(o){Ce(o),o.parentElement&&Ce(o.parentElement)},cssClass:r}},getLeaveOptions:function(){var r=new O().append(e.cssClasses.panelWrapperLeave).append(n()).toString();return{onBeforeRunAnimation:function(o){!e.isRenderModeList&&o.parentElement?Mt(o.parentElement,{heightFrom:o.offsetHeight+"px"}):Ae(o)},onAfterRunAnimation:function(o){Ce(o),o.parentElement&&Ce(o.parentElement)},cssClass:r}},isAnimationEnabled:function(){return e.animationAllowed&&!!e.getWrapperElement()}}},t.prototype.disablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.blockAnimations()})},t.prototype.enablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.releaseAnimations()})},t.prototype.updatePanelsAnimation=function(){var e=this;this._panelsAnimations=new(this.isRenderModeList?Qe:Yn)(this.getPanelsAnimationOptions(),function(n,r){e._renderedPanels=n,r||(e.isPanelsAnimationRunning=!1,e.focusNewPanel())},function(){return e._renderedPanels})},Object.defineProperty(t.prototype,"panelsAnimation",{get:function(){return this._panelsAnimations||this.updatePanelsAnimation(),this._panelsAnimations},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach(function(e){return e.onHidingContent()})},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="top"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="bottom"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return e===void 0&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:i.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(e){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=e):i.prototype.setValueCore.call(this,e)},t.prototype.setIsMobile=function(e){i.prototype.setIsMobile.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.setIsMobile(e)})})},t.prototype.themeChanged=function(e){i.prototype.themeChanged.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.themeChanged(e)})})},Object.defineProperty(t.prototype,"panelCount",{get:function(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue("panelCount"):this.panelsCore.length},set:function(e){if(!(e<0)){if(!this.canBuildPanels||this.wasNotRenderedInSurvey){this.setPropertyValue("panelCount",e);return}if(!(e==this.panelsCore.length||this.useTemplatePanel)){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var n=this.panelCount;n<e;n++){var r=this.createNewPanel();this.panelsCore.push(r),this.displayMode=="list"&&this.panelsState!="default"&&(this.panelsState==="expanded"?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new ef(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsCore[e];n!=this.template&&n.setSurveyImpl(n.data)}},t.prototype.setPanelsState=function(){if(!(this.useTemplatePanel||this.displayMode!="list"||!this.templateTitle))for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsState;n==="firstExpanded"&&(n=e===0?"expanded":"collapsed"),this.panelsCore[e].state=n}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if((!e||!Array.isArray(e))&&(e=[]),e.length!=this.panelCount){for(var n=e.length;n<this.panelCount;n++){var r=this.panels[n].getValue(),o=P.isValueEmpty(r)?{}:r;e.push(o)}e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minPanelCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinPanelCountChanged=function(){var e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)},Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>b.panel.maxPanelCount&&(e=b.panel.maxPanelCount),this.setPropertyValue("maxPanelCount",e),this.updateFooterActions())},enumerable:!1,configurable:!0}),t.prototype.onMaxPanelCountChanged=function(){var e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()},Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addButtonId",{get:function(){return this.id+"addPanel"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newPanelPosition",{get:function(){return this.getPropertyValue("newPanelPosition")},set:function(e){this.setPropertyValue("newPanelPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateErrorLocation",{get:function(){return this.getPropertyValue("templateErrorLocation")},set:function(e){this.setPropertyValue("templateErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible,!0)},enumerable:!1,configurable:!0}),t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return this.showQuestionNumbers==="onSurvey"},Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.showProgressBar},set:function(e){this.showProgressBar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){var e=this.displayMode;if(e=="carousel"){var n=this.progressBarLocation;if(n=="top")return"progressTop";if(n=="bottom")return"progressBottom";if(n=="topBottom")return"progressTopBottom"}return e},set:function(e){(e||"").startsWith("progress")?(e=="progressTop"?this.progressBarLocation="top":e=="progressBottom"?this.progressBarLocation="bottom":e=="progressTopBottom"&&(this.progressBarLocation="topBottom"),this.displayMode="carousel"):this.displayMode=e},enumerable:!1,configurable:!0}),t.prototype.updatePanelView=function(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.tabbedMenu.containerCss=this.getTabbedMenuCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return this.displayMode==="list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return this.displayMode==="tab"},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(e){if(!this.isVisible)return 0;for(var n=this.showQuestionNumbers==="onSurvey",r=n?e:0,o=this.isDesignMode?[this.template]:this.visiblePanelsCore,s=0;s<o.length;s++){var a=this.setPanelVisibleIndex(o[s],r,this.showQuestionNumbers!="off");n&&(r+=a)}return i.prototype.setVisibleIndex.call(this,n?-1:e),n?r-e:1},t.prototype.setPanelVisibleIndex=function(e,n,r){return r?e.setVisibleIndex(n):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return this.isDesignMode||this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1&&this.newPanelPosition!=="next"?!1:this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return this.isDesignMode?!1:this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var n=[];if(this.useTemplatePanel)new pe(this,this.template),n.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),n.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,Yc([0,this.panelsCore.length],n)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.panelCount==0)){for(var e=[],n=0;n<this.panelCount;n++)e.push(this.defaultPanelValue);this.value=e}},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!this.isRowEmpty(e[n]))return!1;return!0},t.prototype.getProgressInfo=function(){return le.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel||!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return this.displayMode==="list"&&this.panelsState!=="default"&&e.expand(),this.focusNewPanelCallback=function(){e.focusFirstQuestion()},this.isPanelsAnimationRunning||this.focusNewPanel(),e},t.prototype.focusNewPanel=function(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)},t.prototype.addPanel=function(e){var n=this.currentIndex;return e===void 0&&(e=n<0?this.panelCount:n+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(n<0?this.panelCount-1:n,e),this.isRenderModeList||(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,n){this.panelCount++;var r=this.value;if(!(!Array.isArray(r)||r.length!==this.panelCount)){var o=!1,s=this.panelCount-1;if(n<s){o=!0;var a=r[s];r.splice(s,1),r.splice(n,0,a)}if(this.isValueEmpty(this.defaultPanelValue)||(o=!0,this.copyValue(r[n],this.defaultPanelValue)),this.defaultValueFromLastPanel&&r.length>1){var l=e>-1&&e<=s?e:s;o=!0,this.copyValue(r[n],r[l])}o&&(this.value=r)}},t.prototype.canLeaveCurrentPanel=function(){return!(this.displayMode!=="list"&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,n){for(var r in n)e[r]=n[r]},t.prototype.removePanelUI=function(e){var n=this,r=this.getVisualPanelIndex(e);if(!(r<0||r>=this.visiblePanelCount)&&this.canRemovePanel){var o=function(){var s;n.removePanel(r);var a=n.visiblePanelCount,l=r>=a?a-1:r,u=a===0?n.addButtonId:l>-1?n.getPanelRemoveButtonId(n.visiblePanels[l]):"";u&&le.FocusElement(u,!0,(s=n.survey)===null||s===void 0?void 0:s.rootElement)};this.isRequireConfirmOnDelete(e)?At({message:this.confirmDeleteText,funcOnYes:function(){o()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):o()}},t.prototype.getPanelRemoveButtonId=function(e){return e.id+"_remove_button"},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var n=this.getVisualPanelIndex(e);if(n<0||n>=this.visiblePanelCount)return!1;var r=this.visiblePanelsCore[n].getValue();return!this.isValueEmpty(r)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(r,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return this.currentIndex<0||!this.canLeaveCurrentPanel()?!1:(this.currentIndex++,!0)},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(s){var n=this.getVisualPanelIndex(s);if(!(n<0||n>=this.visiblePanelCount)){this.removedPanelIndex=n;var r=this.visiblePanelsCore[n],o=this.panelsCore.indexOf(r);if(!(o<0)&&!(this.survey&&!this.survey.dynamicPanelRemoving(this,o,r))){this.panelsCore.splice(o,1),this.updateBindings("panelCount",this.panelCount);var s=this.value;!s||!Array.isArray(s)||o>=s.length||(this.isValueChangingInternally=!0,s.splice(o,1),this.value=s,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,o,r),this.isValueChangingInternally=!1)}}},t.prototype.getVisualPanelIndex=function(e){if(P.isNumber(e))return e;for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r]===e||n[r].data===e)return r;return-1},t.prototype.getPanelVisibleIndexById=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].id===e)return r;return-1},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.panelsCore,n=0;n<e.length;n++)e[n].locStrsChanged();this.tabbedMenu&&this.tabbedMenu.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].clearErrors()},t.prototype.getQuestionFromArray=function(e,n){return n<0||n>=this.panelsCore.length?null:this.panelsCore[n].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var n=this.panelsCore[e];n.clearIncorrectValues();var r=this.value,o=r&&e<r.length?r[e]:null;if(o){var s=!1;for(var a in o)if(!this.getSharedQuestionFromArray(a,e)){var l=n.getQuestionByName(a);l||this.iscorrectValueWithPostPrefix(n,a,b.commentSuffix)||this.iscorrectValueWithPostPrefix(n,a,b.matrix.totalsSuffix)||(delete o[a],s=!0)}s&&(r[e]=o,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n,r){return n.indexOf(r)!==n.length-r.length?!1:!!e.getQuestionByName(n.substring(0,n.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,n){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,n):null},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=n!=null&&n.isValidator?n.errorOwner:n,o=!!n&&(n===!0||this.template.questions.indexOf(r)>-1),s=new Array,a=this.template.questions,l=0;l<a.length;l++)a[l].addConditionObjectsByContext(s,n);for(var u=0;u<b.panel.maxPanelCountInCondition;u++)for(var d="["+u+"].",v=this.getValueName()+d,V=this.processedTitle+d,l=0;l<s.length;l++)s[l].context?e.push(s[l]):e.push({name:v+s[l].name,text:V+s[l].text,question:s[l].question});if(o){for(var v=n===!0?this.getValueName()+".":"",V=n===!0?this.processedTitle+".":"",l=0;l<s.length;l++)if(s[l].question!=n){var T={name:v+pe.ItemVariableName+"."+s[l].name,text:V+pe.ItemVariableName+"."+s[l].text,question:s[l].question};T.context=this,e.push(T)}}},t.prototype.collectNestedQuestionsCore=function(e,n){var r=n?this.visiblePanelsCore:this.panelsCore;Array.isArray(r)&&r.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(e,n)})})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var s=this.template.getQuestionByName(r);return s?s.getConditionJson(e,n):null},t.prototype.onReadOnlyChanged=function(){var e=this.isReadOnly;this.template.readOnly=e;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=e;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText")},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.panelCount<this.minPanelCount&&(this.panelCount=this.minPanelCount),this.panelCount>this.maxPanelCount&&(this.panelCount=this.maxPanelCount),this.buildPanelsFirstTime(),i.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(e===void 0&&(e=!1),!this.hasPanelBuildFirstTime&&!(!e&&this.wasNotRenderedInSurvey)){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var n=0;n<this.panelCount;n++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),this.showAddPanelButton||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},Object.defineProperty(t.prototype,"showAddPanelButton",{get:function(){return this.allowAddPanel&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasNotRenderedInSurvey",{get:function(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canBuildPanels",{get:function(){return!this.isLoadingFromJson&&!this.useTemplatePanel},enumerable:!1,configurable:!0}),t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].onFirstRendering()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].localeChanged()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runPanelsCondition(this.panelsCore,e,n)},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.visiblePanelsCore.forEach(function(o){o.questions.forEach(function(s){return s.runTriggers(e,n,r)})})},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,n,r){var o={};n&&n instanceof Object&&(o=JSON.parse(JSON.stringify(n))),this.parentQuestion&&this.parent&&(o[pe.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var s=0;s<e.length;s++){var a=e[s],l=this.getPanelItemData(a.data),u=P.createCopy(o),d=pe.ItemVariableName;u[d]=l,u[pe.IndexVariableName.toLowerCase()]=s;var v=P.createCopy(r);v[d]=a,a.runCondition(u,v)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(e,n),this.panelsCore[r].onAnyValueChanged(pe.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,n){n===void 0&&(n=null);for(var r=[],o,s=0;s<this.panelsCore.length;s++)o=this.isValueDuplicated(this.panelsCore[s],r,n,e)||o;return o},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion,n=e.parent;n;)n.updateContainsErrors(),n=n.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;if(this.changingValueQuestion){var r=this.changingValueQuestion.hasErrors(e,n);r=this.hasKeysDuplicated(e,n)||r,this.updatePanelsContainsErrors()}else r=this.hasErrorInPanels(e,n);return i.prototype.hasErrors.call(this,e,n)||r},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=this.visiblePanelsCore,n=0;n<e.length;n++){var r=[];e[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(e){if(!e){if(this.survey&&this.survey.getQuestionClearIfInvisible("onHidden")==="none")return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}i.prototype.clearValueOnHidding.call(this,e)},t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=e==="onHidden"?"onHiddenContainer":e;this.clearValueInPanelsIfInvisible(n),i.prototype.clearValueIfInvisible.call(this,e)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n],o=r.questions;this.isSetPanelItemData={};for(var s=0;s<o.length;s++){var a=o[s];a.visible&&!r.isVisible||(a.clearValueIfInvisible(e),this.isSetPanelItemData[a.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.panelsCore.length;e++)for(var n=this.panelsCore[e].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,s=0;s<o.length;s++){var a=o[s].getAllErrors();a&&a.length>0&&(e=e.concat(a))}return e},t.prototype.getDisplayValueCore=function(e,n){var r=this.getUnbindValue(n);if(!r||!Array.isArray(r))return r;for(var o=0;o<this.panelsCore.length&&o<r.length;o++){var s=r[o];s&&(r[o]=this.getPanelDisplayValue(o,s,e))}return r},t.prototype.getPanelDisplayValue=function(e,n,r){if(!n)return n;for(var o=this.panelsCore[e],s=Object.keys(n),a=0;a<s.length;a++){var l=s[a],u=o.getQuestionByValueName(l);if(u||(u=this.getSharedQuestionFromArray(l,e)),u){var d=u.getDisplayValue(r,n[l]);n[l]=d,r&&u.title&&u.title!==l&&(n[u.title]=d,delete n[l])}}return n},t.prototype.hasErrorInPanels=function(e,n){for(var r=!1,o=this.visiblePanels,s=[],a=0;a<o.length;a++)this.setOnCompleteAsyncInPanel(o[a]);for(var l=!!n&&n.focusOnFirstError,u=0;u<o.length;u++){var d=o[u].hasErrors(e,l,n);d=this.isValueDuplicated(o[u],s,n,e)||d,!this.isRenderModeList&&d&&!r&&l&&(this.currentIndex=u),r=d||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var n=this,r=e.questions,o=0;o<r.length;o++)r[o].onCompletedAsyncValidators=function(s){n.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,n,r,o){if(!this.keyName)return!1;var s=e.getQuestionByValueName(this.keyName);if(!s||s.isEmpty())return!1;var a=s.value;this.changingValueQuestion&&s!=this.changingValueQuestion&&s.hasErrors(o,r);for(var l=0;l<n.length;l++)if(a==n[l])return o&&s.addError(new Co(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=s),!0;return n.push(a),!1},t.prototype.getPanelActions=function(e){var n=this,r=e.footerActions;return this.panelRemoveButtonLocation!=="right"&&r.push(new $({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new te(function(){return[n.canRemovePanel,e.state!=="collapsed",n.panelRemoveButtonLocation!=="right"].every(function(o){return o===!0})}),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,n=this.createAndSetupNewPanelObject(),r=this.template.toJSON();new fe().toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),new pe(this,n),!this.isDesignMode&&!this.isReadOnly&&!this.isValueEmpty(n.getValue())&&this.runPanelsCondition([n],this.getDataFilteredValues(),this.getDataFilteredProperties());for(var o=n.questions,s=0;s<o.length;s++)o[s].setParentQuestion(this);return this.wasRendered&&(n.onFirstRendering(),n.locStrsChanged()),n.onGetFooterActionsCallback=function(){return e.getPanelActions(n)},n.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},n.registerPropertyChangedHandlers(["visible"],function(){n.visible?e.onPanelAdded(n):e.onPanelRemoved(n),e.updateFooterActions()}),n},t.prototype.createAndSetupNewPanelObject=function(){var e=this,n=this.createNewPanelObject();return n.isInteractiveDesignElement=!1,n.setParentQuestion(this),n.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},n},t.prototype.getTemplateQuestionTitleLocation=function(){return this.templateTitleLocation!="default"?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(e){return this.templateErrorLocation!=="default"?this.templateErrorLocation:i.prototype.getChildErrorLocation.call(this,e)},t.prototype.createNewPanelObject=function(){return x.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!(this.isValueChangingInternally||this.useTemplatePanel)){var e=this.value,n=e&&Array.isArray(e)?e.length:0;n==0&&this.getPropertyValue("panelCount")>0&&(n=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=n,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(e){if(!this.settingPanelCountBasedOnValue){i.prototype.setQuestionValue.call(this,e,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(e){if(!(e===void 0&&this.isAllPanelsEmpty())){i.prototype.onSurveyValueChanged.call(this,e);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);e===void 0&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!P.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.updateValueFromSurvey(r[s.getValueName()]),s.updateCommentFromSurvey(r[s.getValueName()+b.commentSuffix]),s.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.onSurveyValueChanged(r[s.getValueName()])}},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var n=this.items.indexOf(e);return n>-1?n:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].data===e)return r;return n.length},t.prototype.getPanelItemData=function(e){var n=this.items,r=n.indexOf(e),o=this.value;return r<0&&Array.isArray(o)&&o.length>n.length&&(r=n.length),r<0?{}:!o||!Array.isArray(o)||o.length<=r?{}:o[r]},t.prototype.setPanelItemData=function(e,n,r){if(!(this.isSetPanelItemData[n]>this.maxCheckCount)){this.isSetPanelItemData[n]||(this.isSetPanelItemData[n]=0),this.isSetPanelItemData[n]++;var o=this.items,s=o.indexOf(e);s<0&&(s=o.length);var a=this.getUnbindValue(this.value);if((!a||!Array.isArray(a))&&(a=[]),a.length<=s)for(var l=a.length;l<=s;l++)a.push({});a[s]||(a[s]={});var u=a[s][n];this.isValueEmpty(r)?delete a[s][n]:a[s][n]=r,s>=0&&s<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[s].getQuestionByValueName(n));var d={panel:e.panel,name:n,panelIndex:s,panelData:a[s],value:r,oldValue:u};this.survey&&this.survey.dynamicPanelItemValueChanging(this,d),this.value=a,this.changingValueQuestion=null,this.survey&&this.survey.dynamicPanelItemValueChanged(this,d),this.isSetPanelItemData[n]--,this.isSetPanelItemData[n]-1&&delete this.isSetPanelItemData[n]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map(function(o,s){var a={name:o.name||s,title:o.title||"Panel",value:o.getValue(),displayValue:o.getValue(),getString:function(l){return typeof l=="object"?JSON.stringify(l):l},isNode:!0,data:o.questions.map(function(l){return l.getPlainData(e)}).filter(function(l){return!!l})};return(e.calculations||[]).forEach(function(l){a[l.propertyName]=o[l.propertyName]}),a}),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n];r.updateElementCss(e)}},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return new O().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.visiblePanelCount;return new O().append(i.prototype.getCssHeader.call(this,this.cssClasses)).append(this.cssClasses.headerTab,this.hasTitleOnTop&&e).toString()},enumerable:!1,configurable:!0}),t.prototype.getTabsContainerCss=function(){return new O().append(this.cssClasses.tabsContainer).append(this.cssClasses.tabsContainerWithHeader,this.hasTitleOnTop).toString()},t.prototype.getPanelWrapperCss=function(e){return new O().append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getPanelRemoveButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getAddButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode",this.displayMode==="list").toString()},t.prototype.getPrevButtonCss=function(){return new O().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return new O().append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&this.visiblePanelCount===0},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!!(e&&e.needResponsiveWidth())},Object.defineProperty(t.prototype,"hasTabbedMenu",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabbedMenu",{get:function(){return this.isRenderModeTab?(this.tabbedMenuValue||(this.tabbedMenuValue=new en,this.tabbedMenuValue.dotsItem.popupModel.showPointer=!1,this.tabbedMenuValue.dotsItem.popupModel.verticalPosition="bottom",this.tabbedMenuValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.tabbedMenuValue):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var n=[],r=new $({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),o=new $({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),s=new $({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),a=new $({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),l=new $({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),u=new $({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});n.push(r,o,s,a,l,u),this.updateFooterActionsCallback=function(){var d=e.legacyNavigation,v=e.isRenderModeList,V=e.isMobile,T=!d&&!v;r.visible=T&&e.currentIndex>0,o.visible=T&&e.currentIndex<e.visiblePanelCount-1,o.needSpace=V&&o.visible&&r.visible,s.visible=e.canAddPanel,s.needSpace=e.isMobile&&!o.visible&&r.visible,l.visible=!e.isRenderModeList&&!V,l.needSpace=!d&&!e.isMobile;var R=d&&!v;a.visible=R,u.visible=R,a.needSpace=R},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(n)},t.prototype.createTabByPanel=function(e,n){var r=this;if(this.isRenderModeTab){var o=new Se(e,!0);o.onGetTextCallback=function(u){if(u||(u=r.locTabTitlePlaceholder.renderedHtml),!r.survey)return u;var d={title:u,panel:e,visiblePanelIndex:n};return r.survey.dynamicPanelGetTabTitle(r,d),d.title},o.sharedData=this.locTemplateTabTitle;var s=e.id,a=this.getPanelVisibleIndexById(s)===this.currentIndex,l=new Zc({id:this.id+"_tab_"+s,panelId:s,pressed:a,locTitle:o,disableHide:a,action:function(){r.currentIndex=r.getPanelVisibleIndexById(s)}});return l}},t.prototype.getTabbedMenuCss=function(e){var n=e??this.cssClasses;return new O().append(n.tabsRoot).append(n.tabsLeft,this.tabAlign==="left").append(n.tabsRight,this.tabAlign==="right").append(n.tabsCenter,this.tabAlign==="center").toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.tabbedMenu.renderedActions.forEach(function(n){var r=n.panelId===e.id;n.pressed=r,n.disableHide=r,n.mode==="popup"&&n.disableHide&&n.raiseUpdate()})}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var n=[],r=this.visiblePanelsCore,o=function(l){s.visiblePanelsCore.forEach(function(u){return n.push(e.createTabByPanel(r[l],l))})},s=this,a=0;a<r.length;a++)o(a);this.tabbedMenu.setItems(n)}},t.prototype.addTabFromToolbar=function(e,n){if(this.isRenderModeTab){var r=this.createTabByPanel(e,n);this.tabbedMenu.actions.splice(n,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var n=this.tabbedMenu.actions.find(function(r){return r.panelId==e.id});n&&(this.tabbedMenu.actions.splice(this.tabbedMenu.actions.indexOf(n),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.isReadOnly&&this.visiblePanelCount==1?!1:this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.renderedPanels.length-1},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e),r=this.tabbedMenu;return r&&(r.containerCss=this.getTabbedMenuCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=e.list),n},t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.updateFooterActions()},t.maxCheckCount=3,Ut([ae({})],t.prototype,"_renderedPanels",void 0),Ut([h({onSet:function(e,n){n.fireCallback(n.renderModeChangedCallback),n.updatePanelView()}})],t.prototype,"displayMode",void 0),Ut([h({onSet:function(e,n){n.fireCallback(n.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),Ut([h({onSet:function(e,n){}})],t.prototype,"progressBarLocation",void 0),Ut([h({defaultValue:!1,onSet:function(e,n){n.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(ue);x.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(i){return i.displayMode==="tab"}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(i){return i.displayMode==="tab"}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"newPanelPosition",choices:["next","last"],default:"last",category:"layout"},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",defaultFunc:function(){return b.panel.maxPanelCount}},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(i){return i.displayMode==="list"}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(i){return i.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(i){return i.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(i){return i.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"renderMode",visible:!1,isSerializable:!1},{name:"displayMode",default:"list",choices:["list","carousel","tab"]},{name:"showProgressBar:boolean",alternativeName:"showRangeInProgress",default:!0,visibleIf:function(i){return i.displayMode==="carousel"}},{name:"progressBarLocation",default:"top",choices:["top","bottom","topBottom"],visibleIf:function(i){return i.showProgressBar}},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(i){return i.displayMode==="tab"}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"],visibleIf:function(i){return i.allowRemovePanel}}],function(){return new ci("")},"question"),J.Instance.registerQuestion("paneldynamic",function(i){return new ci(i)});var tf=function(){function i(){}return i.getProgressTextInBarCss=function(t){return new O().append(t.progressText).append(t.progressTextInBar).toString()},i.getProgressTextUnderBarCss=function(t){return new O().append(t.progressText).append(t.progressTextUnderBar).toString()},i}(),Ye=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ns=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.idValue=t.idCounter++,e.registerPropertyChangedHandlers(["operator","value","name"],function(){e.oldPropertiesChanged()}),e.registerPropertyChangedHandlers(["expression"],function(){e.onExpressionChanged()}),e}return Object.defineProperty(t,"operators",{get:function(){return t.operatorsValue!=null||(t.operatorsValue={empty:function(e,n){return!e},notempty:function(e,n){return!!e},equal:function(e,n){return e==n},notequal:function(e,n){return e!=n},contains:function(e,n){return e&&e.indexOf&&e.indexOf(n)>-1},notcontains:function(e,n){return!e||!e.indexOf||e.indexOf(n)==-1},greater:function(e,n){return e>n},less:function(e,n){return e<n},greaterorequal:function(e,n){return e>=n},lessorequal:function(e,n){return e<=n}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),n=this.expression?this.expression:this.buildExpression();return n&&(e+=", "+n),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,n,r,o,s){s===void 0&&(s=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(n&&!this.canBeExecutedOnComplete()||this.isCheckRequired(r)&&(this.conditionRunner?this.perform(o,s):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,o,s)))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){var n=t.operators[this.operator](e,this.value);n?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,n){var r=this;this.conditionRunner.onRunComplete=function(o){r.triggerResult(o,e,n)},this.conditionRunner.run(e,n)},t.prototype.triggerResult=function(e,n,r){e?(this.onSuccess(n,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,n){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.conditionRunner=null},t.prototype.buildExpression=function(){return!this.name||this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+Oe.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){return e?(this.createConditionRunner(),this.conditionRunner&&this.conditionRunner.hasFunction()===!0?!0:new me().isAnyKeyChanged(e,this.getUsedVariables())):!1},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var n="-unwrapped",r=e.length-1;r>=0;r--){var o=e[r];o.endsWith(n)&&e.push(o.substring(0,o.length-n.length))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new de(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return this.operator!=="empty"&&this.operator!="notempty"},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(z),ut=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.ownerValue=null,e}return Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(Ns),Fs=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.pages=[],e.questions=[],e}return t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,n){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var n=this.owner.getObjects(this.pages,this.questions),r=0;r<n.length;r++)e(n[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(ut),_s=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!b.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,n){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(ut),Bs=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(e,n,r){if(i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="setToName"){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,n){!this.setToName||!this.owner||this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(ut),ks=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return this.canBeExecuted(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!b.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,n){!this.gotoName||!this.owner||this.owner.focusQuestion(this.gotoName)},t}(ut),qs=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!e},t.prototype.onSuccess=function(e,n){var r=this;if(!(!this.owner||!this.runExpression)){var o=new et(this.runExpression);o.canRun&&(o.onRunComplete=function(s){r.onCompleteRunExpression(s)},o.run(e,n))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&e!==void 0&&this.owner.setTriggerValue(this.setToName,P.convertValToQuestionVal(e),!1)},t}(ut),Qs=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,n){!this.setToName||!this.owner||this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var e=i.prototype.getUsedVariables.call(this);return e.length===0&&this.fromName&&e.push(this.fromName),e},t}(ut);x.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),x.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),x.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new Fs},"surveytrigger"),x.addClass("completetrigger",[],function(){return new _s},"surveytrigger"),x.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(i){return!!i&&!!i.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new Bs},"surveytrigger"),x.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new Qs},"surveytrigger"),x.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new ks},"surveytrigger"),x.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new qs},"surveytrigger");var zs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Hs=function(i){zs(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.closeOnCompleteTimeout=0,n?r.surveyValue=n:r.surveyValue=r.createSurvey(e),r.surveyValue.fitToContainer=!0,r.windowElement=I.createElement("div"),r.survey.onComplete.add(function(o,s){r.onSurveyComplete()}),r.registerPropertyChangedHandlers(["isShowing"],function(){r.showingChangedCallback&&r.showingChangedCallback()}),r.registerPropertyChangedHandlers(["isExpanded"],function(){r.onExpandedChanged()}),r.width=new te(function(){return r.survey.width}),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return this.getPropertyValue("isFullScreen",!1)},set:function(e){!this.isExpanded&&e&&(this.isExpanded=!0),this.setPropertyValue("isFullScreen",e),this.setCssRoot()},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},t.prototype.toggleFullScreen=function(){this.isFullScreen=!this.isFullScreen},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.isFullScreen&&!e&&(this.isFullScreen=!1),this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"allowClose",{get:function(){return this.getPropertyValue("allowClose",!1)},set:function(e){this.setPropertyValue("allowClose",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowFullScreen",{get:function(){return this.getPropertyValue("allowFullScreen",!1)},set:function(e){this.setPropertyValue("allowFullScreen",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){var e=this.getPropertyValue("cssRoot","");return this.isCollapsed&&(e+=" "+this.getPropertyValue("cssRootCollapsedMod","")),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootCollapsedMod",{get:function(){return this.getPropertyValue("cssRootCollapsedMod")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootContent",{get:function(){return this.getPropertyValue("cssRootContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitleCollapsed",{get:function(){return this.getPropertyValue("cssHeaderTitleCollapsed","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButtonsContainer",{get:function(){return this.getPropertyValue("cssHeaderButtonsContainer","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCollapseButton",{get:function(){return this.getPropertyValue("cssHeaderCollapseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCloseButton",{get:function(){return this.getPropertyValue("cssHeaderCloseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderFullScreenButton",{get:function(){return this.getPropertyValue("cssHeaderFullScreenButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e=e+"px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(!(!this.css||!this.css.window)){var e=this.css.window;this.setCssRoot(),this.setPropertyValue("cssRootCollapsedMod",e.rootCollapsedMod),this.setPropertyValue("cssRootContent",e.rootContent),this.setPropertyValue("cssBody",e.body);var n=e.header;n&&(this.setPropertyValue("cssHeaderRoot",n.root),this.setPropertyValue("cssHeaderTitleCollapsed",n.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",n.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",n.collapseButton),this.setPropertyValue("cssHeaderCloseButton",n.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",n.fullScreenButton),this.updateCssButton())}},t.prototype.setCssRoot=function(){var e=this.css.window;this.isFullScreen?this.setPropertyValue("cssRoot",e.root+" "+e.rootFullScreenMode):this.setPropertyValue("cssRoot",e.root)},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new Ue(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(this.closeOnCompleteTimeout==0)this.hide();else{var e=this,n=null,r=function(){e.hide(),clearInterval(n)};n=setInterval(r,this.closeOnCompleteTimeout*1e3)}},t.prototype.onScroll=function(){this.survey.onScroll()},nf([h()],t.prototype,"width",void 0),t}(z),rf=function(i){zs(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Hs),of=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),fi=function(i){of(t,i);function t(e){var n=i.call(this,e)||this;return n.onScrollOutsideCallback=function(r){n.preventScrollOuside(r,r.deltaY)},n}return t.prototype.getStyleClass=function(){return i.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var e=this;i.prototype.createFooterActionBar.call(this),this.footerToolbar.containerCss="sv-footer-action-bar",this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){e.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(e){(e.key==="Escape"||e.keyCode===27)&&this.model.onCancel(),i.prototype.onKeyDown.call(this,e)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),i.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),i.prototype.updateOnHiding.call(this)},t}(_r),pi=function(){return pi=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},pi.apply(this,arguments)};function sf(i,t){var e,n=pi({},i);n.verticalPosition="top",n.horizontalPosition="left",n.showPointer=!1,n.isModal=!0,n.displayMode=i.displayMode||"popup";var r=new Et(i.componentName,i.data,n);r.isFocusedContent=(e=i.isFocusedContent)!==null&&e!==void 0?e:!0;var o=new fi(r);if(t&&t.appendChild){var s=I.createElement("div");t.appendChild(s),o.setComponentElement(s)}o.container||o.initializePopupContainer();var a=function(l,u){u.isVisible||s&&o.resetComponentElement(),o.onVisibilityChanged.remove(a)};return o.onVisibilityChanged.add(a),o}function af(i){return i.isModal?new fi(i):new kr(i)}var Us=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),di=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ws=function(i){Us(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="buttongroupitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o}return t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},di([h()],t.prototype,"iconName",void 0),di([h()],t.prototype,"iconSize",void 0),di([h()],t.prototype,"showCaption",void 0),t}(k),$s=function(i){Us(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(kt);x.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new $s("")},"checkboxbase"),x.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(i){return new Ws(i)},"itemvalue");var lf=function(){function i(t,e,n){this.question=t,this.item=e,this.index=n}return Object.defineProperty(i.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showCaption",{get:function(){return this.item.showCaption||this.item.showCaption===void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"labelClass",{get:function(){return new O().append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),i.prototype.onChange=function(){this.question.renderedValue=this.item.value},i}(),uf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},En=function(i){uf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getSurvey=function(e){return this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var n=this,r=x.getProperties(this.getType());r.forEach(function(o){var s=e[o.name];n[o.name]=s!==void 0?s:o.getDefaultValue(n)})},t.prototype.getData=function(){var e=this,n={},r=x.getProperties(this.getType());return r.forEach(function(o){var s=e[o.name];o.isDefaultValue(s)||(n[o.name]=s)}),n},t.prototype.processInput=function(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}},t.prototype.getUnmaskedValue=function(e){return e},t.prototype.getMaskedValue=function(e){return e},t.prototype.getTextAlignment=function(){return"auto"},t.prototype.getTypeForExpressions=function(){return"text"},cf([h()],t.prototype,"saveMaskedValue",void 0),t}(z);x.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(i){return i?i.getType()!=="masksettings":!1}}],function(){return new En});var ff=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function hi(i){for(var t=[],e=!1,n=Object.keys(b.maskSettings.patternDefinitions),r=0;r<i.length;r++){var o=i[r];o===b.maskSettings.patternEscapeChar?e=!0:e?(e=!1,t.push({type:"fixed",value:o})):t.push({type:n.indexOf(o)!==-1?"regex":"const",value:o})}return t}function df(i,t,e){for(var n=b.maskSettings.patternDefinitions[e.value];t<i.length;){if(i[t].match(n))return t;t++}return t}function hf(i,t,e){for(var n=i??"",r="",o=0,s=typeof t=="string"?hi(t):t,a=0;a<s.length;a++)switch(s[a].type){case"regex":if(o<n.length&&(o=df(n,o,s[a])),o<n.length)r+=n[o];else if(e)r+=b.maskSettings.patternPlaceholderChar;else return r;o++;break;case"const":case"fixed":r+=s[a].value,s[a].value===n[o]&&o++;break}return r}function gi(i,t,e,n){n===void 0&&(n=!1);var r="";if(!i)return r;for(var o=typeof t=="string"?hi(t):t,s=0;s<o.length;s++)if(o[s].type==="fixed"&&!n&&(r+=o[s].value),o[s].type==="regex"){var a=b.maskSettings.patternDefinitions[o[s].value];if(i[s]&&i[s].match(a))r+=i[s];else if(e){r="";break}else break}return r}var yi=function(i){ff(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.literals=[],e}return t.prototype.updateLiterals=function(){this.literals=hi(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,n,r){e==="pattern"&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(e,n){i.prototype.fromJSON.call(this,e,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return hf(r,this.literals,n)},t.prototype._getUnmaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return gi(r,this.literals,n)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return n;var r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=gi(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),s=gi(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return n.value=this._getMaskedValue(o+(e.insertedChars||"")+s,!0),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r).length,n},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},pf([h()],t.prototype,"pattern",void 0),t}(En);x.addClass("patternmask",[{name:"pattern"}],function(){return new yi},"masksettings");var gf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function yf(i,t,e){t===void 0&&(t=!0),e===void 0&&(e=3);var n=[];if(t){for(var r=i.length-e;r>-e;r-=e)n.push(i.substring(r,r+e));n=n.reverse()}else for(var r=0;r<i.length;r+=e)n.push(i.substring(r,r+e));return n}var mi=function(i){gf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.calccaretPosition=function(e,n,r){for(var o=e?this.displayNumber(this.parseNumber(e),!1).length:0,s=0,a=n.selectionStart,l=!n.insertedChars&&n.inputDirection==="forward",u=0;u<r.length;u++){var d=r[u];if(d!==this.thousandsSeparator&&s++,s===o+(l?1:0)){l?a=u:a=u+1;break}}return a},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1);var o=e.integralPart;n&&o&&(o=yf(o).join(this.thousandsSeparator));var s=e.fractionalPart,a=e.isNegative?"-":"";if(s===""){if(r)return!o||o==="0"?o:a+o;var l=e.hasDecimalSeparator&&!r?this.decimalSeparator:"",u=o+l;return u==="0"?u:a+u}else return o=o||"0",s=s.substring(0,this.precision),[a+o,s].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var n,r=e.isNegative?"-":"";return e.fractionalPart?n=parseFloat(r+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):n=parseInt(r+e.integralPart||"0"),n},t.prototype.validateNumber=function(e,n){var r=this.min||Number.MIN_SAFE_INTEGER,o=this.max||Number.MAX_SAFE_INTEGER;if(this.numericalCompositionIsEmpty(e))return!0;if(this.min!==void 0||this.max!==void 0){var s=this.convertNumber(e);if(Number.isNaN(s)||s>=r&&s<=o)return!0;if(!n){if(!e.hasDecimalSeparator&&s!=0){var a=s,l=s;if(s>0){if(s+1>r&&s<=o)return!0;for(;a=a*10+9,l=l*10,!(l>o);)if(a>r)return!0;return!1}if(s<0){if(s>=r&&s-1<o)return!0;for(;a=a*10,l=l*10-9,!(a<r);)if(l<o)return!0;return!1}}else{var u=Math.pow(.1,(e.fractionalPart||"").length);if(s>=0)return s+u>r&&s<=o;if(s<0)return s>=r&&s-u<o}return s>=0&&s<=o||s<0&&s>=r}return!1}return!0},t.prototype.parseNumber=function(e){for(var n={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},r=e==null?"":e.toString(),o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"-":{this.allowNegativeValues&&(this.min===void 0||this.min<0)&&o++;break}case this.decimalSeparator:{this.precision>0&&(n.hasDecimalSeparator=!0);break}case this.thousandsSeparator:break;default:a.match(zr)&&(n.hasDecimalSeparator?n.fractionalPart+=a:n.integralPart+=a)}}return n.isNegative=o%2!==0,n.integralPart.length>1&&n.integralPart[0]==="0"&&(n.integralPart=n.integralPart.slice(1)),n},t.prototype.getNumberMaskedValue=function(e,n){n===void 0&&(n=!1);var r=this.parseNumber(e);if(!this.validateNumber(r,n))return null;var o=this.displayNumber(r,!0,n);return o},t.prototype.getNumberUnmaskedValue=function(e){var n=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(n))return this.convertNumber(n)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var n=e==null?"":e.toString();return n=n.replace(".",this.decimalSeparator),this.getNumberMaskedValue(n,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=e.prevValue.slice(e.selectionEnd),s=r+o,a=this.parseNumber(s);if(!this.validateNumber(a,!1))return n;var l=this.getNumberMaskedValue(s),u=this.calccaretPosition(r,e,l);return n.value=l,n.caretPosition=u,n},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return e===""||e===void 0||e===null},Vt([h()],t.prototype,"allowNegativeValues",void 0),Vt([h()],t.prototype,"decimalSeparator",void 0),Vt([h()],t.prototype,"precision",void 0),Vt([h()],t.prototype,"thousandsSeparator",void 0),Vt([h()],t.prototype,"min",void 0),Vt([h()],t.prototype,"max",void 0),t}(En);x.addClass("numericmask",[{name:"allowNegativeValues:boolean",default:!0},{name:"decimalSeparator",default:".",maxLength:1},{name:"thousandsSeparator",default:",",maxLength:1},{name:"precision:number",default:2,minValue:0},{name:"min:number"},{name:"max:number"}],function(){return new mi},"masksettings");var mf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),In=function(){return In=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},In.apply(this,arguments)},Js=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Gs(i,t){switch(i){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}function vf(i,t){var e=t;return i.count<i.maxCount&&(i.type==="day"&&parseInt(t[0])===0||i.type==="month"&&parseInt(t[0])===0)&&(e=t.slice(1,t.length)),e}function bf(i){for(var t=[],e,n=function(s,a,l){if(l===void 0&&(l=!1),e&&e===s){t[t.length-1].count++;var u=Gs(s,t[t.length-1].count);t[t.length-1].maxCount=u}else{var u=Gs(s,1);t.push({type:s,value:a,count:1,maxCount:u,upperCase:l})}},r=0;r<i.length;r++){var o=i[r];switch(o){case"m":n("month",o);break;case"d":n("day",o);break;case"y":n("year",o);break;case"h":n("hour",o,!1);break;case"H":n("hour",o,!0);break;case"M":n("minute",o);break;case"s":n("second",o);break;case"t":n("timeMarker",o);break;case"T":n("timeMarker",o,!0);break;default:t.push({type:"separator",value:o,count:1,maxCount:1,upperCase:!1});break}e=t[t.length-1].type}return t}var Ks=function(i){mf(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.defaultDate="1970-01-01T",e.turnOfTheCentury=68,e.twelve=12,e.lexems=[],e.inputDateTimeData=[],e.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},e}return Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some(function(e){return e.type==="day"||e.type==="month"||e.type==="year"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some(function(e){return e.type==="hour"||e.type==="minute"||e.type==="second"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter(function(e){return e.type==="hour"&&!e.upperCase}).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.getTypeForExpressions=function(){return this.hasTimePart?"datetime-local":"datetime"},t.prototype.updateLiterals=function(){this.lexems=bf(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var n="",r=0;r<e.length;r++)e[r].match(zr)&&(n+=e[r]);return n},t.prototype.getMaskedStrFromISO=function(e){var n=this,r=new Date(e);return this.initInputDateTimeData(),this.hasTimePart||(r=new Date(e+"T00:00:00")),this.hasDatePart||(r=new Date(this.defaultDate+e)),isNaN(r)||this.lexems.forEach(function(o,s){var a=n.inputDateTimeData[s];switch(a.isCompleted=!0,o.type){case"hour":{n.is12Hours?a.value=((r.getHours()-1)%n.twelve+1).toString():a.value=r.getHours().toString();break}case"minute":{a.value=r.getMinutes().toString();break}case"second":{a.value=r.getSeconds().toString();break}case"timeMarker":{var l=r.getHours()>=n.twelve?"pm":"am";a.value=o.upperCase?l.toUpperCase():l;break}case"day":{a.value=r.getDate().toString();break}case"month":{a.value=(r.getMonth()+1).toString();break}case"year":{var u=r.getFullYear();o.count==2&&(u=u%100),a.value=u.toString();break}}}),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach(function(n){e.inputDateTimeData.push({lexem:n,isCompleted:!1,value:void 0})})},t.prototype.getISO_8601Format=function(e){var n=[],r=[];if(e.year!==void 0){var o=this.getPlaceholder(4,e.year.toString(),"0")+e.year;n.push(o)}if(e.month!==void 0&&e.year!==void 0){var s=this.getPlaceholder(2,e.month.toString(),"0")+e.month;n.push(s)}if(e.day!==void 0&&e.month!==void 0&&e.year!==void 0){var a=this.getPlaceholder(2,e.day.toString(),"0")+e.day;n.push(a)}if(e.hour!==void 0){var l=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;r.push(l)}if(e.minute!==void 0&&e.hour!==void 0){var u=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;r.push(u)}if(e.second!==void 0&&e.minute!==void 0&&e.hour!==void 0){var d=this.getPlaceholder(2,e.second.toString(),"0")+e.second;r.push(d)}var v=[];return n.length>0&&v.push(n.join("-")),r.length>1&&v.push(r.join(":")),v.join("T")},t.prototype.isYearValid=function(e){if(e.min===void 0&&e.max===void 0)return!1;var n=e.year.toString(),r=e.min.toISOString().slice(0,n.length),o=e.max.toISOString().slice(0,n.length);return e.year>=parseInt(r)&&e.year<=parseInt(o)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,n){var r=e.day==29&&e.month==2,o=e.min.getFullYear(),s=e.max.getFullYear();r&&(o=Math.ceil(o/4)*4,s=Math.floor(o/4)*4,o>s&&(o=void 0,s=void 0));var a=e.year!==void 0?e.year:n?s:o,l=e.month!==void 0?e.month:n&&this.hasDatePart?12:1,u=e.day!==void 0?e.day:n&&this.hasDatePart?this.getMaxDateForMonth(a,l):1,d=e.hour!==void 0?e.hour:n?23:0,v=e.minute!==void 0?e.minute:n?59:0,V=e.second!==void 0?e.second:n?59:0;return{year:a,month:l,day:u,hour:d,minute:v,second:V}},t.prototype.getMaxDateForMonth=function(e,n){return n==2?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][n-1]},t.prototype.isDateValid=function(e){var n=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),r=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(n)&&(n.getDate()===e.day||e.day===void 0)&&(n.getMonth()===e.month-1||e.month===void 0)&&(n.getFullYear()===e.year||e.year===void 0)&&r>=e.min&&n<=e.max},t.prototype.getPlaceholder=function(e,n,r){var o=e-(n||"").length,s=o>0?r.repeat(o):"";return s},t.prototype.isDateValid12=function(e){return this.is12Hours?this.is12Hours&&e.hour>this.twelve?!1:e.timeMarker?e.timeMarker[0].toLowerCase()==="p"?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):this.isDateValid(e)?!0:(e.hour+=this.twelve,this.isDateValid(e)):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,n){var r=e.value;if(r){var o="timeMarker",s=In({},n);s[o]=r,this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1),e.value=r||void 0,n[o]=r||void 0}},t.prototype.updateInputDateTimeData=function(e,n){var r=e.value;if(r){var o=e.lexem.type,s=In({},n);if(s[o]=parseInt(this.parseTwoDigitYear(e)),r.length===e.lexem.maxCount)if(this.isDateValid12(s)){e.isCompleted=!0,e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0;return}else r=r.slice(0,r.length-1);s[o]=parseInt(r);var a=parseInt(r[0]),l=this.validBeginningOfNumbers[o+(e.lexem.upperCase?"U":"")];o==="year"&&!this.isYearValid(s)?(r=r.slice(0,r.length-1),e.isCompleted=!1):l!==void 0&&a>l?this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1):l!==void 0&&a!==0&&a<=l&&(this.checkValidationDateTimePart(s,o,e),e.isCompleted&&!this.isDateValid12(s)&&(r=r.slice(0,r.length-1))),e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0}},t.prototype.checkValidationDateTimePart=function(e,n,r){var o=e[n],s=o*10,a=10;n==="month"&&(a=3),n==="hour"&&(a=this.is12Hours?3:5),r.isCompleted=!0;for(var l=0;l<a;l++)if(e[n]=s+l,this.isDateValid12(e)){r.isCompleted=!1;break}e[n]=o},t.prototype.getCorrectDatePartFormat=function(e,n){var r=e.lexem,o=e.value||"";if(o&&r.type==="timeMarker")return n&&(o=o+this.getPlaceholder(r.count,o,r.value)),o;if(o&&e.isCompleted&&(o=parseInt(o).toString()),o&&e.isCompleted){var s=this.getPlaceholder(r.count,o,"0");o=s+o}else o=vf(r,o),n&&(o+=this.getPlaceholder(r.count,o,r.value));return o},t.prototype.createIDateTimeComposition=function(){var e,n;this.hasDatePart?(e=this.min||"0001-01-01",n=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),n=this.defaultDate+(this.max||"23:59:59"));var r={hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(n)};return r},t.prototype.parseTwoDigitYear=function(e){var n=e.value;if(e.lexem.type!=="year"||e.lexem.count>2)return n;this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4)));var r=parseInt(n),o=(r>this.turnOfTheCentury?"19":"20")+n;return o},t.prototype.getFormatedString=function(e){var n="",r="",o=!1,s=this.inputDateTimeData.length-1;if(!e){var a=this.inputDateTimeData.filter(function(V){return!!V.value});s=this.inputDateTimeData.indexOf(a[a.length-1])}for(var l=0;l<this.inputDateTimeData.length;l++){var u=this.inputDateTimeData[l];switch(u.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(u.value===void 0&&!e)return n+=o?r:"",n;var d=e||s>l,v=this.getCorrectDatePartFormat(u,d);n+=r+v,o=u.isCompleted;break;case"separator":r=u.lexem.value;break}}return n},t.prototype.cleanTimeMarker=function(e,n){var r="";e=e.toUpperCase();for(var o=0;o<e.length;o++)(!r&&(e[o]=="P"||e[o]=="A")||r&&e[o]=="M")&&(r+=e[o]);return n?r=r.toUpperCase():r=r.toLowerCase(),r},t.prototype.setInputDateTimeData=function(e){var n=this,r=0;this.initInputDateTimeData(),this.lexems.forEach(function(o,s){if(e.length>0&&r<e.length){if(o.type==="separator")return;var a=n.inputDateTimeData[s],l=e[r],u=void 0;o.type==="timeMarker"?u=n.cleanTimeMarker(l,o.upperCase):u=n.leaveOnlyNumbers(l),a.value=u.slice(0,o.maxCount),r++}})},t.prototype._getMaskedValue=function(e,n){var r=this;n===void 0&&(n=!0);var o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var a=this.createIDateTimeComposition();this.inputDateTimeData.forEach(function(u){u.lexem.type==="timeMarker"?r.updateTimeMarkerInputDateTimeData(u,a):r.updateInputDateTimeData(u,a)});var l=this.getFormatedString(n);return l},t.prototype.getParts=function(e){for(var n=[],r=this.lexems.filter(function(v){return v.type!=="separator"}),o=this.lexems.filter(function(v){return v.type==="separator"}).map(function(v){return v.value}),s="",a=!1,l=!1,u=0;u<e.length;u++){var d=e[u];if(d.match(zr)||d===r[n.length].value||r[n.length].type==="timeMarker"?(a=!1,l=!1,s+=d):o.indexOf(d)!==-1?l||(a=!0,n.push(s),s=""):a||(l=!0,n.push(s),s=""),n.length>=r.length){a=!1;break}}return(s!=""||a)&&n.push(s),n},t.prototype.getUnmaskedValue=function(e){var n=this,r,o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var a=(r=this.inputDateTimeData.filter(function(d){return d.lexem.type==="timeMarker"})[0])===null||r===void 0?void 0:r.value.toLowerCase()[0],l=this.createIDateTimeComposition(),u=!1;return this.inputDateTimeData.forEach(function(d){var v=d.value;if(!(d.lexem.type=="timeMarker"||d.lexem.type=="separator")){if(!v||v.length<d.lexem.count){u=!0;return}var V=parseInt(n.parseTwoDigitYear(d));d.lexem.type=="hour"&&a==="p"&&V!=n.twelve&&(V+=n.twelve),l[d.lexem.type]=V}}),u?"":this.getISO_8601Format(l)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart),o=e.prevValue.slice(e.selectionEnd);return n.value=this._getMaskedValue(r+(e.insertedChars||"")+o),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r+(e.insertedChars||""),!1).length,n},Js([h()],t.prototype,"min",void 0),Js([h()],t.prototype,"max",void 0),t}(yi);x.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(i){return!!i.pattern}},{name:"max",type:"datetime",enableIf:function(i){return!!i.pattern}}],function(){return new Ks},"patternmask");var Cf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ys=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Xs=function(i){Cf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var n=this.prefix||"",r=this.suffix||"",o=e;return o&&(o.indexOf(n)===-1&&(o=n+o),o.indexOf(r)===-1&&(o+=r),o)},t.prototype.unwrapInputArgs=function(e){var n=e.prevValue;if(n){if(this.prefix&&n.indexOf(this.prefix)!==-1){n=n.slice(n.indexOf(this.prefix)+this.prefix.length);var r=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-r,0),e.selectionEnd-=r}this.suffix&&n.indexOf(this.suffix)!==-1&&(n=n.slice(0,n.indexOf(this.suffix))),e.prevValue=n}},t.prototype.processInput=function(e){this.unwrapInputArgs(e);var n=i.prototype.processInput.call(this,e),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(e){var n=i.prototype.getMaskedValue.call(this,e);return this.wrapText(n)},Ys([h()],t.prototype,"prefix",void 0),Ys([h()],t.prototype,"suffix",void 0),t}(mi);x.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new Xs},"numericmask");var Wt,vi;Wt="1.12.23",b.version=Wt,vi="2025-02-11";function Pf(i,t){if(Wt!=i){var e="survey-core has version '"+Wt+"' and "+t+" has version '"+i+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(e)}}function Vf(i){Zs(i)}function Zs(i){xf(i,ea,vi)}function wf(i){return ea[i.toString()]===!0}var ea={};function xf(i,t,e){if(i){var n=function(s){var a={},l,u=0,d,v=0,V,T="",R=String.fromCharCode,N=s.length,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(l=0;l<64;l++)a[j.charAt(l)]=l;for(d=0;d<N;d++){var A=a[s.charAt(d)];for(u=(u<<6)+A,v+=6;v>=8;)((V=u>>>(v-=8)&255)||d<N-2)&&(T+=R(V))}return T},r=n(i);if(r){var o=r.indexOf(";");o<0||Of(r.substring(0,o))&&(r=r.substring(o+1),r.split(",").forEach(function(s){var a=s.indexOf("=");a>0&&(t[s.substring(0,a)]=new Date(e)<=new Date(s.substring(a+1)))}))}}}function Of(i){if(!i)return!0;var t="domains:",e=i.indexOf(t);if(e<0)return!0;var n=i.substring(e+t.length).toLowerCase().split(",");if(!Array.isArray(n)||n.length===0)return!0;var r=E.getLocation();if(r&&r.hostname){var o=r.hostname.toLowerCase();n.push("localhost");for(var s=0;s<n.length;s++)if(o.indexOf(n[s])>-1)return!0;return!1}return!0}var Sf={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},Tf={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},Rf={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},Ef={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},If={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},Af={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},Df={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},Lf={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"};function Mf(i,t){Object.keys(i||{}).forEach(function(e){var n=e.substring(1);t.style.setProperty("--"+n,i[e])})}var ta=function(){function i(){i.autoApplyTheme()}return i.autoApplyTheme=function(){if(!(se.currentType==="bootstrap"||se.currentType==="bootstrapmaterial")){var t=i.getIncludedThemeCss();t.length===1&&i.applyTheme(t[0].name)}},i.getAvailableThemes=function(){var t=se.getAvailableThemes().filter(function(e){return["defaultV2","default","modern"].indexOf(e)!==-1}).map(function(e){return{name:e,theme:se[e]}});return t},i.getIncludedThemeCss=function(){if(typeof b.environment>"u")return[];var t=b.environment.rootElement,e=i.getAvailableThemes(),n=Lt(t)?t.host:t;if(n){var r=getComputedStyle(n);if(r.length)return e.filter(function(o){return o.theme.variables&&r.getPropertyValue(o.theme.variables.themeMark)})}return[]},i.findSheet=function(t){if(typeof b.environment>"u")return null;for(var e=b.environment.root.styleSheets,n=0;n<e.length;n++)if(e[n].ownerNode&&e[n].ownerNode.id===t)return e[n];return null},i.createSheet=function(t){var e=b.environment.stylesSheetsMountContainer,n=I.createElement("style");return n.id=t,n.appendChild(new Text("")),Zn(e).appendChild(n),i.Logger&&i.Logger.log("style sheet "+t+" created"),n.sheet},i.applyTheme=function(t,e){if(t===void 0&&(t="default"),!(typeof b.environment>"u")){var n=b.environment.rootElement,r=Lt(n)?n.host:n;if(se.currentType=t,i.Enabled){if(t!=="bootstrap"&&t!=="bootstrapmaterial"){Mf(i.ThemeColors[t],r),i.Logger&&i.Logger.log("apply theme "+t+" completed");return}var o=i.ThemeCss[t];if(!o){se.currentType="defaultV2";return}i.insertStylesRulesIntoDocument();var s=e||i.ThemeSelector[t]||i.ThemeSelector.default,a=(t+s).trim(),l=i.findSheet(a);if(!l){l=i.createSheet(a);var u=i.ThemeColors[t]||i.ThemeColors.default;Object.keys(o).forEach(function(d){var v=o[d];Object.keys(u||{}).forEach(function(V){return v=v.replace(new RegExp("\\"+V,"g"),u[V])});try{d.indexOf("body")===0?l.insertRule(d+" { "+v+" }",0):l.insertRule(s+d+" { "+v+" }",0)}catch{}})}}i.Logger&&i.Logger.log("apply theme "+t+" completed")}},i.insertStylesRulesIntoDocument=function(){if(i.Enabled){var t=i.findSheet(i.SurveyJSStylesSheetId);t||(t=i.createSheet(i.SurveyJSStylesSheetId)),Object.keys(i.Styles).length&&Object.keys(i.Styles).forEach(function(e){try{t.insertRule(e+" { "+i.Styles[e]+" }",0)}catch{}}),Object.keys(i.Media).length&&Object.keys(i.Media).forEach(function(e){try{t.insertRule(i.Media[e].media+" { "+e+" { "+i.Media[e].style+" } }",0)}catch{}})}},i.SurveyJSStylesSheetId="surveyjs-styles",i.Styles={},i.Media={},i.ThemeColors={modern:Sf,default:Tf,orange:Rf,darkblue:Ef,darkrose:If,stone:Af,winter:Df,winterstone:Lf},i.ThemeCss={},i.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},i.Enabled=!0,i}();Ue.prototype.onBeforeRunConstructor=function(){E.isAvailable()&&ta.autoApplyTheme()};var Xe={root:"sv_main sv_default_css",rootProgress:"sv_progress",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv_q_m_cell_responsive_title"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",rowTextCell:"sv-table__cell--row-text",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"sv_matrix_dynamic_button--add",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",previewItem:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};se.default=Xe,se.orange=Xe,se.darkblue=Xe,se.darkrose=Xe,se.stone=Xe,se.winter=Xe,se.winterstone=Xe;var na={root:"sv-root-modern",rootProgress:"sv-progress",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",number:"sv-page__num",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-matrix__cell-responsive-title",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowTextCell:"sv-table__cell--row-text",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",previewItem:"sd-file__preview-item",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};se.modern=na;var ra=function(){function i(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new Ve}return i.prototype.processId=function(t,e){return t.indexOf(e)==0&&(t=t.substring(e.length)),t=nr[t]||t,t},i.prototype.registerIconFromSymbol=function(t,e){this.icons[t]=e},i.prototype.registerIconFromSvgViaElement=function(t,e,n){if(n===void 0&&(n=this.iconPrefix),!!I.isAvailable()){t=this.processId(t,n);var r=I.createElement("div");r.innerHTML=e;var o=I.createElement("symbol"),s=r.querySelector("svg");o.innerHTML=s.innerHTML;for(var a=0;a<s.attributes.length;a++)o.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[a].name,s.attributes[a].value);o.id=n+t,this.registerIconFromSymbol(t,o.outerHTML)}},i.prototype.registerIconFromSvg=function(t,e,n){n===void 0&&(n=this.iconPrefix),t=this.processId(t,n);var r="<svg ",o="</svg>";e=e.trim();var s=e.toLowerCase();return s.substring(0,r.length)===r&&s.substring(s.length-o.length,s.length)===o?(this.registerIconFromSymbol(t,'<symbol id="'+n+t+'" '+e.substring(r.length,s.length-o.length)+"</symbol>"),!0):!1},i.prototype.registerIconsFromFolder=function(t){var e=this;t.keys().forEach(function(n){e.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),t(n))})},i.prototype.registerIcons=function(t){for(var e in t)this.registerIconFromSvg(e,t[e]);this.updateMarkup()},i.prototype.iconsRenderedHtml=function(){var t=this;return Object.keys(this.icons).map(function(e){return t.icons[e]}).join("")},i.prototype.updateMarkup=function(){this.onIconsChanged.fire(this,{})},i}(),jf=new ra,An={};function Nf(i,t){An[i]||(An[i]={});var e=An[i];for(var n in t)e[n]=t[n]}}})})}(jn)),jn.exports}var sh=oh();const ah=rh({__proto__:null},[sh]);export{sh as a,oh as r,ah as s};
diff --git a/compendium_v2/static/survey.html b/compendium_v2/static/survey.html
deleted file mode 100644
index 97c5d6719ae12b4638d93790bfa64b9e8ff3619f..0000000000000000000000000000000000000000
--- a/compendium_v2/static/survey.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8"/>
-  <title>Compendium Survey</title>
-  <script type="module" crossorigin src="/static/survey.js"></script>
-  <link rel="modulepreload" crossorigin href="/static/main-BIBsTO5W.js">
-  <link rel="modulepreload" crossorigin href="/static/xlsx-CxqzP9DR.js">
-  <link rel="modulepreload" crossorigin href="/static/Table-HH9WOnMU.js">
-  <link rel="stylesheet" crossorigin href="/static/main.css">
-</head>
-<body>
-  <div id="root"></div>
-</body>
-</html>
\ No newline at end of file
diff --git a/compendium_v2/static/survey.js b/compendium_v2/static/survey.js
deleted file mode 100644
index 4fc87fd56d946da950205092bee4071f4d42b33a..0000000000000000000000000000000000000000
--- a/compendium_v2/static/survey.js
+++ /dev/null
@@ -1,2 +0,0 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["SurveyContainerComponent-D59B1_HE.js","main-BIBsTO5W.js","main.css","index-CuSQpLoM.js","Schema-BuKG9dA7.js","xlsx-CxqzP9DR.js","Table-HH9WOnMU.js","Bx5HfHBo.css","SurveyManagementComponent-DMYN1lq-.js","lodash-BjwYmmCl.js","hook-DmuGcAOd.js","UserManagementComponent-CiWfGwDf.js","index-D6hre9Be.js"])))=>i.map(i=>d[i]);
-import{a as S,j as t,b as Z,r as f,g as ee,q as te,L as H,e as ne,R as re,_ as q,k as se,l as oe,o as ae,E as le,O as ie,m as ce,n as de,G as me,p as he,i as ue}from"./main-BIBsTO5W.js";import{L as W,S as fe,u as b,w as ye}from"./xlsx-CxqzP9DR.js";import{T as pe}from"./Table-HH9WOnMU.js";async function xe(){try{return await(await fetch("/api/survey/list")).json()}catch{return[]}}async function je(){try{const n=await(await fetch("/api/survey/active/year")).json();return"year"in n?n.year.toString():(console.log("Invalid response format: Failed fetching active survey year."),"")}catch(e){return console.error("Failed fetching active survey year:",e),""}}const ve=()=>{const e=S.c(4);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("h5",{className:"section-title",children:"Management Links"}),e[0]=n):n=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(W,{to:"/survey",children:t.jsx("span",{children:"Survey Home"})}),e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(W,{to:"/survey/admin/users",children:t.jsx("span",{children:"Compendium User Management"})}),e[2]=s):s=e[2];let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs(fe,{survey:!0,children:[n,o,s,t.jsx(W,{to:"/survey/admin/surveys",children:t.jsx("span",{children:"Compendium Survey Management"})})]}),e[3]=r):r=e[3],r},_e=()=>{const e=S.c(7),[n,o]=f.useState();let s,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{xe().then(a=>{o(a[0])})},r=[],e[0]=s,e[1]=r):(s=e[0],r=e[1]),f.useEffect(s,r);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"(N)REN"}),t.jsx("th",{children:"Link"}),t.jsx("th",{children:"Survey Status"})]})}),e[2]=c):c=e[2];let d;e[3]!==n?(d=n&&n.responses.map(a=>t.jsxs("tr",{children:[t.jsx("td",{children:a.nren.name}),t.jsx("td",{children:t.jsx(H,{to:`/survey/response/${n.year}/${a.nren.name}`,children:t.jsx("span",{children:"Navigate to survey"})})}),t.jsx("td",{children:a.status})]},a.nren.id)),e[3]=n,e[4]=d):d=e[4];let l;return e[5]!==d?(l=t.jsxs(pe,{striped:!0,bordered:!0,responsive:!0,children:[c,t.jsx("tbody",{children:d})]}),e[5]=d,e[6]=l):l=e[6],l};function K(){const e=S.c(37),{trackPageView:n}=Z(),{user:o}=f.useContext(ee),s=te(),r=!!o.id,c=r?!!o.nrens.length:!1,d=c?o.nrens[0]:"",l=r?o.permissions.admin:!1,a=r?o.role==="observer":!1,[m,Q]=f.useState(null);let E,C;e[0]!==n?(E=()=>{(async()=>{const G=await je();Q(G)})(),n({documentTitle:"GEANT Survey Landing Page"})},C=[n],e[0]=n,e[1]=E,e[2]=C):(E=e[1],C=e[2]),f.useEffect(E,C);let N;e[3]!==d||e[4]!==m||e[5]!==s?(N=()=>{try{return s(`/survey/response/${m}/${d}`),t.jsx("li",{children:"Redirecting to survey..."})}catch(U){return console.error("Error navigating:",U),null}},e[3]=d,e[4]=m,e[5]=s,e[6]=N):N=e[6];const B=N;let R;if(e[7]===Symbol.for("react.memo_cache_sentinel")){const U=function(u,x,h){const y=b.decode_range(u["!ref"]??"");let w=-1;for(let i=y.s.c;i<=y.e.c;i++){const p=b.encode_cell({r:y.s.r,c:i}),V=u[p];if(V&&typeof V.v=="string"&&V.v===x){w=i;break}}if(w===-1){console.error(`Column '${x}' not found.`);return}for(let i=y.s.r+1;i<=y.e.r;++i){const p=b.encode_cell({r:i,c:w});u[p]&&u[p].t==="n"&&(u[p].z=h)}},G=function(u){const x=b.book_new();u.forEach(i=>{const p=b.json_to_sheet(i.data);i.meta&&U(p,i.meta.columnName,i.meta.format),b.book_append_sheet(x,p,i.name)});const h=ye(x,{bookType:"xlsx",type:"binary"}),y=new ArrayBuffer(h.length),w=new Uint8Array(y);for(let i=0;i<h.length;i++)w[i]=h.charCodeAt(i)&255;return new Blob([y],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})};R=function(){fetch("/api/data-download").then(be).then(u=>{const x=G(u),h=document.createElement("a");h.href=URL.createObjectURL(x),h.download="data.xlsx",document.body.appendChild(h),h.click(),document.body.removeChild(h)}).catch(ge)},e[7]=R}else R=e[7];const X=R;let j;e[8]!==l?(j=l&&t.jsx(ve,{}),e[8]=l,e[9]=j):j=e[9];let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS SURVEY"}),e[10]=k):k=e[10];let T,A;e[11]===Symbol.for("react.memo_cache_sentinel")?(T={maxWidth:"75rem"},A={textAlign:"left"},e[11]=T,e[12]=A):(T=e[11],A=e[12]);let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("br",{}),e[13]=L):L=e[13];let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("a",{href:"/login",children:"here"}),e[14]=O):O=e[14];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("br",{}),e[15]=F):F=e[15];let P;e[16]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("br",{}),e[16]=P):P=e[16];let $,M,I,Y;e[17]===Symbol.for("react.memo_cache_sentinel")?($=t.jsxs("p",{style:A,children:["Hello,",L,"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",O,", which will complete their registration to fill in the latest Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",F,"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",P,"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.jsx("br",{}),"Thank you."]}),M=t.jsx("span",{children:"Current registration status:"}),I=t.jsx("br",{}),Y=t.jsx("br",{}),e[17]=$,e[18]=M,e[19]=I,e[20]=Y):($=e[17],M=e[18],I=e[19],Y=e[20]);let v;e[21]!==m||e[22]!==c||e[23]!==l||e[24]!==a||e[25]!==r||e[26]!==B?(v=l?t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("span",{children:"You are logged in as a Compendium Administrator"})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(H,{to:"/survey/admin/surveys",children:"here"})," to access the survey management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(H,{to:"/survey/admin/users",children:"here"})," to access the user management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx("a",{href:"#",onClick:X,children:"here"})," to do the full data download."]})})]}):t.jsxs("ul",{children:[m&&!l&&!a&&c&&B(),r?t.jsx("li",{children:t.jsx("span",{children:"You are logged in"})}):t.jsx("li",{children:t.jsx("span",{children:"You are not logged in"})}),r&&!a&&!c&&t.jsx("li",{children:t.jsx("span",{children:"Your access to the survey has not yet been approved"})}),r&&!a&&!c&&t.jsx("li",{children:t.jsx("span",{children:"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page"})}),r&&a&&t.jsx("li",{children:t.jsx("span",{children:"You have read-only access to the following surveys:"})})]}),e[21]=m,e[22]=c,e[23]=l,e[24]=a,e[25]=r,e[26]=B,e[27]=v):v=e[27];let _;e[28]!==a||e[29]!==r?(_=r&&a&&t.jsx(_e,{}),e[28]=a,e[29]=r,e[30]=_):_=e[30];let g;e[31]!==v||e[32]!==_?(g=t.jsx(ne,{className:"py-5 grey-container",children:t.jsx(re,{children:t.jsxs("div",{className:"center-text",children:[k,t.jsxs("div",{className:"wordwrap pt-4",style:T,children:[$,M,I,Y,v,_]})]})})}),e[31]=v,e[32]=_,e[33]=g):g=e[33];let D;return e[34]!==g||e[35]!==j?(D=t.jsxs(t.Fragment,{children:[j,g]}),e[34]=g,e[35]=j,e[36]=D):D=e[36],D}function ge(e){console.error("Error fetching data:",e),alert("An error occurred while creating the data download Excel file.")}function be(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()}const z=f.lazy(()=>q(()=>import("./SurveyContainerComponent-D59B1_HE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),Se=f.lazy(()=>q(()=>import("./SurveyManagementComponent-DMYN1lq-.js"),__vite__mapDeps([8,1,2,9,10,6,3,4,5]))),we=f.lazy(()=>q(()=>import("./UserManagementComponent-CiWfGwDf.js"),__vite__mapDeps([11,1,2,3,12,9,10,6,5]))),Ee=e=>{const n=S.c(3),{pathname:o}=e;let s,r;return n[0]!==o?(s=()=>{console.log(o),o.startsWith("/survey")||window.location.replace(`${o}`)},r=[o],n[0]=o,n[1]=s,n[2]=r):(s=n[1],r=n[2]),f.useEffect(s,r),null},Ce=()=>{const e=S.c(12),{pathname:n}=oe(),o=n!=="/survey";let s;e[0]!==n?(s=t.jsx(Ee,{pathname:n}),e[0]=n,e[1]=s):s=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(le,{}),e[2]=r):r=e[2];let c;e[3]!==o?(c=t.jsx("main",{className:"grow",children:o?t.jsx(ie,{}):t.jsx(K,{})}),e[3]=o,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(ce,{}),e[5]=d):d=e[5];let l;e[6]!==s||e[7]!==c?(l=t.jsxs(de,{children:[s,r,c,d]}),e[6]=s,e[7]=c,e[8]=l):l=e[8];let a;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(me,{}),e[9]=a):a=e[9];let m;return e[10]!==l?(m=t.jsxs(t.Fragment,{children:[l,a]}),e[10]=l,e[11]=m):m=e[11],m},Ne=se([{path:"",element:t.jsx(Ce,{}),children:[{path:"/survey/admin/surveys",element:t.jsx(Se,{})},{path:"/survey/admin/users",element:t.jsx(we,{})},{path:"/survey/admin/inspect/:year",element:t.jsx(z,{loadFrom:"/api/response/inspect/"})},{path:"/survey/admin/try/:year",element:t.jsx(z,{loadFrom:"/api/response/try/"})},{path:"/survey/response/:year/:nren",element:t.jsx(z,{loadFrom:"/api/response/load/"})},{path:"*",element:t.jsx(K,{})}]}]);function Re(){const e=S.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"app",children:t.jsx(ae,{router:Ne})}),e[0]=n):n=e[0],n}const ke=document.getElementById("root"),Te=he.createRoot(ke);Te.render(t.jsx(ue.StrictMode,{children:t.jsx(Re,{})}));export{ve as S,xe as f};
diff --git a/compendium_v2/static/third-party-licenses.txt b/compendium_v2/static/third-party-licenses.txt
index ac72a24078354dcccf6fa2ab7bf9bc1e555a3bd5..7a76b72053d62ee825feb3b0f6be1262f5ed4173 100644
--- a/compendium_v2/static/third-party-licenses.txt
+++ b/compendium_v2/static/third-party-licenses.txt
@@ -1,38 +1,3 @@
-Name: react-bootstrap
-Version: 2.10.8
-License: MIT
-Private: false
-Description: Bootstrap 5 components built with React
-Repository: git+https://github.com/react-bootstrap/react-bootstrap.git
-Homepage: https://react-bootstrap.github.io/
-Author: Stephen J. Collings <stevoland@gmail.com>
-License Copyright:
-===
-
-The MIT License (MIT)
-
-Copyright (c) 2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
----
-
 Name: react
 Version: 19.0.0
 License: MIT
@@ -174,7 +139,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ---
 
 Name: react-router
-Version: 7.1.3
+Version: 7.1.5
 License: MIT
 Private: false
 Description: Declarative routing for React
@@ -279,6 +244,41 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 ---
 
+Name: react-bootstrap
+Version: 2.10.9
+License: MIT
+Private: false
+Description: Bootstrap 5 components built with React
+Repository: git+https://github.com/react-bootstrap/react-bootstrap.git
+Homepage: https://react-bootstrap.github.io/
+Author: Stephen J. Collings <stevoland@gmail.com>
+License Copyright:
+===
+
+The MIT License (MIT)
+
+Copyright (c) 2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+---
+
 Name: dom-helpers
 Version: 5.2.1
 License: MIT
@@ -392,7 +392,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 ---
 
 Name: @restart/ui
-Version: 1.9.3
+Version: 1.9.4
 License: MIT
 Private: false
 Description: Utilities for creating robust overlay components
@@ -614,14 +614,135 @@ License: MIT https://github.com/icons8/line-awesome/blob/master/LICENSE.md
 
 ---
 
-Name: xlsx
-Version: 0.18.5
+Name: react-chartjs-2
+Version: 5.3.0
+License: MIT
+Private: false
+Description: React components for Chart.js
+Repository: https://github.com/reactchartjs/react-chartjs-2.git
+Homepage: https://github.com/reactchartjs/react-chartjs-2
+Author: Jeremy Ayerst
+License Copyright:
+===
+
+Copyright 2020 Jeremy Ayerst
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+---
+
+Name: uncontrollable
+Version: 8.0.4
+License: MIT
+Private: false
+Description: Wrap a controlled react component, to allow specific prop/handler pairs to be uncontrolled
+Repository: git+https://github.com/jquense/uncontrollable.git
+Homepage: https://github.com/jquense/uncontrollable#readme
+Author: Jason Quense <monastic.panic@gmail.com>
+License Copyright:
+===
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Jason Quense
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+---
+
+Name: dequal
+Version: 2.0.3
+License: MIT
+Private: false
+Description: A tiny (304B to 489B) utility for check for deep equality
+Repository: undefined
+Author: Luke Edwards <luke.edwards05@gmail.com> (https://lukeed.com)
+License Copyright:
+===
+
+The MIT License (MIT)
+
+Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+---
+
+Name: @popperjs/core
+Version: 2.11.8
+License: MIT
+Private: false
+Description: Tooltip and Popover Positioning Engine
+Repository: undefined
+Author: Federico Zivolo <federico.zivolo@gmail.com>
+License Copyright:
+===
+
+The MIT License (MIT)
+
+Copyright (c) 2019 Federico Zivolo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+---
+
+Name: @react-aria/ssr
+Version: 3.9.7
 License: Apache-2.0
 Private: false
-Description: SheetJS Spreadsheet data parser and writer
-Repository: git://github.com/SheetJS/sheetjs.git
-Homepage: https://sheetjs.com/
-Author: sheetjs
+Description: Spectrum UI components in React
+Repository: https://github.com/adobe/react-spectrum
 License Copyright:
 ===
 
@@ -805,7 +926,7 @@ License Copyright:
    APPENDIX: How to apply the Apache License to your work.
 
       To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "{}"
+      boilerplate notice, with the fields enclosed by brackets "[]"
       replaced with your own identifying information. (Don't include
       the brackets!)  The text should be enclosed in the appropriate
       comment syntax for the file format. We also recommend that a
@@ -813,7 +934,7 @@ License Copyright:
       same "printed page" as the copyright notice for easier
       identification within third-party archives.
 
-   Copyright (C) 2012-present   SheetJS LLC
+   Copyright 2019 Adobe
 
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
@@ -829,18 +950,20 @@ License Copyright:
 
 ---
 
-Name: react-chartjs-2
-Version: 5.3.0
+Name: @kurkle/color
+Version: 0.3.2
 License: MIT
 Private: false
-Description: React components for Chart.js
-Repository: https://github.com/reactchartjs/react-chartjs-2.git
-Homepage: https://github.com/reactchartjs/react-chartjs-2
-Author: Jeremy Ayerst
+Description: css color parsing, manupulation and conversion
+Repository: git+https://github.com/kurkle/color.git
+Homepage: https://github.com/kurkle/color#readme
+Author: Jukka Kurkela
 License Copyright:
 ===
 
-Copyright 2020 Jeremy Ayerst
+The MIT License (MIT)
+
+Copyright (c) 2018-2021 Jukka Kurkela
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 
@@ -850,54 +973,53 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 
 ---
 
-Name: uncontrollable
-Version: 8.0.4
+Name: chart.js
+Version: 4.4.7
 License: MIT
 Private: false
-Description: Wrap a controlled react component, to allow specific prop/handler pairs to be uncontrolled
-Repository: git+https://github.com/jquense/uncontrollable.git
-Homepage: https://github.com/jquense/uncontrollable#readme
-Author: Jason Quense <monastic.panic@gmail.com>
+Description: Simple HTML5 charts using the canvas element.
+Repository: https://github.com/chartjs/Chart.js.git
+Homepage: https://www.chartjs.org
 License Copyright:
 ===
 
 The MIT License (MIT)
 
-Copyright (c) 2015 Jason Quense
+Copyright (c) 2014-2024 Chart.js Contributors
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 ---
 
-Name: dequal
-Version: 2.0.3
+Name: cartesian-product-multiple-arrays
+Version: 1.0.9
+License: ISC
+Private: false
+Description: Find the cartesian product of multiple arrays.
+Repository: git@github.com-luizomf:luizomf/cartesianproduct.git
+Homepage: https://github.com/luizomf/cartesianproduct
+Author: Luiz Otavio Miranda
+
+---
+
+Name: html-to-image
+Version: 1.11.11
 License: MIT
 Private: false
-Description: A tiny (304B to 489B) utility for check for deep equality
-Repository: undefined
-Author: Luke Edwards <luke.edwards05@gmail.com> (https://lukeed.com)
+Description: Generates an image from a DOM node using HTML5 canvas and SVG.
+Repository: git+https://github.com/bubkoo/html-to-image.git
+Homepage: https://github.com/bubkoo/html-to-image#readme
+Author: bubkooo <bubkoo.wy@gmail.com>
 License Copyright:
 ===
 
-The MIT License (MIT)
+MIT License
 
-Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
+Copyright (c) 2017-2023 W.Y.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -906,58 +1028,27 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
----
-
-Name: @popperjs/core
-Version: 2.11.8
-License: MIT
-Private: false
-Description: Tooltip and Popover Positioning Engine
-Repository: undefined
-Author: Federico Zivolo <federico.zivolo@gmail.com>
-License Copyright:
-===
-
-The MIT License (MIT)
-
-Copyright (c) 2019 Federico Zivolo
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
 ---
 
-Name: @react-aria/ssr
-Version: 3.9.7
+Name: xlsx
+Version: 0.18.5
 License: Apache-2.0
 Private: false
-Description: Spectrum UI components in React
-Repository: https://github.com/adobe/react-spectrum
+Description: SheetJS Spreadsheet data parser and writer
+Repository: git://github.com/SheetJS/sheetjs.git
+Homepage: https://sheetjs.com/
+Author: sheetjs
 License Copyright:
 ===
 
@@ -1141,7 +1232,7 @@ License Copyright:
    APPENDIX: How to apply the Apache License to your work.
 
       To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
+      boilerplate notice, with the fields enclosed by brackets "{}"
       replaced with your own identifying information. (Don't include
       the brackets!)  The text should be enclosed in the appropriate
       comment syntax for the file format. We also recommend that a
@@ -1149,7 +1240,7 @@ License Copyright:
       same "printed page" as the copyright notice for easier
       identification within third-party archives.
 
-   Copyright 2019 Adobe
+   Copyright (C) 2012-present   SheetJS LLC
 
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
@@ -1165,97 +1256,6 @@ License Copyright:
 
 ---
 
-Name: @kurkle/color
-Version: 0.3.2
-License: MIT
-Private: false
-Description: css color parsing, manupulation and conversion
-Repository: git+https://github.com/kurkle/color.git
-Homepage: https://github.com/kurkle/color#readme
-Author: Jukka Kurkela
-License Copyright:
-===
-
-The MIT License (MIT)
-
-Copyright (c) 2018-2021 Jukka Kurkela
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
----
-
-Name: chart.js
-Version: 4.4.7
-License: MIT
-Private: false
-Description: Simple HTML5 charts using the canvas element.
-Repository: https://github.com/chartjs/Chart.js.git
-Homepage: https://www.chartjs.org
-License Copyright:
-===
-
-The MIT License (MIT)
-
-Copyright (c) 2014-2024 Chart.js Contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
----
-
-Name: cartesian-product-multiple-arrays
-Version: 1.0.9
-License: ISC
-Private: false
-Description: Find the cartesian product of multiple arrays.
-Repository: git@github.com-luizomf:luizomf/cartesianproduct.git
-Homepage: https://github.com/luizomf/cartesianproduct
-Author: Luiz Otavio Miranda
-
----
-
-Name: html-to-image
-Version: 1.11.11
-License: MIT
-Private: false
-Description: Generates an image from a DOM node using HTML5 canvas and SVG.
-Repository: git+https://github.com/bubkoo/html-to-image.git
-Homepage: https://github.com/bubkoo/html-to-image#readme
-Author: bubkooo <bubkoo.wy@gmail.com>
-License Copyright:
-===
-
-MIT License
-
-Copyright (c) 2017-2023 W.Y.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
----
-
 Name: chartjs-plugin-datalabels
 Version: 2.2.0
 License: MIT
@@ -1278,18 +1278,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 
 ---
 
-Name: survey-core
-Version: 1.12.20
-License: MIT
-Private: false
-Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
-Repository: https://github.com/surveyjs/surveyjs.git
-Homepage: https://surveyjs.io/
-
----
-
 Name: survey-react-ui
-Version: 1.12.20
+Version: 1.12.23
 License: MIT
 Private: false
 Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
@@ -1366,6 +1356,16 @@ SOFTWARE.
 
 ---
 
+Name: survey-core
+Version: 1.12.23
+License: MIT
+Private: false
+Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
+Repository: https://github.com/surveyjs/surveyjs.git
+Homepage: https://surveyjs.io/
+
+---
+
 Name: lodash
 Version: 4.17.21
 License: MIT
diff --git a/compendium_v2/static/useData-BDYwoQEh.js b/compendium_v2/static/useData-BDYwoQEh.js
deleted file mode 100644
index a7e852efbb72b8cac03894d49d5cf0fa56fa3ec2..0000000000000000000000000000000000000000
--- a/compendium_v2/static/useData-BDYwoQEh.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var za=Object.defineProperty;var Ba=(e,t,n)=>t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>Ba(e,typeof t!="symbol"?t+"":t,n);import{r as D,s as Yt,t as Wa,j as x,u as qt,c as Gt,v as Ha,w as Va,x as bs,y as Ya,z as fn,i as fe,B as lr,D as Ua,H as Xa,I as Ka,J as xs,K as qa,M as cr,N as Nt,Q as Ga,S as Ja,a as St,q as Za,e as hr,R as oe,T as dr,P as Qa,b as tl,L as el,U as nl,C as ys,V as Zn}from"./main-BIBsTO5W.js";import{L as T,S as on,u as Qn,w as il}from"./xlsx-CxqzP9DR.js";import{S as J,E as ye,I as me,d as sl,u as ol}from"./report.js";import{c as fr,F as ur}from"./index-D6hre9Be.js";import{u as rl}from"./hook-DmuGcAOd.js";function al(){return D.useState(null)}function ll(e,t,n,i=!1){const s=Yt(n);D.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,s,i),()=>o.removeEventListener(t,s,i)},[e])}const cl=["onKeyDown"];function hl(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function dl(e){return!e||e.trim()==="#"}const pr=D.forwardRef((e,t)=>{let{onKeyDown:n}=e,i=hl(e,cl);const[s]=Wa(Object.assign({tagName:"a"},i)),o=Yt(r=>{s.onKeyDown(r),n==null||n(r)});return dl(i.href)||i.role==="button"?x.jsx("a",Object.assign({ref:t},i,s,{onKeyDown:o})):x.jsx("a",Object.assign({ref:t},i,{onKeyDown:n}))});pr.displayName="Anchor";const Ai=D.forwardRef(({bsPrefix:e,className:t,role:n="toolbar",...i},s)=>{const o=qt(e,"btn-toolbar");return x.jsx("div",{...i,ref:s,className:Gt(t,o),role:n})});Ai.displayName="ButtonToolbar";function fl(e,t,n){const i=D.useRef(e!==void 0),[s,o]=D.useState(t),r=e!==void 0,a=i.current;return i.current=r,!r&&a&&s!==t&&o(t),[r?e:s,D.useCallback((...l)=>{const[c,...h]=l;let d=n==null?void 0:n(c,...h);return o(c),d},[n])]}function ul(){const[,e]=D.useReducer(t=>t+1,0);return e}const Un=D.createContext(null);var _s=Object.prototype.hasOwnProperty;function vs(e,t,n){for(n of e.keys())if(We(n,t))return n}function We(e,t){var n,i,s;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((i=e.length)===t.length)for(;i--&&We(e[i],t[i]););return i===-1}if(n===Set){if(e.size!==t.size)return!1;for(i of e)if(s=i,s&&typeof s=="object"&&(s=vs(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(i of e)if(s=i[0],s&&typeof s=="object"&&(s=vs(t,s),!s)||!We(i[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(_s.call(e,n)&&++i&&!_s.call(t,n)||!(n in t)||!We(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function pl(e){const t=Ha();return[e[0],D.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ft="top",yt="bottom",_t="right",ut="left",ji="auto",rn=[ft,yt,_t,ut],Se="start",qe="end",gl="clippingParents",gr="viewport",Ae="popper",ml="reference",ws=rn.reduce(function(e,t){return e.concat([t+"-"+Se,t+"-"+qe])},[]),mr=[].concat(rn,[ji]).reduce(function(e,t){return e.concat([t,t+"-"+Se,t+"-"+qe])},[]),bl="beforeRead",xl="read",yl="afterRead",_l="beforeMain",vl="main",wl="afterMain",Sl="beforeWrite",kl="write",Ml="afterWrite",Cl=[bl,xl,yl,_l,vl,wl,Sl,kl,Ml];function Ot(e){return e.split("-")[0]}function mt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ue(e){var t=mt(e).Element;return e instanceof t||e instanceof Element}function Et(e){var t=mt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Li(e){if(typeof ShadowRoot>"u")return!1;var t=mt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var he=Math.max,Ln=Math.min,ke=Math.round;function _i(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function br(){return!/^((?!chrome|android).)*safari/i.test(_i())}function Me(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&Et(e)&&(s=e.offsetWidth>0&&ke(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ke(i.height)/e.offsetHeight||1);var r=ue(e)?mt(e):window,a=r.visualViewport,l=!br()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/s,h=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/s,f=i.height/o;return{width:d,height:f,top:h,right:c+d,bottom:h+f,left:c,x:c,y:h}}function Ni(e){var t=Me(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function xr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Li(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Xt(e){return e?(e.nodeName||"").toLowerCase():null}function Ft(e){return mt(e).getComputedStyle(e)}function Pl(e){return["table","td","th"].indexOf(Xt(e))>=0}function Jt(e){return((ue(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xn(e){return Xt(e)==="html"?e:e.assignedSlot||e.parentNode||(Li(e)?e.host:null)||Jt(e)}function Ss(e){return!Et(e)||Ft(e).position==="fixed"?null:e.offsetParent}function Ol(e){var t=/firefox/i.test(_i()),n=/Trident/i.test(_i());if(n&&Et(e)){var i=Ft(e);if(i.position==="fixed")return null}var s=Xn(e);for(Li(s)&&(s=s.host);Et(s)&&["html","body"].indexOf(Xt(s))<0;){var o=Ft(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function an(e){for(var t=mt(e),n=Ss(e);n&&Pl(n)&&Ft(n).position==="static";)n=Ss(n);return n&&(Xt(n)==="html"||Xt(n)==="body"&&Ft(n).position==="static")?t:n||Ol(e)||t}function Ii(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function He(e,t,n){return he(e,Ln(t,n))}function El(e,t,n){var i=He(e,t,n);return i>n?n:i}function yr(){return{top:0,right:0,bottom:0,left:0}}function _r(e){return Object.assign({},yr(),e)}function vr(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Dl=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_r(typeof t!="number"?t:vr(t,rn))};function Rl(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Ot(n.placement),l=Ii(a),c=[ut,_t].indexOf(a)>=0,h=c?"height":"width";if(!(!o||!r)){var d=Dl(s.padding,n),f=Ni(o),u=l==="y"?ft:ut,g=l==="y"?yt:_t,m=n.rects.reference[h]+n.rects.reference[l]-r[l]-n.rects.popper[h],p=r[l]-n.rects.reference[l],b=an(o),y=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,v=m/2-p/2,w=d[u],_=y-f[h]-d[g],S=y/2-f[h]/2+v,M=He(w,S,_),k=l;n.modifiersData[i]=(t={},t[k]=M,t.centerOffset=M-S,t)}}function Tl(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||xr(t.elements.popper,s)&&(t.elements.arrow=s))}const Al={name:"arrow",enabled:!0,phase:"main",fn:Rl,effect:Tl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ce(e){return e.split("-")[1]}var jl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ll(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:ke(n*s)/s||0,y:ke(i*s)/s||0}}function ks(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,d=e.isFixed,f=r.x,u=f===void 0?0:f,g=r.y,m=g===void 0?0:g,p=typeof h=="function"?h({x:u,y:m}):{x:u,y:m};u=p.x,m=p.y;var b=r.hasOwnProperty("x"),y=r.hasOwnProperty("y"),v=ut,w=ft,_=window;if(c){var S=an(n),M="clientHeight",k="clientWidth";if(S===mt(n)&&(S=Jt(n),Ft(S).position!=="static"&&a==="absolute"&&(M="scrollHeight",k="scrollWidth")),S=S,s===ft||(s===ut||s===_t)&&o===qe){w=yt;var P=d&&S===_&&_.visualViewport?_.visualViewport.height:S[M];m-=P-i.height,m*=l?1:-1}if(s===ut||(s===ft||s===yt)&&o===qe){v=_t;var E=d&&S===_&&_.visualViewport?_.visualViewport.width:S[k];u-=E-i.width,u*=l?1:-1}}var C=Object.assign({position:a},c&&jl),O=h===!0?Ll({x:u,y:m},mt(n)):{x:u,y:m};if(u=O.x,m=O.y,l){var R;return Object.assign({},C,(R={},R[w]=y?"0":"",R[v]=b?"0":"",R.transform=(_.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",R))}return Object.assign({},C,(t={},t[w]=y?m+"px":"",t[v]=b?u+"px":"",t.transform="",t))}function Nl(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Ot(t.placement),variation:Ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ks(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ks(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Il={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nl,data:{}};var un={passive:!0};function Fl(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,r=i.resize,a=r===void 0?!0:r,l=mt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",n.update,un)}),a&&l.addEventListener("resize",n.update,un),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",n.update,un)}),a&&l.removeEventListener("resize",n.update,un)}}const $l={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fl,data:{}};var zl={left:"right",right:"left",bottom:"top",top:"bottom"};function Tn(e){return e.replace(/left|right|bottom|top/g,function(t){return zl[t]})}var Bl={start:"end",end:"start"};function Ms(e){return e.replace(/start|end/g,function(t){return Bl[t]})}function Fi(e){var t=mt(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function $i(e){return Me(Jt(e)).left+Fi(e).scrollLeft}function Wl(e,t){var n=mt(e),i=Jt(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=br();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+$i(e),y:l}}function Hl(e){var t,n=Jt(e),i=Fi(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=he(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=he(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+$i(e),l=-i.scrollTop;return Ft(s||n).direction==="rtl"&&(a+=he(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function zi(e){var t=Ft(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function wr(e){return["html","body","#document"].indexOf(Xt(e))>=0?e.ownerDocument.body:Et(e)&&zi(e)?e:wr(Xn(e))}function Ve(e,t){var n;t===void 0&&(t=[]);var i=wr(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=mt(i),r=s?[o].concat(o.visualViewport||[],zi(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(Ve(Xn(r)))}function vi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vl(e,t){var n=Me(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Cs(e,t,n){return t===gr?vi(Wl(e,n)):ue(t)?Vl(t,n):vi(Hl(Jt(e)))}function Yl(e){var t=Ve(Xn(e)),n=["absolute","fixed"].indexOf(Ft(e).position)>=0,i=n&&Et(e)?an(e):e;return ue(i)?t.filter(function(s){return ue(s)&&xr(s,i)&&Xt(s)!=="body"}):[]}function Ul(e,t,n,i){var s=t==="clippingParents"?Yl(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce(function(l,c){var h=Cs(e,c,i);return l.top=he(h.top,l.top),l.right=Ln(h.right,l.right),l.bottom=Ln(h.bottom,l.bottom),l.left=he(h.left,l.left),l},Cs(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Sr(e){var t=e.reference,n=e.element,i=e.placement,s=i?Ot(i):null,o=i?Ce(i):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case ft:l={x:r,y:t.y-n.height};break;case yt:l={x:r,y:t.y+t.height};break;case _t:l={x:t.x+t.width,y:a};break;case ut:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?Ii(s):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case Se:l[c]=l[c]-(t[h]/2-n[h]/2);break;case qe:l[c]=l[c]+(t[h]/2-n[h]/2);break}}return l}function Ge(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?gl:a,c=n.rootBoundary,h=c===void 0?gr:c,d=n.elementContext,f=d===void 0?Ae:d,u=n.altBoundary,g=u===void 0?!1:u,m=n.padding,p=m===void 0?0:m,b=_r(typeof p!="number"?p:vr(p,rn)),y=f===Ae?ml:Ae,v=e.rects.popper,w=e.elements[g?y:f],_=Ul(ue(w)?w:w.contextElement||Jt(e.elements.popper),l,h,r),S=Me(e.elements.reference),M=Sr({reference:S,element:v,strategy:"absolute",placement:s}),k=vi(Object.assign({},v,M)),P=f===Ae?k:S,E={top:_.top-P.top+b.top,bottom:P.bottom-_.bottom+b.bottom,left:_.left-P.left+b.left,right:P.right-_.right+b.right},C=e.modifiersData.offset;if(f===Ae&&C){var O=C[s];Object.keys(E).forEach(function(R){var N=[_t,yt].indexOf(R)>=0?1:-1,A=[ft,yt].indexOf(R)>=0?"y":"x";E[R]+=O[A]*N})}return E}function Xl(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?mr:l,h=Ce(i),d=h?a?ws:ws.filter(function(g){return Ce(g)===h}):rn,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var u=f.reduce(function(g,m){return g[m]=Ge(e,{placement:m,boundary:s,rootBoundary:o,padding:r})[Ot(m)],g},{});return Object.keys(u).sort(function(g,m){return u[g]-u[m]})}function Kl(e){if(Ot(e)===ji)return[];var t=Tn(e);return[Ms(e),t,Ms(t)]}function ql(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,h=n.boundary,d=n.rootBoundary,f=n.altBoundary,u=n.flipVariations,g=u===void 0?!0:u,m=n.allowedAutoPlacements,p=t.options.placement,b=Ot(p),y=b===p,v=l||(y||!g?[Tn(p)]:Kl(p)),w=[p].concat(v).reduce(function(X,K){return X.concat(Ot(K)===ji?Xl(t,{placement:K,boundary:h,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):K)},[]),_=t.rects.reference,S=t.rects.popper,M=new Map,k=!0,P=w[0],E=0;E<w.length;E++){var C=w[E],O=Ot(C),R=Ce(C)===Se,N=[ft,yt].indexOf(O)>=0,A=N?"width":"height",L=Ge(t,{placement:C,boundary:h,rootBoundary:d,altBoundary:f,padding:c}),I=N?R?_t:ut:R?yt:ft;_[A]>S[A]&&(I=Tn(I));var W=Tn(I),$=[];if(o&&$.push(L[O]<=0),a&&$.push(L[I]<=0,L[W]<=0),$.every(function(X){return X})){P=C,k=!1;break}M.set(C,$)}if(k)for(var B=g?3:1,et=function(K){var G=w.find(function(Rt){var H=M.get(Rt);if(H)return H.slice(0,K).every(function(nt){return nt})});if(G)return P=G,"break"},tt=B;tt>0;tt--){var it=et(tt);if(it==="break")break}t.placement!==P&&(t.modifiersData[i]._skip=!0,t.placement=P,t.reset=!0)}}const Gl={name:"flip",enabled:!0,phase:"main",fn:ql,requiresIfExists:["offset"],data:{_skip:!1}};function Ps(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Os(e){return[ft,_t,yt,ut].some(function(t){return e[t]>=0})}function Jl(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=Ge(t,{elementContext:"reference"}),a=Ge(t,{altBoundary:!0}),l=Ps(r,i),c=Ps(a,s,o),h=Os(l),d=Os(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const Zl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jl};function Ql(e,t,n){var i=Ot(e),s=[ut,ft].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[ut,_t].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function tc(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,r=mr.reduce(function(h,d){return h[d]=Ql(d,t.rects,o),h},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}const ec={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tc};function nc(e){var t=e.state,n=e.name;t.modifiersData[n]=Sr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ic={name:"popperOffsets",enabled:!0,phase:"read",fn:nc,data:{}};function sc(e){return e==="x"?"y":"x"}function oc(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,h=n.altBoundary,d=n.padding,f=n.tether,u=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,p=Ge(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),b=Ot(t.placement),y=Ce(t.placement),v=!y,w=Ii(b),_=sc(w),S=t.modifiersData.popperOffsets,M=t.rects.reference,k=t.rects.popper,P=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,E=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(o){var R,N=w==="y"?ft:ut,A=w==="y"?yt:_t,L=w==="y"?"height":"width",I=S[w],W=I+p[N],$=I-p[A],B=u?-k[L]/2:0,et=y===Se?M[L]:k[L],tt=y===Se?-k[L]:-M[L],it=t.elements.arrow,X=u&&it?Ni(it):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yr(),G=K[N],Rt=K[A],H=He(0,M[L],X[L]),nt=v?M[L]/2-B-H-G-E.mainAxis:et-H-G-E.mainAxis,Te=v?-M[L]/2+B+H+Rt+E.mainAxis:tt+H+Rt+E.mainAxis,zt=t.elements.arrow&&an(t.elements.arrow),Zt=zt?w==="y"?zt.clientTop||0:zt.clientLeft||0:0,Qt=(R=C==null?void 0:C[w])!=null?R:0,ct=I+nt-Qt-Zt,Ia=I+Te-Qt,cs=He(u?Ln(W,ct):W,I,u?he($,Ia):$);S[w]=cs,O[w]=cs-I}if(a){var hs,Fa=w==="x"?ft:ut,$a=w==="x"?yt:_t,te=S[_],dn=_==="y"?"height":"width",ds=te+p[Fa],fs=te-p[$a],Jn=[ft,ut].indexOf(b)!==-1,us=(hs=C==null?void 0:C[_])!=null?hs:0,ps=Jn?ds:te-M[dn]-k[dn]-us+E.altAxis,gs=Jn?te+M[dn]+k[dn]-us-E.altAxis:fs,ms=u&&Jn?El(ps,te,gs):He(u?ps:ds,te,u?gs:fs);S[_]=ms,O[_]=ms-te}t.modifiersData[i]=O}}const rc={name:"preventOverflow",enabled:!0,phase:"main",fn:oc,requiresIfExists:["offset"]};function ac(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lc(e){return e===mt(e)||!Et(e)?Fi(e):ac(e)}function cc(e){var t=e.getBoundingClientRect(),n=ke(t.width)/e.offsetWidth||1,i=ke(t.height)/e.offsetHeight||1;return n!==1||i!==1}function hc(e,t,n){n===void 0&&(n=!1);var i=Et(t),s=Et(t)&&cc(t),o=Jt(t),r=Me(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((Xt(t)!=="body"||zi(o))&&(a=lc(t)),Et(t)?(l=Me(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=$i(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function dc(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function fc(e){var t=dc(e);return Cl.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function uc(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pc(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Es={placement:"bottom",modifiers:[],strategy:"absolute"};function Ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function gc(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?Es:s;return function(a,l,c){c===void 0&&(c=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Es,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,u={state:h,setOptions:function(b){var y=typeof b=="function"?b(h.options):b;m(),h.options=Object.assign({},o,h.options,y),h.scrollParents={reference:ue(a)?Ve(a):a.contextElement?Ve(a.contextElement):[],popper:Ve(l)};var v=fc(pc([].concat(i,h.options.modifiers)));return h.orderedModifiers=v.filter(function(w){return w.enabled}),g(),u.update()},forceUpdate:function(){if(!f){var b=h.elements,y=b.reference,v=b.popper;if(Ds(y,v)){h.rects={reference:hc(y,an(v),h.options.strategy==="fixed"),popper:Ni(v)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(E){return h.modifiersData[E.name]=Object.assign({},E.data)});for(var w=0;w<h.orderedModifiers.length;w++){if(h.reset===!0){h.reset=!1,w=-1;continue}var _=h.orderedModifiers[w],S=_.fn,M=_.options,k=M===void 0?{}:M,P=_.name;typeof S=="function"&&(h=S({state:h,options:k,name:P,instance:u})||h)}}}},update:uc(function(){return new Promise(function(p){u.forceUpdate(),p(h)})}),destroy:function(){m(),f=!0}};if(!Ds(a,l))return u;u.setOptions(c).then(function(p){!f&&c.onFirstUpdate&&c.onFirstUpdate(p)});function g(){h.orderedModifiers.forEach(function(p){var b=p.name,y=p.options,v=y===void 0?{}:y,w=p.effect;if(typeof w=="function"){var _=w({state:h,name:b,instance:u,options:v}),S=function(){};d.push(_||S)}})}function m(){d.forEach(function(p){return p()}),d=[]}return u}}const mc=gc({defaultModifiers:[Zl,ic,Il,$l,ec,Gl,rc,Al]}),bc=["enabled","placement","strategy","modifiers"];function xc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const yc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},_c={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==n.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:i}=e.elements,s=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&s==="tooltip"&&"setAttribute"in i){const o=i.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},vc=[];function wc(e,t,n={}){let{enabled:i=!0,placement:s="bottom",strategy:o="absolute",modifiers:r=vc}=n,a=xc(n,bc);const l=D.useRef(r),c=D.useRef(),h=D.useCallback(()=>{var p;(p=c.current)==null||p.update()},[]),d=D.useCallback(()=>{var p;(p=c.current)==null||p.forceUpdate()},[]),[f,u]=pl(D.useState({placement:s,update:h,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=D.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:p})=>{const b={},y={};Object.keys(p.elements).forEach(v=>{b[v]=p.styles[v],y[v]=p.attributes[v]}),u({state:p,styles:b,attributes:y,update:h,forceUpdate:d,placement:p.placement})}}),[h,d,u]),m=D.useMemo(()=>(We(l.current,r)||(l.current=r),l.current),[r]);return D.useEffect(()=>{!c.current||!i||c.current.setOptions({placement:s,strategy:o,modifiers:[...m,g,yc]})},[o,s,g,i,m]),D.useEffect(()=>{if(!(!i||e==null||t==null))return c.current=mc(e,t,Object.assign({},a,{placement:s,strategy:o,modifiers:[...m,_c,g]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,u(p=>Object.assign({},p,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),f}const Rs=()=>{};function Sc(e){return e.button===0}function kc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ti=e=>e&&("current"in e?e.current:e),Ts={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Mc(e,t=Rs,{disabled:n,clickTrigger:i="click"}={}){const s=D.useRef(!1),o=D.useRef(!1),r=D.useCallback(c=>{const h=ti(e);Va(!!h,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!h||kc(c)||!Sc(c)||!!bs(h,c.target)||o.current,o.current=!1},[e]),a=Yt(c=>{const h=ti(e);h&&bs(h,c.target)?o.current=!0:o.current=!1}),l=Yt(c=>{s.current||t(c)});D.useEffect(()=>{var c,h;if(n||e==null)return;const d=Ya(ti(e)),f=d.defaultView||window;let u=(c=f.event)!=null?c:(h=f.parent)==null?void 0:h.event,g=null;Ts[i]&&(g=fn(d,Ts[i],a,!0));const m=fn(d,i,r,!0),p=fn(d,i,y=>{if(y===u){u=void 0;return}l(y)});let b=[];return"ontouchstart"in d.documentElement&&(b=[].slice.call(d.body.children).map(y=>fn(y,"mousemove",Rs))),()=>{g==null||g(),m(),p(),b.forEach(y=>y())}},[e,n,i,r,a,l])}function Cc(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Pc(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Oc({enabled:e,enableEvents:t,placement:n,flip:i,offset:s,fixed:o,containerPadding:r,arrowElement:a,popperConfig:l={}}){var c,h,d,f,u;const g=Cc(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:Pc(Object.assign({},g,{eventListeners:{enabled:t,options:(c=g.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},g.preventOverflow,{options:r?Object.assign({padding:r},(h=g.preventOverflow)==null?void 0:h.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:s},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(u=g.arrow)==null?void 0:u.options,{element:a})}),flip:Object.assign({enabled:!!i},g.flip)}))})}const Ec=["children","usePopper"];function Dc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const Rc=()=>{};function kr(e={}){const t=D.useContext(Un),[n,i]=al(),s=D.useRef(!1),{flip:o,offset:r,rootCloseEvent:a,fixed:l=!1,placement:c,popperConfig:h={},enableEventListeners:d=!0,usePopper:f=!!t}=e,u=(t==null?void 0:t.show)==null?!!e.show:t.show;u&&!s.current&&(s.current=!0);const g=S=>{t==null||t.toggle(!1,S)},{placement:m,setMenu:p,menuElement:b,toggleElement:y}=t||{},v=wc(y,b,Oc({placement:c||m||"bottom-start",enabled:f,enableEvents:d??u,offset:r,flip:o,fixed:l,arrowElement:n,popperConfig:h})),w=Object.assign({ref:p||Rc,"aria-labelledby":y==null?void 0:y.id},v.attributes.popper,{style:v.styles.popper}),_={show:u,placement:m,hasShown:s.current,toggle:t==null?void 0:t.toggle,popper:f?v:null,arrowProps:f?Object.assign({ref:i},v.attributes.arrow,{style:v.styles.arrow}):{}};return Mc(b,g,{clickTrigger:a,disabled:!u}),[w,_]}function Mr(e){let{children:t,usePopper:n=!0}=e,i=Dc(e,Ec);const[s,o]=kr(Object.assign({},i,{usePopper:n}));return x.jsx(x.Fragment,{children:t(s,o)})}Mr.displayName="DropdownMenu";const Bi={prefix:String(Math.round(Math.random()*1e10)),current:0},Cr=fe.createContext(Bi),Tc=fe.createContext(!1);let Ac=!!(typeof window<"u"&&window.document&&window.document.createElement),ei=new WeakMap;function jc(e=!1){let t=D.useContext(Cr),n=D.useRef(null);if(n.current===null&&!e){var i,s;let o=(s=fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(i=s.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(o){let r=ei.get(o);r==null?ei.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==r.state&&(t.current=r.id,ei.delete(o))}n.current=++t.current}return n.current}function Lc(e){let t=D.useContext(Cr);t===Bi&&!Ac&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=jc(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function Nc(e){let t=fe.useId(),[n]=D.useState(Bc()),i=n?"react-aria":`react-aria${Bi.prefix}`;return e||`${i}-${t}`}const Ic=typeof fe.useId=="function"?Nc:Lc;function Fc(){return!1}function $c(){return!0}function zc(e){return()=>{}}function Bc(){return typeof fe.useSyncExternalStore=="function"?fe.useSyncExternalStore(zc,Fc,$c):D.useContext(Tc)}const Pr=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},As=()=>{};function Or(){const e=Ic(),{show:t=!1,toggle:n=As,setToggle:i,menuElement:s}=D.useContext(Un)||{},o=D.useCallback(a=>{n(!t,a)},[t,n]),r={id:e,ref:i||As,onClick:o,"aria-expanded":!!t};return s&&Pr(s)&&(r["aria-haspopup"]=!0),[r,{show:t,toggle:n}]}function Er({children:e}){const[t,n]=Or();return x.jsx(x.Fragment,{children:e(t,n)})}Er.displayName="DropdownToggle";const wi=D.createContext(null),js=(e,t=null)=>e!=null?String(e):t||null,Dr=D.createContext(null);Dr.displayName="NavContext";const Wc=["eventKey","disabled","onClick","active","as"];function Hc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Rr({key:e,href:t,active:n,disabled:i,onClick:s}){const o=D.useContext(wi),r=D.useContext(Dr),{activeKey:a}=r||{},l=js(e,t),c=n==null&&e!=null?js(a)===l:n;return[{onClick:Yt(d=>{i||(s==null||s(d),o&&!d.isPropagationStopped()&&o(l,d))}),"aria-disabled":i||void 0,"aria-selected":c,[lr("dropdown-item")]:""},{isActive:c}]}const Tr=D.forwardRef((e,t)=>{let{eventKey:n,disabled:i,onClick:s,active:o,as:r=Ua}=e,a=Hc(e,Wc);const[l]=Rr({key:n,href:a.href,disabled:i,onClick:s,active:o});return x.jsx(r,Object.assign({},a,{ref:t},l))});Tr.displayName="DropdownItem";function Ls(){const e=ul(),t=D.useRef(null),n=D.useCallback(i=>{t.current=i,e()},[e]);return[t,n]}function ln({defaultShow:e,show:t,onSelect:n,onToggle:i,itemSelector:s=`* [${lr("dropdown-item")}]`,focusFirstItemOnShow:o,placement:r="bottom-start",children:a}){const l=Xa(),[c,h]=fl(t,e,i),[d,f]=Ls(),u=d.current,[g,m]=Ls(),p=g.current,b=Ka(c),y=D.useRef(null),v=D.useRef(!1),w=D.useContext(wi),_=D.useCallback((C,O,R=O==null?void 0:O.type)=>{h(C,{originalEvent:O,source:R})},[h]),S=Yt((C,O)=>{n==null||n(C,O),_(!1,O,"select"),O.isPropagationStopped()||w==null||w(C,O)}),M=D.useMemo(()=>({toggle:_,placement:r,show:c,menuElement:u,toggleElement:p,setMenu:f,setToggle:m}),[_,r,c,u,p,f,m]);u&&b&&!c&&(v.current=u.contains(u.ownerDocument.activeElement));const k=Yt(()=>{p&&p.focus&&p.focus()}),P=Yt(()=>{const C=y.current;let O=o;if(O==null&&(O=d.current&&Pr(d.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(C))return;const R=xs(d.current,s)[0];R&&R.focus&&R.focus()});D.useEffect(()=>{c?P():v.current&&(v.current=!1,k())},[c,v,k,P]),D.useEffect(()=>{y.current=null});const E=(C,O)=>{if(!d.current)return null;const R=xs(d.current,s);let N=R.indexOf(C)+O;return N=Math.max(0,Math.min(N,R.length)),R[N]};return ll(D.useCallback(()=>l.document,[l]),"keydown",C=>{var O,R;const{key:N}=C,A=C.target,L=(O=d.current)==null?void 0:O.contains(A),I=(R=g.current)==null?void 0:R.contains(A);if(/input|textarea/i.test(A.tagName)&&(N===" "||N!=="Escape"&&L||N==="Escape"&&A.type==="search")||!L&&!I||N==="Tab"&&(!d.current||!c))return;y.current=C.type;const $={originalEvent:C,source:C.type};switch(N){case"ArrowUp":{const B=E(A,-1);B&&B.focus&&B.focus(),C.preventDefault();return}case"ArrowDown":if(C.preventDefault(),!c)h(!0,$);else{const B=E(A,1);B&&B.focus&&B.focus()}return;case"Tab":qa(A.ownerDocument,"keyup",B=>{var et;(B.key==="Tab"&&!B.target||!((et=d.current)!=null&&et.contains(B.target)))&&h(!1,$)},{once:!0});break;case"Escape":N==="Escape"&&(C.preventDefault(),C.stopPropagation()),h(!1,$);break}}),x.jsx(wi.Provider,{value:S,children:x.jsx(Un.Provider,{value:M,children:a})})}ln.displayName="Dropdown";ln.Menu=Mr;ln.Toggle=Er;ln.Item=Tr;const Wi=D.createContext({});Wi.displayName="DropdownContext";const Ar=D.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:i="separator",...s},o)=>(t=qt(t,"dropdown-divider"),x.jsx(n,{ref:o,className:Gt(e,t),role:i,...s})));Ar.displayName="DropdownDivider";const jr=D.forwardRef(({className:e,bsPrefix:t,as:n="div",role:i="heading",...s},o)=>(t=qt(t,"dropdown-header"),x.jsx(n,{ref:o,className:Gt(e,t),role:i,...s})));jr.displayName="DropdownHeader";const Lr=D.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:i=!1,onClick:s,active:o,as:r=pr,...a},l)=>{const c=qt(e,"dropdown-item"),[h,d]=Rr({key:n,href:a.href,disabled:i,onClick:s,active:o});return x.jsx(r,{...a,...h,ref:l,className:Gt(t,c,d.isActive&&"active",i&&"disabled")})});Lr.displayName="DropdownItem";const Nr=D.forwardRef(({className:e,bsPrefix:t,as:n="span",...i},s)=>(t=qt(t,"dropdown-item-text"),x.jsx(n,{ref:s,className:Gt(e,t),...i})));Nr.displayName="DropdownItemText";const Vc=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Yc=typeof document<"u",Uc=Yc||Vc?D.useLayoutEffect:D.useEffect,Ir=D.createContext(null);Ir.displayName="NavbarContext";function Fr(e,t){return e}function $r(e,t,n){const i=n?"top-end":"top-start",s=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",r=n?"bottom-start":"bottom-end",a=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",h=n?"left-end":"right-end";let d=e?r:o;return t==="up"?d=e?s:i:t==="end"?d=e?h:c:t==="start"?d=e?l:a:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const zr=D.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:i,flip:s=!0,show:o,renderOnMount:r,as:a="div",popperConfig:l,variant:c,...h},d)=>{let f=!1;const u=D.useContext(Ir),g=qt(e,"dropdown-menu"),{align:m,drop:p,isRTL:b}=D.useContext(Wi);n=n||m;const y=D.useContext(fr),v=[];if(n)if(typeof n=="object"){const C=Object.keys(n);if(C.length){const O=C[0],R=n[O];f=R==="start",v.push(`${g}-${O}-${R}`)}}else n==="end"&&(f=!0);const w=$r(f,p,b),[_,{hasShown:S,popper:M,show:k,toggle:P}]=kr({flip:s,rootCloseEvent:i,show:o,usePopper:!u&&v.length===0,offset:[0,2],popperConfig:l,placement:w});if(_.ref=cr(Fr(d),_.ref),Uc(()=>{k&&(M==null||M.update())},[k]),!S&&!r&&!y)return null;typeof a!="string"&&(_.show=k,_.close=()=>P==null?void 0:P(!1),_.align=n);let E=h.style;return M!=null&&M.placement&&(E={...h.style,..._.style},h["x-placement"]=M.placement),x.jsx(a,{...h,..._,style:E,...(v.length||u)&&{"data-bs-popper":"static"},className:Gt(t,g,k&&"show",f&&`${g}-end`,c&&`${g}-${c}`,...v)})});zr.displayName="DropdownMenu";const Br=D.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:i,as:s=Nt,...o},r)=>{const a=qt(e,"dropdown-toggle"),l=D.useContext(Un);i!==void 0&&(o.bsPrefix=i);const[c]=Or();return c.ref=cr(c.ref,Fr(r)),x.jsx(s,{className:Gt(n,a,t&&`${a}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});Br.displayName="DropdownToggle";const Wr=D.forwardRef((e,t)=>{const{bsPrefix:n,drop:i="down",show:s,className:o,align:r="start",onSelect:a,onToggle:l,focusFirstItemOnShow:c,as:h="div",navbar:d,autoClose:f=!0,...u}=rl(e,{show:"onToggle"}),g=D.useContext(fr),m=qt(n,"dropdown"),p=Ga(),b=M=>f===!1?M==="click":f==="inside"?M!=="rootClose":f==="outside"?M!=="select":!0,y=Ja((M,k)=>{var P;!((P=k.originalEvent)==null||(P=P.target)==null)&&P.classList.contains("dropdown-toggle")&&k.source==="mousedown"||(k.originalEvent.currentTarget===document&&(k.source!=="keydown"||k.originalEvent.key==="Escape")&&(k.source="rootClose"),b(k.source)&&(l==null||l(M,k)))}),w=$r(r==="end",i,p),_=D.useMemo(()=>({align:r,drop:i,isRTL:p}),[r,i,p]),S={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return x.jsx(Wi.Provider,{value:_,children:x.jsx(ln,{placement:w,show:s,onSelect:a,onToggle:y,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?u.children:x.jsx(h,{...u,ref:t,className:Gt(o,s&&"show",S[i])})})})});Wr.displayName="Dropdown";const ni=Object.assign(Wr,{Toggle:Br,Menu:zr,Item:Lr,ItemText:Nr,Divider:Ar,Header:jr});/*!
- * @kurkle/color v0.3.2
- * https://github.com/kurkle/color#readme
- * (c) 2023 Jukka Kurkela
- * Released under the MIT License
- */function cn(e){return e+.5|0}const Wt=(e,t,n)=>Math.max(Math.min(e,n),t);function $e(e){return Wt(cn(e*2.55),0,255)}function Ut(e){return Wt(cn(e*255),0,255)}function Lt(e){return Wt(cn(e/2.55)/100,0,1)}function Ns(e){return Wt(cn(e*100),0,100)}const bt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Si=[..."0123456789ABCDEF"],Xc=e=>Si[e&15],Kc=e=>Si[(e&240)>>4]+Si[e&15],pn=e=>(e&240)>>4===(e&15),qc=e=>pn(e.r)&&pn(e.g)&&pn(e.b)&&pn(e.a);function Gc(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&bt[e[1]]*17,g:255&bt[e[2]]*17,b:255&bt[e[3]]*17,a:t===5?bt[e[4]]*17:255}:(t===7||t===9)&&(n={r:bt[e[1]]<<4|bt[e[2]],g:bt[e[3]]<<4|bt[e[4]],b:bt[e[5]]<<4|bt[e[6]],a:t===9?bt[e[7]]<<4|bt[e[8]]:255})),n}const Jc=(e,t)=>e<255?t(e):"";function Zc(e){var t=qc(e)?Xc:Kc;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Jc(e.a,t):void 0}const Qc=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Hr(e,t,n){const i=t*Math.min(n,1-n),s=(o,r=(o+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function th(e,t,n){const i=(s,o=(s+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function eh(e,t,n){const i=Hr(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)i[s]*=1-t-n,i[s]+=t;return i}function nh(e,t,n,i,s){return e===s?(t-n)/i+(t<n?6:0):t===s?(n-e)/i+2:(e-t)/i+4}function Hi(e){const n=e.r/255,i=e.g/255,s=e.b/255,o=Math.max(n,i,s),r=Math.min(n,i,s),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=nh(n,i,s,h,o),l=l*60+.5),[l|0,c||0,a]}function Vi(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Ut)}function Yi(e,t,n){return Vi(Hr,e,t,n)}function ih(e,t,n){return Vi(eh,e,t,n)}function sh(e,t,n){return Vi(th,e,t,n)}function Vr(e){return(e%360+360)%360}function oh(e){const t=Qc.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?$e(+t[5]):Ut(+t[5]));const s=Vr(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=ih(s,o,r):t[1]==="hsv"?i=sh(s,o,r):i=Yi(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}function rh(e,t){var n=Hi(e);n[0]=Vr(n[0]+t),n=Yi(n),e.r=n[0],e.g=n[1],e.b=n[2]}function ah(e){if(!e)return;const t=Hi(e),n=t[0],i=Ns(t[1]),s=Ns(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${s}%, ${Lt(e.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const Is={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Fs={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lh(){const e={},t=Object.keys(Fs),n=Object.keys(Is);let i,s,o,r,a;for(i=0;i<t.length;i++){for(r=a=t[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,Is[o]);o=parseInt(Fs[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let gn;function ch(e){gn||(gn=lh(),gn.transparent=[0,0,0,0]);const t=gn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const hh=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dh(e){const t=hh.exec(e);let n=255,i,s,o;if(t){if(t[7]!==i){const r=+t[7];n=t[8]?$e(r):Wt(r*255,0,255)}return i=+t[1],s=+t[3],o=+t[5],i=255&(t[2]?$e(i):Wt(i,0,255)),s=255&(t[4]?$e(s):Wt(s,0,255)),o=255&(t[6]?$e(o):Wt(o,0,255)),{r:i,g:s,b:o,a:n}}}function fh(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Lt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const ii=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,be=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function uh(e,t,n){const i=be(Lt(e.r)),s=be(Lt(e.g)),o=be(Lt(e.b));return{r:Ut(ii(i+n*(be(Lt(t.r))-i))),g:Ut(ii(s+n*(be(Lt(t.g))-s))),b:Ut(ii(o+n*(be(Lt(t.b))-o))),a:e.a+n*(t.a-e.a)}}function mn(e,t,n){if(e){let i=Hi(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=Yi(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Yr(e,t){return e&&Object.assign(t||{},e)}function $s(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ut(e[3]))):(t=Yr(e,{r:0,g:0,b:0,a:1}),t.a=Ut(t.a)),t}function ph(e){return e.charAt(0)==="r"?dh(e):oh(e)}class Je{constructor(t){if(t instanceof Je)return t;const n=typeof t;let i;n==="object"?i=$s(t):n==="string"&&(i=Gc(t)||ch(t)||ph(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Yr(this._rgb);return t&&(t.a=Lt(t.a)),t}set rgb(t){this._rgb=$s(t)}rgbString(){return this._valid?fh(this._rgb):void 0}hexString(){return this._valid?Zc(this._rgb):void 0}hslString(){return this._valid?ah(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,s=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*s.r+.5,i.g=255&c*i.g+o*s.g+.5,i.b=255&c*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=uh(this._rgb,t._rgb,n)),this}clone(){return new Je(this.rgb)}alpha(t){return this._rgb.a=Ut(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=cn(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return mn(this._rgb,2,t),this}darken(t){return mn(this._rgb,2,-t),this}saturate(t){return mn(this._rgb,1,t),this}desaturate(t){return mn(this._rgb,1,-t),this}rotate(t){return rh(this._rgb,t),this}}/*!
- * Chart.js v4.4.7
- * https://www.chartjs.org
- * (c) 2024 Chart.js Contributors
- * Released under the MIT License
- */function Tt(){}const gh=(()=>{let e=0;return()=>e++})();function Y(e){return e==null}function Z(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function z(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function kt(e,t){return vt(e)?e:t}function F(e,t){return typeof e>"u"?t:e}const mh=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function U(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function V(e,t,n,i){let s,o,r;if(Z(e))for(o=e.length,s=0;s<o;s++)t.call(n,e[s],s);else if(z(e))for(r=Object.keys(e),o=r.length,s=0;s<o;s++)t.call(n,e[r[s]],r[s])}function Nn(e,t){let n,i,s,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=e[n],o=t[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function In(e){if(Z(e))return e.map(In);if(z(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let s=0;for(;s<i;++s)t[n[s]]=In(e[n[s]]);return t}return e}function Ur(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function bh(e,t,n,i){if(!Ur(e))return;const s=t[e],o=n[e];z(s)&&z(o)?Ze(s,o,i):t[e]=In(o)}function Ze(e,t,n){const i=Z(t)?t:[t],s=i.length;if(!z(e))return e;n=n||{};const o=n.merger||bh;let r;for(let a=0;a<s;++a){if(r=i[a],!z(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],e,r,n)}return e}function Ye(e,t){return Ze(e,t,{merger:xh})}function xh(e,t,n){if(!Ur(e))return;const i=t[e],s=n[e];z(i)&&z(s)?Ye(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=In(s))}const zs={"":e=>e,x:e=>e.x,y:e=>e.y};function yh(e){const t=e.split("."),n=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function _h(e){const t=yh(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Pe(e,t){return(zs[t]||(zs[t]=_h(t)))(e)}function Ui(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Qe=e=>typeof e<"u",Kt=e=>typeof e=="function",Bs=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function vh(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Q=Math.PI,ot=2*Q,wh=ot+Q,Fn=Number.POSITIVE_INFINITY,Sh=Q/180,st=Q/2,ee=Q/4,Ws=Q*2/3,ki=Math.log10,Dt=Math.sign;function Ue(e,t,n){return Math.abs(e-t)<n}function Hs(e){const t=Math.round(e);e=Ue(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ki(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function kh(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((s,o)=>s-o).pop(),t}function tn(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Mh(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Ch(e,t,n){let i,s,o;for(i=0,s=e.length;i<s;i++)o=e[i][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function le(e){return e*(Q/180)}function Ph(e){return e*(180/Q)}function Vs(e){if(!vt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Xr(e,t){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*Q&&(o+=ot),{angle:o,distance:s}}function Mi(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Oh(e,t){return(e-t+wh)%ot-Q}function Bt(e){return(e%ot+ot)%ot}function Xi(e,t,n,i){const s=Bt(e),o=Bt(t),r=Bt(n),a=Bt(o-s),l=Bt(r-s),c=Bt(s-o),h=Bt(s-r);return s===o||s===r||i&&o===r||a>l&&c<h}function at(e,t,n){return Math.max(t,Math.min(n,e))}function Eh(e){return at(e,-32768,32767)}function Ht(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Ki(e,t,n){n=n||(r=>e[r]<t);let i=e.length-1,s=0,o;for(;i-s>1;)o=s+i>>1,n(o)?s=o:i=o;return{lo:s,hi:i}}const ce=(e,t,n,i)=>Ki(e,n,i?s=>{const o=e[s][t];return o<n||o===n&&e[s+1][t]===n}:s=>e[s][t]<n),Dh=(e,t,n)=>Ki(e,n,i=>e[i][t]>=n);function Rh(e,t,n){let i=0,s=e.length;for(;i<s&&e[i]<t;)i++;for(;s>i&&e[s-1]>n;)s--;return i>0||s<e.length?e.slice(i,s):e}const Kr=["push","pop","shift","splice","unshift"];function Th(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Kr.forEach(n=>{const i="_onData"+Ui(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function Ys(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(Kr.forEach(o=>{delete e[o]}),delete e._chartjs)}function qr(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Gr=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Jr(e,t){let n=[],i=!1;return function(...s){n=s,i||(i=!0,Gr.call(window,()=>{i=!1,e.apply(t,n)}))}}function Ah(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const qi=e=>e==="start"?"left":e==="end"?"right":"center",rt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,jh=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function Lh(e,t,n){const i=t.length;let s=0,o=i;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(s=at(Math.min(ce(a,l,c).lo,n?i:ce(t,l,r.getPixelForValue(c)).lo),0,i-1)),f?o=at(Math.max(ce(a,r.axis,h,!0).hi+1,n?0:ce(t,l,r.getPixelForValue(h),!0).hi+1),s,i)-s:o=i-s}return{start:s,count:o}}function Nh(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=s,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}const bn=e=>e===0||e===1,Us=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ot/n)),Xs=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ot/n)+1,Xe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*st)+1,easeOutSine:e=>Math.sin(e*st),easeInOutSine:e=>-.5*(Math.cos(Q*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>bn(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>bn(e)?e:Us(e,.075,.3),easeOutElastic:e=>bn(e)?e:Xs(e,.075,.3),easeInOutElastic(e){return bn(e)?e:e<.5?.5*Us(e*2,.1125,.45):.5+.5*Xs(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Xe.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Xe.easeInBounce(e*2)*.5:Xe.easeOutBounce(e*2-1)*.5+.5};function Gi(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ks(e){return Gi(e)?e:new Je(e)}function si(e){return Gi(e)?e:new Je(e).saturate(.5).darken(.1).hexString()}const Ih=["x","y","borderWidth","radius","tension"],Fh=["color","borderColor","backgroundColor"];function $h(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Fh},numbers:{type:"number",properties:Ih}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function zh(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const qs=new Map;function Bh(e,t){t=t||{};const n=e+JSON.stringify(t);let i=qs.get(n);return i||(i=new Intl.NumberFormat(e,t),qs.set(n,i)),i}function Zr(e,t,n){return Bh(t,n).format(e)}const Qr={values(e){return Z(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let s,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),o=Wh(e,n)}const r=ki(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Zr(e,i,l)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(ki(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?Qr.numeric.call(this,e,t,n):""}};function Wh(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ta={formatters:Qr};function Hh(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ta.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const pe=Object.create(null),Ci=Object.create(null);function Ke(e,t){if(!t)return e;const n=t.split(".");for(let i=0,s=n.length;i<s;++i){const o=n[i];e=e[o]||(e[o]=Object.create(null))}return e}function oi(e,t,n){return typeof t=="string"?Ze(Ke(e,t),n):Ze(Ke(e,""),t)}class Vh{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>si(s.backgroundColor),this.hoverBorderColor=(i,s)=>si(s.borderColor),this.hoverColor=(i,s)=>si(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return oi(this,t,n)}get(t){return Ke(this,t)}describe(t,n){return oi(Ci,t,n)}override(t,n){return oi(pe,t,n)}route(t,n,i,s){const o=Ke(this,t),r=Ke(this,i),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[s];return z(l)?Object.assign({},c,l):F(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var q=new Vh({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[$h,zh,Hh]);function Yh(e){return!e||Y(e.size)||Y(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Gs(e,t,n,i,s){let o=t[s];return o||(o=t[s]=e.measureText(s).width,n.push(s)),o>i&&(i=o),i}function ne(e,t,n){const i=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*i)/i+s}function Js(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Pi(e,t,n,i){ea(e,t,n,i,null)}function ea(e,t,n,i,s){let o,r,a,l,c,h,d,f;const u=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*Sh;if(u&&typeof u=="object"&&(o=u.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(p),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),u){default:s?e.ellipse(n,i,s/2,m,0,0,ot):e.arc(n,i,m,0,ot),e.closePath();break;case"triangle":h=s?s/2:m,e.moveTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Ws,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Ws,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,r=Math.cos(p+ee)*l,d=Math.cos(p+ee)*(s?s/2-c:l),a=Math.sin(p+ee)*l,f=Math.sin(p+ee)*(s?s/2-c:l),e.arc(n-d,i-a,c,p-Q,p-st),e.arc(n+f,i-r,c,p-st,p),e.arc(n+d,i+a,c,p,p+st),e.arc(n-f,i+r,c,p+st,p+Q),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,h=s?s/2:l,e.rect(n-h,i-l,2*h,2*l);break}p+=ee;case"rectRot":d=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,f=Math.sin(p)*(s?s/2:m),e.moveTo(n-d,i-a),e.lineTo(n+f,i-r),e.lineTo(n+d,i+a),e.lineTo(n-f,i+r),e.closePath();break;case"crossRot":p+=ee;case"cross":d=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,f=Math.sin(p)*(s?s/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-r),e.lineTo(n-f,i+r);break;case"star":d=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,f=Math.sin(p)*(s?s/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-r),e.lineTo(n-f,i+r),p+=ee,d=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,f=Math.sin(p)*(s?s/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-r),e.lineTo(n-f,i+r);break;case"line":r=s?s/2:Math.cos(p)*m,a=Math.sin(p)*m,e.moveTo(n-r,i-a),e.lineTo(n+r,i+a);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(p)*(s?s/2:m),i+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function en(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ji(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Zi(e){e.restore()}function Uh(e,t,n,i,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else s==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Xh(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Kh(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Y(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function qh(e,t,n,i,s){if(s.strikethrough||s.underline){const o=e.measureText(i),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(r,h),e.lineTo(a,h),e.stroke()}}function Gh(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function nn(e,t,n,i,s,o={}){const r=Z(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=s.string,Kh(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&Gh(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),Y(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,i,o.maxWidth)),e.fillText(c,n,i,o.maxWidth),qh(e,n,i,c,o),i+=Number(s.lineHeight);e.restore()}function $n(e,t){const{x:n,y:i,w:s,h:o,radius:r}=t;e.arc(n+r.topLeft,i+r.topLeft,r.topLeft,1.5*Q,Q,!0),e.lineTo(n,i+o-r.bottomLeft),e.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,Q,st,!0),e.lineTo(n+s-r.bottomRight,i+o),e.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,st,0,!0),e.lineTo(n+s,i+r.topRight),e.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-st,!0),e.lineTo(n+r.topLeft,i)}const Jh=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Zh=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Qh(e,t){const n=(""+e).match(Jh);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const td=e=>+e||0;function Qi(e,t){const n={},i=z(t),s=i?Object.keys(t):t,o=z(e)?i?r=>F(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of s)n[r]=td(o(r));return n}function na(e){return Qi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function _e(e){return Qi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function wt(e){const t=na(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function lt(e,t){e=e||{},t=t||q.font;let n=F(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=F(e.style,t.style);i&&!(""+i).match(Zh)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:F(e.family,t.family),lineHeight:Qh(F(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:F(e.weight,t.weight),string:""};return s.string=Yh(s),s}function xn(e,t,n,i){let s,o,r;for(s=0,o=e.length;s<o;++s)if(r=e[s],r!==void 0&&(t!==void 0&&typeof r=="function"&&(r=r(t)),n!==void 0&&Z(r)&&(r=r[n%r.length]),r!==void 0))return r}function ed(e,t,n){const{min:i,max:s}=e,o=mh(t,(s-i)/2),r=(a,l)=>n&&a===0?0:a+l;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function ge(e,t){return Object.assign(Object.create(e),t)}function ts(e,t=[""],n,i,s=()=>e[0]){const o=n||e;typeof i>"u"&&(i=ra("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:s,override:a=>ts([a,...e],t,o,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return sa(a,l,()=>cd(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Qs(a).includes(l)},ownKeys(a){return Qs(a)},set(a,l,c){const h=a._storage||(a._storage=s());return a[l]=h[l]=c,delete a._keys,!0}})}function Oe(e,t,n,i){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:ia(e,i),setContext:o=>Oe(e,o,n,i),override:o=>Oe(e.override(o),t,n,i)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return sa(o,r,()=>id(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function ia(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:i,isScriptable:Kt(n)?n:()=>n,isIndexable:Kt(i)?i:()=>i}}const nd=(e,t)=>e?e+Ui(t):t,es=(e,t)=>z(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function sa(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function id(e,t,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=e;let a=i[t];return Kt(a)&&r.isScriptable(t)&&(a=sd(t,a,e,n)),Z(a)&&a.length&&(a=od(t,a,e,r.isIndexable)),es(t,a)&&(a=Oe(a,s,o&&o[t],r)),a}function sd(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||i);return a.delete(e),es(e,l)&&(l=ns(s._scopes,s,e,l)),l}function od(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&i(e))return t[o.index%t.length];if(z(t[0])){const l=t,c=s._scopes.filter(h=>h!==l);t=[];for(const h of l){const d=ns(c,s,e,h);t.push(Oe(d,o,r&&r[e],a))}}return t}function oa(e,t,n){return Kt(e)?e(t,n):e}const rd=(e,t)=>e===!0?t:typeof e=="string"?Pe(t,e):void 0;function ad(e,t,n,i,s){for(const o of t){const r=rd(n,o);if(r){e.add(r);const a=oa(r._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(r===!1&&typeof i<"u"&&n!==i)return null}return!1}function ns(e,t,n,i){const s=t._rootScopes,o=oa(t._fallback,n,i),r=[...e,...s],a=new Set;a.add(i);let l=Zs(a,r,n,o||n,i);return l===null||typeof o<"u"&&o!==n&&(l=Zs(a,r,o,l,i),l===null)?!1:ts(Array.from(a),[""],s,o,()=>ld(t,n,i))}function Zs(e,t,n,i,s){for(;n;)n=ad(e,t,n,i,s);return n}function ld(e,t,n){const i=e._getTarget();t in i||(i[t]={});const s=i[t];return Z(s)&&z(n)?n:s||{}}function cd(e,t,n,i){let s;for(const o of t)if(s=ra(nd(o,e),n),typeof s<"u")return es(e,s)?ns(n,i,e,s):s}function ra(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function Qs(e){let t=e._keys;return t||(t=e._keys=hd(e._scopes)),t}function hd(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}const dd=Number.EPSILON||1e-14,Ee=(e,t)=>t<e.length&&!e[t].skip&&e[t],aa=e=>e==="x"?"y":"x";function fd(e,t,n,i){const s=e.skip?t:e,o=t,r=n.skip?t:n,a=Mi(o,s),l=Mi(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=i*c,f=i*h;return{previous:{x:o.x-d*(r.x-s.x),y:o.y-d*(r.y-s.y)},next:{x:o.x+f*(r.x-s.x),y:o.y+f*(r.y-s.y)}}}function ud(e,t,n){const i=e.length;let s,o,r,a,l,c=Ee(e,0);for(let h=0;h<i-1;++h)if(l=c,c=Ee(e,h+1),!(!l||!c)){if(Ue(t[h],0,dd)){n[h]=n[h+1]=0;continue}s=n[h]/t[h],o=n[h+1]/t[h],a=Math.pow(s,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),n[h]=s*r*t[h],n[h+1]=o*r*t[h])}}function pd(e,t,n="x"){const i=aa(n),s=e.length;let o,r,a,l=Ee(e,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Ee(e,c+1),!a)continue;const h=a[n],d=a[i];r&&(o=(h-r[n])/3,a[`cp1${n}`]=h-o,a[`cp1${i}`]=d-o*t[c]),l&&(o=(l[n]-h)/3,a[`cp2${n}`]=h+o,a[`cp2${i}`]=d+o*t[c])}}function gd(e,t="x"){const n=aa(t),i=e.length,s=Array(i).fill(0),o=Array(i);let r,a,l,c=Ee(e,0);for(r=0;r<i;++r)if(a=l,l=c,c=Ee(e,r+1),!!l){if(c){const h=c[t]-l[t];s[r]=h!==0?(c[n]-l[n])/h:0}o[r]=a?c?Dt(s[r-1])!==Dt(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}ud(e,s,o),pd(e,o,t)}function yn(e,t,n){return Math.max(Math.min(e,n),t)}function md(e,t){let n,i,s,o,r,a=en(e[0],t);for(n=0,i=e.length;n<i;++n)r=o,o=a,a=n<i-1&&en(e[n+1],t),o&&(s=e[n],r&&(s.cp1x=yn(s.cp1x,t.left,t.right),s.cp1y=yn(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=yn(s.cp2x,t.left,t.right),s.cp2y=yn(s.cp2y,t.top,t.bottom)))}function bd(e,t,n,i,s){let o,r,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")gd(e,s);else{let c=i?e[e.length-1]:e[0];for(o=0,r=e.length;o<r;++o)a=e[o],l=fd(c,a,e[Math.min(o+1,r-(i?0:1))%r],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&md(e,n)}function is(){return typeof window<"u"&&typeof document<"u"}function ss(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function zn(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const Kn=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function xd(e,t){return Kn(e).getPropertyValue(t)}const yd=["top","right","bottom","left"];function de(e,t,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=yd[s];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const _d=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function vd(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:s,offsetY:o}=i;let r=!1,a,l;if(_d(s,o,e.target))a=s,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function re(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,s=Kn(n),o=s.boxSizing==="border-box",r=de(s,"padding"),a=de(s,"border","width"),{x:l,y:c,box:h}=vd(e,n),d=r.left+(h&&a.left),f=r.top+(h&&a.top);let{width:u,height:g}=t;return o&&(u-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-d)/u*n.width/i),y:Math.round((c-f)/g*n.height/i)}}function wd(e,t,n){let i,s;if(t===void 0||n===void 0){const o=e&&ss(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=Kn(o),l=de(a,"border","width"),c=de(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,i=zn(a.maxWidth,o,"clientWidth"),s=zn(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:i||Fn,maxHeight:s||Fn}}const _n=e=>Math.round(e*10)/10;function Sd(e,t,n,i){const s=Kn(e),o=de(s,"margin"),r=zn(s.maxWidth,e,"clientWidth")||Fn,a=zn(s.maxHeight,e,"clientHeight")||Fn,l=wd(e,t,n);let{width:c,height:h}=l;if(s.boxSizing==="content-box"){const f=de(s,"border","width"),u=de(s,"padding");c-=u.width+f.width,h-=u.height+f.height}return c=Math.max(0,c-o.width),h=Math.max(0,i?c/i:h-o.height),c=_n(Math.min(c,r,l.maxWidth)),h=_n(Math.min(h,a,l.maxHeight)),c&&!h&&(h=_n(c/2)),(t!==void 0||n!==void 0)&&i&&l.height&&h>l.height&&(h=l.height,c=_n(Math.floor(h*i))),{width:c,height:h}}function to(e,t,n){const i=t||1,s=Math.floor(e.height*i),o=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||r.height!==s||r.width!==o?(e.currentDevicePixelRatio=i,r.height=s,r.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const kd=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};is()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function eo(e,t){const n=xd(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ae(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Md(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Cd(e,t,n,i){const s={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=ae(e,s,n),a=ae(s,o,n),l=ae(o,t,n),c=ae(r,a,n),h=ae(a,l,n);return ae(c,h,n)}const Pd=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Od=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ve(e,t,n){return e?Pd(t,n):Od()}function la(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function ca(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function ha(e){return e==="angle"?{between:Xi,compare:Oh,normalize:Bt}:{between:Ht,compare:(t,n)=>t-n,normalize:t=>t}}function no({start:e,end:t,count:n,loop:i,style:s}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:s}}function Ed(e,t,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=ha(i),l=t.length;let{start:c,end:h,loop:d}=e,f,u;if(d){for(c+=l,h+=l,f=0,u=l;f<u&&r(a(t[c%l][i]),s,o);++f)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:d,style:e.style}}function Dd(e,t,n){if(!n)return[e];const{property:i,start:s,end:o}=n,r=t.length,{compare:a,between:l,normalize:c}=ha(i),{start:h,end:d,loop:f,style:u}=Ed(e,t,n),g=[];let m=!1,p=null,b,y,v;const w=()=>l(s,v,b)&&a(s,v)!==0,_=()=>a(o,b)===0||l(o,v,b),S=()=>m||w(),M=()=>!m||_();for(let k=h,P=h;k<=d;++k)y=t[k%r],!y.skip&&(b=c(y[i]),b!==v&&(m=l(b,s,o),p===null&&S()&&(p=a(b,s)===0?k:P),p!==null&&M()&&(g.push(no({start:p,end:k,loop:f,count:r,style:u})),p=null),P=k,v=b));return p!==null&&g.push(no({start:p,end:d,loop:f,count:r,style:u})),g}function Rd(e,t){const n=[],i=e.segments;for(let s=0;s<i.length;s++){const o=Dd(i[s],e.points,t);o.length&&n.push(...o)}return n}function Td(e,t,n,i){let s=0,o=t-1;if(n&&!i)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(o+=s);o>s&&e[o%t].skip;)o--;return o%=t,{start:s,end:o}}function Ad(e,t,n,i){const s=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%s];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%s,end:(l-1)%s,loop:i}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%s,end:r%s,loop:i}),o}function jd(e,t){const n=e.points,i=e.options.spanGaps,s=n.length;if(!s)return[];const o=!!e._loop,{start:r,end:a}=Td(n,s,o,i);if(i===!0)return io(e,[{start:r,end:a,loop:o}],n,t);const l=a<r?a+s:a,c=!!e._fullLoop&&r===0&&a===s-1;return io(e,Ad(n,r,l,c),n,t)}function io(e,t,n,i){return!i||!i.setContext||!n?t:Ld(e,t,n,i)}function Ld(e,t,n,i){const s=e._chart.getContext(),o=so(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=n.length,c=[];let h=o,d=t[0].start,f=d;function u(g,m,p,b){const y=a?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=y;for(;n[m%l].skip;)m+=y;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:p,style:b}),h=b,d=m%l)}}for(const g of t){d=a?d:g.start;let m=n[d%l],p;for(f=d+1;f<=g.end;f++){const b=n[f%l];p=so(i.setContext(ge(s,{type:"segment",p0:m,p1:b,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:r}))),Nd(p,h)&&u(d,f-1,g.loop,h),m=b,h=p}d<f-1&&u(d,f-1,g.loop,h)}return c}function so(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Nd(e,t){if(!t)return!1;const n=[],i=function(s,o){return Gi(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,i)!==JSON.stringify(t,i)}/*!
- * Chart.js v4.4.7
- * https://www.chartjs.org
- * (c) 2024 Chart.js Contributors
- * Released under the MIT License
- */class Id{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,s){const o=n.listeners[s],r=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(i-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Gr.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var At=new Id;const oo="transparent",Fd={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=Ks(e||oo),s=i.valid&&Ks(t||oo);return s&&s.valid?s.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class $d{constructor(t,n,i,s){const o=n[i];s=xn([t.to,s,o,t.from]);const r=xn([t.from,o,s]);this._active=!0,this._fn=t.fn||Fd[t.type||typeof r],this._easing=Xe[t.easing]||Xe.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=xn([t.to,n,s,t.from]),this._from=xn([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n<i),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=o;return}l=n/i%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class da{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!z(t))return;const n=Object.keys(q.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!z(o))return;const r={};for(const a of n)r[a]=o[a];(Z(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,n){const i=n.options,s=Bd(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&zd(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,n));continue}const h=n[c];let d=o[c];const f=i.get(c);if(d)if(f&&d.active()){d.update(f,h,a);continue}else d.cancel();if(!f||!f.duration){t[c]=h;continue}o[c]=d=new $d(f,t,c,h),s.push(d)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return At.add(this._chart,i),!0}}function zd(e,t){const n=[],i=Object.keys(t);for(let s=0;s<i.length;s++){const o=e[i[s]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Bd(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function ro(e,t){const n=e&&e.options||{},i=n.reverse,s=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:i?o:s,end:i?s:o}}function Wd(e,t,n){if(n===!1)return!1;const i=ro(e,n),s=ro(t,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function Hd(e){let t,n,i,s;return z(e)?(t=e.top,n=e.right,i=e.bottom,s=e.left):t=n=i=s=e,{top:t,right:n,bottom:i,left:s,disabled:e===!1}}function fa(e,t){const n=[],i=e._getSortedDatasetMetas(t);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function ao(e,t,n,i={}){const s=e.keys,o=i.mode==="single";let r,a,l,c;if(t===null)return;let h=!1;for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===n){if(h=!0,i.all)continue;break}c=e.values[l],vt(c)&&(o||t===0||Dt(t)===Dt(c))&&(t+=c)}return!h&&!i.all?0:t}function Vd(e,t){const{iScale:n,vScale:i}=t,s=n.axis==="x"?"x":"y",o=i.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[s]:h,[o]:e[h]};return a}function ri(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Yd(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Ud(e){const{min:t,max:n,minDefined:i,maxDefined:s}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function Xd(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function lo(e,t,n,i){for(const s of t.getMatchingVisibleMetas(i).reverse()){const o=e[s.index];if(n&&o>0||!n&&o<0)return s.index}return null}function co(e,t){const{chart:n,_cachedMeta:i}=e,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,h=Yd(o,r,i),d=t.length;let f;for(let u=0;u<d;++u){const g=t[u],{[l]:m,[c]:p}=g,b=g._stacks||(g._stacks={});f=b[c]=Xd(s,h,m),f[a]=p,f._top=lo(f,r,!0,i.type),f._bottom=lo(f,r,!1,i.type);const y=f._visualValues||(f._visualValues={});y[a]=p}}function ai(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function Kd(e,t){return ge(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function qd(e,t,n){return ge(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function je(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const s of t){const o=s._stacks;if(!o||o[i]===void 0||o[i][n]===void 0)return;delete o[i][n],o[i]._visualValues!==void 0&&o[i]._visualValues[n]!==void 0&&delete o[i]._visualValues[n]}}}const li=e=>e==="reset"||e==="none",ho=(e,t)=>t?e:Object.assign({},e),Gd=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:fa(n,!0),values:null};class we{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ri(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&je(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(d,f,u,g)=>d==="x"?f:d==="r"?g:u,o=n.xAxisID=F(i.xAxisID,ai(t,"x")),r=n.yAxisID=F(i.yAxisID,ai(t,"y")),a=n.rAxisID=F(i.rAxisID,ai(t,"r")),l=n.indexAxis,c=n.iAxisID=s(l,o,r,a),h=n.vAxisID=s(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ys(this._data,this),t._stacked&&je(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(z(n)){const s=this._cachedMeta;this._data=Vd(n,s)}else if(i!==n){if(i){Ys(i,this);const s=this._cachedMeta;je(s),s._parsed=[]}n&&Object.isExtensible(n)&&Th(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const o=n._stacked;n._stacked=ri(n.vScale,n),n.stack!==i.stack&&(s=!0,je(n),n.stack=i.stack),this._resyncElements(t),(s||o!==n._stacked)&&(co(this,n._parsed),n._stacked=ri(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&n===s.length?!0:i._sorted,c=t>0&&i._parsed[t-1],h,d,f;if(this._parsing===!1)i._parsed=s,i._sorted=!0,f=s;else{Z(s[t])?f=this.parseArrayData(i,s,t,n):z(s[t])?f=this.parseObjectData(i,s,t,n):f=this.parsePrimitiveData(i,s,t,n);const u=()=>d[a]===null||c&&d[a]<c[a];for(h=0;h<n;++h)i._parsed[h+t]=d=f[h],l&&(u()&&(l=!1),c=d);i._sorted=l}r&&co(this,f)}parsePrimitiveData(t,n,i,s){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),h=o===r,d=new Array(s);let f,u,g;for(f=0,u=s;f<u;++f)g=f+i,d[f]={[a]:h||o.parse(c[g],g),[l]:r.parse(n[g],g)};return d}parseArrayData(t,n,i,s){const{xScale:o,yScale:r}=t,a=new Array(s);let l,c,h,d;for(l=0,c=s;l<c;++l)h=l+i,d=n[h],a[l]={x:o.parse(d[0],h),y:r.parse(d[1],h)};return a}parseObjectData(t,n,i,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let h,d,f,u;for(h=0,d=s;h<d;++h)f=h+i,u=n[f],c[h]={x:o.parse(Pe(u,a),f),y:r.parse(Pe(u,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const s=this.chart,o=this._cachedMeta,r=n[t.axis],a={keys:fa(s,!0),values:n._stacks[t.axis]._visualValues};return ao(a,r,o.index,{mode:i})}updateRangeFromParsed(t,n,i,s){const o=i[n.axis];let r=o===null?NaN:o;const a=s&&i._stacks[n.axis];s&&a&&(s.values=a,r=ao(s,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){const i=this._cachedMeta,s=i._parsed,o=i._sorted&&t===i.iScale,r=s.length,a=this._getOtherScale(t),l=Gd(n,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:d}=Ud(a);let f,u;function g(){u=s[f];const m=u[a.axis];return!vt(u[t.axis])||h>m||d<m}for(f=0;f<r&&!(!g()&&(this.updateRangeFromParsed(c,t,u,l),o));++f);if(o){for(f=r-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,t,u,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=n.length;s<o;++s)r=n[s][t.axis],vt(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,s=n.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Hd(F(this.options.clip,Wd(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],o=n.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||s.length-a,c=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,o,a,l),h=a;h<a+l;++h){const d=s[h];d.hidden||(d.active&&c?r.push(d):d.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=qd(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=Kd(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const s=n==="active",o=this._cachedDataOpts,r=t+"-"+n,a=o[r],l=this.enableOptionSharing&&Qe(i);if(a)return ho(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),d=s?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),h),u=Object.keys(q.elements[t]),g=()=>this.getContext(i,s,n),m=c.resolveNamedOptions(f,u,g,d);return m.$shared&&(m.$shared=l,o[r]=Object.freeze(ho(m,l))),m}_resolveAnimations(t,n,i){const s=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(s.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,n),f=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(f,this.getContext(t,i,n))}const c=new da(s,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||li(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(n,o)||o!==s;return this.updateSharedOptions(o,n,i),{sharedOptions:o,includeOptions:r}}updateElement(t,n,i,s){li(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!li(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;const o=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,o=n.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o<s&&this._removeElements(o,s-o)}_insertElements(t,n,i=!0){const s=this._cachedMeta,o=s.data,r=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),i&&this.updateElements(o,t,n,"reset")}updateElements(t,n,i,s){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,n);i._stacked&&je(i,s)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,s]=t;this[n](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}j(we,"defaults",{}),j(we,"datasetElementType",null),j(we,"dataElementType",null);function Jd(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let s=0,o=n.length;s<o;s++)i=i.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=qr(i.sort((s,o)=>s-o))}return e._cache.$bar}function Zd(e){const t=e.iScale,n=Jd(t,e.type);let i=t._length,s,o,r,a;const l=()=>{r===32767||r===-32768||(Qe(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(s=0,o=n.length;s<o;++s)r=t.getPixelForValue(n[s]),l();for(a=void 0,s=0,o=t.ticks.length;s<o;++s)r=t.getPixelForTick(s),l();return i}function Qd(e,t,n,i){const s=n.barThickness;let o,r;return Y(s)?(o=t.min*n.categoryPercentage,r=n.barPercentage):(o=s*i,r=1),{chunk:o/i,ratio:r,start:t.pixels[e]-o/2}}function tf(e,t,n,i){const s=t.pixels,o=s[e];let r=e>0?s[e-1]:null,a=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/i,ratio:n.barPercentage,start:c}}function ef(e,t,n,i){const s=n.parse(e[0],i),o=n.parse(e[1],i),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}function ua(e,t,n,i){return Z(e)?ef(e,t,n,i):t[n.axis]=n.parse(e,i),t}function fo(e,t,n,i){const s=e.iScale,o=e.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,d,f;for(c=n,h=n+i;c<h;++c)f=t[c],d={},d[s.axis]=a||s.parse(r[c],c),l.push(ua(f,d,o,c));return l}function ci(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function nf(e,t,n){return e!==0?Dt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function sf(e){let t,n,i,s,o;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:t,top:s,bottom:o}}function of(e,t,n,i){let s=t.borderSkipped;const o={};if(!s){e.borderSkipped=o;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:h}=sf(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?s=c:(n._bottom||0)===i?s=h:(o[uo(h,r,a,l)]=!0,s=c)),o[uo(s,r,a,l)]=!0,e.borderSkipped=o}function uo(e,t,n,i){return i?(e=rf(e,t,n),e=po(e,n,t)):e=po(e,t,n),e}function rf(e,t,n){return e===t?n:e===n?t:e}function po(e,t,n){return e==="start"?t:e==="end"?n:e}function af(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class hi extends we{parsePrimitiveData(t,n,i,s){return fo(t,n,i,s)}parseArrayData(t,n,i,s){return fo(t,n,i,s)}parseObjectData(t,n,i,s){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,h=r.axis==="x"?a:l,d=[];let f,u,g,m;for(f=i,u=i+s;f<u;++f)m=n[f],g={},g[o.axis]=o.parse(Pe(m,c),f),d.push(ua(Pe(m,h),g,r,f));return d}updateRangeFromParsed(t,n,i,s){super.updateRangeFromParsed(t,n,i,s);const o=i._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:s}=n,o=this.getParsed(t),r=o._custom,a=ci(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(o[s.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,s){const o=s==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,s);for(let u=n;u<n+i;u++){const g=this.getParsed(u),m=o||Y(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,h),b=(g._stacks||{})[a.axis],y={horizontal:c,base:m.base,enableBorderRadius:!b||ci(g._custom)||r===b._top||r===b._bottom,x:c?m.head:p.center,y:c?p.center:m.head,height:c?p.size:Math.abs(m.size),width:c?Math.abs(m.size):p.size};f&&(y.options=d||this.resolveDataElementOptions(u,t[u].active?"active":s));const v=y.options||t[u].options;of(y,v,b,r),af(y,v,h.ratio),this.updateElement(t[u],u,y,s)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=i.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=h=>{const d=h._parsed.find(u=>u[i.axis]===l),f=d&&d[h.vScale.axis];if(Y(f)||isNaN(f))return!0};for(const h of s)if(!(n!==void 0&&c(h))&&((o===!1||r.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&r.push(h.stack),h.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,i){const s=this._getStacks(t,i),o=n!==void 0?s.indexOf(n):-1;return o===-1?s.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,s=[];let o,r;for(o=0,r=n.data.length;o<r;++o)s.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const a=t.barThickness;return{min:a||Zd(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=ci(c);let d=l[n.axis],f=0,u=i?this.applyStack(n,l,i):d,g,m;u!==d&&(f=u-d,u=d),h&&(d=c.barStart,u=c.barEnd-c.barStart,d!==0&&Dt(d)!==Dt(c.barEnd)&&(f=0),f+=d);const p=!Y(o)&&!h?o:f;let b=n.getPixelForValue(p);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(f+u):g=b,m=g-b,Math.abs(m)<r){m=nf(m,n,a)*r,d===a&&(b-=m/2);const y=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),w=Math.min(y,v),_=Math.max(y,v);b=Math.max(Math.min(b,_),w),g=b+m,i&&!h&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(g)-n.getValueForPixel(b))}if(b===n.getPixelForValue(a)){const y=Dt(m)*n.getLineWidthForValue(a)/2;b+=y,m-=y}return{size:m,base:b,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const i=n.scale,s=this.options,o=s.skipNull,r=F(s.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,h=s.barThickness==="flex"?tf(t,n,s,c):Qd(t,n,s,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=h.start+h.chunk*d+h.chunk/2,l=Math.min(r,h.chunk*h.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(r,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,s=i.length;let o=0;for(;o<s;++o)this.getParsed(o)[n.axis]!==null&&!i[o].hidden&&i[o].draw(this._ctx)}}j(hi,"id","bar"),j(hi,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),j(hi,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class di extends we{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=Lh(n,s,r);this._drawStart=a,this._drawCount=l,Nh(n)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,n,i,s){const o=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(n,s),f=r.axis,u=a.axis,{spanGaps:g,segment:m}=this.options,p=tn(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||s==="none",y=n+i,v=t.length;let w=n>0&&this.getParsed(n-1);for(let _=0;_<v;++_){const S=t[_],M=b?S:{};if(_<n||_>=y){M.skip=!0;continue}const k=this.getParsed(_),P=Y(k[u]),E=M[f]=r.getPixelForValue(k[f],_),C=M[u]=o||P?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[u],_);M.skip=isNaN(E)||isNaN(C)||P,M.stop=_>0&&Math.abs(k[f]-w[f])>p,m&&(M.parsed=k,M.raw=c.data[_]),d&&(M.options=h||this.resolveDataElementOptions(_,S.active?"active":s)),b||this.updateElement(S,_,M,s),w=k}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}j(di,"id","line"),j(di,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(di,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function ie(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class os{constructor(t){j(this,"options");this.options=t||{}}static override(t){Object.assign(os.prototype,t)}init(){}formats(){return ie()}parse(){return ie()}format(){return ie()}add(){return ie()}diff(){return ie()}startOf(){return ie()}endOf(){return ie()}}var lf={_date:os};function cf(e,t,n,i){const{controller:s,data:o,_sorted:r}=e,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?Dh:ce;if(i){if(s._sharedOptions){const c=o[0],h=typeof c.getRange=="function"&&c.getRange(t);if(h){const d=l(o,t,n-h),f=l(o,t,n+h);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function hn(e,t,n,i,s){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:d,hi:f}=cf(o[a],t,r,s);for(let u=d;u<=f;++u){const g=h[u];g.skip||i(g,c,u)}}}function hf(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,s){const o=t?Math.abs(i.x-s.x):0,r=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function fi(e,t,n,i,s){const o=[];return!s&&!e.isPointInArea(t)||hn(e,n,t,function(a,l,c){!s&&!en(a,e.chartArea,0)||a.inRange(t.x,t.y,i)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function df(e,t,n,i){let s=[];function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],i),{angle:d}=Xr(r,{x:t.x,y:t.y});Xi(d,c,h)&&s.push({element:r,datasetIndex:a,index:l})}return hn(e,n,t,o),s}function ff(e,t,n,i,s,o){let r=[];const a=hf(n);let l=Number.POSITIVE_INFINITY;function c(h,d,f){const u=h.inRange(t.x,t.y,s);if(i&&!u)return;const g=h.getCenterPoint(s);if(!(!!o||e.isPointInArea(g))&&!u)return;const p=a(t,g);p<l?(r=[{element:h,datasetIndex:d,index:f}],l=p):p===l&&r.push({element:h,datasetIndex:d,index:f})}return hn(e,n,t,c),r}function ui(e,t,n,i,s,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!i?df(e,t,n,s):ff(e,t,n,i,s,o)}function go(e,t,n,i,s){const o=[],r=n==="x"?"inXRange":"inYRange";let a=!1;return hn(e,n,t,(l,c,h)=>{l[r]&&l[r](t[n],s)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,s))}),i&&!a?[]:o}var uf={evaluateInteractionItems:hn,modes:{index(e,t,n,i){const s=re(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?fi(e,s,o,i,r):ui(e,s,o,!1,i,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(e,t,n,i){const s=re(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?fi(e,s,o,i,r):ui(e,s,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(e,t,n,i){const s=re(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return fi(e,s,o,i,r)},nearest(e,t,n,i){const s=re(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return ui(e,s,o,n.intersect,i,r)},x(e,t,n,i){const s=re(t,e);return go(e,s,"x",n.intersect,i)},y(e,t,n,i){const s=re(t,e);return go(e,s,"y",n.intersect,i)}}};const pa=["left","top","right","bottom"];function Le(e,t){return e.filter(n=>n.pos===t)}function mo(e,t){return e.filter(n=>pa.indexOf(n.pos)===-1&&n.box.axis===t)}function Ne(e,t){return e.sort((n,i)=>{const s=t?i:n,o=t?n:i;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function pf(e){const t=[];let n,i,s,o,r,a;for(n=0,i=(e||[]).length;n<i;++n)s=e[n],{position:o,options:{stack:r,stackWeight:a=1}}=s,t.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return t}function gf(e){const t={};for(const n of e){const{stack:i,pos:s,stackWeight:o}=n;if(!i||!pa.includes(s))continue;const r=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function mf(e,t){const n=gf(e),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*i:l&&t.availableWidth,a.height=s):(a.width=i,a.height=h?h*s:l&&t.availableHeight)}return n}function bf(e){const t=pf(e),n=Ne(t.filter(c=>c.box.fullSize),!0),i=Ne(Le(t,"left"),!0),s=Ne(Le(t,"right")),o=Ne(Le(t,"top"),!0),r=Ne(Le(t,"bottom")),a=mo(t,"x"),l=mo(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Le(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}function bo(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function ga(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function xf(e,t,n,i){const{pos:s,box:o}=n,r=e.maxPadding;if(!z(s)){n.size&&(e[s]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[s]+=n.size}o.getPadding&&ga(r,o.getPadding());const a=Math.max(0,t.outerWidth-bo(r,e,"left","right")),l=Math.max(0,t.outerHeight-bo(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:h}:{same:h,other:c}}function yf(e){const t=e.maxPadding;function n(i){const s=Math.max(t[i]-e[i],0);return e[i]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function _f(e,t){const n=t.maxPadding;function i(s){const o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return i(e?["left","right"]:["top","bottom"])}function ze(e,t,n,i){const s=[];let o,r,a,l,c,h;for(o=0,r=e.length,c=0;o<r;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,_f(a.horizontal,t));const{same:d,other:f}=xf(t,n,a,i);c|=d&&s.length,h=h||f,l.fullSize||s.push(a)}return c&&ze(s,t,n,i)||h}function vn(e,t,n,i,s){e.top=n,e.left=t,e.right=t+i,e.bottom=n+s,e.width=i,e.height=s}function xo(e,t,n,i){const s=n.padding;let{x:o,y:r}=t;for(const a of e){const l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*h,f=c.size||l.height;Qe(c.start)&&(r=c.start),l.fullSize?vn(l,s.left,r,n.outerWidth-s.right-s.left,f):vn(l,t.left+c.placed,r,d,f),c.start=r,c.placed+=d,r=l.bottom}else{const d=t.h*h,f=c.size||l.width;Qe(c.start)&&(o=c.start),l.fullSize?vn(l,o,s.top,f,n.outerHeight-s.bottom-s.top):vn(l,o,t.top+c.placed,f,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=r}var xt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const s=wt(e.options.layout.padding),o=Math.max(t-s.width,0),r=Math.max(n-s.height,0),a=bf(e.boxes),l=a.vertical,c=a.horizontal;V(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const h=l.reduce((m,p)=>p.box.options&&p.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),f=Object.assign({},s);ga(f,wt(i));const u=Object.assign({maxPadding:f,w:o,h:r,x:s.left,y:s.top},s),g=mf(l.concat(c),d);ze(a.fullSize,u,d,g),ze(l,u,d,g),ze(c,u,d,g)&&ze(l,u,d,g),yf(u),xo(a.leftAndTop,u,d,g),u.x+=u.w,u.y+=u.h,xo(a.rightAndBottom,u,d,g),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},V(a.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})})}};class ma{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,s){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(t){return!0}updateConfig(t){}}class vf extends ma{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const An="$chartjs",wf={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},yo=e=>e===null||e==="";function Sf(e,t){const n=e.style,i=e.getAttribute("height"),s=e.getAttribute("width");if(e[An]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",yo(s)){const o=eo(e,"width");o!==void 0&&(e.width=o)}if(yo(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=eo(e,"height");o!==void 0&&(e.height=o)}return e}const ba=kd?{passive:!0}:!1;function kf(e,t,n){e&&e.addEventListener(t,n,ba)}function Mf(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ba)}function Cf(e,t){const n=wf[e.type]||e.type,{x:i,y:s}=re(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Bn(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Pf(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Bn(a.addedNodes,i),r=r&&!Bn(a.removedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Of(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Bn(a.removedNodes,i),r=r&&!Bn(a.addedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const sn=new Map;let _o=0;function xa(){const e=window.devicePixelRatio;e!==_o&&(_o=e,sn.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Ef(e,t){sn.size||window.addEventListener("resize",xa),sn.set(e,t)}function Df(e){sn.delete(e),sn.size||window.removeEventListener("resize",xa)}function Rf(e,t,n){const i=e.canvas,s=i&&ss(i);if(!s)return;const o=Jr((a,l)=>{const c=s.clientWidth;n(a,l),c<s.clientWidth&&n()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(s),Ef(e,o),r}function pi(e,t,n){n&&n.disconnect(),t==="resize"&&Df(e)}function Tf(e,t,n){const i=e.canvas,s=Jr(o=>{e.ctx!==null&&n(Cf(o,e))},e);return kf(i,t,s),s}class Af extends ma{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Sf(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[An])return!1;const i=n[An].initial;["height","width"].forEach(o=>{const r=i[o];Y(r)?n.removeAttribute(o):n.setAttribute(o,r)});const s=i.style||{};return Object.keys(s).forEach(o=>{n.style[o]=s[o]}),n.width=n.width,delete n[An],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),r={attach:Pf,detach:Of,resize:Rf}[n]||Tf;s[n]=r(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),s=i[n];if(!s)return;({attach:pi,detach:pi,resize:pi}[n]||Mf)(t,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,s){return Sd(t,n,i,s)}isAttached(t){const n=t&&ss(t);return!!(n&&n.isConnected)}}function jf(e){return!is()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?vf:Af}var Rn;let $t=(Rn=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return tn(this.x)&&tn(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const s={};return t.forEach(o=>{s[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),s}},j(Rn,"defaults",{}),j(Rn,"defaultRoutes"),Rn);function Lf(e,t){const n=e.options.ticks,i=Nf(e),s=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?Ff(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>s)return $f(t,c,o,r/s),c;const h=If(o,t,s);if(r>0){let d,f;const u=r>1?Math.round((l-a)/(r-1)):null;for(wn(t,c,h,Y(u)?0:a-u,a),d=0,f=r-1;d<f;d++)wn(t,c,h,o[d],o[d+1]);return wn(t,c,h,l,Y(u)?t.length:l+u),c}return wn(t,c,h),c}function Nf(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(i,s))}function If(e,t,n){const i=zf(e),s=t.length/n;if(!i)return Math.max(s,1);const o=kh(i);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>s)return l}return Math.max(s,1)}function Ff(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function $f(e,t,n,i){let s=0,o=n[0],r;for(i=Math.ceil(i),r=0;r<e.length;r++)r===o&&(t.push(e[r]),s++,o=n[s*i])}function wn(e,t,n,i,s){const o=F(i,0),r=Math.min(F(s,e.length),e.length);let a=0,l,c,h;for(n=Math.ceil(n),s&&(l=s-i,n=l/Math.floor(l/n)),h=o;h<0;)a++,h=Math.round(o+a*n);for(c=Math.max(o,0);c<r;c++)c===h&&(t.push(e[c]),a++,h=Math.round(o+a*n))}function zf(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const Bf=e=>e==="left"?"right":e==="right"?"left":e,vo=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,wo=(e,t)=>Math.min(t||e,e);function So(e,t){const n=[],i=e.length/t,s=e.length;let o=0;for(;o<s;o+=i)n.push(e[Math.floor(o)]);return n}function Wf(e,t,n){const i=e.ticks.length,s=Math.min(t,i-1),o=e._startPixel,r=e._endPixel,a=1e-6;let l=e.getPixelForTick(s),c;if(!(n&&(i===1?c=Math.max(l-o,r-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(s-1))/2,l+=s<t?c:-c,l<o-a||l>r+a)))return l}function Hf(e,t){V(e,n=>{const i=n.gc,s=i.length/2;let o;if(s>t){for(o=0;o<s;++o)delete n.data[i[o]];i.splice(0,s)}})}function Ie(e){return e.drawTicks?e.tickLength:0}function ko(e,t){if(!e.display)return 0;const n=lt(e.font,t),i=wt(e.padding);return(Z(e.text)?e.text.length:1)*n.lineHeight+i.height}function Vf(e,t){return ge(e,{scale:t,type:"scale"})}function Yf(e,t,n){return ge(e,{tick:n,index:t,type:"tick"})}function Uf(e,t,n){let i=qi(e);return(n&&t!=="right"||!n&&t==="right")&&(i=Bf(i)),i}function Xf(e,t,n,i){const{top:s,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:h}=l;let d=0,f,u,g;const m=r-s,p=a-o;if(e.isHorizontal()){if(u=rt(i,o,a),z(n)){const b=Object.keys(n)[0],y=n[b];g=h[b].getPixelForValue(y)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=vo(e,n,t);f=a-o}else{if(z(n)){const b=Object.keys(n)[0],y=n[b];u=h[b].getPixelForValue(y)-p+t}else n==="center"?u=(c.left+c.right)/2-p+t:u=vo(e,n,t);g=rt(i,r,s),d=n==="left"?-st:st}return{titleX:u,titleY:g,maxWidth:f,rotation:d}}class De extends $t{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return t=kt(t,Number.POSITIVE_INFINITY),n=kt(n,Number.NEGATIVE_INFINITY),i=kt(i,Number.POSITIVE_INFINITY),s=kt(s,Number.NEGATIVE_INFINITY),{min:kt(t,i),max:kt(n,s),minDefined:vt(t),maxDefined:vt(n)}}getMinMax(t){let{min:n,max:i,minDefined:s,maxDefined:o}=this.getUserBounds(),r;if(s&&o)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),s||(n=Math.min(n,r.min)),o||(i=Math.max(i,r.max));return n=o&&n>i?i:n,i=s&&n>i?n:i,{min:kt(n,kt(i,n)),max:kt(i,kt(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){U(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ed(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?So(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=Lf(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){U(this.options.afterUpdate,[this])}beforeSetDimensions(){U(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){U(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),U(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){U(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i],o.label=U(n.callback,[o.value,i,t],this)}afterTickToLabelConversion(){U(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){U(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=wo(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,o=n.maxRotation;let r=s,a,l,c;if(!this._isVisible()||!n.display||s>=o||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const h=this._getLabelSizes(),d=h.widest.width,f=h.highest.height,u=at(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:u/(i-1),d+6>a&&(a=u/(i-(t.offset?.5:1)),l=this.maxHeight-Ie(t.grid)-n.padding-ko(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Ph(Math.min(Math.asin(at((h.highest.height+6)/a,-1,1)),Math.asin(at(l/c,-1,1))-Math.asin(at(f/c,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){U(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){U(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=ko(s,n.options.font);if(a?(t.width=this.maxWidth,t.height=Ie(o)+l):(t.height=this.maxHeight,t.width=Ie(o)+l),i.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:f}=this._getLabelSizes(),u=i.padding*2,g=le(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(a){const b=i.mirror?0:p*d.width+m*f.height;t.height=Math.min(this.maxHeight,t.height+b+u)}else{const b=i.mirror?0:m*d.width+p*f.height;t.width=Math.min(this.maxWidth,t.width+b+u)}this._calculatePadding(c,h,p,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,s){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,u=0;l?c?(f=s*t.width,u=i*n.height):(f=i*t.height,u=s*n.width):o==="start"?u=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,u=n.width/2),this.paddingLeft=Math.max((f-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((u-d+r)*this.width/(this.width-d),0)}else{let h=n.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=n.height,d=0),this.paddingTop=h+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){U(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)Y(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=So(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:s,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(n/wo(n,i));let c=0,h=0,d,f,u,g,m,p,b,y,v,w,_;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),s.font=p=m.string,b=o[p]=o[p]||{data:{},gc:[]},y=m.lineHeight,v=w=0,!Y(g)&&!Z(g))v=Gs(s,b.data,b.gc,v,g),w=y;else if(Z(g))for(f=0,u=g.length;f<u;++f)_=g[f],!Y(_)&&!Z(_)&&(v=Gs(s,b.data,b.gc,v,_),w+=y);r.push(v),a.push(w),c=Math.max(v,c),h=Math.max(w,h)}Hf(o,n);const S=r.indexOf(c),M=a.indexOf(h),k=P=>({width:r[P]||0,height:a[P]||0});return{first:k(0),last:k(n-1),widest:k(S),highest:k(M),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Eh(this._alignToPixels?ne(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=Yf(this.getContext(),t,i))}return this.$context||(this.$context=Vf(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=le(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*i>a*s?a/i:l/s:l*s<a*i?l/i:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,s=this.options,{grid:o,position:r,border:a}=s,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Ie(o),u=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(L){return ne(i,L,m)};let y,v,w,_,S,M,k,P,E,C,O,R;if(r==="top")y=b(this.bottom),M=this.bottom-f,P=y-p,C=b(t.top)+p,R=t.bottom;else if(r==="bottom")y=b(this.top),C=t.top,R=b(t.bottom)-p,M=y+p,P=this.top+f;else if(r==="left")y=b(this.right),S=this.right-f,k=y-p,E=b(t.left)+p,O=t.right;else if(r==="right")y=b(this.left),E=t.left,O=b(t.right)-p,S=y+p,k=this.left+f;else if(n==="x"){if(r==="center")y=b((t.top+t.bottom)/2+.5);else if(z(r)){const L=Object.keys(r)[0],I=r[L];y=b(this.chart.scales[L].getPixelForValue(I))}C=t.top,R=t.bottom,M=y+p,P=M+f}else if(n==="y"){if(r==="center")y=b((t.left+t.right)/2);else if(z(r)){const L=Object.keys(r)[0],I=r[L];y=b(this.chart.scales[L].getPixelForValue(I))}S=y-p,k=S-f,E=t.left,O=t.right}const N=F(s.ticks.maxTicksLimit,d),A=Math.max(1,Math.ceil(d/N));for(v=0;v<d;v+=A){const L=this.getContext(v),I=o.setContext(L),W=a.setContext(L),$=I.lineWidth,B=I.color,et=W.dash||[],tt=W.dashOffset,it=I.tickWidth,X=I.tickColor,K=I.tickBorderDash||[],G=I.tickBorderDashOffset;w=Wf(this,v,l),w!==void 0&&(_=ne(i,w,$),c?S=k=E=O=_:M=P=C=R=_,u.push({tx1:S,ty1:M,tx2:k,ty2:P,x1:E,y1:C,x2:O,y2:R,width:$,color:B,borderDash:et,borderDashOffset:tt,tickWidth:it,tickColor:X,tickBorderDash:K,tickBorderDashOffset:G}))}return this._ticksLength=d,this._borderValue=y,u}_computeLabelItems(t){const n=this.axis,i=this.options,{position:s,ticks:o}=i,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:d}=o,f=Ie(i.grid),u=f+h,g=d?-h:u,m=-le(this.labelRotation),p=[];let b,y,v,w,_,S,M,k,P,E,C,O,R="middle";if(s==="top")S=this.bottom-g,M=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+g,M=this._getXAxisLabelAlignment();else if(s==="left"){const A=this._getYAxisLabelAlignment(f);M=A.textAlign,_=A.x}else if(s==="right"){const A=this._getYAxisLabelAlignment(f);M=A.textAlign,_=A.x}else if(n==="x"){if(s==="center")S=(t.top+t.bottom)/2+u;else if(z(s)){const A=Object.keys(s)[0],L=s[A];S=this.chart.scales[A].getPixelForValue(L)+u}M=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")_=(t.left+t.right)/2-u;else if(z(s)){const A=Object.keys(s)[0],L=s[A];_=this.chart.scales[A].getPixelForValue(L)}M=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?R="top":l==="end"&&(R="bottom"));const N=this._getLabelSizes();for(b=0,y=a.length;b<y;++b){v=a[b],w=v.label;const A=o.setContext(this.getContext(b));k=this.getPixelForTick(b)+o.labelOffset,P=this._resolveTickFontOptions(b),E=P.lineHeight,C=Z(w)?w.length:1;const L=C/2,I=A.color,W=A.textStrokeColor,$=A.textStrokeWidth;let B=M;r?(_=k,M==="inner"&&(b===y-1?B=this.options.reverse?"left":"right":b===0?B=this.options.reverse?"right":"left":B="center"),s==="top"?c==="near"||m!==0?O=-C*E+E/2:c==="center"?O=-N.highest.height/2-L*E+E:O=-N.highest.height+E/2:c==="near"||m!==0?O=E/2:c==="center"?O=N.highest.height/2-L*E:O=N.highest.height-C*E,d&&(O*=-1),m!==0&&!A.showLabelBackdrop&&(_+=E/2*Math.sin(m))):(S=k,O=(1-C)*E/2);let et;if(A.showLabelBackdrop){const tt=wt(A.backdropPadding),it=N.heights[b],X=N.widths[b];let K=O-tt.top,G=0-tt.left;switch(R){case"middle":K-=it/2;break;case"bottom":K-=it;break}switch(M){case"center":G-=X/2;break;case"right":G-=X;break;case"inner":b===y-1?G-=X:b>0&&(G-=X/2);break}et={left:G,top:K,width:X+tt.width,height:it+tt.height,color:A.backdropColor}}p.push({label:w,font:P,textOffset:O,options:{rotation:m,color:I,strokeColor:W,strokeWidth:$,textAlign:B,textBaseline:R,translation:[_,S],backdrop:et}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-le(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return n==="left"?s?(h=this.right+o,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h=this.left)):n==="right"?s?(h=this.left+o,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:s,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,s,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(o=>o.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(o=0,r=s.length;o<r;++o){const l=s[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:s}}=this,o=i.setContext(this.getContext()),r=i.display?o.width:0;if(!r)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,d,f;this.isHorizontal()?(c=ne(t,this.left,r)-r/2,h=ne(t,this.right,a)+a/2,d=f=l):(d=ne(t,this.top,r)-r/2,f=ne(t,this.bottom,a)+a/2,c=h=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(h,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&Ji(i,s);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,h=r.textOffset;nn(i,c,0,h,l,a)}s&&Zi(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const o=lt(i.font),r=wt(i.padding),a=i.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||z(n)?(l+=r.bottom,Z(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:d,rotation:f}=Xf(this,l,n,a);nn(t,i.text,0,0,o,{color:i.color,maxWidth:d,rotation:f,textAlign:Uf(a,n,s),textBaseline:"middle",translation:[c,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=F(t.grid&&t.grid.z,-1),s=F(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==De.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let o,r;for(o=0,r=n.length;o<r;++o){const a=n[o];a[i]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return lt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Sn{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;Gf(n)&&(i=this.register(n));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,Kf(t,r,i),this.override&&q.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,s=this.scope;i in n&&delete n[i],s&&i in q[s]&&(delete q[s][i],this.override&&delete pe[i])}}function Kf(e,t,n){const i=Ze(Object.create(null),[n?q.get(n):{},q.get(t),e.defaults]);q.set(t,i),e.defaultRoutes&&qf(t,e.defaultRoutes),e.descriptors&&q.describe(t,e.descriptors)}function qf(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),s=i.pop(),o=[e].concat(i).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");q.route(o,s,l,a)})}function Gf(e){return"id"in e&&"defaults"in e}class Jf{constructor(){this.controllers=new Sn(we,"datasets",!0),this.elements=new Sn($t,"elements"),this.plugins=new Sn(Object,"plugins"),this.scales=new Sn(De,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(s=>{const o=i||this._getRegistryForType(s);i||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):V(s,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,i){const s=Ui(t);U(i["before"+s],[],i),n[t](i),U(i["after"+s],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var Ct=new Jf;class Zf{constructor(){this._init=[]}notify(t,n,i,s){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(o,t,n,i);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,n,i,s){s=s||{};for(const o of t){const r=o.plugin,a=r[i],l=[n,s,o.options];if(U(a,l,r)===!1&&s.cancelable)return!1}return!0}invalidate(){Y(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,s=F(i.options&&i.options.plugins,{}),o=Qf(i);return s===!1&&!n?[]:eu(t,o,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,s=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),t,"stop"),this._notify(s(i,n),t,"start")}}function Qf(e){const t={},n=[],i=Object.keys(Ct.plugins.items);for(let o=0;o<i.length;o++)n.push(Ct.getPlugin(i[o]));const s=e.plugins||[];for(let o=0;o<s.length;o++){const r=s[o];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function tu(e,t){return!t&&e===!1?null:e===!0?{}:e}function eu(e,{plugins:t,localIds:n},i,s){const o=[],r=e.getContext();for(const a of t){const l=a.id,c=tu(i[l],s);c!==null&&o.push({plugin:a,options:nu(e.config,{plugin:a,local:n[l]},c,r)})}return o}function nu(e,{plugin:t,local:n},i,s){const o=e.pluginScopeKeys(t),r=e.getOptionScopes(i,o);return n&&t.defaults&&r.push(t.defaults),e.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Oi(e,t){const n=q.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function iu(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function su(e,t){return e===t?"_index_":"_value_"}function Mo(e){if(e==="x"||e==="y"||e==="r")return e}function ou(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Ei(e,...t){if(Mo(e))return e;for(const n of t){const i=n.axis||ou(n.position)||e.length>1&&Mo(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Co(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function ru(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return Co(e,"x",n[0])||Co(e,"y",n[0])}return{}}function au(e,t){const n=pe[e.type]||{scales:{}},i=t.scales||{},s=Oi(e.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!z(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Ei(r,a,ru(r,e),q.scales[a.type]),c=su(l,s),h=n.scales||{};o[r]=Ye(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Oi(a,t),h=(pe[a]||{}).scales||{};Object.keys(h).forEach(d=>{const f=iu(d,l),u=r[f+"AxisID"]||f;o[u]=o[u]||Object.create(null),Ye(o[u],[{axis:f},i[u],h[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Ye(a,[q.scales[a.type],q.scale])}),o}function ya(e){const t=e.options||(e.options={});t.plugins=F(t.plugins,{}),t.scales=au(e,t)}function _a(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function lu(e){return e=e||{},e.data=_a(e.data),ya(e),e}const Po=new Map,va=new Set;function kn(e,t){let n=Po.get(e);return n||(n=t(),Po.set(e,n),va.add(n)),n}const Fe=(e,t,n)=>{const i=Pe(t,n);i!==void 0&&e.add(i)};class cu{constructor(t){this._config=lu(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=_a(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ya(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return kn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return kn(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return kn(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return kn(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let s=i.get(t);return(!s||n)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,n,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(n);if(a)return a;const l=new Set;n.forEach(h=>{t&&(l.add(t),h.forEach(d=>Fe(l,t,d))),h.forEach(d=>Fe(l,s,d)),h.forEach(d=>Fe(l,pe[o]||{},d)),h.forEach(d=>Fe(l,q,d)),h.forEach(d=>Fe(l,Ci,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),va.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,pe[n]||{},q.datasets[n]||{},{type:n},q,Ci]}resolveNamedOptions(t,n,i,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Oo(this._resolverCache,t,s);let l=r;if(du(r,n)){o.$shared=!1,i=Kt(i)?i():i;const c=this.createResolver(t,i,a);l=Oe(r,i,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,i=[""],s){const{resolver:o}=Oo(this._resolverCache,t,i);return z(n)?Oe(o,n,void 0,s):o}}function Oo(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const s=n.join();let o=i.get(s);return o||(o={resolver:ts(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,o)),o}const hu=e=>z(e)&&Object.getOwnPropertyNames(e).some(t=>Kt(e[t]));function du(e,t){const{isScriptable:n,isIndexable:i}=ia(e);for(const s of t){const o=n(s),r=i(s),a=(r||o)&&e[s];if(o&&(Kt(a)||hu(a))||r&&Z(a))return!0}return!1}var fu="4.4.7";const uu=["top","bottom","left","right","chartArea"];function Eo(e,t){return e==="top"||e==="bottom"||uu.indexOf(e)===-1&&t==="x"}function Do(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function Ro(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),U(n&&n.onComplete,[e],t)}function pu(e){const t=e.chart,n=t.options.animation;U(n&&n.onProgress,[e],t)}function wa(e){return is()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const jn={},To=e=>{const t=wa(e);return Object.values(jn).filter(n=>n.canvas===t).pop()};function gu(e,t,n){const i=Object.keys(e);for(const s of i){const o=+s;if(o>=t){const r=e[s];delete e[s],(n>0||o>t)&&(e[o+n]=r)}}}function mu(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function Mn(e,t,n){return e.options.clip?e[n]:t[n]}function bu(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Mn(n,t,"left"),right:Mn(n,t,"right"),top:Mn(i,t,"top"),bottom:Mn(i,t,"bottom")}:t}class Pt{static register(...t){Ct.add(...t),Ao()}static unregister(...t){Ct.remove(...t),Ao()}constructor(t,n){const i=this.config=new cu(n),s=wa(t),o=To(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||jf(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=gh(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zf,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Ah(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],jn[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}At.listen(this,"complete",Ro),At.listen(this,"progress",pu),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:o}=this;return Y(t)?n&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ct}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():to(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Js(this.canvas,this.ctx),this}stop(){return At.stop(this),this}resize(t,n){At.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,n,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,to(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),U(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};V(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Ei(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),V(o,r=>{const a=r.options,l=a.id,c=Ei(l,a),h=F(a.type,r.dtype);(a.position===void 0||Eo(a.position,c)!==Eo(r.dposition))&&(a.position=r.dposition),s[l]=!0;let d=null;if(l in i&&i[l].type===h)d=i[l];else{const f=Ct.getScale(h);d=new f({id:l,type:h,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,t)}),V(s,(r,a)=>{r||delete i[a]}),V(i,r=>{xt.configure(this,r,r.options),xt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(Do("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const o=n[i];let r=this.getDatasetMeta(i);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(i),r=this.getDatasetMeta(i)),r.type=a,r.indexAxis=o.indexAxis||Oi(a,this.options),r.order=o.order||0,r.index=i,r.label=""+o.label,r.visible=this.isDatasetVisible(i),r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{const l=Ct.getController(a),{datasetElementType:c,dataElementType:h}=q.datasets[a];Object.assign(l,{dataElementType:Ct.getElement(h),datasetElementType:c&&Ct.getElement(c)}),r.controller=new l(this,i),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){V(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c<h;c++){const{controller:d}=this.getDatasetMeta(c),f=!s&&o.indexOf(d)===-1;d.buildOrUpdateElements(f),r=Math.max(+d.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||V(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Do("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){V(this.scales,t=>{xt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Bs(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:o}of n){const r=i==="_removeElements"?-o:o;gu(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=i(0);for(let o=1;o<n;o++)if(!Bs(s,i(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;xt.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],V(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Kt(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(At.has(this)?this.attached&&!At.running(this)&&At.start(this):(this.draw(),Ro({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let s,o;for(s=0,o=n.length;s<o;++s){const r=n[s];(!t||r.visible)&&i.push(r)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,s=!i.disabled,o=bu(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&Ji(n,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&Zi(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return en(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){const o=uf.modes[n];return typeof o=="function"?o(this,t,i,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let s=i.filter(o=>o&&o._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=ge(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);Qe(n)?(o.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),At.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Js(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete jn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(o,r)=>{n.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};V(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){V(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},V(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const s=i?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Nn(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const s=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),r=o(n,t),a=i?t:o(t,n);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const o=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:s=[],options:o}=this,r=n,a=this._getActiveElements(t,s,i,r),l=vh(t),c=mu(t,this._lastEvent,i,l);i&&(this._lastEvent=null,U(o.onHover,[t,a,this],this),l&&U(o.onClick,[t,a,this],this));const h=!Nn(a,s);return(h||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,h}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}}j(Pt,"defaults",q),j(Pt,"instances",jn),j(Pt,"overrides",pe),j(Pt,"registry",Ct),j(Pt,"version",fu),j(Pt,"getChart",To);function Ao(){return V(Pt.instances,e=>e._plugins.invalidate())}function xu(e,t,n){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=s/a;e.beginPath(),e.arc(o,r,a,i-c,n+c),l>s?(c=s/l,e.arc(o,r,l,n+c,i-c,!0)):e.arc(o,r,s,n+st,i-st),e.closePath(),e.clip()}function yu(e){return Qi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function _u(e,t,n,i){const s=yu(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(n-Math.min(o,l))*i/2;return at(l,0,Math.min(o,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:at(s.innerStart,0,r),innerEnd:at(s.innerEnd,0,r)}}function xe(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Wn(e,t,n,i,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,d=Math.max(t.outerRadius+i+n-c,0),f=h>0?h+i+n+c:0;let u=0;const g=s-l;if(i){const A=h>0?h-i:0,L=d>0?d-i:0,I=(A+L)/2,W=I!==0?g*I/(I+i):g;u=(g-W)/2}const m=Math.max(.001,g*d-n/Q)/d,p=(g-m)/2,b=l+p+u,y=s-p-u,{outerStart:v,outerEnd:w,innerStart:_,innerEnd:S}=_u(t,f,d,y-b),M=d-v,k=d-w,P=b+v/M,E=y-w/k,C=f+_,O=f+S,R=b+_/C,N=y-S/O;if(e.beginPath(),o){const A=(P+E)/2;if(e.arc(r,a,d,P,A),e.arc(r,a,d,A,E),w>0){const $=xe(k,E,r,a);e.arc($.x,$.y,w,E,y+st)}const L=xe(O,y,r,a);if(e.lineTo(L.x,L.y),S>0){const $=xe(O,N,r,a);e.arc($.x,$.y,S,y+st,N+Math.PI)}const I=(y-S/f+(b+_/f))/2;if(e.arc(r,a,f,y-S/f,I,!0),e.arc(r,a,f,I,b+_/f,!0),_>0){const $=xe(C,R,r,a);e.arc($.x,$.y,_,R+Math.PI,b-st)}const W=xe(M,b,r,a);if(e.lineTo(W.x,W.y),v>0){const $=xe(M,P,r,a);e.arc($.x,$.y,v,b-st,P)}}else{e.moveTo(r,a);const A=Math.cos(P)*d+r,L=Math.sin(P)*d+a;e.lineTo(A,L);const I=Math.cos(E)*d+r,W=Math.sin(E)*d+a;e.lineTo(I,W)}e.closePath()}function vu(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Wn(e,t,n,i,l,s);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=r+(a%ot||ot))}return Wn(e,t,n,i,l,s),e.fill(),l}function wu(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:f}=l,u=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,u?(e.lineWidth=c*2,e.lineJoin=h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let g=t.endAngle;if(o){Wn(e,t,n,i,g,s);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(g=r+(a%ot||ot))}u&&xu(e,t,g),o||(Wn(e,t,n,i,g,s),e.stroke())}class Cn extends $t{constructor(n){super();j(this,"circumference");j(this,"endAngle");j(this,"fullCircles");j(this,"innerRadius");j(this,"outerRadius");j(this,"pixelMargin");j(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.getProps(["x","y"],s),{angle:r,distance:a}=Xr(o,{x:n,y:i}),{startAngle:l,endAngle:c,innerRadius:h,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),u=(this.options.spacing+this.options.borderWidth)/2,g=F(f,c-l),m=Xi(r,l,c)&&l!==c,p=g>=ot||m,b=Ht(a,h+u,d+u);return p&&b}getCenterPoint(n){const{x:i,y:s,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:h}=this.options,d=(o+r)/2,f=(a+l+h+c)/2;return{x:i+Math.cos(d)*f,y:s+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,o=(i.offset||0)/4,r=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>ot?Math.floor(s/ot):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Q,s||0)),h=o*c;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,vu(n,this,h,r,a),wu(n,this,h,r,a),n.restore()}}j(Cn,"id","arc"),j(Cn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j(Cn,"defaultRoutes",{backgroundColor:"backgroundColor"}),j(Cn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Sa(e,t,n=t){e.lineCap=F(n.borderCapStyle,t.borderCapStyle),e.setLineDash(F(n.borderDash,t.borderDash)),e.lineDashOffset=F(n.borderDashOffset,t.borderDashOffset),e.lineJoin=F(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=F(n.borderWidth,t.borderWidth),e.strokeStyle=F(n.borderColor,t.borderColor)}function Su(e,t,n){e.lineTo(n.x,n.y)}function ku(e){return e.stepped?Uh:e.tension||e.cubicInterpolationMode==="monotone"?Xh:Su}function ka(e,t,n={}){const i=e.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=t,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!h?i+c-l:c-l}}function Mu(e,t,n,i){const{points:s,options:o}=t,{count:r,start:a,loop:l,ilen:c}=ka(s,n,i),h=ku(o);let{move:d=!0,reverse:f}=i||{},u,g,m;for(u=0;u<=c;++u)g=s[(a+(f?c-u:u))%r],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):h(e,m,g,f,o.stepped),m=g);return l&&(g=s[(a+(f?c:0))%r],h(e,m,g,f,o.stepped)),!!l}function Cu(e,t,n,i){const s=t.points,{count:o,start:r,ilen:a}=ka(s,n,i),{move:l=!0,reverse:c}=i||{};let h=0,d=0,f,u,g,m,p,b;const y=w=>(r+(c?a-w:w))%o,v=()=>{m!==p&&(e.lineTo(h,p),e.lineTo(h,m),e.lineTo(h,b))};for(l&&(u=s[y(0)],e.moveTo(u.x,u.y)),f=0;f<=a;++f){if(u=s[y(f)],u.skip)continue;const w=u.x,_=u.y,S=w|0;S===g?(_<m?m=_:_>p&&(p=_),h=(d*h+w)/++d):(v(),e.lineTo(w,_),g=S,d=0,m=p=_),b=_}v()}function Di(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Cu:Mu}function Pu(e){return e.stepped?Md:e.tension||e.cubicInterpolationMode==="monotone"?Cd:ae}function Ou(e,t,n,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,i)&&s.closePath()),Sa(e,t.options),e.stroke(s)}function Eu(e,t,n,i){const{segments:s,options:o}=t,r=Di(t);for(const a of s)Sa(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const Du=typeof Path2D=="function";function Ru(e,t,n,i){Du&&!t.options.segment?Ou(e,t,n,i):Eu(e,t,n,i)}class Pn extends $t{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;bd(this._points,i,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=jd(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,s=t[n],o=this.points,r=Rd(this,{property:n,start:s,end:s});if(!r.length)return;const a=[],l=Pu(i);let c,h;for(c=0,h=r.length;c<h;++c){const{start:d,end:f}=r[c],u=o[d],g=o[f];if(u===g){a.push(u);continue}const m=Math.abs((s-u[n])/(g[n]-u[n])),p=l(u,g,m,i.stepped);p[n]=t[n],a.push(p)}return a.length===1?a[0]:a}pathSegment(t,n,i){return Di(this)(t,this,n,i)}path(t,n,i){const s=this.segments,o=Di(this);let r=this._loop;n=n||0,i=i||this.points.length-n;for(const a of s)r&=o(t,this,a,{start:n,end:n+i-1});return!!r}draw(t,n,i,s){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Ru(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}j(Pn,"id","line"),j(Pn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),j(Pn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),j(Pn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function jo(e,t,n,i){const s=e.options,{[n]:o}=e.getProps([n],i);return Math.abs(t-o)<s.radius+s.hitRadius}class gi extends $t{constructor(n){super();j(this,"parsed");j(this,"skip");j(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.options,{x:r,y:a}=this.getProps(["x","y"],s);return Math.pow(n-r,2)+Math.pow(i-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,i){return jo(this,n,"x",i)}inYRange(n,i){return jo(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!en(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Pi(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}j(gi,"id","point"),j(gi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),j(gi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Ma(e,t){const{x:n,y:i,base:s,width:o,height:r}=e.getProps(["x","y","base","width","height"],t);let a,l,c,h,d;return e.horizontal?(d=r/2,a=Math.min(n,s),l=Math.max(n,s),c=i-d,h=i+d):(d=o/2,a=n-d,l=n+d,c=Math.min(i,s),h=Math.max(i,s)),{left:a,top:c,right:l,bottom:h}}function Vt(e,t,n,i){return e?0:at(t,n,i)}function Tu(e,t,n){const i=e.options.borderWidth,s=e.borderSkipped,o=na(i);return{t:Vt(s.top,o.top,0,n),r:Vt(s.right,o.right,0,t),b:Vt(s.bottom,o.bottom,0,n),l:Vt(s.left,o.left,0,t)}}function Au(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,o=_e(s),r=Math.min(t,n),a=e.borderSkipped,l=i||z(s);return{topLeft:Vt(!l||a.top||a.left,o.topLeft,0,r),topRight:Vt(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Vt(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Vt(!l||a.bottom||a.right,o.bottomRight,0,r)}}function ju(e){const t=Ma(e),n=t.right-t.left,i=t.bottom-t.top,s=Tu(e,n/2,i/2),o=Au(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:o},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function mi(e,t,n,i){const s=t===null,o=n===null,a=e&&!(s&&o)&&Ma(e,i);return a&&(s||Ht(t,a.left,a.right))&&(o||Ht(n,a.top,a.bottom))}function Lu(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Nu(e,t){e.rect(t.x,t.y,t.w,t.h)}function bi(e,t,n={}){const i=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-i,r=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+i,y:e.y+s,w:e.w+o,h:e.h+r,radius:e.radius}}class xi extends $t{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:o,outer:r}=ju(this),a=Lu(r.radius)?$n:Nu;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,bi(r,n,o)),t.clip(),a(t,bi(o,-n,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,bi(o,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,i){return mi(this,t,n,i)}inXRange(t,n){return mi(this,t,null,n)}inYRange(t,n){return mi(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:s,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+s)/2:n,y:o?i:(i+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}j(xi,"id","bar"),j(xi,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),j(xi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Lo=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},Iu=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class No extends $t{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=U(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=lt(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Lo(i,o);let c,h;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,s){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=s+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,u=-h;return this.legendItems.forEach((g,m)=>{const p=i+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+p+2*a>r)&&(d+=h,c[c.length-(m>0?0:1)]=0,u+=h,f++),l[m]={left:0,top:u,row:f,width:p,height:s},c[c.length-1]+=p+a}),d}_fitCols(t,n,i,s){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-t;let d=a,f=0,u=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:y,itemHeight:v}=Fu(i,n,o,p,s);b>0&&u+v+2*a>h&&(d+=f+a,c.push({width:f,height:u}),g+=f+a,m++,f=u=0),l[b]={left:g,top:u,col:m,width:y,height:v},f=Math.max(f,y),u+=v+a}),d+=f,c.push({width:f,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:o}}=this,r=ve(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=rt(i,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=rt(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=rt(i,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=rt(i,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ji(t,this),this._draw(),Zi(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=q.color,l=ve(t.rtl,this.left,this.width),c=lt(r.font),{padding:h}=r,d=c.size,f=d/2;let u;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=Lo(r,d),b=function(S,M,k){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;s.save();const P=F(k.lineWidth,1);if(s.fillStyle=F(k.fillStyle,a),s.lineCap=F(k.lineCap,"butt"),s.lineDashOffset=F(k.lineDashOffset,0),s.lineJoin=F(k.lineJoin,"miter"),s.lineWidth=P,s.strokeStyle=F(k.strokeStyle,a),s.setLineDash(F(k.lineDash,[])),r.usePointStyle){const E={radius:m*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:P},C=l.xPlus(S,g/2),O=M+f;ea(s,E,C,O,r.pointStyleWidth&&g)}else{const E=M+Math.max((d-m)/2,0),C=l.leftForLtr(S,g),O=_e(k.borderRadius);s.beginPath(),Object.values(O).some(R=>R!==0)?$n(s,{x:C,y:E,w:g,h:m,radius:O}):s.rect(C,E,g,m),s.fill(),P!==0&&s.stroke()}s.restore()},y=function(S,M,k){nn(s,k.text,S,M+p/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},v=this.isHorizontal(),w=this._computeTitleHeight();v?u={x:rt(o,this.left+h,this.right-i[0]),y:this.top+h+w,line:0}:u={x:this.left+h,y:rt(o,this.top+w+h,this.bottom-n[0].height),line:0},la(this.ctx,t.textDirection);const _=p+h;this.legendItems.forEach((S,M)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;const k=s.measureText(S.text).width,P=l.textAlign(S.textAlign||(S.textAlign=r.textAlign)),E=g+f+k;let C=u.x,O=u.y;l.setWidth(this.width),v?M>0&&C+E+h>this.right&&(O=u.y+=_,u.line++,C=u.x=rt(o,this.left+h,this.right-i[u.line])):M>0&&O+_>this.bottom&&(C=u.x=C+n[u.line].width+h,u.line++,O=u.y=rt(o,this.top+w+h,this.bottom-n[u.line].height));const R=l.x(C);if(b(R,O,S),C=jh(P,C+g+f,v?C+E:this.right,t.rtl),y(l.x(C),O,S),v)u.x+=E+h;else if(typeof S.text!="string"){const N=c.lineHeight;u.y+=Ca(S,N)+h}else u.y+=_}),ca(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=lt(n.font),s=wt(n.padding);if(!n.display)return;const o=ve(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=i.size/2,c=s.top+l;let h,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),h=this.top+c,d=rt(t.align,d,this.right-f);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);h=c+rt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const u=rt(a,d,d+f);r.textAlign=o.textAlign(qi(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=i.string,nn(r,n.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,n=lt(t.font),i=wt(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,s,o;if(Ht(t,this.left,this.right)&&Ht(n,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(s=o[i],Ht(t,s.left,s.left+s.width)&&Ht(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!Bu(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,o=Iu(s,i);s&&!o&&U(n.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!o&&U(n.onHover,[t,i,this],this)}else i&&U(n.onClick,[t,i,this],this)}}function Fu(e,t,n,i,s){const o=$u(i,e,t,n),r=zu(s,i,t.lineHeight);return{itemWidth:o,itemHeight:r}}function $u(e,t,n,i){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((o,r)=>o.length>r.length?o:r)),t+n.size/2+i.measureText(s).width}function zu(e,t,n){let i=e;return typeof t.text!="string"&&(i=Ca(t,n)),i}function Ca(e,t){const n=e.text?e.text.length:0;return t*n}function Bu(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var _g={id:"legend",_element:No,start(e,t,n){const i=e.legend=new No({ctx:e.ctx,options:n,chart:e});xt.configure(e,i,n),xt.addBox(e,i)},stop(e){xt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;xt.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),h=wt(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Pa extends $t{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const s=Z(i.text)?i.text.length:1;this._padding=wt(i.padding);const o=s*lt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:s,right:o,options:r}=this,a=r.align;let l=0,c,h,d;return this.isHorizontal()?(h=rt(a,i,o),d=n+t,c=o-i):(r.position==="left"?(h=i+t,d=rt(a,s,n),l=Q*-.5):(h=o-t,d=rt(a,n,s),l=Q*.5),c=s-n),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=lt(n.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);nn(t,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:qi(n.align),textBaseline:"middle",translation:[r,a]})}}function Wu(e,t){const n=new Pa({ctx:e.ctx,options:t,chart:e});xt.configure(e,n,t),xt.addBox(e,n),e.titleBlock=n}var vg={id:"title",_element:Pa,start(e,t,n){Wu(e,n)},stop(e){const t=e.titleBlock;xt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;xt.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Be={average(e){if(!e.length)return!1;let t,n,i=new Set,s=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),s+=l.y,++o}}return o===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:s/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),h=Mi(t,c);h<s&&(s=h,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function Mt(e,t){return t&&(Z(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function jt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
-`)>-1?e.split(`
-`):e}function Hu(e,t){const{element:n,datasetIndex:i,index:s}=t,o=e.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:e,label:r,parsed:o.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Io(e,t){const n=e.chart.ctx,{body:i,footer:s,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=lt(t.bodyFont),c=lt(t.titleFont),h=lt(t.footerFont),d=o.length,f=s.length,u=i.length,g=wt(t.padding);let m=g.height,p=0,b=i.reduce((w,_)=>w+_.before.length+_.lines.length+_.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const w=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=u*w+(b-u)*l.lineHeight+(b-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*h.lineHeight+(f-1)*t.footerSpacing);let y=0;const v=function(w){p=Math.max(p,n.measureText(w).width+y)};return n.save(),n.font=c.string,V(e.title,v),n.font=l.string,V(e.beforeBody.concat(e.afterBody),v),y=t.displayColors?r+2+t.boxPadding:0,V(i,w=>{V(w.before,v),V(w.lines,v),V(w.after,v)}),y=0,n.font=h.string,V(e.footer,v),n.restore(),p+=g.width,{width:p,height:m}}function Vu(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function Yu(e,t,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;if(e==="left"&&s+o+r>t.width||e==="right"&&s-o-r<0)return!0}function Uu(e,t,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),Yu(c,e,t,n)&&(c="center"),c}function Fo(e,t,n){const i=n.yAlign||t.yAlign||Vu(e,n);return{xAlign:n.xAlign||t.xAlign||Uu(e,t,n,i),yAlign:i}}function Xu(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function Ku(e,t,n){let{y:i,height:s}=e;return t==="top"?i+=n:t==="bottom"?i-=s+n:i-=s/2,i}function $o(e,t,n,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=s+o,{topLeft:h,topRight:d,bottomLeft:f,bottomRight:u}=_e(r);let g=Xu(t,a);const m=Ku(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,f)+s:a==="right"&&(g+=Math.max(d,u)+s),{x:at(g,0,i.width-t.width),y:at(m,0,i.height-t.height)}}function On(e,t,n){const i=wt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function zo(e){return Mt([],jt(e))}function qu(e,t,n){return ge(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Bo(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Oa={beforeTitle:Tt,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:Tt,beforeBody:Tt,beforeLabel:Tt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Y(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Tt,afterBody:Tt,beforeFooter:Tt,footer:Tt,afterFooter:Tt};function ht(e,t,n,i){const s=e[t].call(n,i);return typeof s>"u"?Oa[t].call(n,i):s}class Ri extends $t{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,o=new da(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=qu(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,s=ht(i,"beforeTitle",this,t),o=ht(i,"title",this,t),r=ht(i,"afterTitle",this,t);let a=[];return a=Mt(a,jt(s)),a=Mt(a,jt(o)),a=Mt(a,jt(r)),a}getBeforeBody(t,n){return zo(ht(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,s=[];return V(t,o=>{const r={before:[],lines:[],after:[]},a=Bo(i,o);Mt(r.before,jt(ht(a,"beforeLabel",this,o))),Mt(r.lines,ht(a,"label",this,o)),Mt(r.after,jt(ht(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,n){return zo(ht(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,s=ht(i,"beforeFooter",this,t),o=ht(i,"footer",this,t),r=ht(i,"afterFooter",this,t);let a=[];return a=Mt(a,jt(s)),a=Mt(a,jt(o)),a=Mt(a,jt(r)),a}_createItems(t){const n=this._active,i=this.chart.data,s=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(Hu(this.chart,n[l]));return t.filter&&(a=a.filter((h,d,f)=>t.filter(h,d,f,i))),t.itemSort&&(a=a.sort((h,d)=>t.itemSort(h,d,i))),V(a,h=>{const d=Bo(t.callbacks,h);s.push(ht(d,"labelColor",this,h)),o.push(ht(d,"labelPointStyle",this,h)),r.push(ht(d,"labelTextColor",this,h))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const i=this.options.setContext(this.getContext()),s=this._active;let o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{const a=Be[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=Io(this,i),c=Object.assign({},a,l),h=Fo(this.chart,i,c),d=$o(i,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){const o=this.getCaretPosition(t,i,s);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=_e(a),{x:f,y:u}=t,{width:g,height:m}=n;let p,b,y,v,w,_;return o==="center"?(w=u+m/2,s==="left"?(p=f,b=p-r,v=w+r,_=w-r):(p=f+g,b=p+r,v=w-r,_=w+r),y=p):(s==="left"?b=f+Math.max(l,h)+r:s==="right"?b=f+g-Math.max(c,d)-r:b=this.caretX,o==="top"?(v=u,w=v-r,p=b-r,y=b+r):(v=u+m,w=v+r,p=b+r,y=b-r),_=v),{x1:p,x2:b,x3:y,y1:v,y2:w,y3:_}}drawTitle(t,n,i){const s=this.title,o=s.length;let r,a,l;if(o){const c=ve(i.rtl,this.x,this.width);for(t.x=On(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",r=lt(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=r.string,l=0;l<o;++l)n.fillText(s[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,n,i,s,o){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=o,h=lt(o.bodyFont),d=On(this,"left",o),f=s.x(d),u=l<h.lineHeight?(h.lineHeight-l)/2:0,g=n.y+u;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=s.leftForLtr(f,c)+c/2,b=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Pi(t,m,p,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Pi(t,m,p,b)}else{t.lineWidth=z(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const m=s.leftForLtr(f,c),p=s.leftForLtr(s.xPlus(f,1),c-2),b=_e(r.borderRadius);Object.values(b).some(y=>y!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,$n(t,{x:m,y:g,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),$n(t,{x:p,y:g+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(p,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=i,d=lt(i.bodyFont);let f=d.lineHeight,u=0;const g=ve(i.rtl,this.x,this.width),m=function(k){n.fillText(k,g.x(t.x+u),t.y+f/2),t.y+=f+o},p=g.textAlign(r);let b,y,v,w,_,S,M;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=On(this,p,i),n.fillStyle=i.bodyColor,V(this.beforeBody,m),u=a&&p!=="right"?r==="center"?c/2+h:c+2+h:0,w=0,S=s.length;w<S;++w){for(b=s[w],y=this.labelTextColors[w],n.fillStyle=y,V(b.before,m),v=b.lines,a&&v.length&&(this._drawColorBox(n,t,w,g,i),f=Math.max(d.lineHeight,l)),_=0,M=v.length;_<M;++_)m(v[_]),f=d.lineHeight;V(b.after,m)}u=0,f=d.lineHeight,V(this.afterBody,m),t.y-=o}drawFooter(t,n,i){const s=this.footer,o=s.length;let r,a;if(o){const l=ve(i.rtl,this.x,this.width);for(t.x=On(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",r=lt(i.footerFont),n.fillStyle=i.footerColor,n.font=r.string,a=0;a<o;++a)n.fillText(s[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,n,i,s){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=i,{topLeft:d,topRight:f,bottomLeft:u,bottomRight:g}=_e(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(a+d,l),r==="top"&&this.drawCaret(t,n,i,s),n.lineTo(a+c-f,l),n.quadraticCurveTo(a+c,l,a+c,l+f),r==="center"&&o==="right"&&this.drawCaret(t,n,i,s),n.lineTo(a+c,l+h-g),n.quadraticCurveTo(a+c,l+h,a+c-g,l+h),r==="bottom"&&this.drawCaret(t,n,i,s),n.lineTo(a+u,l+h),n.quadraticCurveTo(a,l+h,a,l+h-u),r==="center"&&o==="left"&&this.drawCaret(t,n,i,s),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){const r=Be[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Io(this,t),l=Object.assign({},r,this._size),c=Fo(n,t,l),h=$o(t,l,c,n);(s._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=wt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,n),la(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),ca(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Nn(i,s),r=this._positionChanged(s,n);(o||r)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,i),a=this._positionChanged(r,t),l=n||!Nn(r,o)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,i,s){const o=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:i,caretY:s,options:o}=this,r=Be[o.position].call(this,t,n);return r!==!1&&(i!==r.x||s!==r.y)}}j(Ri,"positioners",Be);var wg={id:"tooltip",_element:Ri,positioners:Be,afterInit(e,t,n){n&&(e.tooltip=new Ri({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Oa},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Gu=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Ju(e,t,n,i){const s=e.indexOf(t);if(s===-1)return Gu(e,t,n,i);const o=e.lastIndexOf(t);return s!==o?n:s}const Zu=(e,t)=>e===null?null:at(Math.round(e),0,t);function Wo(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Ho extends De{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:o}of n)i[s]===o&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Y(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:Ju(i,t,F(n,t),this._addedLabels),Zu(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,s=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let r=t;r<=n;r++)s.push({value:r});return s}getLabelForValue(t){return Wo.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}j(Ho,"id","category"),j(Ho,"defaults",{ticks:{callback:Wo}});function Qu(e,t){const n=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:f}=e,u=o||1,g=h-1,{min:m,max:p}=t,b=!Y(r),y=!Y(a),v=!Y(c),w=(p-m)/(d+1);let _=Hs((p-m)/g/u)*u,S,M,k,P;if(_<1e-14&&!b&&!y)return[{value:m},{value:p}];P=Math.ceil(p/_)-Math.floor(m/_),P>g&&(_=Hs(P*_/g/u)*u),Y(l)||(S=Math.pow(10,l),_=Math.ceil(_*S)/S),s==="ticks"?(M=Math.floor(m/_)*_,k=Math.ceil(p/_)*_):(M=m,k=p),b&&y&&o&&Mh((a-r)/o,_/1e3)?(P=Math.round(Math.min((a-r)/_,h)),_=(a-r)/P,M=r,k=a):v?(M=b?r:M,k=y?a:k,P=c-1,_=(k-M)/P):(P=(k-M)/_,Ue(P,Math.round(P),_/1e3)?P=Math.round(P):P=Math.ceil(P));const E=Math.max(Vs(_),Vs(M));S=Math.pow(10,Y(l)?E:l),M=Math.round(M*S)/S,k=Math.round(k*S)/S;let C=0;for(b&&(f&&M!==r?(n.push({value:r}),M<r&&C++,Ue(Math.round((M+C*_)*S)/S,r,Vo(r,w,e))&&C++):M<r&&C++);C<P;++C){const O=Math.round((M+C*_)*S)/S;if(y&&O>a)break;n.push({value:O})}return y&&f&&k!==a?n.length&&Ue(n[n.length-1].value,a,Vo(a,w,e))?n[n.length-1].value=a:n.push({value:a}):(!y||k===a)&&n.push({value:k}),n}function Vo(e,t,{horizontal:n,minRotation:i}){const s=le(i),o=(n?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class tp extends De{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Y(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:o}=this;const r=l=>s=n?s:l,a=l=>o=i?o:l;if(t){const l=Dt(s),c=Dt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(s===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(s-l)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=Qu(s,o);return t.bounds==="ticks"&&Ch(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-n)/Math.max(t.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return Zr(t,this.chart.options.locale,this.options.ticks.format)}}class Yo extends tp{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?t:0,this.max=vt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=le(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}j(Yo,"id","linear"),j(Yo,"defaults",{ticks:{callback:ta.formatters.numeric}});const qn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},dt=Object.keys(qn);function Uo(e,t){return e-t}function Xo(e,t){if(Y(t))return null;const n=e._adapter,{parser:i,round:s,isoWeekday:o}=e._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),vt(r)||(r=typeof i=="string"?n.parse(r,i):n.parse(r)),r===null?null:(s&&(r=s==="week"&&(tn(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,s)),+r)}function Ko(e,t,n,i){const s=dt.length;for(let o=dt.indexOf(e);o<s-1;++o){const r=qn[dt[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((n-t)/(a*r.size))<=i)return dt[o]}return dt[s-1]}function ep(e,t,n,i,s){for(let o=dt.length-1;o>=dt.indexOf(n);o--){const r=dt[o];if(qn[r].common&&e._adapter.diff(s,i,r)>=t-1)return r}return dt[n?dt.indexOf(n):0]}function np(e){for(let t=dt.indexOf(e)+1,n=dt.length;t<n;++t)if(qn[dt[t]].common)return dt[t]}function qo(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:s}=Ki(n,t),o=n[i]>=t?n[i]:n[s];e[o]=!0}}function ip(e,t,n,i){const s=e._adapter,o=+s.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=n[a],l>=0&&(t[l].major=!0);return t}function Go(e,t,n){const i=[],s={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],s[a]=r,i.push({value:a,major:!1});return o===0||!n?i:ip(e,i,s,n)}class Hn extends De{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),s=this._adapter=new lf._date(t.adapters.date);s.init(n),Ye(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Xo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=vt(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),o=vt(o)&&!isNaN(o)?o:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=Rh(s,o,r);return this._unit=n.unit||(i.autoSkip?Ko(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):ep(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:np(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),Go(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=at(n,0,r),i=at(i,0,r),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||Ko(o.minUnit,n,i,this._getLabelCapacity(n)),a=F(s.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=tn(l)||l===!0,h={};let d=n,f,u;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(i,n,r)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+r);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(f=d,u=0;f<i;f=+t.add(f,a,r),u++)qo(h,f,g);return(f===i||s.bounds==="ticks"||u===1)&&qo(h,f,g),Object.keys(h).sort(Uo).map(m=>+m)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,o=this._unit,r=n||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,i,s){const o=this.options,r=o.ticks.callback;if(r)return U(r,[t,n,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],d=c&&a[c],f=i[n],u=c&&d&&f&&f.major;return this._adapter.format(t,s||(u?d:h))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n<i;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,s=le(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Go(this,[t],this._majorUnit),s),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)t.push(Xo(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return qr(t.sort(Uo))}}j(Hn,"id","time"),j(Hn,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function En(e,t,n){let i=0,s=e.length-1,o,r,a,l;n?(t>=e[i].pos&&t<=e[s].pos&&({lo:i,hi:s}=ce(e,"pos",t)),{pos:o,time:a}=e[i],{pos:r,time:l}=e[s]):(t>=e[i].time&&t<=e[s].time&&({lo:i,hi:s}=ce(e,"time",t)),{time:o,pos:a}=e[i],{time:r,pos:l}=e[s]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Jo extends Hn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=En(n,this.min),this._tableRange=En(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,s=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r<a;++r)c=t[r],c>=n&&c<=i&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(r=0,a=s.length;r<a;++r)h=s[r+1],l=s[r-1],c=s[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,o)=>s-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(En(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return En(this._table,i*this._tableRange+this._minPos,!0)}}j(Jo,"id","timeseries"),j(Jo,"defaults",Hn.defaults);var se={},Zo;function sp(){if(Zo)return se;Zo=1,Object.defineProperty(se,"__esModule",{value:!0}),se.cartesianProductGenerator=se.cartesianProduct=void 0;function e(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);return r.length?e(a,...r):a}se.cartesianProduct=e;function*t(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);yield a,r.length&&(yield*t(a,...r))}se.cartesianProductGenerator=t;function n(i,s){const o=[];for(let r=0;r<i.length;r++){if(!s){o.push([i[r]]);continue}for(let a=0;a<s.length;a++)Array.isArray(i[r])?o.push([...i[r],s[a]]):o.push([i[r],s[a]])}return o}return se}var rs=sp();const op=function(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);let n="#";for(let i=0;i<3;i++){const o="00"+(t>>i*8&255).toString(16);n+=o.substring(o.length-2)}return n};function Sg(e,t=(n,i)=>{}){const n=new Map;for(const[i,s]of e){const o=new Map;for(const[r,a]of s){const l=new Map;for(const[c,h]of a){const d=t(r,h);if(d){l.set(c,{tooltip:d});continue}l.set(c,{})}o.set(r,l)}n.set(i,o)}return n}function kg(e){const t=new Map;return e.forEach(n=>{const i=t.get(n.nren);(!i||i.year<n.year)&&t.set(n.nren,n)}),Array.from(t.values())}function Mg(e){return e.match(/^[a-zA-Z]+:\/\//)?e:"https://"+e}const Cg=e=>{const t={};return!e.urls&&!e.url||(e.urls&&e.urls.forEach(n=>{t[n]=n}),e.url&&(t[e.url]=e.url)),t};function Pg(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map);let s=i.get(n.year);s||(s=[]),s.push(n),i.set(n.year,s),t.set(n.nren,i)}),t}function Re(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map),i.set(n.year,n),t.set(n.nren,i)}),t}function Og(e,t){const n=new Map;return e.forEach((i,s)=>{const o=new Map;Array.from(i.keys()).sort((a,l)=>l-a).forEach(a=>{const l=i.get(a),c=o.get(a)||{};t(c,l),Object.keys(c).length>0&&o.set(a,c)}),n.set(s,o)}),n}function Eg(e,t,n=!1){const i=new Map;return e.forEach(s=>{const o=a=>{let l=i.get(s.nren);l||(l=new Map);let c=l.get(a);c||(c=new Map),c.set(s.year,s),l.set(a,c),i.set(s.nren,l)};let r=s[t];typeof r=="boolean"&&(r=r?"True":"False"),n&&r==null&&(r=`${r}`),Array.isArray(r)?r.forEach(o):o(r)}),i}function Dg(e,t,n,i=!0,s){const o=new Map,r=(a,l,c)=>{a.forEach(h=>{let d=l?h[l]:c;typeof d=="boolean"&&(d=d?"True":"False");const f=h.nren,u=h.year,g=o.get(f)||new Map,m=g.get(u)||new Map,p=m.get(d)||{},b=h[c];if(b==null)return;const y=i?b:c,v=p[y]||{};v[`${b}`]=b,p[y]=v,m.set(d,p),g.set(u,m),o.set(f,g)})};if(n)for(const a of t)r(e,n,a);else for(const a of t)r(e,void 0,a);return o}const Rg=e=>{function t(){const d=(u,g,m)=>"#"+[u,g,m].map(p=>{const b=p.toString(16);return b.length===1?"0"+b:b}).join(""),f=new Map;return f.set("client_institutions",d(157,40,114)),f.set("commercial",d(241,224,79)),f.set("european_funding",d(219,42,76)),f.set("gov_public_bodies",d(237,141,24)),f.set("other",d(137,166,121)),f}const n=Re(e),i=t(),s=[...new Set(e.map(d=>d.year))].sort(),o=[...new Set(e.map(d=>d.nren))].sort(),r={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},a=Object.keys(r),l=rs.cartesianProduct(Object.keys(r),s).reduce((d,[f,u])=>{const g=`${f},${u}`;return d[g]={},d},{});return n.forEach((d,f)=>{d.forEach((u,g)=>{const m=a.map(b=>u[b]||0);if(m.reduce((b,y)=>b+y,0)!==0)for(const b of a){const y=`${b},${g}`,v=a.indexOf(b);l[y][f]=m[v]}})}),{datasets:Array.from(Object.entries(l)).map(([d,f])=>{const[u,g]=d.split(",");return{backgroundColor:i.get(u)||"black",label:r[u]+" ("+g+")",data:o.map(p=>f[p]),stack:g,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:u==a[0],formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}),labels:o.map(d=>d.toString())}};function Tg(e,t){const n=[...new Set(e.map(r=>r.year))].sort(),i=[...new Set(e.map(r=>r.nren))].sort(),s=Re(e);return{datasets:i.map(r=>{const a=op(r);return{backgroundColor:a,borderColor:a,data:n.map(l=>{const c=s.get(r);if(!c)return null;const h=c.get(l);return h?h[t]:null}),label:r,hidden:!1}}),labels:n.map(r=>r.toString())}}const Ag=(e,t,n)=>{let i;t?i=["Technical FTE","Non-technical FTE"]:i=["Permanent FTE","Subcontracted FTE"];const s={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[o,r]=i,[a,l]=[s[o],s[r]];function c(p){const b=p[a],y=p[l],v=b+y,w=(b/v||0)*100,_=(y/v||0)*100,S={};return S[o]=Math.round(Math.floor(w*100))/100,S[r]=Math.round(Math.floor(_*100))/100,S}const h=Re(e),d=[n].sort(),f=[...new Set(e.map(p=>p.nren))].sort((p,b)=>p.localeCompare(b));return{datasets:rs.cartesianProduct(i,d).map(function([p,b]){let y="";return p==="Technical FTE"?y="rgba(40, 40, 250, 0.8)":p==="Permanent FTE"?y="rgba(159, 129, 235, 1)":p==="Subcontracted FTE"?y="rgba(173, 216, 229, 1)":p==="Non-technical FTE"&&(y="rgba(116, 216, 242, 0.54)"),{backgroundColor:y,label:`${p} (${b})`,data:f.map(v=>{const w=h.get(v).get(b);return w?c(w)[p]:0}),stack:b,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:f}},jg=(e,t)=>{const n=["Research & Education","Commodity"],i={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},s=Re(e),o=[t].sort(),r=[...new Set(e.map(h=>h.nren))].sort((h,d)=>h.localeCompare(d));return{datasets:rs.cartesianProduct(n,o).map(function([h,d]){let f="";return h==="Research & Education"?f="rgba(40, 40, 250, 0.8)":h==="Commodity"&&(f="rgba(116, 216, 242, 0.54)"),{backgroundColor:f,label:`${h} (${d})`,data:r.map(u=>{const g=s.get(u).get(d);return g?g[i[h]]:0}),stack:d,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:r}},Lg=(e,t)=>{const n=["Permanent FTE","Subcontracted FTE"],i={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[s,o]=n,[r,a]=[i[s],i[o]],l=Re(e),c=[...new Set(e.map(u=>u.nren))].sort((u,g)=>u.localeCompare(g));function h(u,g){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`Number of FTEs (${u})`,data:c.map(p=>{const b=l.get(p).get(u);return b?(b[r]??0)+(b[a]??0):0}),stack:`${u}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}return{datasets:t.sort().map(h),labels:c}},Ng=(e,t,n)=>{const i=Re(e),s=[...new Set(e.map(l=>l.nren))].sort((l,c)=>l.localeCompare(c)),o=[...new Set(e.map(l=>l.year))].sort();function r(l,c){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`${n} (${l})`,data:s.map(d=>{const f=i.get(d).get(l);return f?f[t]??0:0}),stack:`${l}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(d,f){return f.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(d){return d.chart.chartArea.width}}}}return{datasets:o.sort().map(r),labels:s}},rp=()=>{const e=St.c(13);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h5",{children:"Organisation"}),n=x.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(T,{to:"/budget",children:x.jsx("span",{children:"Budget of NRENs per Year"})}),e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/funding",children:x.jsx("span",{children:"Income Source of NRENs"})}),e[3]=s):s=e[3];let o,r,a;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/charging",children:x.jsx("span",{children:"Charging Mechanism of NRENs"})}),r=x.jsx("hr",{className:"fake-divider"}),a=x.jsx("h6",{className:"section-title",children:"Staff and Projects"}),e[4]=o,e[5]=r,e[6]=a):(o=e[4],r=e[5],a=e[6]);let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/employee-count",children:x.jsx("span",{children:"Number of NREN Employees"})}),e[7]=l):l=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx(T,{to:"/roles",children:x.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),e[8]=c):c=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(T,{to:"/employment",children:x.jsx("span",{children:"Types of Employment within NRENs"})}),e[9]=h):h=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=x.jsx(T,{to:"/suborganisations",children:x.jsx("span",{children:"NREN Sub-Organisations"})}),e[10]=d):d=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx(T,{to:"/parentorganisation",children:x.jsx("span",{children:"NREN Parent Organisations"})}),e[11]=f):f=e[11];let u;return e[12]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,c,h,d,f,x.jsx(T,{to:"/ec-projects",children:x.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),e[12]=u):u=e[12],u},ap=e=>{const t=St.c(41),{activeCategory:n}=e,i=Za();let s;t[0]!==n||t[1]!==i?(s=()=>i(n===J.Organisation?".":"/funding"),t[0]=n,t[1]=i,t[2]=s):s=t[2];const o=n===J.Organisation;let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("span",{children:J.Organisation}),t[3]=r):r=t[3];let a;t[4]!==s||t[5]!==o?(a=x.jsx(Nt,{onClick:s,variant:"nav-box",active:o,children:r}),t[4]=s,t[5]=o,t[6]=a):a=t[6];let l;t[7]!==n||t[8]!==i?(l=()=>i(n===J.Policy?".":"/policy"),t[7]=n,t[8]=i,t[9]=l):l=t[9];const c=n===J.Policy;let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx("span",{children:J.Policy}),t[10]=h):h=t[10];let d;t[11]!==l||t[12]!==c?(d=x.jsx(Nt,{onClick:l,variant:"nav-box",active:c,children:h}),t[11]=l,t[12]=c,t[13]=d):d=t[13];let f;t[14]!==n||t[15]!==i?(f=()=>i(n===J.ConnectedUsers?".":"/institutions-urls"),t[14]=n,t[15]=i,t[16]=f):f=t[16];const u=n===J.ConnectedUsers;let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx("span",{children:J.ConnectedUsers}),t[17]=g):g=t[17];let m;t[18]!==u||t[19]!==f?(m=x.jsx(Nt,{onClick:f,variant:"nav-box",active:u,children:g}),t[18]=u,t[19]=f,t[20]=m):m=t[20];let p;t[21]!==n||t[22]!==i?(p=()=>i(n===J.Network?".":"/traffic-volume"),t[21]=n,t[22]=i,t[23]=p):p=t[23];const b=n===J.Network;let y;t[24]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx("span",{children:J.Network}),t[24]=y):y=t[24];let v;t[25]!==p||t[26]!==b?(v=x.jsx(Nt,{onClick:p,variant:"nav-box",active:b,children:y}),t[25]=p,t[26]=b,t[27]=v):v=t[27];let w;t[28]!==n||t[29]!==i?(w=()=>i(n===J.Services?".":"/network-services"),t[28]=n,t[29]=i,t[30]=w):w=t[30];const _=n===J.Services;let S;t[31]===Symbol.for("react.memo_cache_sentinel")?(S=x.jsx("span",{children:J.Services}),t[31]=S):S=t[31];let M;t[32]!==w||t[33]!==_?(M=x.jsx(Nt,{onClick:w,variant:"nav-box",active:_,children:S}),t[32]=w,t[33]=_,t[34]=M):M=t[34];let k;return t[35]!==m||t[36]!==v||t[37]!==M||t[38]!==a||t[39]!==d?(k=x.jsx(hr,{children:x.jsx(oe,{children:x.jsxs(Ai,{className:"navbox-bar gap-2 m-3",children:[a,d,m,v,M]})})}),t[35]=m,t[36]=v,t[37]=M,t[38]=a,t[39]=d,t[40]=k):k=t[40],k},lp=()=>{const e=St.c(13);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h5",{children:"Standards and Policies"}),e[0]=t):t=e[0];let n,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx(T,{to:"/policy",children:x.jsx("span",{children:"NREN Policies"})}),i=x.jsx("h6",{className:"section-title",children:"Standards"}),e[1]=n,e[2]=i):(n=e[1],i=e[2]);let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/audits",children:x.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/business-continuity",children:x.jsx("span",{children:"NREN Business Continuity Planning"})}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(T,{to:"/central-procurement",children:x.jsx("span",{children:"Central Procurement of Software"})}),e[5]=r):r=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(T,{to:"/crisis-management",children:x.jsx("span",{children:"Crisis Management Procedures"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/crisis-exercise",children:x.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),e[7]=l):l=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx(T,{to:"/security-control",children:x.jsx("span",{children:"Security Controls Used by NRENs"})}),e[8]=c):c=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(T,{to:"/services-offered",children:x.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),e[9]=h):h=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=x.jsx(T,{to:"/corporate-strategy",children:x.jsx("span",{children:"NREN Corporate Strategies "})}),e[10]=d):d=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx(T,{to:"/service-level-targets",children:x.jsx("span",{children:"NRENs Offering Service Level Targets"})}),e[11]=f):f=e[11];let u;return e[12]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,c,h,d,f,x.jsx(T,{to:"/service-management-framework",children:x.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),e[12]=u):u=e[12],u},cp=()=>{const e=St.c(34);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h5",{children:"Network"}),n=x.jsx("h6",{className:"section-title",children:"Connectivity"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(T,{to:"/traffic-volume",children:x.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/iru-duration",children:x.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/fibre-light",children:x.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(T,{to:"/dark-fibre-lease",children:x.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),e[5]=r):r=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(T,{to:"/dark-fibre-lease-international",children:x.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/dark-fibre-installed",children:x.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),e[7]=l):l=e[7];let c,h,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(T,{to:"/network-map",children:x.jsx("span",{children:"NREN Network Maps"})}),d=x.jsx("hr",{className:"fake-divider"}),c=x.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),e[8]=c,e[9]=h,e[10]=d):(c=e[8],h=e[9],d=e[10]);let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx(T,{to:"/monitoring-tools",children:x.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),e[11]=f):f=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsx(T,{to:"/pert-team",children:x.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),e[12]=u):u=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx(T,{to:"/passive-monitoring",children:x.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),e[13]=g):g=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=x.jsx(T,{to:"/traffic-stats",children:x.jsx("span",{children:"Traffic Statistics  "})}),e[14]=m):m=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsx(T,{to:"/weather-map",children:x.jsx("span",{children:"NREN Online Network Weather Maps "})}),e[15]=p):p=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=x.jsx(T,{to:"/certificate-providers",children:x.jsx("span",{children:"Certification Services used by NRENs"})}),e[16]=b):b=e[16];let y,v,w;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx(T,{to:"/siem-vendors",children:x.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),v=x.jsx("hr",{className:"fake-divider"}),w=x.jsx("h6",{className:"section-title",children:"Alienwave"}),e[17]=y,e[18]=v,e[19]=w):(y=e[17],v=e[18],w=e[19]);let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=x.jsx(T,{to:"/alien-wave",children:x.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),e[20]=_):_=e[20];let S,M,k;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=x.jsx(T,{to:"/alien-wave-internal",children:x.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),M=x.jsx("hr",{className:"fake-divider"}),k=x.jsx("h6",{className:"section-title",children:"Capacity"}),e[21]=S,e[22]=M,e[23]=k):(S=e[21],M=e[22],k=e[23]);let P;e[24]===Symbol.for("react.memo_cache_sentinel")?(P=x.jsx(T,{to:"/capacity-largest-link",children:x.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),e[24]=P):P=e[24];let E;e[25]===Symbol.for("react.memo_cache_sentinel")?(E=x.jsx(T,{to:"/external-connections",children:x.jsx("span",{children:"NREN External IP Connections"})}),e[25]=E):E=e[25];let C;e[26]===Symbol.for("react.memo_cache_sentinel")?(C=x.jsx(T,{to:"/capacity-core-ip",children:x.jsx("span",{children:"NREN Core IP Capacity"})}),e[26]=C):C=e[26];let O;e[27]===Symbol.for("react.memo_cache_sentinel")?(O=x.jsx(T,{to:"/non-rne-peers",children:x.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),e[27]=O):O=e[27];let R,N,A;e[28]===Symbol.for("react.memo_cache_sentinel")?(R=x.jsx(T,{to:"/traffic-ratio",children:x.jsx("span",{children:"Types of traffic in NREN networks"})}),N=x.jsx("hr",{className:"fake-divider"}),A=x.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),e[28]=R,e[29]=N,e[30]=A):(R=e[28],N=e[29],A=e[30]);let L;e[31]===Symbol.for("react.memo_cache_sentinel")?(L=x.jsx(T,{to:"/ops-automation",children:x.jsx("span",{children:"NREN Automation of Operational Processes"})}),e[31]=L):L=e[31];let I;e[32]===Symbol.for("react.memo_cache_sentinel")?(I=x.jsx(T,{to:"/network-automation",children:x.jsx("span",{children:"Network Tasks for which NRENs Use Automation  "})}),e[32]=I):I=e[32];let W;return e[33]===Symbol.for("react.memo_cache_sentinel")?(W=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,h,d,c,f,u,g,m,p,b,y,v,w,_,S,M,k,P,E,C,O,R,N,A,L,I,x.jsx(T,{to:"/nfv",children:x.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),e[33]=W):W=e[33],W},hp=()=>{const e=St.c(11);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h6",{className:"section-title",children:"Connected Users"}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx(T,{to:"/institutions-urls",children:x.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(T,{to:"/connected-proportion",children:x.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/connectivity-level",children:x.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/connection-carrier",children:x.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(T,{to:"/connectivity-load",children:x.jsx("span",{children:"Connectivity Load"})}),e[5]=r):r=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(T,{to:"/connectivity-growth",children:x.jsx("span",{children:"Connectivity Growth"})}),e[6]=a):a=e[6];let l,c;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/remote-campuses",children:x.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),c=x.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),e[7]=l,e[8]=c):(l=e[7],c=e[8]);let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(T,{to:"/commercial-charging-level",children:x.jsx("span",{children:"Commercial Charging Level"})}),e[9]=h):h=e[9];let d;return e[10]===Symbol.for("react.memo_cache_sentinel")?(d=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,c,h,x.jsx(T,{to:"/commercial-connectivity",children:x.jsx("span",{children:"Commercial Connectivity"})})]}),e[10]=d):d=e[10],d},dp=()=>{const e=St.c(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h5",{children:"Services"}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx(T,{to:"/network-services",children:x.jsx("span",{children:"Network services"})}),e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(T,{to:"/isp-support-services",children:x.jsx("span",{children:"ISP support services"})}),e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/security-services",children:x.jsx("span",{children:"Security services"})}),e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/identity-services",children:x.jsx("span",{children:"Identity services"})}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(T,{to:"/collaboration-services",children:x.jsx("span",{children:"Collaboration services"})}),e[5]=r):r=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(T,{to:"/multimedia-services",children:x.jsx("span",{children:"Multimedia services"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/storage-and-hosting-services",children:x.jsx("span",{children:"Storage and hosting services"})}),e[7]=l):l=e[7];let c;return e[8]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,x.jsx(T,{to:"/professional-services",children:x.jsx("span",{children:"Professional services"})})]}),e[8]=c):c=e[8],c};function fp(e,t){return e.map(n=>t.map(i=>{const s=n[i];return s===null?"":typeof s=="string"?`"${s.replace(/"/g,'""')}"`:s}).join(","))}function up(e){if(!e.length)return"";const t=Object.keys(e[0]),n=fp(e,t);return[t.join(","),...n].join(`\r
-`)}function pp(e,t="Sheet1"){const n=Qn.json_to_sheet(e),i=Qn.book_new();Qn.book_append_sheet(i,n,t);const s=il(i,{bookType:"xlsx",type:"binary"}),o=new ArrayBuffer(s.length),r=new Uint8Array(o);for(let a=0;a<s.length;a++)r[a]=s.charCodeAt(a)&255;return new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}const Qo=({data:e,filename:t,exportType:n})=>{const i=()=>{let o,r,a;switch(n){case ye.EXCEL:{o=pp(e),r="xlsx",a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break}case ye.CSV:default:{o=up(e),r="csv",a="text/csv;charset=UTF-8";break}}const l=new Blob([o],{type:a});t=t.endsWith(r)?t:`${t}.${r}`;const c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=t,document.body.appendChild(c),c.click(),document.body.removeChild(c)};let s="downloadbutton";return n===ye.CSV?s+=" downloadcsv":n===ye.EXCEL&&(s+=" downloadexcel"),x.jsxs("button",{className:s,onClick:i,children:[n," ",x.jsx(ur,{})]})};function gp(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),i=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(s),t&&(i.href=t),s.href=e,s.href}const mp=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function It(e){const t=[];for(let n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function Vn(e,t){const i=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return i?parseFloat(i.replace("px","")):0}function bp(e){const t=Vn(e,"border-left-width"),n=Vn(e,"border-right-width");return e.clientWidth+t+n}function xp(e){const t=Vn(e,"border-top-width"),n=Vn(e,"border-bottom-width");return e.clientHeight+t+n}function Ea(e,t={}){const n=t.width||bp(e),i=t.height||xp(e);return{width:n,height:i}}function yp(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const gt=16384;function _p(e){(e.width>gt||e.height>gt)&&(e.width>gt&&e.height>gt?e.width>e.height?(e.height*=gt/e.width,e.width=gt):(e.width*=gt/e.height,e.height=gt):e.width>gt?(e.height*=gt/e.width,e.width=gt):(e.width*=gt/e.height,e.height=gt))}function Yn(e){return new Promise((t,n)=>{const i=new Image;i.decode=()=>t(i),i.onload=()=>t(i),i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function vp(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function wp(e,t,n){const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),s.appendChild(o),o.appendChild(e),vp(s)}const pt=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||pt(n,t)};function Sp(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function kp(e){return It(e).map(t=>{const n=e.getPropertyValue(t),i=e.getPropertyPriority(t);return`${t}: ${n}${i?" !important":""};`}).join(" ")}function Mp(e,t,n){const i=`.${e}:${t}`,s=n.cssText?Sp(n):kp(n);return document.createTextNode(`${i}{${s}}`)}function tr(e,t,n){const i=window.getComputedStyle(e,n),s=i.getPropertyValue("content");if(s===""||s==="none")return;const o=mp();try{t.className=`${t.className} ${o}`}catch{return}const r=document.createElement("style");r.appendChild(Mp(o,n,i)),t.appendChild(r)}function Cp(e,t){tr(e,t,":before"),tr(e,t,":after")}const er="application/font-woff",nr="image/jpeg",Pp={woff:er,woff2:er,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:nr,jpeg:nr,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Op(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function as(e){const t=Op(e).toLowerCase();return Pp[t]||""}function Ep(e){return e.split(/,/)[1]}function Ti(e){return e.search(/^(data:)/)!==-1}function Dp(e,t){return`data:${t};base64,${e}`}async function Da(e,t,n){const i=await fetch(e,t);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const s=await i.blob();return new Promise((o,r)=>{const a=new FileReader;a.onerror=r,a.onloadend=()=>{try{o(n({res:i,result:a.result}))}catch(l){r(l)}},a.readAsDataURL(s)})}const yi={};function Rp(e,t,n){let i=e.replace(/\?.*/,"");return n&&(i=e),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),t?`[${t}]${i}`:i}async function ls(e,t,n){const i=Rp(e,t,n.includeQueryParams);if(yi[i]!=null)return yi[i];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let s;try{const o=await Da(e,n.fetchRequestInit,({res:r,result:a})=>(t||(t=r.headers.get("Content-Type")||""),Ep(a)));s=Dp(o,t)}catch(o){s=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;o&&(r=typeof o=="string"?o:o.message),r&&console.warn(r)}return yi[i]=s,s}async function Tp(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Yn(t)}async function Ap(e,t){if(e.currentSrc){const o=document.createElement("canvas"),r=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,r==null||r.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return Yn(a)}const n=e.poster,i=as(n),s=await ls(n,i,t);return Yn(s)}async function jp(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Gn(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function Lp(e,t){return pt(e,HTMLCanvasElement)?Tp(e):pt(e,HTMLVideoElement)?Ap(e,t):pt(e,HTMLIFrameElement)?jp(e):e.cloneNode(!1)}const Np=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function Ip(e,t,n){var i,s;let o=[];return Np(e)&&e.assignedNodes?o=It(e.assignedNodes()):pt(e,HTMLIFrameElement)&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?o=It(e.contentDocument.body.childNodes):o=It(((s=e.shadowRoot)!==null&&s!==void 0?s:e).childNodes),o.length===0||pt(e,HTMLVideoElement)||await o.reduce((r,a)=>r.then(()=>Gn(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function Fp(e,t){const n=t.style;if(!n)return;const i=window.getComputedStyle(e);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):It(i).forEach(s=>{let o=i.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),pt(e,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(s,o,i.getPropertyPriority(s))})}function $p(e,t){pt(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),pt(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function zp(e,t){if(pt(e,HTMLSelectElement)){const n=t,i=Array.from(n.children).find(s=>e.value===s.getAttribute("value"));i&&i.setAttribute("selected","")}}function Bp(e,t){return pt(t,Element)&&(Fp(e,t),Cp(e,t),$p(e,t),zp(e,t)),t}async function Wp(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const i={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const l=e.querySelector(a),c=document.querySelector(a);!l&&c&&!i[a]&&(i[a]=await Gn(c,t,!0))}}const s=Object.values(i);if(s.length){const o="http://www.w3.org/1999/xhtml",r=document.createElementNS(o,"svg");r.setAttribute("xmlns",o),r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.overflow="hidden",r.style.display="none";const a=document.createElementNS(o,"defs");r.appendChild(a);for(let l=0;l<s.length;l++)a.appendChild(s[l]);e.appendChild(r)}return e}async function Gn(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(i=>Lp(i,t)).then(i=>Ip(e,i,t)).then(i=>Bp(e,i)).then(i=>Wp(i,t))}const Ra=/url\((['"]?)([^'"]+?)\1\)/g,Hp=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Vp=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Yp(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Up(e){const t=[];return e.replace(Ra,(n,i,s)=>(t.push(s),n)),t.filter(n=>!Ti(n))}async function Xp(e,t,n,i,s){try{const o=n?gp(t,n):t,r=as(t);let a;return s||(a=await ls(o,r,i)),e.replace(Yp(t),`$1${a}$3`)}catch{}return e}function Kp(e,{preferredFontFormat:t}){return t?e.replace(Vp,n=>{for(;;){const[i,,s]=Hp.exec(n)||[];if(!s)return"";if(s===t)return`src: ${i};`}}):e}function Ta(e){return e.search(Ra)!==-1}async function Aa(e,t,n){if(!Ta(e))return e;const i=Kp(e,n);return Up(i).reduce((o,r)=>o.then(a=>Xp(a,r,t,n)),Promise.resolve(i))}async function Dn(e,t,n){var i;const s=(i=t.style)===null||i===void 0?void 0:i.getPropertyValue(e);if(s){const o=await Aa(s,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function qp(e,t){await Dn("background",e,t)||await Dn("background-image",e,t),await Dn("mask",e,t)||await Dn("mask-image",e,t)}async function Gp(e,t){const n=pt(e,HTMLImageElement);if(!(n&&!Ti(e.src))&&!(pt(e,SVGImageElement)&&!Ti(e.href.baseVal)))return;const i=n?e.src:e.href.baseVal,s=await ls(i,as(i),t);await new Promise((o,r)=>{e.onload=o,e.onerror=r;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=s):e.href.baseVal=s})}async function Jp(e,t){const i=It(e.childNodes).map(s=>ja(s,t));await Promise.all(i).then(()=>e)}async function ja(e,t){pt(e,Element)&&(await qp(e,t),await Gp(e,t),await Jp(e,t))}function Zp(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const i=t.style;return i!=null&&Object.keys(i).forEach(s=>{n[s]=i[s]}),e}const ir={};async function sr(e){let t=ir[e];if(t!=null)return t;const i=await(await fetch(e)).text();return t={url:e,cssText:i},ir[e]=t,t}async function or(e,t){let n=e.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async r=>{let a=r.replace(i,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),Da(a,t.fetchRequestInit,({result:l})=>(n=n.replace(r,`url(${l})`),[r,l]))});return Promise.all(o).then(()=>n)}function rr(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=e.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=s.exec(i);if(l===null)break;t.push(l[0])}i=i.replace(s,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,r="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(r,"gi");for(;;){let l=o.exec(i);if(l===null){if(l=a.exec(i),l===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(l[0])}return t}async function Qp(e,t){const n=[],i=[];return e.forEach(s=>{if("cssRules"in s)try{It(s.cssRules||[]).forEach((o,r)=>{if(o.type===CSSRule.IMPORT_RULE){let a=r+1;const l=o.href,c=sr(l).then(h=>or(h,t)).then(h=>rr(h).forEach(d=>{try{s.insertRule(d,d.startsWith("@import")?a+=1:s.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f})}})).catch(h=>{console.error("Error loading remote css",h.toString())});i.push(c)}})}catch(o){const r=e.find(a=>a.href==null)||document.styleSheets[0];s.href!=null&&i.push(sr(s.href).then(a=>or(a,t)).then(a=>rr(a).forEach(l=>{r.insertRule(l,s.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(i).then(()=>(e.forEach(s=>{if("cssRules"in s)try{It(s.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${s.href}`,o)}}),n))}function tg(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ta(t.style.getPropertyValue("src")))}async function eg(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=It(e.ownerDocument.styleSheets),i=await Qp(n,t);return tg(i)}async function ng(e,t){const n=await eg(e,t);return(await Promise.all(n.map(s=>{const o=s.parentStyleSheet?s.parentStyleSheet.href:null;return Aa(s.cssText,o,t)}))).join(`
-`)}async function ig(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await ng(e,t);if(n){const i=document.createElement("style"),s=document.createTextNode(n);i.appendChild(s),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}}async function La(e,t={}){const{width:n,height:i}=Ea(e,t),s=await Gn(e,t,!0);return await ig(s,t),await ja(s,t),Zp(s,t),await wp(s,n,i)}async function Na(e,t={}){const{width:n,height:i}=Ea(e,t),s=await La(e,t),o=await Yn(s),r=document.createElement("canvas"),a=r.getContext("2d"),l=t.pixelRatio||yp(),c=t.canvasWidth||n,h=t.canvasHeight||i;return r.width=c*l,r.height=h*l,t.skipAutoScale||_p(r),r.style.width=`${c}`,r.style.height=`${h}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,r.width,r.height)),a.drawImage(o,0,0,r.width,r.height),r}async function sg(e,t={}){return(await Na(e,t)).toDataURL()}async function og(e,t={}){return(await Na(e,t)).toDataURL("image/jpeg",t.quality||1)}const rg=e=>{const t=St.c(17),{filename:n}=e,i=D.useContext(dr),[s,o]=D.useState(!1),r=D.useRef(null);let a;t[0]!==i||t[1]!==n?(a=async v=>{if(i!=null&&i.current){o(!1);const w={transform:"scale(1)","transform-origin":"top left",background:"white"};let _;t:switch(v){case me.JPEG:{_=await og(i.current,{quality:.95,style:w});break t}case me.SVG:{_=await La(i.current,{style:w});break t}case me.PNG:default:_=await sg(i.current,{style:w})}const S=document.createElement("a");S.href=typeof _=="string"?_:URL.createObjectURL(_),S.download=`${n}.${v}`,document.body.appendChild(S),S.click(),document.body.removeChild(S)}},t[0]=i,t[1]=n,t[2]=a):a=t[2];const l=a;let c;t[3]!==s?(c=()=>{o(!s)},t[3]=s,t[4]=c):c=t[4];const h=c;let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=v=>{r.current&&!r.current.contains(v.target)&&o(!1)},t[5]=d):d=t[5];const f=d;let u,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=()=>(document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),g=[],t[6]=u,t[7]=g):(u=t[6],g=t[7]),D.useEffect(u,g);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=x.jsx(ur,{}),t[8]=m):m=t[8];let p;t[9]!==h?(p=x.jsxs("button",{className:"downloadbutton downloadimage",onClick:h,children:["IMAGE ",m]}),t[9]=h,t[10]=p):p=t[10];let b;t[11]!==l||t[12]!==s?(b=s&&x.jsxs("div",{className:"image-options",children:[x.jsx("div",{className:"imageoption downloadpng",onClick:()=>l(me.PNG),children:x.jsx("span",{children:"PNG"})}),x.jsx("div",{className:"imageoption downloadjpeg",onClick:()=>l(me.JPEG),children:x.jsx("span",{children:"JPEG"})}),x.jsx("div",{className:"imageoption downloadsvg",onClick:()=>l(me.SVG),children:x.jsx("span",{children:"SVG"})})]}),t[11]=l,t[12]=s,t[13]=b):b=t[13];let y;return t[14]!==p||t[15]!==b?(y=x.jsxs("div",{className:"image-dropdown",ref:r,children:[p,b]}),t[14]=p,t[15]=b,t[16]=y):y=t[16],y},ag=e=>{const t=St.c(12),{data:n,filename:i}=e,s=`${i}.csv`;let o;t[0]!==n||t[1]!==s?(o=x.jsx(Qo,{data:n,filename:s,exportType:ye.CSV}),t[0]=n,t[1]=s,t[2]=o):o=t[2];const r=`${i}.xlsx`;let a;t[3]!==n||t[4]!==r?(a=x.jsx(Qo,{data:n,filename:r,exportType:ye.EXCEL}),t[3]=n,t[4]=r,t[5]=a):a=t[5];let l;t[6]!==i?(l=x.jsx(rg,{filename:i}),t[6]=i,t[7]=l):l=t[7];let c;return t[8]!==o||t[9]!==a||t[10]!==l?(c=x.jsxs("div",{className:"downloadcontainer",children:[o,a,l]}),t[8]=o,t[9]=a,t[10]=l,t[11]=c):c=t[11],c};Pt.defaults.font.size=16;Pt.defaults.font.family="Open Sans";Pt.defaults.font.weight=700;function Ig(e){const t=St.c(47),{title:n,description:i,filter:s,children:o,category:r,data:a,filename:l}=e,{preview:c,setPreview:h}=D.useContext(Qa),d=window.location.origin+window.location.pathname,{trackPageView:f}=tl();let u,g;t[0]!==n||t[1]!==f?(u=()=>{f({documentTitle:n})},g=[f,n],t[0]=n,t[1]=f,t[2]=u,t[3]=g):(u=t[2],g=t[3]),D.useEffect(u,g);let m;t[4]!==r?(m=r===J.Organisation&&x.jsx(rp,{}),t[4]=r,t[5]=m):m=t[5];let p;t[6]!==r?(p=r===J.Policy&&x.jsx(lp,{}),t[6]=r,t[7]=p):p=t[7];let b;t[8]!==r?(b=r===J.Network&&x.jsx(cp,{}),t[8]=r,t[9]=b):b=t[9];let y;t[10]!==r?(y=r===J.ConnectedUsers&&x.jsx(hp,{}),t[10]=r,t[11]=y):y=t[11];let v;t[12]!==r?(v=r===J.Services&&x.jsx(dp,{}),t[12]=r,t[13]=v):v=t[13];let w;t[14]===Symbol.for("react.memo_cache_sentinel")?(w=x.jsx(sl,{type:"data"}),t[14]=w):w=t[14];let _;t[15]!==c||t[16]!==h?(_=c&&x.jsx(oe,{className:"preview-banner",children:x.jsxs("span",{children:["You are viewing a preview of the website which includes pre-published survey data. ",x.jsx(el,{to:d,onClick:()=>h(!1),children:"Click here"})," to deactivate preview mode."]})}),t[15]=c,t[16]=h,t[17]=_):_=t[17];let S;t[18]!==r?(S=x.jsx(ap,{activeCategory:r}),t[18]=r,t[19]=S):S=t[19];let M;t[20]!==n?(M=x.jsx(oe,{children:x.jsx("h3",{className:"m-1",children:n})}),t[20]=n,t[21]=M):M=t[21];let k;t[22]!==i?(k=x.jsx(oe,{children:x.jsx("p",{className:"p-md-4",children:i})}),t[22]=i,t[23]=k):k=t[23];let P;t[24]===Symbol.for("react.memo_cache_sentinel")?(P={position:"relative"},t[24]=P):P=t[24];let E;t[25]!==a||t[26]!==l?(E=x.jsx(oe,{align:"right",style:P,children:x.jsx(ag,{data:a,filename:l})}),t[25]=a,t[26]=l,t[27]=E):E=t[27];let C;t[28]!==s?(C=x.jsx(oe,{children:s}),t[28]=s,t[29]=C):C=t[29];let O;t[30]!==o?(O=x.jsx(oe,{children:o}),t[30]=o,t[31]=O):O=t[31];let R;t[32]!==M||t[33]!==k||t[34]!==E||t[35]!==C||t[36]!==O?(R=x.jsxs(hr,{className:"mb-5 grow",children:[M,k,E,C,O]}),t[32]=M,t[33]=k,t[34]=E,t[35]=C,t[36]=O,t[37]=R):R=t[37];let N;return t[38]!==S||t[39]!==R||t[40]!==m||t[41]!==p||t[42]!==b||t[43]!==y||t[44]!==v||t[45]!==_?(N=x.jsxs(x.Fragment,{children:[m,p,b,y,v,w,_,S,R]}),t[38]=S,t[39]=R,t[40]=m,t[41]=p,t[42]=b,t[43]=y,t[44]=v,t[45]=_,t[46]=N):N=t[46],N}function Fg(e){const t=St.c(81),{filterOptions:n,filterSelection:i,setFilterSelection:s,max1year:o,coloredYears:r}=e,a=o===void 0?!1:o,l=r===void 0?!1:r,[c,h]=D.useState(!0),{nrens:d}=D.useContext(nl);let f,u;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{const H=()=>h(window.innerWidth>=992);return window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},u=[],t[0]=f,t[1]=u):(f=t[0],u=t[1]),D.useEffect(f,u),a&&i.selectedYears.length>1){const H=Math.max(...i.selectedYears);s({selectedYears:[H],selectedNrens:[...i.selectedNrens]})}let g;t[2]!==i.selectedNrens||t[3]!==i.selectedYears||t[4]!==s?(g=H=>{i.selectedNrens.includes(H)?s({selectedYears:[...i.selectedYears],selectedNrens:i.selectedNrens.filter(nt=>nt!==H)}):s({selectedYears:[...i.selectedYears],selectedNrens:[...i.selectedNrens,H]})},t[2]=i.selectedNrens,t[3]=i.selectedYears,t[4]=s,t[5]=g):g=t[5];const m=g;let p;t[6]!==i.selectedNrens||t[7]!==i.selectedYears||t[8]!==a||t[9]!==s?(p=H=>{i.selectedYears.includes(H)?s({selectedYears:i.selectedYears.filter(nt=>nt!==H),selectedNrens:[...i.selectedNrens]}):s({selectedYears:a?[H]:[...i.selectedYears,H],selectedNrens:[...i.selectedNrens]})},t[6]=i.selectedNrens,t[7]=i.selectedYears,t[8]=a,t[9]=s,t[10]=p):p=t[10];const b=p;let y;t[11]!==n.availableNrens||t[12]!==i.selectedYears||t[13]!==s?(y=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:n.availableNrens.map(hg)})},t[11]=n.availableNrens,t[12]=i.selectedYears,t[13]=s,t[14]=y):y=t[14];const v=y;let w;t[15]!==i.selectedYears||t[16]!==s?(w=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:[]})},t[15]=i.selectedYears,t[16]=s,t[17]=w):w=t[17];const _=w,S=c?3:2,M=Math.ceil(d.length/S);let k,P,E,C,O,R,N,A,L,I;if(t[18]!==n.availableNrens||t[19]!==i.selectedNrens||t[20]!==m||t[21]!==S||t[22]!==M||t[23]!==d){const H=Array.from(Array(S),cg);d.sort(lg).forEach((Zt,Qt)=>{const ct=Math.floor(Qt/M);H[ct].push(Zt)});let nt;t[34]!==n.availableNrens?(nt=Zt=>n.availableNrens.find(ct=>ct.name===Zt.name)!==void 0,t[34]=n.availableNrens,t[35]=nt):nt=t[35];const Te=nt;E=ys,L=3,P=ni,R="outside",N="m-3",t[36]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsx(ni.Toggle,{id:"nren-dropdown-toggle",variant:"compendium",children:"Select NRENs    "}),t[36]=A):A=t[36],k=ni.Menu,t[37]===Symbol.for("react.memo_cache_sentinel")?(O={borderRadius:0},t[37]=O):O=t[37],I="d-flex fit-max-content mt-4 mx-3";let zt;t[38]!==i.selectedNrens||t[39]!==m||t[40]!==Te?(zt=(Zt,Qt)=>x.jsx("div",{className:"flex-fill",children:Zt.map(ct=>x.jsx("div",{className:"filter-dropdown-item flex-fill py-1 px-3",children:x.jsxs(Zn.Check,{type:"checkbox",children:[x.jsx(Zn.Check.Input,{id:ct.name,readOnly:!0,type:"checkbox",onClick:()=>m(ct.name),checked:i.selectedNrens.includes(ct.name),className:"nren-checkbox",disabled:!Te(ct)}),x.jsxs(Zn.Check.Label,{htmlFor:ct.name,className:"nren-checkbox-label",children:[ct.name," ",x.jsxs("span",{style:{fontWeight:"lighter"},children:["(",ct.country,")"]})]})]})},ct.name))},Qt),t[38]=i.selectedNrens,t[39]=m,t[40]=Te,t[41]=zt):zt=t[41],C=H.map(zt),t[18]=n.availableNrens,t[19]=i.selectedNrens,t[20]=m,t[21]=S,t[22]=M,t[23]=d,t[24]=k,t[25]=P,t[26]=E,t[27]=C,t[28]=O,t[29]=R,t[30]=N,t[31]=A,t[32]=L,t[33]=I}else k=t[24],P=t[25],E=t[26],C=t[27],O=t[28],R=t[29],N=t[30],A=t[31],L=t[32],I=t[33];let W;t[42]!==C||t[43]!==I?(W=x.jsx("div",{className:I,children:C}),t[42]=C,t[43]=I,t[44]=W):W=t[44];let $;t[45]!==v?($=x.jsx(Nt,{variant:"compendium",className:"flex-fill",onClick:v,children:"Select all NRENs"}),t[45]=v,t[46]=$):$=t[46];let B;t[47]!==_?(B=x.jsx(Nt,{variant:"compendium",className:"flex-fill",onClick:_,children:"Unselect all NRENs"}),t[47]=_,t[48]=B):B=t[48];let et;t[49]!==$||t[50]!==B?(et=x.jsxs("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3",children:[$,B]}),t[49]=$,t[50]=B,t[51]=et):et=t[51];let tt;t[52]!==k||t[53]!==O||t[54]!==W||t[55]!==et?(tt=x.jsxs(k,{style:O,children:[W,et]}),t[52]=k,t[53]=O,t[54]=W,t[55]=et,t[56]=tt):tt=t[56];let it;t[57]!==P||t[58]!==R||t[59]!==N||t[60]!==A||t[61]!==tt?(it=x.jsxs(P,{autoClose:R,className:N,children:[A,tt]}),t[57]=P,t[58]=R,t[59]=N,t[60]=A,t[61]=tt,t[62]=it):it=t[62];let X;t[63]!==E||t[64]!==L||t[65]!==it?(X=x.jsx(E,{xs:L,children:it}),t[63]=E,t[64]=L,t[65]=it,t[66]=X):X=t[66];let K;if(t[67]!==l||t[68]!==n.availableYears||t[69]!==i.selectedYears||t[70]!==b){let H;t[72]!==l||t[73]!==i.selectedYears||t[74]!==b?(H=nt=>x.jsx(Nt,{variant:l?"compendium-year-"+nt%9:"compendium-year",active:i.selectedYears.includes(nt),onClick:()=>b(nt),children:nt},nt),t[72]=l,t[73]=i.selectedYears,t[74]=b,t[75]=H):H=t[75],K=n.availableYears.sort().map(H),t[67]=l,t[68]=n.availableYears,t[69]=i.selectedYears,t[70]=b,t[71]=K}else K=t[71];let G;t[76]!==K?(G=x.jsx(ys,{children:x.jsx(Ai,{className:"d-flex justify-content-end gap-2 m-3",children:K})}),t[76]=K,t[77]=G):G=t[77];let Rt;return t[78]!==X||t[79]!==G?(Rt=x.jsxs(x.Fragment,{children:[X,G]}),t[78]=X,t[79]=G,t[80]=Rt):Rt=t[80],Rt}function lg(e,t){return e.name.localeCompare(t.name)}function cg(){return[]}function hg(e){return e.name}const $g=e=>{const t=St.c(3),{children:n}=e,i=D.useContext(dr);let s;return t[0]!==n||t[1]!==i?(s=x.jsx("div",{ref:i,children:n}),t[0]=n,t[1]=i,t[2]=s):s=t[2],s};function ar(e){const t=new Set,n=new Map;return e.forEach(i=>{t.add(i.year),n.set(i.nren,{name:i.nren,country:i.nren_country})}),{years:t,nrens:n}}function zg(e,t,n){const i=St.c(14),s=n===void 0?fg:n;let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],i[0]=o):o=i[0];const[r,a]=D.useState(o),l=ol(),c=e+(l?"?preview":"");let h;i[1]!==c||i[2]!==t||i[3]!==s?(h=()=>{fetch(c).then(dg).then(b=>{const y=b.filter(s);a(y);const{years:v,nrens:w}=ar(y);t(_=>{const M=_.selectedYears.filter(E=>v.has(E)).length?_.selectedYears:[Math.max(...v)],P=_.selectedNrens.filter(E=>w.has(E)).length?_.selectedNrens:[...w.keys()];return{selectedYears:M,selectedNrens:P}})})},i[1]=c,i[2]=t,i[3]=s,i[4]=h):h=i[4];let d;i[5]!==c||i[6]!==t?(d=[c,t],i[5]=c,i[6]=t,i[7]=d):d=i[7],D.useEffect(h,d);let f,u;i[8]!==r?(u=ar(r),i[8]=r,i[9]=u):u=i[9],f=u;const{years:g,nrens:m}=f;let p;return i[10]!==r||i[11]!==m||i[12]!==g?(p={data:r,years:g,nrens:m},i[10]=r,i[11]=m,i[12]=g,i[13]=p):p=i[13],p}function dg(e){return e.json()}function fg(){return!0}export{q as A,xi as B,Pt as C,Ig as D,wt as E,Fg as F,F as G,U as H,Y as I,Cn as J,V as K,Yo as L,z as M,jg as N,gi as P,Ho as a,Pn as b,wg as c,_g as d,Tg as e,$g as f,Eg as g,Pg as h,Og as i,Rg as j,Re as k,Ag as l,Lg as m,Sg as n,Ng as o,vg as p,kg as q,Dg as r,Cg as s,di as t,zg as u,hi as v,Mg as w,Ze as x,lt as y,xn as z};
diff --git a/compendium_v2/static/useData-CxftshCa.js b/compendium_v2/static/useData-CxftshCa.js
new file mode 100644
index 0000000000000000000000000000000000000000..32fbe0f113f98df1483f99dc5905241938f18ef0
--- /dev/null
+++ b/compendium_v2/static/useData-CxftshCa.js
@@ -0,0 +1,20 @@
+var za=Object.defineProperty;var Na=(e,t,n)=>t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>Na(e,typeof t!="symbol"?t+"":t,n);import{r as A,u as Vt,g as Ba,j as M,h as Kt,i as qt,k as Ha,w as Wa,l as ms,o as Va,m as un,f as ue,n as ar,B as Ya,p as Ua,q as Xa,s as bs,v as Ka,x as lr,y as Ft,z as qa,A as Ga,c as wt,D as Ja,S as G,E as cr,R as se,O as Za,P as Qa,G as tl,N as el,H as nl,I as xe,J as hr,K as ge,M as il,Q as sl,T as ol,L as rl,V as al,C as xs,W as Jn,X as ll}from"./index.js";import{S as sn}from"./SideBar-CkoMfgfL.js";import{u as Zn,w as cl}from"./xlsx-BHRztzV8.js";import{c as ur,F as dr}from"./index-ZGgT6a2u.js";import{u as hl}from"./hook-BbhLqP_c.js";function ul(){return A.useState(null)}function dl(e,t,n,i=!1){const s=Vt(n);A.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,s,i),()=>o.removeEventListener(t,s,i)},[e])}const fl=["onKeyDown"];function pl(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function gl(e){return!e||e.trim()==="#"}const fr=A.forwardRef((e,t)=>{let{onKeyDown:n}=e,i=pl(e,fl);const[s]=Ba(Object.assign({tagName:"a"},i)),o=Vt(r=>{s.onKeyDown(r),n==null||n(r)});return gl(i.href)||i.role==="button"?M.jsx("a",Object.assign({ref:t},i,s,{onKeyDown:o})):M.jsx("a",Object.assign({ref:t},i,{onKeyDown:n}))});fr.displayName="Anchor";const Ti=A.forwardRef(({bsPrefix:e,className:t,role:n="toolbar",...i},s)=>{const o=Kt(e,"btn-toolbar");return M.jsx("div",{...i,ref:s,className:qt(t,o),role:n})});Ti.displayName="ButtonToolbar";function ml(e,t,n){const i=A.useRef(e!==void 0),[s,o]=A.useState(t),r=e!==void 0,a=i.current;return i.current=r,!r&&a&&s!==t&&o(t),[r?e:s,A.useCallback((...l)=>{const[c,...h]=l;let u=n==null?void 0:n(c,...h);return o(c),u},[n])]}function bl(){const[,e]=A.useReducer(t=>t+1,0);return e}const Yn=A.createContext(null);var ys=Object.prototype.hasOwnProperty;function vs(e,t,n){for(n of e.keys())if(Be(n,t))return n}function Be(e,t){var n,i,s;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((i=e.length)===t.length)for(;i--&&Be(e[i],t[i]););return i===-1}if(n===Set){if(e.size!==t.size)return!1;for(i of e)if(s=i,s&&typeof s=="object"&&(s=vs(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(i of e)if(s=i[0],s&&typeof s=="object"&&(s=vs(t,s),!s)||!Be(i[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(ys.call(e,n)&&++i&&!ys.call(t,n)||!(n in t)||!Be(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function xl(e){const t=Ha();return[e[0],A.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ut="top",xt="bottom",yt="right",dt="left",Ri="auto",on=[ut,xt,yt,dt],we="start",Ke="end",yl="clippingParents",pr="viewport",Te="popper",vl="reference",_s=on.reduce(function(e,t){return e.concat([t+"-"+we,t+"-"+Ke])},[]),gr=[].concat(on,[Ri]).reduce(function(e,t){return e.concat([t,t+"-"+we,t+"-"+Ke])},[]),_l="beforeRead",wl="read",Sl="afterRead",kl="beforeMain",Ml="main",Cl="afterMain",Pl="beforeWrite",Ol="write",Dl="afterWrite",Al=[_l,wl,Sl,kl,Ml,Cl,Pl,Ol,Dl];function Pt(e){return e.split("-")[0]}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function de(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function Ot(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Li(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ce=Math.max,Ln=Math.min,Se=Math.round;function yi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function mr(){return!/^((?!chrome|android).)*safari/i.test(yi())}function ke(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&Ot(e)&&(s=e.offsetWidth>0&&Se(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Se(i.height)/e.offsetHeight||1);var r=de(e)?gt(e):window,a=r.visualViewport,l=!mr()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/s,h=(i.top+(l&&a?a.offsetTop:0))/o,u=i.width/s,d=i.height/o;return{width:u,height:d,top:h,right:c+u,bottom:h+d,left:c,x:c,y:h}}function Fi(e){var t=ke(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function br(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Li(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ut(e){return e?(e.nodeName||"").toLowerCase():null}function jt(e){return gt(e).getComputedStyle(e)}function El(e){return["table","td","th"].indexOf(Ut(e))>=0}function Gt(e){return((de(e)?e.ownerDocument:e.document)||window.document).documentElement}function Un(e){return Ut(e)==="html"?e:e.assignedSlot||e.parentNode||(Li(e)?e.host:null)||Gt(e)}function ws(e){return!Ot(e)||jt(e).position==="fixed"?null:e.offsetParent}function Tl(e){var t=/firefox/i.test(yi()),n=/Trident/i.test(yi());if(n&&Ot(e)){var i=jt(e);if(i.position==="fixed")return null}var s=Un(e);for(Li(s)&&(s=s.host);Ot(s)&&["html","body"].indexOf(Ut(s))<0;){var o=jt(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function rn(e){for(var t=gt(e),n=ws(e);n&&El(n)&&jt(n).position==="static";)n=ws(n);return n&&(Ut(n)==="html"||Ut(n)==="body"&&jt(n).position==="static")?t:n||Tl(e)||t}function Ii(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function He(e,t,n){return ce(e,Ln(t,n))}function Rl(e,t,n){var i=He(e,t,n);return i>n?n:i}function xr(){return{top:0,right:0,bottom:0,left:0}}function yr(e){return Object.assign({},xr(),e)}function vr(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Ll=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yr(typeof t!="number"?t:vr(t,on))};function Fl(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Pt(n.placement),l=Ii(a),c=[dt,yt].indexOf(a)>=0,h=c?"height":"width";if(!(!o||!r)){var u=Ll(s.padding,n),d=Fi(o),f=l==="y"?ut:dt,g=l==="y"?xt:yt,m=n.rects.reference[h]+n.rects.reference[l]-r[l]-n.rects.popper[h],p=r[l]-n.rects.reference[l],b=rn(o),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,v=m/2-p/2,_=u[f],y=x-d[h]-u[g],w=x/2-d[h]/2+v,k=He(_,w,y),S=l;n.modifiersData[i]=(t={},t[S]=k,t.centerOffset=k-w,t)}}function Il(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||br(t.elements.popper,s)&&(t.elements.arrow=s))}const jl={name:"arrow",enabled:!0,phase:"main",fn:Fl,effect:Il,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Me(e){return e.split("-")[1]}var $l={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zl(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Se(n*s)/s||0,y:Se(i*s)/s||0}}function Ss(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,u=e.isFixed,d=r.x,f=d===void 0?0:d,g=r.y,m=g===void 0?0:g,p=typeof h=="function"?h({x:f,y:m}):{x:f,y:m};f=p.x,m=p.y;var b=r.hasOwnProperty("x"),x=r.hasOwnProperty("y"),v=dt,_=ut,y=window;if(c){var w=rn(n),k="clientHeight",S="clientWidth";if(w===gt(n)&&(w=Gt(n),jt(w).position!=="static"&&a==="absolute"&&(k="scrollHeight",S="scrollWidth")),w=w,s===ut||(s===dt||s===yt)&&o===Ke){_=xt;var C=u&&w===y&&y.visualViewport?y.visualViewport.height:w[k];m-=C-i.height,m*=l?1:-1}if(s===dt||(s===ut||s===xt)&&o===Ke){v=yt;var D=u&&w===y&&y.visualViewport?y.visualViewport.width:w[S];f-=D-i.width,f*=l?1:-1}}var P=Object.assign({position:a},c&&$l),O=h===!0?zl({x:f,y:m},gt(n)):{x:f,y:m};if(f=O.x,m=O.y,l){var E;return Object.assign({},P,(E={},E[_]=x?"0":"",E[v]=b?"0":"",E.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E))}return Object.assign({},P,(t={},t[_]=x?m+"px":"",t[v]=b?f+"px":"",t.transform="",t))}function Nl(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Pt(t.placement),variation:Me(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ss(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ss(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Bl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nl,data:{}};var dn={passive:!0};function Hl(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,r=i.resize,a=r===void 0?!0:r,l=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",n.update,dn)}),a&&l.addEventListener("resize",n.update,dn),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",n.update,dn)}),a&&l.removeEventListener("resize",n.update,dn)}}const Wl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hl,data:{}};var Vl={left:"right",right:"left",bottom:"top",top:"bottom"};function En(e){return e.replace(/left|right|bottom|top/g,function(t){return Vl[t]})}var Yl={start:"end",end:"start"};function ks(e){return e.replace(/start|end/g,function(t){return Yl[t]})}function ji(e){var t=gt(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function $i(e){return ke(Gt(e)).left+ji(e).scrollLeft}function Ul(e,t){var n=gt(e),i=Gt(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=mr();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+$i(e),y:l}}function Xl(e){var t,n=Gt(e),i=ji(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=ce(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=ce(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+$i(e),l=-i.scrollTop;return jt(s||n).direction==="rtl"&&(a+=ce(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function zi(e){var t=jt(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function _r(e){return["html","body","#document"].indexOf(Ut(e))>=0?e.ownerDocument.body:Ot(e)&&zi(e)?e:_r(Un(e))}function We(e,t){var n;t===void 0&&(t=[]);var i=_r(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=gt(i),r=s?[o].concat(o.visualViewport||[],zi(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(We(Un(r)))}function vi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kl(e,t){var n=ke(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ms(e,t,n){return t===pr?vi(Ul(e,n)):de(t)?Kl(t,n):vi(Xl(Gt(e)))}function ql(e){var t=We(Un(e)),n=["absolute","fixed"].indexOf(jt(e).position)>=0,i=n&&Ot(e)?rn(e):e;return de(i)?t.filter(function(s){return de(s)&&br(s,i)&&Ut(s)!=="body"}):[]}function Gl(e,t,n,i){var s=t==="clippingParents"?ql(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce(function(l,c){var h=Ms(e,c,i);return l.top=ce(h.top,l.top),l.right=Ln(h.right,l.right),l.bottom=Ln(h.bottom,l.bottom),l.left=ce(h.left,l.left),l},Ms(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function wr(e){var t=e.reference,n=e.element,i=e.placement,s=i?Pt(i):null,o=i?Me(i):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case ut:l={x:r,y:t.y-n.height};break;case xt:l={x:r,y:t.y+t.height};break;case yt:l={x:t.x+t.width,y:a};break;case dt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?Ii(s):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case we:l[c]=l[c]-(t[h]/2-n[h]/2);break;case Ke:l[c]=l[c]+(t[h]/2-n[h]/2);break}}return l}function qe(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?yl:a,c=n.rootBoundary,h=c===void 0?pr:c,u=n.elementContext,d=u===void 0?Te:u,f=n.altBoundary,g=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,b=yr(typeof p!="number"?p:vr(p,on)),x=d===Te?vl:Te,v=e.rects.popper,_=e.elements[g?x:d],y=Gl(de(_)?_:_.contextElement||Gt(e.elements.popper),l,h,r),w=ke(e.elements.reference),k=wr({reference:w,element:v,strategy:"absolute",placement:s}),S=vi(Object.assign({},v,k)),C=d===Te?S:w,D={top:y.top-C.top+b.top,bottom:C.bottom-y.bottom+b.bottom,left:y.left-C.left+b.left,right:C.right-y.right+b.right},P=e.modifiersData.offset;if(d===Te&&P){var O=P[s];Object.keys(D).forEach(function(E){var I=[yt,xt].indexOf(E)>=0?1:-1,T=[ut,xt].indexOf(E)>=0?"y":"x";D[E]+=O[T]*I})}return D}function Jl(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?gr:l,h=Me(i),u=h?a?_s:_s.filter(function(g){return Me(g)===h}):on,d=u.filter(function(g){return c.indexOf(g)>=0});d.length===0&&(d=u);var f=d.reduce(function(g,m){return g[m]=qe(e,{placement:m,boundary:s,rootBoundary:o,padding:r})[Pt(m)],g},{});return Object.keys(f).sort(function(g,m){return f[g]-f[m]})}function Zl(e){if(Pt(e)===Ri)return[];var t=En(e);return[ks(e),t,ks(t)]}function Ql(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,h=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,m=n.allowedAutoPlacements,p=t.options.placement,b=Pt(p),x=b===p,v=l||(x||!g?[En(p)]:Zl(p)),_=[p].concat(v).reduce(function(U,X){return U.concat(Pt(X)===Ri?Jl(t,{placement:X,boundary:h,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:m}):X)},[]),y=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,C=_[0],D=0;D<_.length;D++){var P=_[D],O=Pt(P),E=Me(P)===we,I=[ut,xt].indexOf(O)>=0,T=I?"width":"height",L=qe(t,{placement:P,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),F=I?E?yt:dt:E?xt:ut;y[T]>w[T]&&(F=En(F));var B=En(F),$=[];if(o&&$.push(L[O]<=0),a&&$.push(L[F]<=0,L[B]<=0),$.every(function(U){return U})){C=P,S=!1;break}k.set(P,$)}if(S)for(var N=g?3:1,tt=function(X){var q=_.find(function(At){var H=k.get(At);if(H)return H.slice(0,X).every(function(et){return et})});if(q)return C=q,"break"},Q=N;Q>0;Q--){var nt=tt(Q);if(nt==="break")break}t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}}const tc={name:"flip",enabled:!0,phase:"main",fn:Ql,requiresIfExists:["offset"],data:{_skip:!1}};function Cs(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ps(e){return[ut,yt,xt,dt].some(function(t){return e[t]>=0})}function ec(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=qe(t,{elementContext:"reference"}),a=qe(t,{altBoundary:!0}),l=Cs(r,i),c=Cs(a,s,o),h=Ps(l),u=Ps(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}const nc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ec};function ic(e,t,n){var i=Pt(e),s=[dt,ut].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[dt,yt].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function sc(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,r=gr.reduce(function(h,u){return h[u]=ic(u,t.rects,o),h},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}const oc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sc};function rc(e){var t=e.state,n=e.name;t.modifiersData[n]=wr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ac={name:"popperOffsets",enabled:!0,phase:"read",fn:rc,data:{}};function lc(e){return e==="x"?"y":"x"}function cc(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,h=n.altBoundary,u=n.padding,d=n.tether,f=d===void 0?!0:d,g=n.tetherOffset,m=g===void 0?0:g,p=qe(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),b=Pt(t.placement),x=Me(t.placement),v=!x,_=Ii(b),y=lc(_),w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(o){var E,I=_==="y"?ut:dt,T=_==="y"?xt:yt,L=_==="y"?"height":"width",F=w[_],B=F+p[I],$=F-p[T],N=f?-S[L]/2:0,tt=x===we?k[L]:S[L],Q=x===we?-S[L]:-k[L],nt=t.elements.arrow,U=f&&nt?Fi(nt):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xr(),q=X[I],At=X[T],H=He(0,k[L],U[L]),et=v?k[L]/2-N-H-q-D.mainAxis:tt-H-q-D.mainAxis,Ee=v?-k[L]/2+N+H+At+D.mainAxis:Q+H+At+D.mainAxis,zt=t.elements.arrow&&rn(t.elements.arrow),Jt=zt?_==="y"?zt.clientTop||0:zt.clientLeft||0:0,Zt=(E=P==null?void 0:P[_])!=null?E:0,lt=F+et-Zt-Jt,Ia=F+Ee-Zt,ls=He(f?Ln(B,lt):B,F,f?ce($,Ia):$);w[_]=ls,O[_]=ls-F}if(a){var cs,ja=_==="x"?ut:dt,$a=_==="x"?xt:yt,Qt=w[y],hn=y==="y"?"height":"width",hs=Qt+p[ja],us=Qt-p[$a],Gn=[ut,dt].indexOf(b)!==-1,ds=(cs=P==null?void 0:P[y])!=null?cs:0,fs=Gn?hs:Qt-k[hn]-S[hn]-ds+D.altAxis,ps=Gn?Qt+k[hn]+S[hn]-ds-D.altAxis:us,gs=f&&Gn?Rl(fs,Qt,ps):He(f?fs:hs,Qt,f?ps:us);w[y]=gs,O[y]=gs-Qt}t.modifiersData[i]=O}}const hc={name:"preventOverflow",enabled:!0,phase:"main",fn:cc,requiresIfExists:["offset"]};function uc(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dc(e){return e===gt(e)||!Ot(e)?ji(e):uc(e)}function fc(e){var t=e.getBoundingClientRect(),n=Se(t.width)/e.offsetWidth||1,i=Se(t.height)/e.offsetHeight||1;return n!==1||i!==1}function pc(e,t,n){n===void 0&&(n=!1);var i=Ot(t),s=Ot(t)&&fc(t),o=Gt(t),r=ke(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((Ut(t)!=="body"||zi(o))&&(a=dc(t)),Ot(t)?(l=ke(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=$i(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function gc(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function mc(e){var t=gc(e);return Al.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function bc(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xc(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Os={placement:"bottom",modifiers:[],strategy:"absolute"};function Ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function yc(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?Os:s;return function(a,l,c){c===void 0&&(c=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Os,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],d=!1,f={state:h,setOptions:function(b){var x=typeof b=="function"?b(h.options):b;m(),h.options=Object.assign({},o,h.options,x),h.scrollParents={reference:de(a)?We(a):a.contextElement?We(a.contextElement):[],popper:We(l)};var v=mc(xc([].concat(i,h.options.modifiers)));return h.orderedModifiers=v.filter(function(_){return _.enabled}),g(),f.update()},forceUpdate:function(){if(!d){var b=h.elements,x=b.reference,v=b.popper;if(Ds(x,v)){h.rects={reference:pc(x,rn(v),h.options.strategy==="fixed"),popper:Fi(v)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(D){return h.modifiersData[D.name]=Object.assign({},D.data)});for(var _=0;_<h.orderedModifiers.length;_++){if(h.reset===!0){h.reset=!1,_=-1;continue}var y=h.orderedModifiers[_],w=y.fn,k=y.options,S=k===void 0?{}:k,C=y.name;typeof w=="function"&&(h=w({state:h,options:S,name:C,instance:f})||h)}}}},update:bc(function(){return new Promise(function(p){f.forceUpdate(),p(h)})}),destroy:function(){m(),d=!0}};if(!Ds(a,l))return f;f.setOptions(c).then(function(p){!d&&c.onFirstUpdate&&c.onFirstUpdate(p)});function g(){h.orderedModifiers.forEach(function(p){var b=p.name,x=p.options,v=x===void 0?{}:x,_=p.effect;if(typeof _=="function"){var y=_({state:h,name:b,instance:f,options:v}),w=function(){};u.push(y||w)}})}function m(){u.forEach(function(p){return p()}),u=[]}return f}}const vc=yc({defaultModifiers:[nc,ac,Bl,Wl,oc,tc,hc,jl]}),_c=["enabled","placement","strategy","modifiers"];function wc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const Sc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},kc={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==n.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:i}=e.elements,s=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&s==="tooltip"&&"setAttribute"in i){const o=i.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},Mc=[];function Cc(e,t,n={}){let{enabled:i=!0,placement:s="bottom",strategy:o="absolute",modifiers:r=Mc}=n,a=wc(n,_c);const l=A.useRef(r),c=A.useRef(),h=A.useCallback(()=>{var p;(p=c.current)==null||p.update()},[]),u=A.useCallback(()=>{var p;(p=c.current)==null||p.forceUpdate()},[]),[d,f]=xl(A.useState({placement:s,update:h,forceUpdate:u,attributes:{},styles:{popper:{},arrow:{}}})),g=A.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:p})=>{const b={},x={};Object.keys(p.elements).forEach(v=>{b[v]=p.styles[v],x[v]=p.attributes[v]}),f({state:p,styles:b,attributes:x,update:h,forceUpdate:u,placement:p.placement})}}),[h,u,f]),m=A.useMemo(()=>(Be(l.current,r)||(l.current=r),l.current),[r]);return A.useEffect(()=>{!c.current||!i||c.current.setOptions({placement:s,strategy:o,modifiers:[...m,g,Sc]})},[o,s,g,i,m]),A.useEffect(()=>{if(!(!i||e==null||t==null))return c.current=vc(e,t,Object.assign({},a,{placement:s,strategy:o,modifiers:[...m,kc,g]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,f(p=>Object.assign({},p,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),d}const As=()=>{};function Pc(e){return e.button===0}function Oc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Qn=e=>e&&("current"in e?e.current:e),Es={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Dc(e,t=As,{disabled:n,clickTrigger:i="click"}={}){const s=A.useRef(!1),o=A.useRef(!1),r=A.useCallback(c=>{const h=Qn(e);Wa(!!h,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!h||Oc(c)||!Pc(c)||!!ms(h,c.target)||o.current,o.current=!1},[e]),a=Vt(c=>{const h=Qn(e);h&&ms(h,c.target)?o.current=!0:o.current=!1}),l=Vt(c=>{s.current||t(c)});A.useEffect(()=>{var c,h;if(n||e==null)return;const u=Va(Qn(e)),d=u.defaultView||window;let f=(c=d.event)!=null?c:(h=d.parent)==null?void 0:h.event,g=null;Es[i]&&(g=un(u,Es[i],a,!0));const m=un(u,i,r,!0),p=un(u,i,x=>{if(x===f){f=void 0;return}l(x)});let b=[];return"ontouchstart"in u.documentElement&&(b=[].slice.call(u.body.children).map(x=>un(x,"mousemove",As))),()=>{g==null||g(),m(),p(),b.forEach(x=>x())}},[e,n,i,r,a,l])}function Ac(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Ec(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Tc({enabled:e,enableEvents:t,placement:n,flip:i,offset:s,fixed:o,containerPadding:r,arrowElement:a,popperConfig:l={}}){var c,h,u,d,f;const g=Ac(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:Ec(Object.assign({},g,{eventListeners:{enabled:t,options:(c=g.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},g.preventOverflow,{options:r?Object.assign({padding:r},(h=g.preventOverflow)==null?void 0:h.options):(u=g.preventOverflow)==null?void 0:u.options}),offset:{options:Object.assign({offset:s},(d=g.offset)==null?void 0:d.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(f=g.arrow)==null?void 0:f.options,{element:a})}),flip:Object.assign({enabled:!!i},g.flip)}))})}const Rc=["children","usePopper"];function Lc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const Fc=()=>{};function Sr(e={}){const t=A.useContext(Yn),[n,i]=ul(),s=A.useRef(!1),{flip:o,offset:r,rootCloseEvent:a,fixed:l=!1,placement:c,popperConfig:h={},enableEventListeners:u=!0,usePopper:d=!!t}=e,f=(t==null?void 0:t.show)==null?!!e.show:t.show;f&&!s.current&&(s.current=!0);const g=w=>{t==null||t.toggle(!1,w)},{placement:m,setMenu:p,menuElement:b,toggleElement:x}=t||{},v=Cc(x,b,Tc({placement:c||m||"bottom-start",enabled:d,enableEvents:u??f,offset:r,flip:o,fixed:l,arrowElement:n,popperConfig:h})),_=Object.assign({ref:p||Fc,"aria-labelledby":x==null?void 0:x.id},v.attributes.popper,{style:v.styles.popper}),y={show:f,placement:m,hasShown:s.current,toggle:t==null?void 0:t.toggle,popper:d?v:null,arrowProps:d?Object.assign({ref:i},v.attributes.arrow,{style:v.styles.arrow}):{}};return Dc(b,g,{clickTrigger:a,disabled:!f}),[_,y]}function kr(e){let{children:t,usePopper:n=!0}=e,i=Lc(e,Rc);const[s,o]=Sr(Object.assign({},i,{usePopper:n}));return M.jsx(M.Fragment,{children:t(s,o)})}kr.displayName="DropdownMenu";const Ni={prefix:String(Math.round(Math.random()*1e10)),current:0},Mr=ue.createContext(Ni),Ic=ue.createContext(!1);let jc=!!(typeof window<"u"&&window.document&&window.document.createElement),ti=new WeakMap;function $c(e=!1){let t=A.useContext(Mr),n=A.useRef(null);if(n.current===null&&!e){var i,s;let o=(s=ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(i=s.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(o){let r=ti.get(o);r==null?ti.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==r.state&&(t.current=r.id,ti.delete(o))}n.current=++t.current}return n.current}function zc(e){let t=A.useContext(Mr);t===Ni&&!jc&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=$c(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function Nc(e){let t=ue.useId(),[n]=A.useState(Yc()),i=n?"react-aria":`react-aria${Ni.prefix}`;return e||`${i}-${t}`}const Bc=typeof ue.useId=="function"?Nc:zc;function Hc(){return!1}function Wc(){return!0}function Vc(e){return()=>{}}function Yc(){return typeof ue.useSyncExternalStore=="function"?ue.useSyncExternalStore(Vc,Hc,Wc):A.useContext(Ic)}const Cr=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Ts=()=>{};function Pr(){const e=Bc(),{show:t=!1,toggle:n=Ts,setToggle:i,menuElement:s}=A.useContext(Yn)||{},o=A.useCallback(a=>{n(!t,a)},[t,n]),r={id:e,ref:i||Ts,onClick:o,"aria-expanded":!!t};return s&&Cr(s)&&(r["aria-haspopup"]=!0),[r,{show:t,toggle:n}]}function Or({children:e}){const[t,n]=Pr();return M.jsx(M.Fragment,{children:e(t,n)})}Or.displayName="DropdownToggle";const _i=A.createContext(null),Rs=(e,t=null)=>e!=null?String(e):t||null,Dr=A.createContext(null);Dr.displayName="NavContext";const Uc=["eventKey","disabled","onClick","active","as"];function Xc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Ar({key:e,href:t,active:n,disabled:i,onClick:s}){const o=A.useContext(_i),r=A.useContext(Dr),{activeKey:a}=r||{},l=Rs(e,t),c=n==null&&e!=null?Rs(a)===l:n;return[{onClick:Vt(u=>{i||(s==null||s(u),o&&!u.isPropagationStopped()&&o(l,u))}),"aria-disabled":i||void 0,"aria-selected":c,[ar("dropdown-item")]:""},{isActive:c}]}const Er=A.forwardRef((e,t)=>{let{eventKey:n,disabled:i,onClick:s,active:o,as:r=Ya}=e,a=Xc(e,Uc);const[l]=Ar({key:n,href:a.href,disabled:i,onClick:s,active:o});return M.jsx(r,Object.assign({},a,{ref:t},l))});Er.displayName="DropdownItem";function Ls(){const e=bl(),t=A.useRef(null),n=A.useCallback(i=>{t.current=i,e()},[e]);return[t,n]}function an({defaultShow:e,show:t,onSelect:n,onToggle:i,itemSelector:s=`* [${ar("dropdown-item")}]`,focusFirstItemOnShow:o,placement:r="bottom-start",children:a}){const l=Ua(),[c,h]=ml(t,e,i),[u,d]=Ls(),f=u.current,[g,m]=Ls(),p=g.current,b=Xa(c),x=A.useRef(null),v=A.useRef(!1),_=A.useContext(_i),y=A.useCallback((P,O,E=O==null?void 0:O.type)=>{h(P,{originalEvent:O,source:E})},[h]),w=Vt((P,O)=>{n==null||n(P,O),y(!1,O,"select"),O.isPropagationStopped()||_==null||_(P,O)}),k=A.useMemo(()=>({toggle:y,placement:r,show:c,menuElement:f,toggleElement:p,setMenu:d,setToggle:m}),[y,r,c,f,p,d,m]);f&&b&&!c&&(v.current=f.contains(f.ownerDocument.activeElement));const S=Vt(()=>{p&&p.focus&&p.focus()}),C=Vt(()=>{const P=x.current;let O=o;if(O==null&&(O=u.current&&Cr(u.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(P))return;const E=bs(u.current,s)[0];E&&E.focus&&E.focus()});A.useEffect(()=>{c?C():v.current&&(v.current=!1,S())},[c,v,S,C]),A.useEffect(()=>{x.current=null});const D=(P,O)=>{if(!u.current)return null;const E=bs(u.current,s);let I=E.indexOf(P)+O;return I=Math.max(0,Math.min(I,E.length)),E[I]};return dl(A.useCallback(()=>l.document,[l]),"keydown",P=>{var O,E;const{key:I}=P,T=P.target,L=(O=u.current)==null?void 0:O.contains(T),F=(E=g.current)==null?void 0:E.contains(T);if(/input|textarea/i.test(T.tagName)&&(I===" "||I!=="Escape"&&L||I==="Escape"&&T.type==="search")||!L&&!F||I==="Tab"&&(!u.current||!c))return;x.current=P.type;const $={originalEvent:P,source:P.type};switch(I){case"ArrowUp":{const N=D(T,-1);N&&N.focus&&N.focus(),P.preventDefault();return}case"ArrowDown":if(P.preventDefault(),!c)h(!0,$);else{const N=D(T,1);N&&N.focus&&N.focus()}return;case"Tab":Ka(T.ownerDocument,"keyup",N=>{var tt;(N.key==="Tab"&&!N.target||!((tt=u.current)!=null&&tt.contains(N.target)))&&h(!1,$)},{once:!0});break;case"Escape":I==="Escape"&&(P.preventDefault(),P.stopPropagation()),h(!1,$);break}}),M.jsx(_i.Provider,{value:w,children:M.jsx(Yn.Provider,{value:k,children:a})})}an.displayName="Dropdown";an.Menu=kr;an.Toggle=Or;an.Item=Er;const Bi=A.createContext({});Bi.displayName="DropdownContext";const Tr=A.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:i="separator",...s},o)=>(t=Kt(t,"dropdown-divider"),M.jsx(n,{ref:o,className:qt(e,t),role:i,...s})));Tr.displayName="DropdownDivider";const Rr=A.forwardRef(({className:e,bsPrefix:t,as:n="div",role:i="heading",...s},o)=>(t=Kt(t,"dropdown-header"),M.jsx(n,{ref:o,className:qt(e,t),role:i,...s})));Rr.displayName="DropdownHeader";const Lr=A.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:i=!1,onClick:s,active:o,as:r=fr,...a},l)=>{const c=Kt(e,"dropdown-item"),[h,u]=Ar({key:n,href:a.href,disabled:i,onClick:s,active:o});return M.jsx(r,{...a,...h,ref:l,className:qt(t,c,u.isActive&&"active",i&&"disabled")})});Lr.displayName="DropdownItem";const Fr=A.forwardRef(({className:e,bsPrefix:t,as:n="span",...i},s)=>(t=Kt(t,"dropdown-item-text"),M.jsx(n,{ref:s,className:qt(e,t),...i})));Fr.displayName="DropdownItemText";const Kc=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",qc=typeof document<"u",Gc=qc||Kc?A.useLayoutEffect:A.useEffect,Ir=A.createContext(null);Ir.displayName="NavbarContext";function jr(e,t){return e}function $r(e,t,n){const i=n?"top-end":"top-start",s=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",r=n?"bottom-start":"bottom-end",a=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",h=n?"left-end":"right-end";let u=e?r:o;return t==="up"?u=e?s:i:t==="end"?u=e?h:c:t==="start"?u=e?l:a:t==="down-centered"?u="bottom":t==="up-centered"&&(u="top"),u}const zr=A.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:i,flip:s=!0,show:o,renderOnMount:r,as:a="div",popperConfig:l,variant:c,...h},u)=>{let d=!1;const f=A.useContext(Ir),g=Kt(e,"dropdown-menu"),{align:m,drop:p,isRTL:b}=A.useContext(Bi);n=n||m;const x=A.useContext(ur),v=[];if(n)if(typeof n=="object"){const P=Object.keys(n);if(P.length){const O=P[0],E=n[O];d=E==="start",v.push(`${g}-${O}-${E}`)}}else n==="end"&&(d=!0);const _=$r(d,p,b),[y,{hasShown:w,popper:k,show:S,toggle:C}]=Sr({flip:s,rootCloseEvent:i,show:o,usePopper:!f&&v.length===0,offset:[0,2],popperConfig:l,placement:_});if(y.ref=lr(jr(u),y.ref),Gc(()=>{S&&(k==null||k.update())},[S]),!w&&!r&&!x)return null;typeof a!="string"&&(y.show=S,y.close=()=>C==null?void 0:C(!1),y.align=n);let D=h.style;return k!=null&&k.placement&&(D={...h.style,...y.style},h["x-placement"]=k.placement),M.jsx(a,{...h,...y,style:D,...(v.length||f)&&{"data-bs-popper":"static"},className:qt(t,g,S&&"show",d&&`${g}-end`,c&&`${g}-${c}`,...v)})});zr.displayName="DropdownMenu";const Nr=A.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:i,as:s=Ft,...o},r)=>{const a=Kt(e,"dropdown-toggle"),l=A.useContext(Yn);i!==void 0&&(o.bsPrefix=i);const[c]=Pr();return c.ref=lr(c.ref,jr(r)),M.jsx(s,{className:qt(n,a,t&&`${a}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});Nr.displayName="DropdownToggle";const Br=A.forwardRef((e,t)=>{const{bsPrefix:n,drop:i="down",show:s,className:o,align:r="start",onSelect:a,onToggle:l,focusFirstItemOnShow:c,as:h="div",navbar:u,autoClose:d=!0,...f}=hl(e,{show:"onToggle"}),g=A.useContext(ur),m=Kt(n,"dropdown"),p=qa(),b=k=>d===!1?k==="click":d==="inside"?k!=="rootClose":d==="outside"?k!=="select":!0,x=Ga((k,S)=>{var C;!((C=S.originalEvent)==null||(C=C.target)==null)&&C.classList.contains("dropdown-toggle")&&S.source==="mousedown"||(S.originalEvent.currentTarget===document&&(S.source!=="keydown"||S.originalEvent.key==="Escape")&&(S.source="rootClose"),b(S.source)&&(l==null||l(k,S)))}),_=$r(r==="end",i,p),y=A.useMemo(()=>({align:r,drop:i,isRTL:p}),[r,i,p]),w={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return M.jsx(Bi.Provider,{value:y,children:M.jsx(an,{placement:_,show:s,onSelect:a,onToggle:x,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?f.children:M.jsx(h,{...f,ref:t,className:qt(o,s&&"show",w[i])})})})});Br.displayName="Dropdown";const ei=Object.assign(Br,{Toggle:Nr,Menu:zr,Item:Lr,ItemText:Fr,Divider:Tr,Header:Rr});/*!
+ * @kurkle/color v0.3.2
+ * https://github.com/kurkle/color#readme
+ * (c) 2023 Jukka Kurkela
+ * Released under the MIT License
+ */function ln(e){return e+.5|0}const Bt=(e,t,n)=>Math.max(Math.min(e,n),t);function $e(e){return Bt(ln(e*2.55),0,255)}function Yt(e){return Bt(ln(e*255),0,255)}function Lt(e){return Bt(ln(e/2.55)/100,0,1)}function Fs(e){return Bt(ln(e*100),0,100)}const mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},wi=[..."0123456789ABCDEF"],Jc=e=>wi[e&15],Zc=e=>wi[(e&240)>>4]+wi[e&15],fn=e=>(e&240)>>4===(e&15),Qc=e=>fn(e.r)&&fn(e.g)&&fn(e.b)&&fn(e.a);function th(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&mt[e[1]]*17,g:255&mt[e[2]]*17,b:255&mt[e[3]]*17,a:t===5?mt[e[4]]*17:255}:(t===7||t===9)&&(n={r:mt[e[1]]<<4|mt[e[2]],g:mt[e[3]]<<4|mt[e[4]],b:mt[e[5]]<<4|mt[e[6]],a:t===9?mt[e[7]]<<4|mt[e[8]]:255})),n}const eh=(e,t)=>e<255?t(e):"";function nh(e){var t=Qc(e)?Jc:Zc;return e?"#"+t(e.r)+t(e.g)+t(e.b)+eh(e.a,t):void 0}const ih=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Hr(e,t,n){const i=t*Math.min(n,1-n),s=(o,r=(o+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function sh(e,t,n){const i=(s,o=(s+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function oh(e,t,n){const i=Hr(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)i[s]*=1-t-n,i[s]+=t;return i}function rh(e,t,n,i,s){return e===s?(t-n)/i+(t<n?6:0):t===s?(n-e)/i+2:(e-t)/i+4}function Hi(e){const n=e.r/255,i=e.g/255,s=e.b/255,o=Math.max(n,i,s),r=Math.min(n,i,s),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=rh(n,i,s,h,o),l=l*60+.5),[l|0,c||0,a]}function Wi(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Yt)}function Vi(e,t,n){return Wi(Hr,e,t,n)}function ah(e,t,n){return Wi(oh,e,t,n)}function lh(e,t,n){return Wi(sh,e,t,n)}function Wr(e){return(e%360+360)%360}function ch(e){const t=ih.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?$e(+t[5]):Yt(+t[5]));const s=Wr(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=ah(s,o,r):t[1]==="hsv"?i=lh(s,o,r):i=Vi(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}function hh(e,t){var n=Hi(e);n[0]=Wr(n[0]+t),n=Vi(n),e.r=n[0],e.g=n[1],e.b=n[2]}function uh(e){if(!e)return;const t=Hi(e),n=t[0],i=Fs(t[1]),s=Fs(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${s}%, ${Lt(e.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const Is={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},js={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function dh(){const e={},t=Object.keys(js),n=Object.keys(Is);let i,s,o,r,a;for(i=0;i<t.length;i++){for(r=a=t[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,Is[o]);o=parseInt(js[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let pn;function fh(e){pn||(pn=dh(),pn.transparent=[0,0,0,0]);const t=pn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const ph=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function gh(e){const t=ph.exec(e);let n=255,i,s,o;if(t){if(t[7]!==i){const r=+t[7];n=t[8]?$e(r):Bt(r*255,0,255)}return i=+t[1],s=+t[3],o=+t[5],i=255&(t[2]?$e(i):Bt(i,0,255)),s=255&(t[4]?$e(s):Bt(s,0,255)),o=255&(t[6]?$e(o):Bt(o,0,255)),{r:i,g:s,b:o,a:n}}}function mh(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Lt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const ni=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,me=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function bh(e,t,n){const i=me(Lt(e.r)),s=me(Lt(e.g)),o=me(Lt(e.b));return{r:Yt(ni(i+n*(me(Lt(t.r))-i))),g:Yt(ni(s+n*(me(Lt(t.g))-s))),b:Yt(ni(o+n*(me(Lt(t.b))-o))),a:e.a+n*(t.a-e.a)}}function gn(e,t,n){if(e){let i=Hi(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=Vi(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Vr(e,t){return e&&Object.assign(t||{},e)}function $s(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Yt(e[3]))):(t=Vr(e,{r:0,g:0,b:0,a:1}),t.a=Yt(t.a)),t}function xh(e){return e.charAt(0)==="r"?gh(e):ch(e)}class Ge{constructor(t){if(t instanceof Ge)return t;const n=typeof t;let i;n==="object"?i=$s(t):n==="string"&&(i=th(t)||fh(t)||xh(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Vr(this._rgb);return t&&(t.a=Lt(t.a)),t}set rgb(t){this._rgb=$s(t)}rgbString(){return this._valid?mh(this._rgb):void 0}hexString(){return this._valid?nh(this._rgb):void 0}hslString(){return this._valid?uh(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,s=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*s.r+.5,i.g=255&c*i.g+o*s.g+.5,i.b=255&c*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=bh(this._rgb,t._rgb,n)),this}clone(){return new Ge(this.rgb)}alpha(t){return this._rgb.a=Yt(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ln(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return gn(this._rgb,2,t),this}darken(t){return gn(this._rgb,2,-t),this}saturate(t){return gn(this._rgb,1,t),this}desaturate(t){return gn(this._rgb,1,-t),this}rotate(t){return hh(this._rgb,t),this}}/*!
+ * Chart.js v4.4.7
+ * https://www.chartjs.org
+ * (c) 2024 Chart.js Contributors
+ * Released under the MIT License
+ */function Et(){}const yh=(()=>{let e=0;return()=>e++})();function V(e){return e==null}function J(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function z(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function St(e,t){return vt(e)?e:t}function j(e,t){return typeof e>"u"?t:e}const vh=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Y(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function W(e,t,n,i){let s,o,r;if(J(e))for(o=e.length,s=0;s<o;s++)t.call(n,e[s],s);else if(z(e))for(r=Object.keys(e),o=r.length,s=0;s<o;s++)t.call(n,e[r[s]],r[s])}function Fn(e,t){let n,i,s,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=e[n],o=t[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function In(e){if(J(e))return e.map(In);if(z(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let s=0;for(;s<i;++s)t[n[s]]=In(e[n[s]]);return t}return e}function Yr(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function _h(e,t,n,i){if(!Yr(e))return;const s=t[e],o=n[e];z(s)&&z(o)?Je(s,o,i):t[e]=In(o)}function Je(e,t,n){const i=J(t)?t:[t],s=i.length;if(!z(e))return e;n=n||{};const o=n.merger||_h;let r;for(let a=0;a<s;++a){if(r=i[a],!z(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],e,r,n)}return e}function Ve(e,t){return Je(e,t,{merger:wh})}function wh(e,t,n){if(!Yr(e))return;const i=t[e],s=n[e];z(i)&&z(s)?Ve(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=In(s))}const zs={"":e=>e,x:e=>e.x,y:e=>e.y};function Sh(e){const t=e.split("."),n=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function kh(e){const t=Sh(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Ce(e,t){return(zs[t]||(zs[t]=kh(t)))(e)}function Yi(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ze=e=>typeof e<"u",Xt=e=>typeof e=="function",Ns=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Mh(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Z=Math.PI,st=2*Z,Ch=st+Z,jn=Number.POSITIVE_INFINITY,Ph=Z/180,it=Z/2,te=Z/4,Bs=Z*2/3,Si=Math.log10,Dt=Math.sign;function Ye(e,t,n){return Math.abs(e-t)<n}function Hs(e){const t=Math.round(e);e=Ye(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Si(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Oh(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((s,o)=>s-o).pop(),t}function Qe(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Dh(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Ah(e,t,n){let i,s,o;for(i=0,s=e.length;i<s;i++)o=e[i][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ae(e){return e*(Z/180)}function Eh(e){return e*(180/Z)}function Ws(e){if(!vt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Ur(e,t){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*Z&&(o+=st),{angle:o,distance:s}}function ki(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Th(e,t){return(e-t+Ch)%st-Z}function Nt(e){return(e%st+st)%st}function Ui(e,t,n,i){const s=Nt(e),o=Nt(t),r=Nt(n),a=Nt(o-s),l=Nt(r-s),c=Nt(s-o),h=Nt(s-r);return s===o||s===r||i&&o===r||a>l&&c<h}function rt(e,t,n){return Math.max(t,Math.min(n,e))}function Rh(e){return rt(e,-32768,32767)}function Ht(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Xi(e,t,n){n=n||(r=>e[r]<t);let i=e.length-1,s=0,o;for(;i-s>1;)o=s+i>>1,n(o)?s=o:i=o;return{lo:s,hi:i}}const le=(e,t,n,i)=>Xi(e,n,i?s=>{const o=e[s][t];return o<n||o===n&&e[s+1][t]===n}:s=>e[s][t]<n),Lh=(e,t,n)=>Xi(e,n,i=>e[i][t]>=n);function Fh(e,t,n){let i=0,s=e.length;for(;i<s&&e[i]<t;)i++;for(;s>i&&e[s-1]>n;)s--;return i>0||s<e.length?e.slice(i,s):e}const Xr=["push","pop","shift","splice","unshift"];function Ih(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Xr.forEach(n=>{const i="_onData"+Yi(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function Vs(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(Xr.forEach(o=>{delete e[o]}),delete e._chartjs)}function Kr(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const qr=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Gr(e,t){let n=[],i=!1;return function(...s){n=s,i||(i=!0,qr.call(window,()=>{i=!1,e.apply(t,n)}))}}function jh(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const Ki=e=>e==="start"?"left":e==="end"?"right":"center",ot=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,$h=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function zh(e,t,n){const i=t.length;let s=0,o=i;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=rt(Math.min(le(a,l,c).lo,n?i:le(t,l,r.getPixelForValue(c)).lo),0,i-1)),d?o=rt(Math.max(le(a,r.axis,h,!0).hi+1,n?0:le(t,l,r.getPixelForValue(h),!0).hi+1),s,i)-s:o=i-s}return{start:s,count:o}}function Nh(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=s,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}const mn=e=>e===0||e===1,Ys=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*st/n)),Us=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*st/n)+1,Ue={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*it)+1,easeOutSine:e=>Math.sin(e*it),easeInOutSine:e=>-.5*(Math.cos(Z*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>mn(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>mn(e)?e:Ys(e,.075,.3),easeOutElastic:e=>mn(e)?e:Us(e,.075,.3),easeInOutElastic(e){return mn(e)?e:e<.5?.5*Ys(e*2,.1125,.45):.5+.5*Us(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ue.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ue.easeInBounce(e*2)*.5:Ue.easeOutBounce(e*2-1)*.5+.5};function qi(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Xs(e){return qi(e)?e:new Ge(e)}function ii(e){return qi(e)?e:new Ge(e).saturate(.5).darken(.1).hexString()}const Bh=["x","y","borderWidth","radius","tension"],Hh=["color","borderColor","backgroundColor"];function Wh(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Hh},numbers:{type:"number",properties:Bh}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Vh(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ks=new Map;function Yh(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Ks.get(n);return i||(i=new Intl.NumberFormat(e,t),Ks.set(n,i)),i}function Jr(e,t,n){return Yh(t,n).format(e)}const Zr={values(e){return J(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let s,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),o=Uh(e,n)}const r=Si(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Jr(e,i,l)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(Si(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?Zr.numeric.call(this,e,t,n):""}};function Uh(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Qr={formatters:Zr};function Xh(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Qr.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const fe=Object.create(null),Mi=Object.create(null);function Xe(e,t){if(!t)return e;const n=t.split(".");for(let i=0,s=n.length;i<s;++i){const o=n[i];e=e[o]||(e[o]=Object.create(null))}return e}function si(e,t,n){return typeof t=="string"?Je(Xe(e,t),n):Je(Xe(e,""),t)}class Kh{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>ii(s.backgroundColor),this.hoverBorderColor=(i,s)=>ii(s.borderColor),this.hoverColor=(i,s)=>ii(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return si(this,t,n)}get(t){return Xe(this,t)}describe(t,n){return si(Mi,t,n)}override(t,n){return si(fe,t,n)}route(t,n,i,s){const o=Xe(this,t),r=Xe(this,i),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[s];return z(l)?Object.assign({},c,l):j(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var K=new Kh({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Wh,Vh,Xh]);function qh(e){return!e||V(e.size)||V(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function qs(e,t,n,i,s){let o=t[s];return o||(o=t[s]=e.measureText(s).width,n.push(s)),o>i&&(i=o),i}function ee(e,t,n){const i=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*i)/i+s}function Gs(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Ci(e,t,n,i){ta(e,t,n,i,null)}function ta(e,t,n,i,s){let o,r,a,l,c,h,u,d;const f=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*Ph;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(p),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:s?e.ellipse(n,i,s/2,m,0,0,st):e.arc(n,i,m,0,st),e.closePath();break;case"triangle":h=s?s/2:m,e.moveTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Bs,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Bs,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,r=Math.cos(p+te)*l,u=Math.cos(p+te)*(s?s/2-c:l),a=Math.sin(p+te)*l,d=Math.sin(p+te)*(s?s/2-c:l),e.arc(n-u,i-a,c,p-Z,p-it),e.arc(n+d,i-r,c,p-it,p),e.arc(n+u,i+a,c,p,p+it),e.arc(n-d,i+r,c,p+it,p+Z),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,h=s?s/2:l,e.rect(n-h,i-l,2*h,2*l);break}p+=te;case"rectRot":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+d,i-r),e.lineTo(n+u,i+a),e.lineTo(n-d,i+r),e.closePath();break;case"crossRot":p+=te;case"cross":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r);break;case"star":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r),p+=te,u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r);break;case"line":r=s?s/2:Math.cos(p)*m,a=Math.sin(p)*m,e.moveTo(n-r,i-a),e.lineTo(n+r,i+a);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(p)*(s?s/2:m),i+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function tn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Gi(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Ji(e){e.restore()}function Gh(e,t,n,i,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else s==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Jh(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Zh(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),V(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Qh(e,t,n,i,s){if(s.strikethrough||s.underline){const o=e.measureText(i),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(r,h),e.lineTo(a,h),e.stroke()}}function tu(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function en(e,t,n,i,s,o={}){const r=J(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=s.string,Zh(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&tu(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),V(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,i,o.maxWidth)),e.fillText(c,n,i,o.maxWidth),Qh(e,n,i,c,o),i+=Number(s.lineHeight);e.restore()}function $n(e,t){const{x:n,y:i,w:s,h:o,radius:r}=t;e.arc(n+r.topLeft,i+r.topLeft,r.topLeft,1.5*Z,Z,!0),e.lineTo(n,i+o-r.bottomLeft),e.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,Z,it,!0),e.lineTo(n+s-r.bottomRight,i+o),e.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,it,0,!0),e.lineTo(n+s,i+r.topRight),e.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-it,!0),e.lineTo(n+r.topLeft,i)}const eu=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,nu=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function iu(e,t){const n=(""+e).match(eu);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const su=e=>+e||0;function Zi(e,t){const n={},i=z(t),s=i?Object.keys(t):t,o=z(e)?i?r=>j(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of s)n[r]=su(o(r));return n}function ea(e){return Zi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ye(e){return Zi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function _t(e){const t=ea(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function at(e,t){e=e||{},t=t||K.font;let n=j(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=j(e.style,t.style);i&&!(""+i).match(nu)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:j(e.family,t.family),lineHeight:iu(j(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:j(e.weight,t.weight),string:""};return s.string=qh(s),s}function bn(e,t,n,i){let s,o,r;for(s=0,o=e.length;s<o;++s)if(r=e[s],r!==void 0&&(t!==void 0&&typeof r=="function"&&(r=r(t)),n!==void 0&&J(r)&&(r=r[n%r.length]),r!==void 0))return r}function ou(e,t,n){const{min:i,max:s}=e,o=vh(t,(s-i)/2),r=(a,l)=>n&&a===0?0:a+l;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function pe(e,t){return Object.assign(Object.create(e),t)}function Qi(e,t=[""],n,i,s=()=>e[0]){const o=n||e;typeof i>"u"&&(i=oa("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:s,override:a=>Qi([a,...e],t,o,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return ia(a,l,()=>fu(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Zs(a).includes(l)},ownKeys(a){return Zs(a)},set(a,l,c){const h=a._storage||(a._storage=s());return a[l]=h[l]=c,delete a._keys,!0}})}function Pe(e,t,n,i){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:na(e,i),setContext:o=>Pe(e,o,n,i),override:o=>Pe(e.override(o),t,n,i)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return ia(o,r,()=>au(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function na(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:i,isScriptable:Xt(n)?n:()=>n,isIndexable:Xt(i)?i:()=>i}}const ru=(e,t)=>e?e+Yi(t):t,ts=(e,t)=>z(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function ia(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function au(e,t,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=e;let a=i[t];return Xt(a)&&r.isScriptable(t)&&(a=lu(t,a,e,n)),J(a)&&a.length&&(a=cu(t,a,e,r.isIndexable)),ts(t,a)&&(a=Pe(a,s,o&&o[t],r)),a}function lu(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||i);return a.delete(e),ts(e,l)&&(l=es(s._scopes,s,e,l)),l}function cu(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&i(e))return t[o.index%t.length];if(z(t[0])){const l=t,c=s._scopes.filter(h=>h!==l);t=[];for(const h of l){const u=es(c,s,e,h);t.push(Pe(u,o,r&&r[e],a))}}return t}function sa(e,t,n){return Xt(e)?e(t,n):e}const hu=(e,t)=>e===!0?t:typeof e=="string"?Ce(t,e):void 0;function uu(e,t,n,i,s){for(const o of t){const r=hu(n,o);if(r){e.add(r);const a=sa(r._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(r===!1&&typeof i<"u"&&n!==i)return null}return!1}function es(e,t,n,i){const s=t._rootScopes,o=sa(t._fallback,n,i),r=[...e,...s],a=new Set;a.add(i);let l=Js(a,r,n,o||n,i);return l===null||typeof o<"u"&&o!==n&&(l=Js(a,r,o,l,i),l===null)?!1:Qi(Array.from(a),[""],s,o,()=>du(t,n,i))}function Js(e,t,n,i,s){for(;n;)n=uu(e,t,n,i,s);return n}function du(e,t,n){const i=e._getTarget();t in i||(i[t]={});const s=i[t];return J(s)&&z(n)?n:s||{}}function fu(e,t,n,i){let s;for(const o of t)if(s=oa(ru(o,e),n),typeof s<"u")return ts(e,s)?es(n,i,e,s):s}function oa(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function Zs(e){let t=e._keys;return t||(t=e._keys=pu(e._scopes)),t}function pu(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}const gu=Number.EPSILON||1e-14,Oe=(e,t)=>t<e.length&&!e[t].skip&&e[t],ra=e=>e==="x"?"y":"x";function mu(e,t,n,i){const s=e.skip?t:e,o=t,r=n.skip?t:n,a=ki(o,s),l=ki(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=i*c,d=i*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function bu(e,t,n){const i=e.length;let s,o,r,a,l,c=Oe(e,0);for(let h=0;h<i-1;++h)if(l=c,c=Oe(e,h+1),!(!l||!c)){if(Ye(t[h],0,gu)){n[h]=n[h+1]=0;continue}s=n[h]/t[h],o=n[h+1]/t[h],a=Math.pow(s,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),n[h]=s*r*t[h],n[h+1]=o*r*t[h])}}function xu(e,t,n="x"){const i=ra(n),s=e.length;let o,r,a,l=Oe(e,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Oe(e,c+1),!a)continue;const h=a[n],u=a[i];r&&(o=(h-r[n])/3,a[`cp1${n}`]=h-o,a[`cp1${i}`]=u-o*t[c]),l&&(o=(l[n]-h)/3,a[`cp2${n}`]=h+o,a[`cp2${i}`]=u+o*t[c])}}function yu(e,t="x"){const n=ra(t),i=e.length,s=Array(i).fill(0),o=Array(i);let r,a,l,c=Oe(e,0);for(r=0;r<i;++r)if(a=l,l=c,c=Oe(e,r+1),!!l){if(c){const h=c[t]-l[t];s[r]=h!==0?(c[n]-l[n])/h:0}o[r]=a?c?Dt(s[r-1])!==Dt(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}bu(e,s,o),xu(e,o,t)}function xn(e,t,n){return Math.max(Math.min(e,n),t)}function vu(e,t){let n,i,s,o,r,a=tn(e[0],t);for(n=0,i=e.length;n<i;++n)r=o,o=a,a=n<i-1&&tn(e[n+1],t),o&&(s=e[n],r&&(s.cp1x=xn(s.cp1x,t.left,t.right),s.cp1y=xn(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=xn(s.cp2x,t.left,t.right),s.cp2y=xn(s.cp2y,t.top,t.bottom)))}function _u(e,t,n,i,s){let o,r,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")yu(e,s);else{let c=i?e[e.length-1]:e[0];for(o=0,r=e.length;o<r;++o)a=e[o],l=mu(c,a,e[Math.min(o+1,r-(i?0:1))%r],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&vu(e,n)}function ns(){return typeof window<"u"&&typeof document<"u"}function is(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function zn(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const Xn=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function wu(e,t){return Xn(e).getPropertyValue(t)}const Su=["top","right","bottom","left"];function he(e,t,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=Su[s];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const ku=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Mu(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:s,offsetY:o}=i;let r=!1,a,l;if(ku(s,o,e.target))a=s,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function oe(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,s=Xn(n),o=s.boxSizing==="border-box",r=he(s,"padding"),a=he(s,"border","width"),{x:l,y:c,box:h}=Mu(e,n),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:g}=t;return o&&(f-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-u)/f*n.width/i),y:Math.round((c-d)/g*n.height/i)}}function Cu(e,t,n){let i,s;if(t===void 0||n===void 0){const o=e&&is(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=Xn(o),l=he(a,"border","width"),c=he(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,i=zn(a.maxWidth,o,"clientWidth"),s=zn(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:i||jn,maxHeight:s||jn}}const yn=e=>Math.round(e*10)/10;function Pu(e,t,n,i){const s=Xn(e),o=he(s,"margin"),r=zn(s.maxWidth,e,"clientWidth")||jn,a=zn(s.maxHeight,e,"clientHeight")||jn,l=Cu(e,t,n);let{width:c,height:h}=l;if(s.boxSizing==="content-box"){const d=he(s,"border","width"),f=he(s,"padding");c-=f.width+d.width,h-=f.height+d.height}return c=Math.max(0,c-o.width),h=Math.max(0,i?c/i:h-o.height),c=yn(Math.min(c,r,l.maxWidth)),h=yn(Math.min(h,a,l.maxHeight)),c&&!h&&(h=yn(c/2)),(t!==void 0||n!==void 0)&&i&&l.height&&h>l.height&&(h=l.height,c=yn(Math.floor(h*i))),{width:c,height:h}}function Qs(e,t,n){const i=t||1,s=Math.floor(e.height*i),o=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||r.height!==s||r.width!==o?(e.currentDevicePixelRatio=i,r.height=s,r.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Ou=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};ns()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function to(e,t){const n=wu(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function re(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Du(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Au(e,t,n,i){const s={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=re(e,s,n),a=re(s,o,n),l=re(o,t,n),c=re(r,a,n),h=re(a,l,n);return re(c,h,n)}const Eu=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Tu=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ve(e,t,n){return e?Eu(t,n):Tu()}function aa(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function la(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function ca(e){return e==="angle"?{between:Ui,compare:Th,normalize:Nt}:{between:Ht,compare:(t,n)=>t-n,normalize:t=>t}}function eo({start:e,end:t,count:n,loop:i,style:s}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:s}}function Ru(e,t,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=ca(i),l=t.length;let{start:c,end:h,loop:u}=e,d,f;if(u){for(c+=l,h+=l,d=0,f=l;d<f&&r(a(t[c%l][i]),s,o);++d)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:u,style:e.style}}function Lu(e,t,n){if(!n)return[e];const{property:i,start:s,end:o}=n,r=t.length,{compare:a,between:l,normalize:c}=ca(i),{start:h,end:u,loop:d,style:f}=Ru(e,t,n),g=[];let m=!1,p=null,b,x,v;const _=()=>l(s,v,b)&&a(s,v)!==0,y=()=>a(o,b)===0||l(o,v,b),w=()=>m||_(),k=()=>!m||y();for(let S=h,C=h;S<=u;++S)x=t[S%r],!x.skip&&(b=c(x[i]),b!==v&&(m=l(b,s,o),p===null&&w()&&(p=a(b,s)===0?S:C),p!==null&&k()&&(g.push(eo({start:p,end:S,loop:d,count:r,style:f})),p=null),C=S,v=b));return p!==null&&g.push(eo({start:p,end:u,loop:d,count:r,style:f})),g}function Fu(e,t){const n=[],i=e.segments;for(let s=0;s<i.length;s++){const o=Lu(i[s],e.points,t);o.length&&n.push(...o)}return n}function Iu(e,t,n,i){let s=0,o=t-1;if(n&&!i)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(o+=s);o>s&&e[o%t].skip;)o--;return o%=t,{start:s,end:o}}function ju(e,t,n,i){const s=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%s];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%s,end:(l-1)%s,loop:i}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%s,end:r%s,loop:i}),o}function $u(e,t){const n=e.points,i=e.options.spanGaps,s=n.length;if(!s)return[];const o=!!e._loop,{start:r,end:a}=Iu(n,s,o,i);if(i===!0)return no(e,[{start:r,end:a,loop:o}],n,t);const l=a<r?a+s:a,c=!!e._fullLoop&&r===0&&a===s-1;return no(e,ju(n,r,l,c),n,t)}function no(e,t,n,i){return!i||!i.setContext||!n?t:zu(e,t,n,i)}function zu(e,t,n,i){const s=e._chart.getContext(),o=io(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=n.length,c=[];let h=o,u=t[0].start,d=u;function f(g,m,p,b){const x=a?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=x;for(;n[m%l].skip;)m+=x;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:p,style:b}),h=b,u=m%l)}}for(const g of t){u=a?u:g.start;let m=n[u%l],p;for(d=u+1;d<=g.end;d++){const b=n[d%l];p=io(i.setContext(pe(s,{type:"segment",p0:m,p1:b,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),Nu(p,h)&&f(u,d-1,g.loop,h),m=b,h=p}u<d-1&&f(u,d-1,g.loop,h)}return c}function io(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Nu(e,t){if(!t)return!1;const n=[],i=function(s,o){return qi(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,i)!==JSON.stringify(t,i)}/*!
+ * Chart.js v4.4.7
+ * https://www.chartjs.org
+ * (c) 2024 Chart.js Contributors
+ * Released under the MIT License
+ */class Bu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,s){const o=n.listeners[s],r=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(i-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=qr.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Tt=new Bu;const so="transparent",Hu={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=Xs(e||so),s=i.valid&&Xs(t||so);return s&&s.valid?s.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Wu{constructor(t,n,i,s){const o=n[i];s=bn([t.to,s,o,t.from]);const r=bn([t.from,o,s]);this._active=!0,this._fn=t.fn||Hu[t.type||typeof r],this._easing=Ue[t.easing]||Ue.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=bn([t.to,n,s,t.from]),this._from=bn([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n<i),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=o;return}l=n/i%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class ha{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!z(t))return;const n=Object.keys(K.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!z(o))return;const r={};for(const a of n)r[a]=o[a];(J(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,n){const i=n.options,s=Yu(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&Vu(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,n));continue}const h=n[c];let u=o[c];const d=i.get(c);if(u)if(d&&u.active()){u.update(d,h,a);continue}else u.cancel();if(!d||!d.duration){t[c]=h;continue}o[c]=u=new Wu(d,t,c,h),s.push(u)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return Tt.add(this._chart,i),!0}}function Vu(e,t){const n=[],i=Object.keys(t);for(let s=0;s<i.length;s++){const o=e[i[s]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Yu(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function oo(e,t){const n=e&&e.options||{},i=n.reverse,s=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:i?o:s,end:i?s:o}}function Uu(e,t,n){if(n===!1)return!1;const i=oo(e,n),s=oo(t,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function Xu(e){let t,n,i,s;return z(e)?(t=e.top,n=e.right,i=e.bottom,s=e.left):t=n=i=s=e,{top:t,right:n,bottom:i,left:s,disabled:e===!1}}function ua(e,t){const n=[],i=e._getSortedDatasetMetas(t);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function ro(e,t,n,i={}){const s=e.keys,o=i.mode==="single";let r,a,l,c;if(t===null)return;let h=!1;for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===n){if(h=!0,i.all)continue;break}c=e.values[l],vt(c)&&(o||t===0||Dt(t)===Dt(c))&&(t+=c)}return!h&&!i.all?0:t}function Ku(e,t){const{iScale:n,vScale:i}=t,s=n.axis==="x"?"x":"y",o=i.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[s]:h,[o]:e[h]};return a}function oi(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function qu(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Gu(e){const{min:t,max:n,minDefined:i,maxDefined:s}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function Ju(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function ao(e,t,n,i){for(const s of t.getMatchingVisibleMetas(i).reverse()){const o=e[s.index];if(n&&o>0||!n&&o<0)return s.index}return null}function lo(e,t){const{chart:n,_cachedMeta:i}=e,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,h=qu(o,r,i),u=t.length;let d;for(let f=0;f<u;++f){const g=t[f],{[l]:m,[c]:p}=g,b=g._stacks||(g._stacks={});d=b[c]=Ju(s,h,m),d[a]=p,d._top=ao(d,r,!0,i.type),d._bottom=ao(d,r,!1,i.type);const x=d._visualValues||(d._visualValues={});x[a]=p}}function ri(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function Zu(e,t){return pe(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Qu(e,t,n){return pe(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Re(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const s of t){const o=s._stacks;if(!o||o[i]===void 0||o[i][n]===void 0)return;delete o[i][n],o[i]._visualValues!==void 0&&o[i]._visualValues[n]!==void 0&&delete o[i]._visualValues[n]}}}const ai=e=>e==="reset"||e==="none",co=(e,t)=>t?e:Object.assign({},e),td=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ua(n,!0),values:null};class _e{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=oi(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Re(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(u,d,f,g)=>u==="x"?d:u==="r"?g:f,o=n.xAxisID=j(i.xAxisID,ri(t,"x")),r=n.yAxisID=j(i.yAxisID,ri(t,"y")),a=n.rAxisID=j(i.rAxisID,ri(t,"r")),l=n.indexAxis,c=n.iAxisID=s(l,o,r,a),h=n.vAxisID=s(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Vs(this._data,this),t._stacked&&Re(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(z(n)){const s=this._cachedMeta;this._data=Ku(n,s)}else if(i!==n){if(i){Vs(i,this);const s=this._cachedMeta;Re(s),s._parsed=[]}n&&Object.isExtensible(n)&&Ih(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const o=n._stacked;n._stacked=oi(n.vScale,n),n.stack!==i.stack&&(s=!0,Re(n),n.stack=i.stack),this._resyncElements(t),(s||o!==n._stacked)&&(lo(this,n._parsed),n._stacked=oi(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&n===s.length?!0:i._sorted,c=t>0&&i._parsed[t-1],h,u,d;if(this._parsing===!1)i._parsed=s,i._sorted=!0,d=s;else{J(s[t])?d=this.parseArrayData(i,s,t,n):z(s[t])?d=this.parseObjectData(i,s,t,n):d=this.parsePrimitiveData(i,s,t,n);const f=()=>u[a]===null||c&&u[a]<c[a];for(h=0;h<n;++h)i._parsed[h+t]=u=d[h],l&&(f()&&(l=!1),c=u);i._sorted=l}r&&lo(this,d)}parsePrimitiveData(t,n,i,s){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),h=o===r,u=new Array(s);let d,f,g;for(d=0,f=s;d<f;++d)g=d+i,u[d]={[a]:h||o.parse(c[g],g),[l]:r.parse(n[g],g)};return u}parseArrayData(t,n,i,s){const{xScale:o,yScale:r}=t,a=new Array(s);let l,c,h,u;for(l=0,c=s;l<c;++l)h=l+i,u=n[h],a[l]={x:o.parse(u[0],h),y:r.parse(u[1],h)};return a}parseObjectData(t,n,i,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let h,u,d,f;for(h=0,u=s;h<u;++h)d=h+i,f=n[d],c[h]={x:o.parse(Ce(f,a),d),y:r.parse(Ce(f,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const s=this.chart,o=this._cachedMeta,r=n[t.axis],a={keys:ua(s,!0),values:n._stacks[t.axis]._visualValues};return ro(a,r,o.index,{mode:i})}updateRangeFromParsed(t,n,i,s){const o=i[n.axis];let r=o===null?NaN:o;const a=s&&i._stacks[n.axis];s&&a&&(s.values=a,r=ro(s,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){const i=this._cachedMeta,s=i._parsed,o=i._sorted&&t===i.iScale,r=s.length,a=this._getOtherScale(t),l=td(n,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=Gu(a);let d,f;function g(){f=s[d];const m=f[a.axis];return!vt(f[t.axis])||h>m||u<m}for(d=0;d<r&&!(!g()&&(this.updateRangeFromParsed(c,t,f,l),o));++d);if(o){for(d=r-1;d>=0;--d)if(!g()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=n.length;s<o;++s)r=n[s][t.axis],vt(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,s=n.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Xu(j(this.options.clip,Uu(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],o=n.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||s.length-a,c=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,o,a,l),h=a;h<a+l;++h){const u=s[h];u.hidden||(u.active&&c?r.push(u):u.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=Qu(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=Zu(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const s=n==="active",o=this._cachedDataOpts,r=t+"-"+n,a=o[r],l=this.enableOptionSharing&&Ze(i);if(a)return co(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),u=s?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),h),f=Object.keys(K.elements[t]),g=()=>this.getContext(i,s,n),m=c.resolveNamedOptions(d,f,g,u);return m.$shared&&(m.$shared=l,o[r]=Object.freeze(co(m,l))),m}_resolveAnimations(t,n,i){const s=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(s.options.animation!==!1){const h=this.chart.config,u=h.datasetAnimationScopeKeys(this._type,n),d=h.getOptionScopes(this.getDataset(),u);l=h.createResolver(d,this.getContext(t,i,n))}const c=new ha(s,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ai(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(n,o)||o!==s;return this.updateSharedOptions(o,n,i),{sharedOptions:o,includeOptions:r}}updateElement(t,n,i,s){ai(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!ai(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;const o=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,o=n.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o<s&&this._removeElements(o,s-o)}_insertElements(t,n,i=!0){const s=this._cachedMeta,o=s.data,r=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),i&&this.updateElements(o,t,n,"reset")}updateElements(t,n,i,s){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,n);i._stacked&&Re(i,s)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,s]=t;this[n](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}R(_e,"defaults",{}),R(_e,"datasetElementType",null),R(_e,"dataElementType",null);function ed(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let s=0,o=n.length;s<o;s++)i=i.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=Kr(i.sort((s,o)=>s-o))}return e._cache.$bar}function nd(e){const t=e.iScale,n=ed(t,e.type);let i=t._length,s,o,r,a;const l=()=>{r===32767||r===-32768||(Ze(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(s=0,o=n.length;s<o;++s)r=t.getPixelForValue(n[s]),l();for(a=void 0,s=0,o=t.ticks.length;s<o;++s)r=t.getPixelForTick(s),l();return i}function id(e,t,n,i){const s=n.barThickness;let o,r;return V(s)?(o=t.min*n.categoryPercentage,r=n.barPercentage):(o=s*i,r=1),{chunk:o/i,ratio:r,start:t.pixels[e]-o/2}}function sd(e,t,n,i){const s=t.pixels,o=s[e];let r=e>0?s[e-1]:null,a=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/i,ratio:n.barPercentage,start:c}}function od(e,t,n,i){const s=n.parse(e[0],i),o=n.parse(e[1],i),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}function da(e,t,n,i){return J(e)?od(e,t,n,i):t[n.axis]=n.parse(e,i),t}function ho(e,t,n,i){const s=e.iScale,o=e.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,u,d;for(c=n,h=n+i;c<h;++c)d=t[c],u={},u[s.axis]=a||s.parse(r[c],c),l.push(da(d,u,o,c));return l}function li(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function rd(e,t,n){return e!==0?Dt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function ad(e){let t,n,i,s,o;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:t,top:s,bottom:o}}function ld(e,t,n,i){let s=t.borderSkipped;const o={};if(!s){e.borderSkipped=o;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:h}=ad(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?s=c:(n._bottom||0)===i?s=h:(o[uo(h,r,a,l)]=!0,s=c)),o[uo(s,r,a,l)]=!0,e.borderSkipped=o}function uo(e,t,n,i){return i?(e=cd(e,t,n),e=fo(e,n,t)):e=fo(e,t,n),e}function cd(e,t,n){return e===t?n:e===n?t:e}function fo(e,t,n){return e==="start"?t:e==="end"?n:e}function hd(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class ci extends _e{parsePrimitiveData(t,n,i,s){return ho(t,n,i,s)}parseArrayData(t,n,i,s){return ho(t,n,i,s)}parseObjectData(t,n,i,s){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,h=r.axis==="x"?a:l,u=[];let d,f,g,m;for(d=i,f=i+s;d<f;++d)m=n[d],g={},g[o.axis]=o.parse(Ce(m,c),d),u.push(da(Ce(m,h),g,r,d));return u}updateRangeFromParsed(t,n,i,s){super.updateRangeFromParsed(t,n,i,s);const o=i._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:s}=n,o=this.getParsed(t),r=o._custom,a=li(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(o[s.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,s){const o=s==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,s);for(let f=n;f<n+i;f++){const g=this.getParsed(f),m=o||V(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,h),b=(g._stacks||{})[a.axis],x={horizontal:c,base:m.base,enableBorderRadius:!b||li(g._custom)||r===b._top||r===b._bottom,x:c?m.head:p.center,y:c?p.center:m.head,height:c?p.size:Math.abs(m.size),width:c?Math.abs(m.size):p.size};d&&(x.options=u||this.resolveDataElementOptions(f,t[f].active?"active":s));const v=x.options||t[f].options;ld(x,v,b,r),hd(x,v,h.ratio),this.updateElement(t[f],f,x,s)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=i.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=h=>{const u=h._parsed.find(f=>f[i.axis]===l),d=u&&u[h.vScale.axis];if(V(d)||isNaN(d))return!0};for(const h of s)if(!(n!==void 0&&c(h))&&((o===!1||r.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&r.push(h.stack),h.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,i){const s=this._getStacks(t,i),o=n!==void 0?s.indexOf(n):-1;return o===-1?s.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,s=[];let o,r;for(o=0,r=n.data.length;o<r;++o)s.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const a=t.barThickness;return{min:a||nd(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=li(c);let u=l[n.axis],d=0,f=i?this.applyStack(n,l,i):u,g,m;f!==u&&(d=f-u,f=u),h&&(u=c.barStart,f=c.barEnd-c.barStart,u!==0&&Dt(u)!==Dt(c.barEnd)&&(d=0),d+=u);const p=!V(o)&&!h?o:d;let b=n.getPixelForValue(p);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(d+f):g=b,m=g-b,Math.abs(m)<r){m=rd(m,n,a)*r,u===a&&(b-=m/2);const x=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),_=Math.min(x,v),y=Math.max(x,v);b=Math.max(Math.min(b,y),_),g=b+m,i&&!h&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(g)-n.getValueForPixel(b))}if(b===n.getPixelForValue(a)){const x=Dt(m)*n.getLineWidthForValue(a)/2;b+=x,m-=x}return{size:m,base:b,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const i=n.scale,s=this.options,o=s.skipNull,r=j(s.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,h=s.barThickness==="flex"?sd(t,n,s,c):id(t,n,s,c),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=h.start+h.chunk*u+h.chunk/2,l=Math.min(r,h.chunk*h.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(r,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,s=i.length;let o=0;for(;o<s;++o)this.getParsed(o)[n.axis]!==null&&!i[o].hidden&&i[o].draw(this._ctx)}}R(ci,"id","bar"),R(ci,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),R(ci,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class hi extends _e{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=zh(n,s,r);this._drawStart=a,this._drawCount=l,Nh(n)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,n,i,s){const o=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:u}=this._getSharedOptions(n,s),d=r.axis,f=a.axis,{spanGaps:g,segment:m}=this.options,p=Qe(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||s==="none",x=n+i,v=t.length;let _=n>0&&this.getParsed(n-1);for(let y=0;y<v;++y){const w=t[y],k=b?w:{};if(y<n||y>=x){k.skip=!0;continue}const S=this.getParsed(y),C=V(S[f]),D=k[d]=r.getPixelForValue(S[d],y),P=k[f]=o||C?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,S,l):S[f],y);k.skip=isNaN(D)||isNaN(P)||C,k.stop=y>0&&Math.abs(S[d]-_[d])>p,m&&(k.parsed=S,k.raw=c.data[y]),u&&(k.options=h||this.resolveDataElementOptions(y,w.active?"active":s)),b||this.updateElement(w,y,k,s),_=S}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}R(hi,"id","line"),R(hi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),R(hi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function ne(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ss{constructor(t){R(this,"options");this.options=t||{}}static override(t){Object.assign(ss.prototype,t)}init(){}formats(){return ne()}parse(){return ne()}format(){return ne()}add(){return ne()}diff(){return ne()}startOf(){return ne()}endOf(){return ne()}}var ud={_date:ss};function dd(e,t,n,i){const{controller:s,data:o,_sorted:r}=e,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?Lh:le;if(i){if(s._sharedOptions){const c=o[0],h=typeof c.getRange=="function"&&c.getRange(t);if(h){const u=l(o,t,n-h),d=l(o,t,n+h);return{lo:u.lo,hi:d.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function cn(e,t,n,i,s){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:u,hi:d}=dd(o[a],t,r,s);for(let f=u;f<=d;++f){const g=h[f];g.skip||i(g,c,f)}}}function fd(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,s){const o=t?Math.abs(i.x-s.x):0,r=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function ui(e,t,n,i,s){const o=[];return!s&&!e.isPointInArea(t)||cn(e,n,t,function(a,l,c){!s&&!tn(a,e.chartArea,0)||a.inRange(t.x,t.y,i)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function pd(e,t,n,i){let s=[];function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],i),{angle:u}=Ur(r,{x:t.x,y:t.y});Ui(u,c,h)&&s.push({element:r,datasetIndex:a,index:l})}return cn(e,n,t,o),s}function gd(e,t,n,i,s,o){let r=[];const a=fd(n);let l=Number.POSITIVE_INFINITY;function c(h,u,d){const f=h.inRange(t.x,t.y,s);if(i&&!f)return;const g=h.getCenterPoint(s);if(!(!!o||e.isPointInArea(g))&&!f)return;const p=a(t,g);p<l?(r=[{element:h,datasetIndex:u,index:d}],l=p):p===l&&r.push({element:h,datasetIndex:u,index:d})}return cn(e,n,t,c),r}function di(e,t,n,i,s,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!i?pd(e,t,n,s):gd(e,t,n,i,s,o)}function po(e,t,n,i,s){const o=[],r=n==="x"?"inXRange":"inYRange";let a=!1;return cn(e,n,t,(l,c,h)=>{l[r]&&l[r](t[n],s)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,s))}),i&&!a?[]:o}var md={evaluateInteractionItems:cn,modes:{index(e,t,n,i){const s=oe(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?ui(e,s,o,i,r):di(e,s,o,!1,i,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,u=c.data[h];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:h})}),l):[]},dataset(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?ui(e,s,o,i,r):di(e,s,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return ui(e,s,o,i,r)},nearest(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return di(e,s,o,n.intersect,i,r)},x(e,t,n,i){const s=oe(t,e);return po(e,s,"x",n.intersect,i)},y(e,t,n,i){const s=oe(t,e);return po(e,s,"y",n.intersect,i)}}};const fa=["left","top","right","bottom"];function Le(e,t){return e.filter(n=>n.pos===t)}function go(e,t){return e.filter(n=>fa.indexOf(n.pos)===-1&&n.box.axis===t)}function Fe(e,t){return e.sort((n,i)=>{const s=t?i:n,o=t?n:i;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function bd(e){const t=[];let n,i,s,o,r,a;for(n=0,i=(e||[]).length;n<i;++n)s=e[n],{position:o,options:{stack:r,stackWeight:a=1}}=s,t.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return t}function xd(e){const t={};for(const n of e){const{stack:i,pos:s,stackWeight:o}=n;if(!i||!fa.includes(s))continue;const r=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function yd(e,t){const n=xd(e),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*i:l&&t.availableWidth,a.height=s):(a.width=i,a.height=h?h*s:l&&t.availableHeight)}return n}function vd(e){const t=bd(e),n=Fe(t.filter(c=>c.box.fullSize),!0),i=Fe(Le(t,"left"),!0),s=Fe(Le(t,"right")),o=Fe(Le(t,"top"),!0),r=Fe(Le(t,"bottom")),a=go(t,"x"),l=go(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Le(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}function mo(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function pa(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function _d(e,t,n,i){const{pos:s,box:o}=n,r=e.maxPadding;if(!z(s)){n.size&&(e[s]-=n.size);const u=i[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?o.height:o.width),n.size=u.size/u.count,e[s]+=n.size}o.getPadding&&pa(r,o.getPadding());const a=Math.max(0,t.outerWidth-mo(r,e,"left","right")),l=Math.max(0,t.outerHeight-mo(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:h}:{same:h,other:c}}function wd(e){const t=e.maxPadding;function n(i){const s=Math.max(t[i]-e[i],0);return e[i]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Sd(e,t){const n=t.maxPadding;function i(s){const o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return i(e?["left","right"]:["top","bottom"])}function ze(e,t,n,i){const s=[];let o,r,a,l,c,h;for(o=0,r=e.length,c=0;o<r;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,Sd(a.horizontal,t));const{same:u,other:d}=_d(t,n,a,i);c|=u&&s.length,h=h||d,l.fullSize||s.push(a)}return c&&ze(s,t,n,i)||h}function vn(e,t,n,i,s){e.top=n,e.left=t,e.right=t+i,e.bottom=n+s,e.width=i,e.height=s}function bo(e,t,n,i){const s=n.padding;let{x:o,y:r}=t;for(const a of e){const l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){const u=t.w*h,d=c.size||l.height;Ze(c.start)&&(r=c.start),l.fullSize?vn(l,s.left,r,n.outerWidth-s.right-s.left,d):vn(l,t.left+c.placed,r,u,d),c.start=r,c.placed+=u,r=l.bottom}else{const u=t.h*h,d=c.size||l.width;Ze(c.start)&&(o=c.start),l.fullSize?vn(l,o,s.top,d,n.outerHeight-s.bottom-s.top):vn(l,o,t.top+c.placed,d,u),c.start=o,c.placed+=u,o=l.right}}t.x=o,t.y=r}var bt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const s=_t(e.options.layout.padding),o=Math.max(t-s.width,0),r=Math.max(n-s.height,0),a=vd(e.boxes),l=a.vertical,c=a.horizontal;W(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const h=l.reduce((m,p)=>p.box.options&&p.box.options.display===!1?m:m+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);pa(d,_t(i));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),g=yd(l.concat(c),u);ze(a.fullSize,f,u,g),ze(l,f,u,g),ze(c,f,u,g)&&ze(l,f,u,g),wd(f),bo(a.leftAndTop,f,u,g),f.x+=f.w,f.y+=f.h,bo(a.rightAndBottom,f,u,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},W(a.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class ga{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,s){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(t){return!0}updateConfig(t){}}class kd extends ga{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Tn="$chartjs",Md={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xo=e=>e===null||e==="";function Cd(e,t){const n=e.style,i=e.getAttribute("height"),s=e.getAttribute("width");if(e[Tn]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",xo(s)){const o=to(e,"width");o!==void 0&&(e.width=o)}if(xo(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=to(e,"height");o!==void 0&&(e.height=o)}return e}const ma=Ou?{passive:!0}:!1;function Pd(e,t,n){e&&e.addEventListener(t,n,ma)}function Od(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ma)}function Dd(e,t){const n=Md[e.type]||e.type,{x:i,y:s}=oe(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Nn(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Ad(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Nn(a.addedNodes,i),r=r&&!Nn(a.removedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Ed(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Nn(a.removedNodes,i),r=r&&!Nn(a.addedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const nn=new Map;let yo=0;function ba(){const e=window.devicePixelRatio;e!==yo&&(yo=e,nn.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Td(e,t){nn.size||window.addEventListener("resize",ba),nn.set(e,t)}function Rd(e){nn.delete(e),nn.size||window.removeEventListener("resize",ba)}function Ld(e,t,n){const i=e.canvas,s=i&&is(i);if(!s)return;const o=Gr((a,l)=>{const c=s.clientWidth;n(a,l),c<s.clientWidth&&n()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(s),Td(e,o),r}function fi(e,t,n){n&&n.disconnect(),t==="resize"&&Rd(e)}function Fd(e,t,n){const i=e.canvas,s=Gr(o=>{e.ctx!==null&&n(Dd(o,e))},e);return Pd(i,t,s),s}class Id extends ga{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Cd(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[Tn])return!1;const i=n[Tn].initial;["height","width"].forEach(o=>{const r=i[o];V(r)?n.removeAttribute(o):n.setAttribute(o,r)});const s=i.style||{};return Object.keys(s).forEach(o=>{n.style[o]=s[o]}),n.width=n.width,delete n[Tn],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),r={attach:Ad,detach:Ed,resize:Ld}[n]||Fd;s[n]=r(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),s=i[n];if(!s)return;({attach:fi,detach:fi,resize:fi}[n]||Od)(t,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,s){return Pu(t,n,i,s)}isAttached(t){const n=t&&is(t);return!!(n&&n.isConnected)}}function jd(e){return!ns()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?kd:Id}var An;let $t=(An=class{constructor(){R(this,"x");R(this,"y");R(this,"active",!1);R(this,"options");R(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return Qe(this.x)&&Qe(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const s={};return t.forEach(o=>{s[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),s}},R(An,"defaults",{}),R(An,"defaultRoutes"),An);function $d(e,t){const n=e.options.ticks,i=zd(e),s=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?Bd(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>s)return Hd(t,c,o,r/s),c;const h=Nd(o,t,s);if(r>0){let u,d;const f=r>1?Math.round((l-a)/(r-1)):null;for(_n(t,c,h,V(f)?0:a-f,a),u=0,d=r-1;u<d;u++)_n(t,c,h,o[u],o[u+1]);return _n(t,c,h,l,V(f)?t.length:l+f),c}return _n(t,c,h),c}function zd(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(i,s))}function Nd(e,t,n){const i=Wd(e),s=t.length/n;if(!i)return Math.max(s,1);const o=Oh(i);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>s)return l}return Math.max(s,1)}function Bd(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function Hd(e,t,n,i){let s=0,o=n[0],r;for(i=Math.ceil(i),r=0;r<e.length;r++)r===o&&(t.push(e[r]),s++,o=n[s*i])}function _n(e,t,n,i,s){const o=j(i,0),r=Math.min(j(s,e.length),e.length);let a=0,l,c,h;for(n=Math.ceil(n),s&&(l=s-i,n=l/Math.floor(l/n)),h=o;h<0;)a++,h=Math.round(o+a*n);for(c=Math.max(o,0);c<r;c++)c===h&&(t.push(e[c]),a++,h=Math.round(o+a*n))}function Wd(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const Vd=e=>e==="left"?"right":e==="right"?"left":e,vo=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,_o=(e,t)=>Math.min(t||e,e);function wo(e,t){const n=[],i=e.length/t,s=e.length;let o=0;for(;o<s;o+=i)n.push(e[Math.floor(o)]);return n}function Yd(e,t,n){const i=e.ticks.length,s=Math.min(t,i-1),o=e._startPixel,r=e._endPixel,a=1e-6;let l=e.getPixelForTick(s),c;if(!(n&&(i===1?c=Math.max(l-o,r-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(s-1))/2,l+=s<t?c:-c,l<o-a||l>r+a)))return l}function Ud(e,t){W(e,n=>{const i=n.gc,s=i.length/2;let o;if(s>t){for(o=0;o<s;++o)delete n.data[i[o]];i.splice(0,s)}})}function Ie(e){return e.drawTicks?e.tickLength:0}function So(e,t){if(!e.display)return 0;const n=at(e.font,t),i=_t(e.padding);return(J(e.text)?e.text.length:1)*n.lineHeight+i.height}function Xd(e,t){return pe(e,{scale:t,type:"scale"})}function Kd(e,t,n){return pe(e,{tick:n,index:t,type:"tick"})}function qd(e,t,n){let i=Ki(e);return(n&&t!=="right"||!n&&t==="right")&&(i=Vd(i)),i}function Gd(e,t,n,i){const{top:s,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:h}=l;let u=0,d,f,g;const m=r-s,p=a-o;if(e.isHorizontal()){if(f=ot(i,o,a),z(n)){const b=Object.keys(n)[0],x=n[b];g=h[b].getPixelForValue(x)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=vo(e,n,t);d=a-o}else{if(z(n)){const b=Object.keys(n)[0],x=n[b];f=h[b].getPixelForValue(x)-p+t}else n==="center"?f=(c.left+c.right)/2-p+t:f=vo(e,n,t);g=ot(i,r,s),u=n==="left"?-it:it}return{titleX:f,titleY:g,maxWidth:d,rotation:u}}class De extends $t{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return t=St(t,Number.POSITIVE_INFINITY),n=St(n,Number.NEGATIVE_INFINITY),i=St(i,Number.POSITIVE_INFINITY),s=St(s,Number.NEGATIVE_INFINITY),{min:St(t,i),max:St(n,s),minDefined:vt(t),maxDefined:vt(n)}}getMinMax(t){let{min:n,max:i,minDefined:s,maxDefined:o}=this.getUserBounds(),r;if(s&&o)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),s||(n=Math.min(n,r.min)),o||(i=Math.max(i,r.max));return n=o&&n>i?i:n,i=s&&n>i?n:i,{min:St(n,St(i,n)),max:St(i,St(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Y(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ou(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?wo(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=$d(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Y(this.options.afterUpdate,[this])}beforeSetDimensions(){Y(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Y(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Y(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Y(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i],o.label=Y(n.callback,[o.value,i,t],this)}afterTickToLabelConversion(){Y(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Y(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=_o(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,o=n.maxRotation;let r=s,a,l,c;if(!this._isVisible()||!n.display||s>=o||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const h=this._getLabelSizes(),u=h.widest.width,d=h.highest.height,f=rt(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/i:f/(i-1),u+6>a&&(a=f/(i-(t.offset?.5:1)),l=this.maxHeight-Ie(t.grid)-n.padding-So(t.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),r=Eh(Math.min(Math.asin(rt((h.highest.height+6)/a,-1,1)),Math.asin(rt(l/c,-1,1))-Math.asin(rt(d/c,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Y(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Y(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=So(s,n.options.font);if(a?(t.width=this.maxWidth,t.height=Ie(o)+l):(t.height=this.maxHeight,t.width=Ie(o)+l),i.display&&this.ticks.length){const{first:c,last:h,widest:u,highest:d}=this._getLabelSizes(),f=i.padding*2,g=ae(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(a){const b=i.mirror?0:p*u.width+m*d.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=i.mirror?0:m*u.width+p*d.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(c,h,p,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,s){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,f=0;l?c?(d=s*t.width,f=i*n.height):(d=i*t.height,f=s*n.width):o==="start"?f=n.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,f=n.width/2),this.paddingLeft=Math.max((d-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-u+r)*this.width/(this.width-u),0)}else{let h=n.height/2,u=t.height/2;o==="start"?(h=0,u=t.height):o==="end"&&(h=n.height,u=0),this.paddingTop=h+r,this.paddingBottom=u+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Y(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)V(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=wo(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:s,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(n/_o(n,i));let c=0,h=0,u,d,f,g,m,p,b,x,v,_,y;for(u=0;u<n;u+=l){if(g=t[u].label,m=this._resolveTickFontOptions(u),s.font=p=m.string,b=o[p]=o[p]||{data:{},gc:[]},x=m.lineHeight,v=_=0,!V(g)&&!J(g))v=qs(s,b.data,b.gc,v,g),_=x;else if(J(g))for(d=0,f=g.length;d<f;++d)y=g[d],!V(y)&&!J(y)&&(v=qs(s,b.data,b.gc,v,y),_+=x);r.push(v),a.push(_),c=Math.max(v,c),h=Math.max(_,h)}Ud(o,n);const w=r.indexOf(c),k=a.indexOf(h),S=C=>({width:r[C]||0,height:a[C]||0});return{first:S(0),last:S(n-1),widest:S(w),highest:S(k),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Rh(this._alignToPixels?ee(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=Kd(this.getContext(),t,i))}return this.$context||(this.$context=Xd(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=ae(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*i>a*s?a/i:l/s:l*s<a*i?l/i:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,s=this.options,{grid:o,position:r,border:a}=s,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=Ie(o),f=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(L){return ee(i,L,m)};let x,v,_,y,w,k,S,C,D,P,O,E;if(r==="top")x=b(this.bottom),k=this.bottom-d,C=x-p,P=b(t.top)+p,E=t.bottom;else if(r==="bottom")x=b(this.top),P=t.top,E=b(t.bottom)-p,k=x+p,C=this.top+d;else if(r==="left")x=b(this.right),w=this.right-d,S=x-p,D=b(t.left)+p,O=t.right;else if(r==="right")x=b(this.left),D=t.left,O=b(t.right)-p,w=x+p,S=this.left+d;else if(n==="x"){if(r==="center")x=b((t.top+t.bottom)/2+.5);else if(z(r)){const L=Object.keys(r)[0],F=r[L];x=b(this.chart.scales[L].getPixelForValue(F))}P=t.top,E=t.bottom,k=x+p,C=k+d}else if(n==="y"){if(r==="center")x=b((t.left+t.right)/2);else if(z(r)){const L=Object.keys(r)[0],F=r[L];x=b(this.chart.scales[L].getPixelForValue(F))}w=x-p,S=w-d,D=t.left,O=t.right}const I=j(s.ticks.maxTicksLimit,u),T=Math.max(1,Math.ceil(u/I));for(v=0;v<u;v+=T){const L=this.getContext(v),F=o.setContext(L),B=a.setContext(L),$=F.lineWidth,N=F.color,tt=B.dash||[],Q=B.dashOffset,nt=F.tickWidth,U=F.tickColor,X=F.tickBorderDash||[],q=F.tickBorderDashOffset;_=Yd(this,v,l),_!==void 0&&(y=ee(i,_,$),c?w=S=D=O=y:k=C=P=E=y,f.push({tx1:w,ty1:k,tx2:S,ty2:C,x1:D,y1:P,x2:O,y2:E,width:$,color:N,borderDash:tt,borderDashOffset:Q,tickWidth:nt,tickColor:U,tickBorderDash:X,tickBorderDashOffset:q}))}return this._ticksLength=u,this._borderValue=x,f}_computeLabelItems(t){const n=this.axis,i=this.options,{position:s,ticks:o}=i,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:u}=o,d=Ie(i.grid),f=d+h,g=u?-h:f,m=-ae(this.labelRotation),p=[];let b,x,v,_,y,w,k,S,C,D,P,O,E="middle";if(s==="top")w=this.bottom-g,k=this._getXAxisLabelAlignment();else if(s==="bottom")w=this.top+g,k=this._getXAxisLabelAlignment();else if(s==="left"){const T=this._getYAxisLabelAlignment(d);k=T.textAlign,y=T.x}else if(s==="right"){const T=this._getYAxisLabelAlignment(d);k=T.textAlign,y=T.x}else if(n==="x"){if(s==="center")w=(t.top+t.bottom)/2+f;else if(z(s)){const T=Object.keys(s)[0],L=s[T];w=this.chart.scales[T].getPixelForValue(L)+f}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")y=(t.left+t.right)/2-f;else if(z(s)){const T=Object.keys(s)[0],L=s[T];y=this.chart.scales[T].getPixelForValue(L)}k=this._getYAxisLabelAlignment(d).textAlign}n==="y"&&(l==="start"?E="top":l==="end"&&(E="bottom"));const I=this._getLabelSizes();for(b=0,x=a.length;b<x;++b){v=a[b],_=v.label;const T=o.setContext(this.getContext(b));S=this.getPixelForTick(b)+o.labelOffset,C=this._resolveTickFontOptions(b),D=C.lineHeight,P=J(_)?_.length:1;const L=P/2,F=T.color,B=T.textStrokeColor,$=T.textStrokeWidth;let N=k;r?(y=S,k==="inner"&&(b===x-1?N=this.options.reverse?"left":"right":b===0?N=this.options.reverse?"right":"left":N="center"),s==="top"?c==="near"||m!==0?O=-P*D+D/2:c==="center"?O=-I.highest.height/2-L*D+D:O=-I.highest.height+D/2:c==="near"||m!==0?O=D/2:c==="center"?O=I.highest.height/2-L*D:O=I.highest.height-P*D,u&&(O*=-1),m!==0&&!T.showLabelBackdrop&&(y+=D/2*Math.sin(m))):(w=S,O=(1-P)*D/2);let tt;if(T.showLabelBackdrop){const Q=_t(T.backdropPadding),nt=I.heights[b],U=I.widths[b];let X=O-Q.top,q=0-Q.left;switch(E){case"middle":X-=nt/2;break;case"bottom":X-=nt;break}switch(k){case"center":q-=U/2;break;case"right":q-=U;break;case"inner":b===x-1?q-=U:b>0&&(q-=U/2);break}tt={left:q,top:X,width:U+Q.width,height:nt+Q.height,color:T.backdropColor}}p.push({label:_,font:C,textOffset:O,options:{rotation:m,color:F,strokeColor:B,strokeWidth:$,textAlign:N,textBaseline:E,translation:[y,w],backdrop:tt}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-ae(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return n==="left"?s?(h=this.right+o,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h=this.left)):n==="right"?s?(h=this.left+o,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:s,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,s,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(o=>o.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(o=0,r=s.length;o<r;++o){const l=s[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:s}}=this,o=i.setContext(this.getContext()),r=i.display?o.width:0;if(!r)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,u,d;this.isHorizontal()?(c=ee(t,this.left,r)-r/2,h=ee(t,this.right,a)+a/2,u=d=l):(u=ee(t,this.top,r)-r/2,d=ee(t,this.bottom,a)+a/2,c=h=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,u),n.lineTo(h,d),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&Gi(i,s);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,h=r.textOffset;en(i,c,0,h,l,a)}s&&Ji(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const o=at(i.font),r=_t(i.padding),a=i.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||z(n)?(l+=r.bottom,J(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:u,rotation:d}=Gd(this,l,n,a);en(t,i.text,0,0,o,{color:i.color,maxWidth:u,rotation:d,textAlign:qd(a,n,s),textBaseline:"middle",translation:[c,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=j(t.grid&&t.grid.z,-1),s=j(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==De.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let o,r;for(o=0,r=n.length;o<r;++o){const a=n[o];a[i]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return at(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class wn{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;Qd(n)&&(i=this.register(n));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,Jd(t,r,i),this.override&&K.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,s=this.scope;i in n&&delete n[i],s&&i in K[s]&&(delete K[s][i],this.override&&delete fe[i])}}function Jd(e,t,n){const i=Je(Object.create(null),[n?K.get(n):{},K.get(t),e.defaults]);K.set(t,i),e.defaultRoutes&&Zd(t,e.defaultRoutes),e.descriptors&&K.describe(t,e.descriptors)}function Zd(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),s=i.pop(),o=[e].concat(i).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");K.route(o,s,l,a)})}function Qd(e){return"id"in e&&"defaults"in e}class tf{constructor(){this.controllers=new wn(_e,"datasets",!0),this.elements=new wn($t,"elements"),this.plugins=new wn(Object,"plugins"),this.scales=new wn(De,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(s=>{const o=i||this._getRegistryForType(s);i||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):W(s,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,i){const s=Yi(t);Y(i["before"+s],[],i),n[t](i),Y(i["after"+s],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var Mt=new tf;class ef{constructor(){this._init=[]}notify(t,n,i,s){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(o,t,n,i);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,n,i,s){s=s||{};for(const o of t){const r=o.plugin,a=r[i],l=[n,s,o.options];if(Y(a,l,r)===!1&&s.cancelable)return!1}return!0}invalidate(){V(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,s=j(i.options&&i.options.plugins,{}),o=nf(i);return s===!1&&!n?[]:of(t,o,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,s=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),t,"stop"),this._notify(s(i,n),t,"start")}}function nf(e){const t={},n=[],i=Object.keys(Mt.plugins.items);for(let o=0;o<i.length;o++)n.push(Mt.getPlugin(i[o]));const s=e.plugins||[];for(let o=0;o<s.length;o++){const r=s[o];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function sf(e,t){return!t&&e===!1?null:e===!0?{}:e}function of(e,{plugins:t,localIds:n},i,s){const o=[],r=e.getContext();for(const a of t){const l=a.id,c=sf(i[l],s);c!==null&&o.push({plugin:a,options:rf(e.config,{plugin:a,local:n[l]},c,r)})}return o}function rf(e,{plugin:t,local:n},i,s){const o=e.pluginScopeKeys(t),r=e.getOptionScopes(i,o);return n&&t.defaults&&r.push(t.defaults),e.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Pi(e,t){const n=K.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function af(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function lf(e,t){return e===t?"_index_":"_value_"}function ko(e){if(e==="x"||e==="y"||e==="r")return e}function cf(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Oi(e,...t){if(ko(e))return e;for(const n of t){const i=n.axis||cf(n.position)||e.length>1&&ko(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Mo(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function hf(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return Mo(e,"x",n[0])||Mo(e,"y",n[0])}return{}}function uf(e,t){const n=fe[e.type]||{scales:{}},i=t.scales||{},s=Pi(e.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!z(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Oi(r,a,hf(r,e),K.scales[a.type]),c=lf(l,s),h=n.scales||{};o[r]=Ve(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Pi(a,t),h=(fe[a]||{}).scales||{};Object.keys(h).forEach(u=>{const d=af(u,l),f=r[d+"AxisID"]||d;o[f]=o[f]||Object.create(null),Ve(o[f],[{axis:d},i[f],h[u]])})}),Object.keys(o).forEach(r=>{const a=o[r];Ve(a,[K.scales[a.type],K.scale])}),o}function xa(e){const t=e.options||(e.options={});t.plugins=j(t.plugins,{}),t.scales=uf(e,t)}function ya(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function df(e){return e=e||{},e.data=ya(e.data),xa(e),e}const Co=new Map,va=new Set;function Sn(e,t){let n=Co.get(e);return n||(n=t(),Co.set(e,n),va.add(n)),n}const je=(e,t,n)=>{const i=Ce(t,n);i!==void 0&&e.add(i)};class ff{constructor(t){this._config=df(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=ya(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),xa(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Sn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Sn(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Sn(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return Sn(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let s=i.get(t);return(!s||n)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,n,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(n);if(a)return a;const l=new Set;n.forEach(h=>{t&&(l.add(t),h.forEach(u=>je(l,t,u))),h.forEach(u=>je(l,s,u)),h.forEach(u=>je(l,fe[o]||{},u)),h.forEach(u=>je(l,K,u)),h.forEach(u=>je(l,Mi,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),va.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,fe[n]||{},K.datasets[n]||{},{type:n},K,Mi]}resolveNamedOptions(t,n,i,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Po(this._resolverCache,t,s);let l=r;if(gf(r,n)){o.$shared=!1,i=Xt(i)?i():i;const c=this.createResolver(t,i,a);l=Pe(r,i,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,i=[""],s){const{resolver:o}=Po(this._resolverCache,t,i);return z(n)?Pe(o,n,void 0,s):o}}function Po(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const s=n.join();let o=i.get(s);return o||(o={resolver:Qi(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,o)),o}const pf=e=>z(e)&&Object.getOwnPropertyNames(e).some(t=>Xt(e[t]));function gf(e,t){const{isScriptable:n,isIndexable:i}=na(e);for(const s of t){const o=n(s),r=i(s),a=(r||o)&&e[s];if(o&&(Xt(a)||pf(a))||r&&J(a))return!0}return!1}var mf="4.4.7";const bf=["top","bottom","left","right","chartArea"];function Oo(e,t){return e==="top"||e==="bottom"||bf.indexOf(e)===-1&&t==="x"}function Do(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function Ao(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Y(n&&n.onComplete,[e],t)}function xf(e){const t=e.chart,n=t.options.animation;Y(n&&n.onProgress,[e],t)}function _a(e){return ns()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Rn={},Eo=e=>{const t=_a(e);return Object.values(Rn).filter(n=>n.canvas===t).pop()};function yf(e,t,n){const i=Object.keys(e);for(const s of i){const o=+s;if(o>=t){const r=e[s];delete e[s],(n>0||o>t)&&(e[o+n]=r)}}}function vf(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function kn(e,t,n){return e.options.clip?e[n]:t[n]}function _f(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:kn(n,t,"left"),right:kn(n,t,"right"),top:kn(i,t,"top"),bottom:kn(i,t,"bottom")}:t}class Ct{static register(...t){Mt.add(...t),To()}static unregister(...t){Mt.remove(...t),To()}constructor(t,n){const i=this.config=new ff(n),s=_a(t),o=Eo(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||jd(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=yh(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ef,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=jh(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],Rn[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Tt.listen(this,"complete",Ao),Tt.listen(this,"progress",xf),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:o}=this;return V(t)?n&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Mt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Gs(this.canvas,this.ctx),this}stop(){return Tt.stop(this),this}resize(t,n){Tt.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,n,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Qs(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Y(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};W(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Oi(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),W(o,r=>{const a=r.options,l=a.id,c=Oi(l,a),h=j(a.type,r.dtype);(a.position===void 0||Oo(a.position,c)!==Oo(r.dposition))&&(a.position=r.dposition),s[l]=!0;let u=null;if(l in i&&i[l].type===h)u=i[l];else{const d=Mt.getScale(h);u=new d({id:l,type:h,ctx:this.ctx,chart:this}),i[u.id]=u}u.init(a,t)}),W(s,(r,a)=>{r||delete i[a]}),W(i,r=>{bt.configure(this,r,r.options),bt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(Do("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const o=n[i];let r=this.getDatasetMeta(i);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(i),r=this.getDatasetMeta(i)),r.type=a,r.indexAxis=o.indexAxis||Pi(a,this.options),r.order=o.order||0,r.index=i,r.label=""+o.label,r.visible=this.isDatasetVisible(i),r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{const l=Mt.getController(a),{datasetElementType:c,dataElementType:h}=K.datasets[a];Object.assign(l,{dataElementType:Mt.getElement(h),datasetElementType:c&&Mt.getElement(c)}),r.controller=new l(this,i),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){W(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c<h;c++){const{controller:u}=this.getDatasetMeta(c),d=!s&&o.indexOf(u)===-1;u.buildOrUpdateElements(d),r=Math.max(+u.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||W(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Do("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){W(this.scales,t=>{bt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Ns(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:o}of n){const r=i==="_removeElements"?-o:o;yf(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=i(0);for(let o=1;o<n;o++)if(!Ns(s,i(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;bt.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],W(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Xt(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Tt.has(this)?this.attached&&!Tt.running(this)&&Tt.start(this):(this.draw(),Ao({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let s,o;for(s=0,o=n.length;s<o;++s){const r=n[s];(!t||r.visible)&&i.push(r)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,s=!i.disabled,o=_f(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&Gi(n,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&Ji(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return tn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){const o=md.modes[n];return typeof o=="function"?o(this,t,i,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let s=i.filter(o=>o&&o._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=pe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);Ze(n)?(o.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Tt.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Gs(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Rn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(o,r)=>{n.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};W(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){W(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},W(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const s=i?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Fn(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const s=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(u=>h.datasetIndex===u.datasetIndex&&h.index===u.index)),r=o(n,t),a=i?t:o(t,n);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const o=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:s=[],options:o}=this,r=n,a=this._getActiveElements(t,s,i,r),l=Mh(t),c=vf(t,this._lastEvent,i,l);i&&(this._lastEvent=null,Y(o.onHover,[t,a,this],this),l&&Y(o.onClick,[t,a,this],this));const h=!Fn(a,s);return(h||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,h}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}}R(Ct,"defaults",K),R(Ct,"instances",Rn),R(Ct,"overrides",fe),R(Ct,"registry",Mt),R(Ct,"version",mf),R(Ct,"getChart",Eo);function To(){return W(Ct.instances,e=>e._plugins.invalidate())}function wf(e,t,n){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=s/a;e.beginPath(),e.arc(o,r,a,i-c,n+c),l>s?(c=s/l,e.arc(o,r,l,n+c,i-c,!0)):e.arc(o,r,s,n+it,i-it),e.closePath(),e.clip()}function Sf(e){return Zi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function kf(e,t,n,i){const s=Sf(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(n-Math.min(o,l))*i/2;return rt(l,0,Math.min(o,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:rt(s.innerStart,0,r),innerEnd:rt(s.innerEnd,0,r)}}function be(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Bn(e,t,n,i,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,u=Math.max(t.outerRadius+i+n-c,0),d=h>0?h+i+n+c:0;let f=0;const g=s-l;if(i){const T=h>0?h-i:0,L=u>0?u-i:0,F=(T+L)/2,B=F!==0?g*F/(F+i):g;f=(g-B)/2}const m=Math.max(.001,g*u-n/Z)/u,p=(g-m)/2,b=l+p+f,x=s-p-f,{outerStart:v,outerEnd:_,innerStart:y,innerEnd:w}=kf(t,d,u,x-b),k=u-v,S=u-_,C=b+v/k,D=x-_/S,P=d+y,O=d+w,E=b+y/P,I=x-w/O;if(e.beginPath(),o){const T=(C+D)/2;if(e.arc(r,a,u,C,T),e.arc(r,a,u,T,D),_>0){const $=be(S,D,r,a);e.arc($.x,$.y,_,D,x+it)}const L=be(O,x,r,a);if(e.lineTo(L.x,L.y),w>0){const $=be(O,I,r,a);e.arc($.x,$.y,w,x+it,I+Math.PI)}const F=(x-w/d+(b+y/d))/2;if(e.arc(r,a,d,x-w/d,F,!0),e.arc(r,a,d,F,b+y/d,!0),y>0){const $=be(P,E,r,a);e.arc($.x,$.y,y,E+Math.PI,b-it)}const B=be(k,b,r,a);if(e.lineTo(B.x,B.y),v>0){const $=be(k,C,r,a);e.arc($.x,$.y,v,b-it,C)}}else{e.moveTo(r,a);const T=Math.cos(C)*u+r,L=Math.sin(C)*u+a;e.lineTo(T,L);const F=Math.cos(D)*u+r,B=Math.sin(D)*u+a;e.lineTo(F,B)}e.closePath()}function Mf(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Bn(e,t,n,i,l,s);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=r+(a%st||st))}return Bn(e,t,n,i,l,s),e.fill(),l}function Cf(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:h,borderDash:u,borderDashOffset:d}=l,f=l.borderAlign==="inner";if(!c)return;e.setLineDash(u||[]),e.lineDashOffset=d,f?(e.lineWidth=c*2,e.lineJoin=h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let g=t.endAngle;if(o){Bn(e,t,n,i,g,s);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(g=r+(a%st||st))}f&&wf(e,t,g),o||(Bn(e,t,n,i,g,s),e.stroke())}class Mn extends $t{constructor(n){super();R(this,"circumference");R(this,"endAngle");R(this,"fullCircles");R(this,"innerRadius");R(this,"outerRadius");R(this,"pixelMargin");R(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.getProps(["x","y"],s),{angle:r,distance:a}=Ur(o,{x:n,y:i}),{startAngle:l,endAngle:c,innerRadius:h,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),f=(this.options.spacing+this.options.borderWidth)/2,g=j(d,c-l),m=Ui(r,l,c)&&l!==c,p=g>=st||m,b=Ht(a,h+f,u+f);return p&&b}getCenterPoint(n){const{x:i,y:s,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:h}=this.options,u=(o+r)/2,d=(a+l+h+c)/2;return{x:i+Math.cos(u)*d,y:s+Math.sin(u)*d}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,o=(i.offset||0)/4,r=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>st?Math.floor(s/st):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Z,s||0)),h=o*c;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,Mf(n,this,h,r,a),Cf(n,this,h,r,a),n.restore()}}R(Mn,"id","arc"),R(Mn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),R(Mn,"defaultRoutes",{backgroundColor:"backgroundColor"}),R(Mn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function wa(e,t,n=t){e.lineCap=j(n.borderCapStyle,t.borderCapStyle),e.setLineDash(j(n.borderDash,t.borderDash)),e.lineDashOffset=j(n.borderDashOffset,t.borderDashOffset),e.lineJoin=j(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=j(n.borderWidth,t.borderWidth),e.strokeStyle=j(n.borderColor,t.borderColor)}function Pf(e,t,n){e.lineTo(n.x,n.y)}function Of(e){return e.stepped?Gh:e.tension||e.cubicInterpolationMode==="monotone"?Jh:Pf}function Sa(e,t,n={}){const i=e.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=t,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!h?i+c-l:c-l}}function Df(e,t,n,i){const{points:s,options:o}=t,{count:r,start:a,loop:l,ilen:c}=Sa(s,n,i),h=Of(o);let{move:u=!0,reverse:d}=i||{},f,g,m;for(f=0;f<=c;++f)g=s[(a+(d?c-f:f))%r],!g.skip&&(u?(e.moveTo(g.x,g.y),u=!1):h(e,m,g,d,o.stepped),m=g);return l&&(g=s[(a+(d?c:0))%r],h(e,m,g,d,o.stepped)),!!l}function Af(e,t,n,i){const s=t.points,{count:o,start:r,ilen:a}=Sa(s,n,i),{move:l=!0,reverse:c}=i||{};let h=0,u=0,d,f,g,m,p,b;const x=_=>(r+(c?a-_:_))%o,v=()=>{m!==p&&(e.lineTo(h,p),e.lineTo(h,m),e.lineTo(h,b))};for(l&&(f=s[x(0)],e.moveTo(f.x,f.y)),d=0;d<=a;++d){if(f=s[x(d)],f.skip)continue;const _=f.x,y=f.y,w=_|0;w===g?(y<m?m=y:y>p&&(p=y),h=(u*h+_)/++u):(v(),e.lineTo(_,y),g=w,u=0,m=p=y),b=y}v()}function Di(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Af:Df}function Ef(e){return e.stepped?Du:e.tension||e.cubicInterpolationMode==="monotone"?Au:re}function Tf(e,t,n,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,i)&&s.closePath()),wa(e,t.options),e.stroke(s)}function Rf(e,t,n,i){const{segments:s,options:o}=t,r=Di(t);for(const a of s)wa(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const Lf=typeof Path2D=="function";function Ff(e,t,n,i){Lf&&!t.options.segment?Tf(e,t,n,i):Rf(e,t,n,i)}class Cn extends $t{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;_u(this._points,i,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=$u(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,s=t[n],o=this.points,r=Fu(this,{property:n,start:s,end:s});if(!r.length)return;const a=[],l=Ef(i);let c,h;for(c=0,h=r.length;c<h;++c){const{start:u,end:d}=r[c],f=o[u],g=o[d];if(f===g){a.push(f);continue}const m=Math.abs((s-f[n])/(g[n]-f[n])),p=l(f,g,m,i.stepped);p[n]=t[n],a.push(p)}return a.length===1?a[0]:a}pathSegment(t,n,i){return Di(this)(t,this,n,i)}path(t,n,i){const s=this.segments,o=Di(this);let r=this._loop;n=n||0,i=i||this.points.length-n;for(const a of s)r&=o(t,this,a,{start:n,end:n+i-1});return!!r}draw(t,n,i,s){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Ff(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}R(Cn,"id","line"),R(Cn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),R(Cn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),R(Cn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Ro(e,t,n,i){const s=e.options,{[n]:o}=e.getProps([n],i);return Math.abs(t-o)<s.radius+s.hitRadius}class pi extends $t{constructor(n){super();R(this,"parsed");R(this,"skip");R(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.options,{x:r,y:a}=this.getProps(["x","y"],s);return Math.pow(n-r,2)+Math.pow(i-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,i){return Ro(this,n,"x",i)}inYRange(n,i){return Ro(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!tn(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Ci(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}R(pi,"id","point"),R(pi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),R(pi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function ka(e,t){const{x:n,y:i,base:s,width:o,height:r}=e.getProps(["x","y","base","width","height"],t);let a,l,c,h,u;return e.horizontal?(u=r/2,a=Math.min(n,s),l=Math.max(n,s),c=i-u,h=i+u):(u=o/2,a=n-u,l=n+u,c=Math.min(i,s),h=Math.max(i,s)),{left:a,top:c,right:l,bottom:h}}function Wt(e,t,n,i){return e?0:rt(t,n,i)}function If(e,t,n){const i=e.options.borderWidth,s=e.borderSkipped,o=ea(i);return{t:Wt(s.top,o.top,0,n),r:Wt(s.right,o.right,0,t),b:Wt(s.bottom,o.bottom,0,n),l:Wt(s.left,o.left,0,t)}}function jf(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,o=ye(s),r=Math.min(t,n),a=e.borderSkipped,l=i||z(s);return{topLeft:Wt(!l||a.top||a.left,o.topLeft,0,r),topRight:Wt(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Wt(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Wt(!l||a.bottom||a.right,o.bottomRight,0,r)}}function $f(e){const t=ka(e),n=t.right-t.left,i=t.bottom-t.top,s=If(e,n/2,i/2),o=jf(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:o},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function gi(e,t,n,i){const s=t===null,o=n===null,a=e&&!(s&&o)&&ka(e,i);return a&&(s||Ht(t,a.left,a.right))&&(o||Ht(n,a.top,a.bottom))}function zf(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Nf(e,t){e.rect(t.x,t.y,t.w,t.h)}function mi(e,t,n={}){const i=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-i,r=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+i,y:e.y+s,w:e.w+o,h:e.h+r,radius:e.radius}}class bi extends $t{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:o,outer:r}=$f(this),a=zf(r.radius)?$n:Nf;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,mi(r,n,o)),t.clip(),a(t,mi(o,-n,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,mi(o,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,i){return gi(this,t,n,i)}inXRange(t,n){return gi(this,t,null,n)}inYRange(t,n){return gi(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:s,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+s)/2:n,y:o?i:(i+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}R(bi,"id","bar"),R(bi,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),R(bi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Lo=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},Bf=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Fo extends $t{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Y(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=at(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Lo(i,o);let c,h;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,s){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=s+a;let u=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-h;return this.legendItems.forEach((g,m)=>{const p=i+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+p+2*a>r)&&(u+=h,c[c.length-(m>0?0:1)]=0,f+=h,d++),l[m]={left:0,top:f,row:d,width:p,height:s},c[c.length-1]+=p+a}),u}_fitCols(t,n,i,s){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-t;let u=a,d=0,f=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:x,itemHeight:v}=Hf(i,n,o,p,s);b>0&&f+v+2*a>h&&(u+=d+a,c.push({width:d,height:f}),g+=d+a,m++,d=f=0),l[b]={left:g,top:f,col:m,width:x,height:v},d=Math.max(d,x),f+=v+a}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:o}}=this,r=ve(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ot(i,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=ot(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=ot(i,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=ot(i,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Gi(t,this),this._draw(),Ji(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=K.color,l=ve(t.rtl,this.left,this.width),c=at(r.font),{padding:h}=r,u=c.size,d=u/2;let f;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=Lo(r,u),b=function(w,k,S){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;s.save();const C=j(S.lineWidth,1);if(s.fillStyle=j(S.fillStyle,a),s.lineCap=j(S.lineCap,"butt"),s.lineDashOffset=j(S.lineDashOffset,0),s.lineJoin=j(S.lineJoin,"miter"),s.lineWidth=C,s.strokeStyle=j(S.strokeStyle,a),s.setLineDash(j(S.lineDash,[])),r.usePointStyle){const D={radius:m*Math.SQRT2/2,pointStyle:S.pointStyle,rotation:S.rotation,borderWidth:C},P=l.xPlus(w,g/2),O=k+d;ta(s,D,P,O,r.pointStyleWidth&&g)}else{const D=k+Math.max((u-m)/2,0),P=l.leftForLtr(w,g),O=ye(S.borderRadius);s.beginPath(),Object.values(O).some(E=>E!==0)?$n(s,{x:P,y:D,w:g,h:m,radius:O}):s.rect(P,D,g,m),s.fill(),C!==0&&s.stroke()}s.restore()},x=function(w,k,S){en(s,S.text,w,k+p/2,c,{strikethrough:S.hidden,textAlign:l.textAlign(S.textAlign)})},v=this.isHorizontal(),_=this._computeTitleHeight();v?f={x:ot(o,this.left+h,this.right-i[0]),y:this.top+h+_,line:0}:f={x:this.left+h,y:ot(o,this.top+_+h,this.bottom-n[0].height),line:0},aa(this.ctx,t.textDirection);const y=p+h;this.legendItems.forEach((w,k)=>{s.strokeStyle=w.fontColor,s.fillStyle=w.fontColor;const S=s.measureText(w.text).width,C=l.textAlign(w.textAlign||(w.textAlign=r.textAlign)),D=g+d+S;let P=f.x,O=f.y;l.setWidth(this.width),v?k>0&&P+D+h>this.right&&(O=f.y+=y,f.line++,P=f.x=ot(o,this.left+h,this.right-i[f.line])):k>0&&O+y>this.bottom&&(P=f.x=P+n[f.line].width+h,f.line++,O=f.y=ot(o,this.top+_+h,this.bottom-n[f.line].height));const E=l.x(P);if(b(E,O,w),P=$h(C,P+g+d,v?P+D:this.right,t.rtl),x(l.x(P),O,w),v)f.x+=D+h;else if(typeof w.text!="string"){const I=c.lineHeight;f.y+=Ma(w,I)+h}else f.y+=y}),la(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=at(n.font),s=_t(n.padding);if(!n.display)return;const o=ve(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=i.size/2,c=s.top+l;let h,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+c,u=ot(t.align,u,this.right-d);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);h=c+ot(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=ot(a,u,u+d);r.textAlign=o.textAlign(Ki(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=i.string,en(r,n.text,f,h,i)}_computeTitleHeight(){const t=this.options.title,n=at(t.font),i=_t(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,s,o;if(Ht(t,this.left,this.right)&&Ht(n,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(s=o[i],Ht(t,s.left,s.left+s.width)&&Ht(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!Yf(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,o=Bf(s,i);s&&!o&&Y(n.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!o&&Y(n.onHover,[t,i,this],this)}else i&&Y(n.onClick,[t,i,this],this)}}function Hf(e,t,n,i,s){const o=Wf(i,e,t,n),r=Vf(s,i,t.lineHeight);return{itemWidth:o,itemHeight:r}}function Wf(e,t,n,i){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((o,r)=>o.length>r.length?o:r)),t+n.size/2+i.measureText(s).width}function Vf(e,t,n){let i=e;return typeof t.text!="string"&&(i=Ma(t,n)),i}function Ma(e,t){const n=e.text?e.text.length:0;return t*n}function Yf(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Sg={id:"legend",_element:Fo,start(e,t,n){const i=e.legend=new Fo({ctx:e.ctx,options:n,chart:e});bt.configure(e,i,n),bt.addBox(e,i)},stop(e){bt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;bt.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),h=_t(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Ca extends $t{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const s=J(i.text)?i.text.length:1;this._padding=_t(i.padding);const o=s*at(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:s,right:o,options:r}=this,a=r.align;let l=0,c,h,u;return this.isHorizontal()?(h=ot(a,i,o),u=n+t,c=o-i):(r.position==="left"?(h=i+t,u=ot(a,s,n),l=Z*-.5):(h=o-t,u=ot(a,n,s),l=Z*.5),c=s-n),{titleX:h,titleY:u,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=at(n.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);en(t,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:Ki(n.align),textBaseline:"middle",translation:[r,a]})}}function Uf(e,t){const n=new Ca({ctx:e.ctx,options:t,chart:e});bt.configure(e,n,t),bt.addBox(e,n),e.titleBlock=n}var kg={id:"title",_element:Ca,start(e,t,n){Uf(e,n)},stop(e){const t=e.titleBlock;bt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;bt.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ne={average(e){if(!e.length)return!1;let t,n,i=new Set,s=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),s+=l.y,++o}}return o===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:s/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),h=ki(t,c);h<s&&(s=h,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function kt(e,t){return t&&(J(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Rt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
+`)>-1?e.split(`
+`):e}function Xf(e,t){const{element:n,datasetIndex:i,index:s}=t,o=e.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:e,label:r,parsed:o.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Io(e,t){const n=e.chart.ctx,{body:i,footer:s,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=at(t.bodyFont),c=at(t.titleFont),h=at(t.footerFont),u=o.length,d=s.length,f=i.length,g=_t(t.padding);let m=g.height,p=0,b=i.reduce((_,y)=>_+y.before.length+y.lines.length+y.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=f*_+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}d&&(m+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let x=0;const v=function(_){p=Math.max(p,n.measureText(_).width+x)};return n.save(),n.font=c.string,W(e.title,v),n.font=l.string,W(e.beforeBody.concat(e.afterBody),v),x=t.displayColors?r+2+t.boxPadding:0,W(i,_=>{W(_.before,v),W(_.lines,v),W(_.after,v)}),x=0,n.font=h.string,W(e.footer,v),n.restore(),p+=g.width,{width:p,height:m}}function Kf(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function qf(e,t,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;if(e==="left"&&s+o+r>t.width||e==="right"&&s-o-r<0)return!0}function Gf(e,t,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),qf(c,e,t,n)&&(c="center"),c}function jo(e,t,n){const i=n.yAlign||t.yAlign||Kf(e,n);return{xAlign:n.xAlign||t.xAlign||Gf(e,t,n,i),yAlign:i}}function Jf(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function Zf(e,t,n){let{y:i,height:s}=e;return t==="top"?i+=n:t==="bottom"?i-=s+n:i-=s/2,i}function $o(e,t,n,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=ye(r);let g=Jf(t,a);const m=Zf(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,d)+s:a==="right"&&(g+=Math.max(u,f)+s),{x:rt(g,0,i.width-t.width),y:rt(m,0,i.height-t.height)}}function Pn(e,t,n){const i=_t(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function zo(e){return kt([],Rt(e))}function Qf(e,t,n){return pe(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function No(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Pa={beforeTitle:Et,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:Et,beforeBody:Et,beforeLabel:Et,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return V(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Et,afterBody:Et,beforeFooter:Et,footer:Et,afterFooter:Et};function ct(e,t,n,i){const s=e[t].call(n,i);return typeof s>"u"?Pa[t].call(n,i):s}class Ai extends $t{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,o=new ha(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Qf(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,s=ct(i,"beforeTitle",this,t),o=ct(i,"title",this,t),r=ct(i,"afterTitle",this,t);let a=[];return a=kt(a,Rt(s)),a=kt(a,Rt(o)),a=kt(a,Rt(r)),a}getBeforeBody(t,n){return zo(ct(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,s=[];return W(t,o=>{const r={before:[],lines:[],after:[]},a=No(i,o);kt(r.before,Rt(ct(a,"beforeLabel",this,o))),kt(r.lines,ct(a,"label",this,o)),kt(r.after,Rt(ct(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,n){return zo(ct(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,s=ct(i,"beforeFooter",this,t),o=ct(i,"footer",this,t),r=ct(i,"afterFooter",this,t);let a=[];return a=kt(a,Rt(s)),a=kt(a,Rt(o)),a=kt(a,Rt(r)),a}_createItems(t){const n=this._active,i=this.chart.data,s=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(Xf(this.chart,n[l]));return t.filter&&(a=a.filter((h,u,d)=>t.filter(h,u,d,i))),t.itemSort&&(a=a.sort((h,u)=>t.itemSort(h,u,i))),W(a,h=>{const u=No(t.callbacks,h);s.push(ct(u,"labelColor",this,h)),o.push(ct(u,"labelPointStyle",this,h)),r.push(ct(u,"labelTextColor",this,h))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const i=this.options.setContext(this.getContext()),s=this._active;let o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{const a=Ne[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=Io(this,i),c=Object.assign({},a,l),h=jo(this.chart,i,c),u=$o(i,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){const o=this.getCaretPosition(t,i,s);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:u}=ye(a),{x:d,y:f}=t,{width:g,height:m}=n;let p,b,x,v,_,y;return o==="center"?(_=f+m/2,s==="left"?(p=d,b=p-r,v=_+r,y=_-r):(p=d+g,b=p+r,v=_-r,y=_+r),x=p):(s==="left"?b=d+Math.max(l,h)+r:s==="right"?b=d+g-Math.max(c,u)-r:b=this.caretX,o==="top"?(v=f,_=v-r,p=b-r,x=b+r):(v=f+m,_=v+r,p=b+r,x=b-r),y=v),{x1:p,x2:b,x3:x,y1:v,y2:_,y3:y}}drawTitle(t,n,i){const s=this.title,o=s.length;let r,a,l;if(o){const c=ve(i.rtl,this.x,this.width);for(t.x=Pn(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",r=at(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=r.string,l=0;l<o;++l)n.fillText(s[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,n,i,s,o){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=o,h=at(o.bodyFont),u=Pn(this,"left",o),d=s.x(u),f=l<h.lineHeight?(h.lineHeight-l)/2:0,g=n.y+f;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=s.leftForLtr(d,c)+c/2,b=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Ci(t,m,p,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Ci(t,m,p,b)}else{t.lineWidth=z(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const m=s.leftForLtr(d,c),p=s.leftForLtr(s.xPlus(d,1),c-2),b=ye(r.borderRadius);Object.values(b).some(x=>x!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,$n(t,{x:m,y:g,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),$n(t,{x:p,y:g+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(p,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=i,u=at(i.bodyFont);let d=u.lineHeight,f=0;const g=ve(i.rtl,this.x,this.width),m=function(S){n.fillText(S,g.x(t.x+f),t.y+d/2),t.y+=d+o},p=g.textAlign(r);let b,x,v,_,y,w,k;for(n.textAlign=r,n.textBaseline="middle",n.font=u.string,t.x=Pn(this,p,i),n.fillStyle=i.bodyColor,W(this.beforeBody,m),f=a&&p!=="right"?r==="center"?c/2+h:c+2+h:0,_=0,w=s.length;_<w;++_){for(b=s[_],x=this.labelTextColors[_],n.fillStyle=x,W(b.before,m),v=b.lines,a&&v.length&&(this._drawColorBox(n,t,_,g,i),d=Math.max(u.lineHeight,l)),y=0,k=v.length;y<k;++y)m(v[y]),d=u.lineHeight;W(b.after,m)}f=0,d=u.lineHeight,W(this.afterBody,m),t.y-=o}drawFooter(t,n,i){const s=this.footer,o=s.length;let r,a;if(o){const l=ve(i.rtl,this.x,this.width);for(t.x=Pn(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",r=at(i.footerFont),n.fillStyle=i.footerColor,n.font=r.string,a=0;a<o;++a)n.fillText(s[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,n,i,s){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:g}=ye(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(a+u,l),r==="top"&&this.drawCaret(t,n,i,s),n.lineTo(a+c-d,l),n.quadraticCurveTo(a+c,l,a+c,l+d),r==="center"&&o==="right"&&this.drawCaret(t,n,i,s),n.lineTo(a+c,l+h-g),n.quadraticCurveTo(a+c,l+h,a+c-g,l+h),r==="bottom"&&this.drawCaret(t,n,i,s),n.lineTo(a+f,l+h),n.quadraticCurveTo(a,l+h,a,l+h-f),r==="center"&&o==="left"&&this.drawCaret(t,n,i,s),n.lineTo(a,l+u),n.quadraticCurveTo(a,l,a+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){const r=Ne[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Io(this,t),l=Object.assign({},r,this._size),c=jo(n,t,l),h=$o(t,l,c,n);(s._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=_t(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,n),aa(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),la(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Fn(i,s),r=this._positionChanged(s,n);(o||r)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,i),a=this._positionChanged(r,t),l=n||!Fn(r,o)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,i,s){const o=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:i,caretY:s,options:o}=this,r=Ne[o.position].call(this,t,n);return r!==!1&&(i!==r.x||s!==r.y)}}R(Ai,"positioners",Ne);var Mg={id:"tooltip",_element:Ai,positioners:Ne,afterInit(e,t,n){n&&(e.tooltip=new Ai({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Pa},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const tp=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function ep(e,t,n,i){const s=e.indexOf(t);if(s===-1)return tp(e,t,n,i);const o=e.lastIndexOf(t);return s!==o?n:s}const np=(e,t)=>e===null?null:rt(Math.round(e),0,t);function Bo(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Ho extends De{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:o}of n)i[s]===o&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(V(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:ep(i,t,j(n,t),this._addedLabels),np(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,s=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let r=t;r<=n;r++)s.push({value:r});return s}getLabelForValue(t){return Bo.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}R(Ho,"id","category"),R(Ho,"defaults",{ticks:{callback:Bo}});function ip(e,t){const n=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:u,includeBounds:d}=e,f=o||1,g=h-1,{min:m,max:p}=t,b=!V(r),x=!V(a),v=!V(c),_=(p-m)/(u+1);let y=Hs((p-m)/g/f)*f,w,k,S,C;if(y<1e-14&&!b&&!x)return[{value:m},{value:p}];C=Math.ceil(p/y)-Math.floor(m/y),C>g&&(y=Hs(C*y/g/f)*f),V(l)||(w=Math.pow(10,l),y=Math.ceil(y*w)/w),s==="ticks"?(k=Math.floor(m/y)*y,S=Math.ceil(p/y)*y):(k=m,S=p),b&&x&&o&&Dh((a-r)/o,y/1e3)?(C=Math.round(Math.min((a-r)/y,h)),y=(a-r)/C,k=r,S=a):v?(k=b?r:k,S=x?a:S,C=c-1,y=(S-k)/C):(C=(S-k)/y,Ye(C,Math.round(C),y/1e3)?C=Math.round(C):C=Math.ceil(C));const D=Math.max(Ws(y),Ws(k));w=Math.pow(10,V(l)?D:l),k=Math.round(k*w)/w,S=Math.round(S*w)/w;let P=0;for(b&&(d&&k!==r?(n.push({value:r}),k<r&&P++,Ye(Math.round((k+P*y)*w)/w,r,Wo(r,_,e))&&P++):k<r&&P++);P<C;++P){const O=Math.round((k+P*y)*w)/w;if(x&&O>a)break;n.push({value:O})}return x&&d&&S!==a?n.length&&Ye(n[n.length-1].value,a,Wo(a,_,e))?n[n.length-1].value=a:n.push({value:a}):(!x||S===a)&&n.push({value:S}),n}function Wo(e,t,{horizontal:n,minRotation:i}){const s=ae(i),o=(n?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class sp extends De{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return V(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:o}=this;const r=l=>s=n?s:l,a=l=>o=i?o:l;if(t){const l=Dt(s),c=Dt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(s===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(s-l)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=ip(s,o);return t.bounds==="ticks"&&Ah(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-n)/Math.max(t.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return Jr(t,this.chart.options.locale,this.options.ticks.format)}}class Vo extends sp{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?t:0,this.max=vt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=ae(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}R(Vo,"id","linear"),R(Vo,"defaults",{ticks:{callback:Qr.formatters.numeric}});const Kn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ht=Object.keys(Kn);function Yo(e,t){return e-t}function Uo(e,t){if(V(t))return null;const n=e._adapter,{parser:i,round:s,isoWeekday:o}=e._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),vt(r)||(r=typeof i=="string"?n.parse(r,i):n.parse(r)),r===null?null:(s&&(r=s==="week"&&(Qe(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,s)),+r)}function Xo(e,t,n,i){const s=ht.length;for(let o=ht.indexOf(e);o<s-1;++o){const r=Kn[ht[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((n-t)/(a*r.size))<=i)return ht[o]}return ht[s-1]}function op(e,t,n,i,s){for(let o=ht.length-1;o>=ht.indexOf(n);o--){const r=ht[o];if(Kn[r].common&&e._adapter.diff(s,i,r)>=t-1)return r}return ht[n?ht.indexOf(n):0]}function rp(e){for(let t=ht.indexOf(e)+1,n=ht.length;t<n;++t)if(Kn[ht[t]].common)return ht[t]}function Ko(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:s}=Xi(n,t),o=n[i]>=t?n[i]:n[s];e[o]=!0}}function ap(e,t,n,i){const s=e._adapter,o=+s.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=n[a],l>=0&&(t[l].major=!0);return t}function qo(e,t,n){const i=[],s={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],s[a]=r,i.push({value:a,major:!1});return o===0||!n?i:ap(e,i,s,n)}class Hn extends De{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),s=this._adapter=new ud._date(t.adapters.date);s.init(n),Ve(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Uo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=vt(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),o=vt(o)&&!isNaN(o)?o:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=Fh(s,o,r);return this._unit=n.unit||(i.autoSkip?Xo(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):op(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:rp(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),qo(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=rt(n,0,r),i=rt(i,0,r),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||Xo(o.minUnit,n,i,this._getLabelCapacity(n)),a=j(s.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=Qe(l)||l===!0,h={};let u=n,d,f;if(c&&(u=+t.startOf(u,"isoWeek",l)),u=+t.startOf(u,c?"day":r),t.diff(i,n,r)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+r);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(d=u,f=0;d<i;d=+t.add(d,a,r),f++)Ko(h,d,g);return(d===i||s.bounds==="ticks"||f===1)&&Ko(h,d,g),Object.keys(h).sort(Yo).map(m=>+m)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,o=this._unit,r=n||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,i,s){const o=this.options,r=o.ticks.callback;if(r)return Y(r,[t,n,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],u=c&&a[c],d=i[n],f=c&&u&&d&&d.major;return this._adapter.format(t,s||(f?u:h))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n<i;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,s=ae(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,o=this._tickFormatFunction(t,0,qo(this,[t],this._majorUnit),s),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)t.push(Uo(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Kr(t.sort(Yo))}}R(Hn,"id","time"),R(Hn,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function On(e,t,n){let i=0,s=e.length-1,o,r,a,l;n?(t>=e[i].pos&&t<=e[s].pos&&({lo:i,hi:s}=le(e,"pos",t)),{pos:o,time:a}=e[i],{pos:r,time:l}=e[s]):(t>=e[i].time&&t<=e[s].time&&({lo:i,hi:s}=le(e,"time",t)),{time:o,pos:a}=e[i],{time:r,pos:l}=e[s]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Go extends Hn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=On(n,this.min),this._tableRange=On(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,s=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r<a;++r)c=t[r],c>=n&&c<=i&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(r=0,a=s.length;r<a;++r)h=s[r+1],l=s[r-1],c=s[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,o)=>s-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(On(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return On(this._table,i*this._tableRange+this._minPos,!0)}}R(Go,"id","timeseries"),R(Go,"defaults",Hn.defaults);var ie={},Jo;function lp(){if(Jo)return ie;Jo=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.cartesianProductGenerator=ie.cartesianProduct=void 0;function e(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);return r.length?e(a,...r):a}ie.cartesianProduct=e;function*t(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);yield a,r.length&&(yield*t(a,...r))}ie.cartesianProductGenerator=t;function n(i,s){const o=[];for(let r=0;r<i.length;r++){if(!s){o.push([i[r]]);continue}for(let a=0;a<s.length;a++)Array.isArray(i[r])?o.push([...i[r],s[a]]):o.push([i[r],s[a]])}return o}return ie}var os=lp();const cp=function(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);let n="#";for(let i=0;i<3;i++){const o="00"+(t>>i*8&255).toString(16);n+=o.substring(o.length-2)}return n};function Cg(e,t=(n,i)=>{}){const n=new Map;for(const[i,s]of e){const o=new Map;for(const[r,a]of s){const l=new Map;for(const[c,h]of a){const u=t(r,h);if(u){l.set(c,{tooltip:u});continue}l.set(c,{})}o.set(r,l)}n.set(i,o)}return n}function Pg(e){const t=new Map;return e.forEach(n=>{const i=t.get(n.nren);(!i||i.year<n.year)&&t.set(n.nren,n)}),Array.from(t.values())}function Og(e){return e.match(/^[a-zA-Z]+:\/\//)?e:"https://"+e}const Dg=e=>{const t={};return!e.urls&&!e.url||(e.urls&&e.urls.forEach(n=>{t[n]=n}),e.url&&(t[e.url]=e.url)),t};function Ag(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map);let s=i.get(n.year);s||(s=[]),s.push(n),i.set(n.year,s),t.set(n.nren,i)}),t}function Ae(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map),i.set(n.year,n),t.set(n.nren,i)}),t}function Eg(e,t){const n=new Map;return e.forEach((i,s)=>{const o=new Map;Array.from(i.keys()).sort((a,l)=>l-a).forEach(a=>{const l=i.get(a),c=o.get(a)||{};t(c,l),Object.keys(c).length>0&&o.set(a,c)}),n.set(s,o)}),n}function Tg(e,t,n=!1){const i=new Map;return e.forEach(s=>{const o=a=>{let l=i.get(s.nren);l||(l=new Map);let c=l.get(a);c||(c=new Map),c.set(s.year,s),l.set(a,c),i.set(s.nren,l)};let r=s[t];typeof r=="boolean"&&(r=r?"True":"False"),n&&r==null&&(r=`${r}`),Array.isArray(r)?r.forEach(o):o(r)}),i}function Rg(e,t,n,i=!0,s){const o=new Map,r=(a,l,c)=>{a.forEach(h=>{let u=l?h[l]:c;typeof u=="boolean"&&(u=u?"True":"False");const d=h.nren,f=h.year,g=o.get(d)||new Map,m=g.get(f)||new Map,p=m.get(u)||{},b=h[c];if(b==null)return;const x=i?b:c,v=p[x]||{};v[`${b}`]=b,p[x]=v,m.set(u,p),g.set(f,m),o.set(d,g)})};if(n)for(const a of t)r(e,n,a);else for(const a of t)r(e,void 0,a);return o}const Lg=e=>{function t(){const u=(f,g,m)=>"#"+[f,g,m].map(p=>{const b=p.toString(16);return b.length===1?"0"+b:b}).join(""),d=new Map;return d.set("client_institutions",u(157,40,114)),d.set("commercial",u(241,224,79)),d.set("european_funding",u(219,42,76)),d.set("gov_public_bodies",u(237,141,24)),d.set("other",u(137,166,121)),d}const n=Ae(e),i=t(),s=[...new Set(e.map(u=>u.year))].sort(),o=[...new Set(e.map(u=>u.nren))].sort(),r={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},a=Object.keys(r),l=os.cartesianProduct(Object.keys(r),s).reduce((u,[d,f])=>{const g=`${d},${f}`;return u[g]={},u},{});return n.forEach((u,d)=>{u.forEach((f,g)=>{const m=a.map(b=>f[b]||0);if(m.reduce((b,x)=>b+x,0)!==0)for(const b of a){const x=`${b},${g}`,v=a.indexOf(b);l[x][d]=m[v]}})}),{datasets:Array.from(Object.entries(l)).map(([u,d])=>{const[f,g]=u.split(",");return{backgroundColor:i.get(f)||"black",label:r[f]+" ("+g+")",data:o.map(p=>d[p]),stack:g,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:f==a[0],formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}),labels:o.map(u=>u.toString())}};function Fg(e,t){const n=[...new Set(e.map(r=>r.year))].sort(),i=[...new Set(e.map(r=>r.nren))].sort(),s=Ae(e);return{datasets:i.map(r=>{const a=cp(r);return{backgroundColor:a,borderColor:a,data:n.map(l=>{const c=s.get(r);if(!c)return null;const h=c.get(l);return h?h[t]:null}),label:r,hidden:!1}}),labels:n.map(r=>r.toString())}}const Ig=(e,t,n)=>{let i;t?i=["Technical FTE","Non-technical FTE"]:i=["Permanent FTE","Subcontracted FTE"];const s={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[o,r]=i,[a,l]=[s[o],s[r]];function c(p){const b=p[a],x=p[l],v=b+x,_=(b/v||0)*100,y=(x/v||0)*100,w={};return w[o]=Math.round(Math.floor(_*100))/100,w[r]=Math.round(Math.floor(y*100))/100,w}const h=Ae(e),u=[n].sort(),d=[...new Set(e.map(p=>p.nren))].sort((p,b)=>p.localeCompare(b));return{datasets:os.cartesianProduct(i,u).map(function([p,b]){let x="";return p==="Technical FTE"?x="rgba(40, 40, 250, 0.8)":p==="Permanent FTE"?x="rgba(159, 129, 235, 1)":p==="Subcontracted FTE"?x="rgba(173, 216, 229, 1)":p==="Non-technical FTE"&&(x="rgba(116, 216, 242, 0.54)"),{backgroundColor:x,label:`${p} (${b})`,data:d.map(v=>{const _=h.get(v).get(b);return _?c(_)[p]:0}),stack:b,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:d}},jg=(e,t)=>{const n=["Research & Education","Commodity"],i={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},s=Ae(e),o=[t].sort(),r=[...new Set(e.map(h=>h.nren))].sort((h,u)=>h.localeCompare(u));return{datasets:os.cartesianProduct(n,o).map(function([h,u]){let d="";return h==="Research & Education"?d="rgba(40, 40, 250, 0.8)":h==="Commodity"&&(d="rgba(116, 216, 242, 0.54)"),{backgroundColor:d,label:`${h} (${u})`,data:r.map(f=>{const g=s.get(f).get(u);return g?g[i[h]]:0}),stack:u,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:r}},$g=(e,t)=>{const n=["Permanent FTE","Subcontracted FTE"],i={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[s,o]=n,[r,a]=[i[s],i[o]],l=Ae(e),c=[...new Set(e.map(f=>f.nren))].sort((f,g)=>f.localeCompare(g));function h(f,g){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`Number of FTEs (${f})`,data:c.map(p=>{const b=l.get(p).get(f);return b?(b[r]??0)+(b[a]??0):0}),stack:`${f}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}return{datasets:t.sort().map(h),labels:c}},zg=(e,t,n)=>{const i=Ae(e),s=[...new Set(e.map(l=>l.nren))].sort((l,c)=>l.localeCompare(c)),o=[...new Set(e.map(l=>l.year))].sort();function r(l,c){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`${n} (${l})`,data:s.map(u=>{const d=i.get(u).get(l);return d?d[t]??0:0}),stack:`${l}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(u,d){return d.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(u){return u.chart.chartArea.width}}}}return{datasets:o.sort().map(r),labels:s}},hp=e=>{const t=wt.c(41),{activeCategory:n}=e,i=Ja();let s;t[0]!==n||t[1]!==i?(s=()=>i(n===G.Organisation?".":"/funding"),t[0]=n,t[1]=i,t[2]=s):s=t[2];const o=n===G.Organisation;let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=M.jsx("span",{children:G.Organisation}),t[3]=r):r=t[3];let a;t[4]!==s||t[5]!==o?(a=M.jsx(Ft,{onClick:s,variant:"nav-box",active:o,children:r}),t[4]=s,t[5]=o,t[6]=a):a=t[6];let l;t[7]!==n||t[8]!==i?(l=()=>i(n===G.Policy?".":"/corporate-strategy"),t[7]=n,t[8]=i,t[9]=l):l=t[9];const c=n===G.Policy;let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=M.jsx("span",{children:G.Policy}),t[10]=h):h=t[10];let u;t[11]!==l||t[12]!==c?(u=M.jsx(Ft,{onClick:l,variant:"nav-box",active:c,children:h}),t[11]=l,t[12]=c,t[13]=u):u=t[13];let d;t[14]!==n||t[15]!==i?(d=()=>i(n===G.ConnectedUsers?".":"/institutions-urls"),t[14]=n,t[15]=i,t[16]=d):d=t[16];const f=n===G.ConnectedUsers;let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=M.jsx("span",{children:G.ConnectedUsers}),t[17]=g):g=t[17];let m;t[18]!==f||t[19]!==d?(m=M.jsx(Ft,{onClick:d,variant:"nav-box",active:f,children:g}),t[18]=f,t[19]=d,t[20]=m):m=t[20];let p;t[21]!==n||t[22]!==i?(p=()=>i(n===G.Network?".":"/dark-fibre-lease"),t[21]=n,t[22]=i,t[23]=p):p=t[23];const b=n===G.Network;let x;t[24]===Symbol.for("react.memo_cache_sentinel")?(x=M.jsx("span",{children:G.Network}),t[24]=x):x=t[24];let v;t[25]!==p||t[26]!==b?(v=M.jsx(Ft,{onClick:p,variant:"nav-box",active:b,children:x}),t[25]=p,t[26]=b,t[27]=v):v=t[27];let _;t[28]!==n||t[29]!==i?(_=()=>i(n===G.Services?".":"/network-services"),t[28]=n,t[29]=i,t[30]=_):_=t[30];const y=n===G.Services;let w;t[31]===Symbol.for("react.memo_cache_sentinel")?(w=M.jsx("span",{children:G.Services}),t[31]=w):w=t[31];let k;t[32]!==_||t[33]!==y?(k=M.jsx(Ft,{onClick:_,variant:"nav-box",active:y,children:w}),t[32]=_,t[33]=y,t[34]=k):k=t[34];let S;return t[35]!==m||t[36]!==v||t[37]!==k||t[38]!==a||t[39]!==u?(S=M.jsx(cr,{children:M.jsx(se,{children:M.jsxs(Ti,{className:"navbox-bar gap-2 m-3",children:[a,u,m,v,k]})})}),t[35]=m,t[36]=v,t[37]=k,t[38]=a,t[39]=u,t[40]=S):S=t[40],S},up=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(sn,{children:M.jsx(Za,{sidebar:!0})}),e[0]=t):t=e[0],t},dp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(sn,{children:M.jsx(Qa,{sidebar:!0})}),e[0]=t):t=e[0],t},fp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(sn,{children:M.jsx(tl,{sidebar:!0})}),e[0]=t):t=e[0],t},pp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(sn,{children:M.jsx(el,{sidebar:!0})}),e[0]=t):t=e[0],t},gp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(sn,{children:M.jsx(nl,{sidebar:!0})}),e[0]=t):t=e[0],t};function mp(e,t){return e.map(n=>t.map(i=>{const s=n[i];return s===null?"":typeof s=="string"?`"${s.replace(/"/g,'""')}"`:s}).join(","))}function bp(e){if(!e.length)return"";const t=Object.keys(e[0]),n=mp(e,t);return[t.join(","),...n].join(`\r
+`)}function xp(e,t="Sheet1"){const n=Zn.json_to_sheet(e),i=Zn.book_new();Zn.book_append_sheet(i,n,t);const s=cl(i,{bookType:"xlsx",type:"binary"}),o=new ArrayBuffer(s.length),r=new Uint8Array(o);for(let a=0;a<s.length;a++)r[a]=s.charCodeAt(a)&255;return new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}const Zo=({data:e,filename:t,exportType:n})=>{const i=()=>{let o,r,a;switch(n){case xe.EXCEL:{o=xp(e),r="xlsx",a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break}case xe.CSV:default:{o=bp(e),r="csv",a="text/csv;charset=UTF-8";break}}const l=new Blob([o],{type:a});t=t.endsWith(r)?t:`${t}.${r}`;const c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=t,document.body.appendChild(c),c.click(),document.body.removeChild(c)};let s="downloadbutton";return n===xe.CSV?s+=" downloadcsv":n===xe.EXCEL&&(s+=" downloadexcel"),M.jsxs("button",{className:s,onClick:i,children:[n," ",M.jsx(dr,{})]})};function yp(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),i=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(s),t&&(i.href=t),s.href=e,s.href}const vp=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function It(e){const t=[];for(let n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function Wn(e,t){const i=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return i?parseFloat(i.replace("px","")):0}function _p(e){const t=Wn(e,"border-left-width"),n=Wn(e,"border-right-width");return e.clientWidth+t+n}function wp(e){const t=Wn(e,"border-top-width"),n=Wn(e,"border-bottom-width");return e.clientHeight+t+n}function Oa(e,t={}){const n=t.width||_p(e),i=t.height||wp(e);return{width:n,height:i}}function Sp(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const pt=16384;function kp(e){(e.width>pt||e.height>pt)&&(e.width>pt&&e.height>pt?e.width>e.height?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt):e.width>pt?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt))}function Vn(e){return new Promise((t,n)=>{const i=new Image;i.decode=()=>t(i),i.onload=()=>t(i),i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function Mp(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Cp(e,t,n){const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),s.appendChild(o),o.appendChild(e),Mp(s)}const ft=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||ft(n,t)};function Pp(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Op(e){return It(e).map(t=>{const n=e.getPropertyValue(t),i=e.getPropertyPriority(t);return`${t}: ${n}${i?" !important":""};`}).join(" ")}function Dp(e,t,n){const i=`.${e}:${t}`,s=n.cssText?Pp(n):Op(n);return document.createTextNode(`${i}{${s}}`)}function Qo(e,t,n){const i=window.getComputedStyle(e,n),s=i.getPropertyValue("content");if(s===""||s==="none")return;const o=vp();try{t.className=`${t.className} ${o}`}catch{return}const r=document.createElement("style");r.appendChild(Dp(o,n,i)),t.appendChild(r)}function Ap(e,t){Qo(e,t,":before"),Qo(e,t,":after")}const tr="application/font-woff",er="image/jpeg",Ep={woff:tr,woff2:tr,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:er,jpeg:er,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Tp(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function rs(e){const t=Tp(e).toLowerCase();return Ep[t]||""}function Rp(e){return e.split(/,/)[1]}function Ei(e){return e.search(/^(data:)/)!==-1}function Lp(e,t){return`data:${t};base64,${e}`}async function Da(e,t,n){const i=await fetch(e,t);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const s=await i.blob();return new Promise((o,r)=>{const a=new FileReader;a.onerror=r,a.onloadend=()=>{try{o(n({res:i,result:a.result}))}catch(l){r(l)}},a.readAsDataURL(s)})}const xi={};function Fp(e,t,n){let i=e.replace(/\?.*/,"");return n&&(i=e),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),t?`[${t}]${i}`:i}async function as(e,t,n){const i=Fp(e,t,n.includeQueryParams);if(xi[i]!=null)return xi[i];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let s;try{const o=await Da(e,n.fetchRequestInit,({res:r,result:a})=>(t||(t=r.headers.get("Content-Type")||""),Rp(a)));s=Lp(o,t)}catch(o){s=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;o&&(r=typeof o=="string"?o:o.message),r&&console.warn(r)}return xi[i]=s,s}async function Ip(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Vn(t)}async function jp(e,t){if(e.currentSrc){const o=document.createElement("canvas"),r=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,r==null||r.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return Vn(a)}const n=e.poster,i=rs(n),s=await as(n,i,t);return Vn(s)}async function $p(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await qn(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function zp(e,t){return ft(e,HTMLCanvasElement)?Ip(e):ft(e,HTMLVideoElement)?jp(e,t):ft(e,HTMLIFrameElement)?$p(e):e.cloneNode(!1)}const Np=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function Bp(e,t,n){var i,s;let o=[];return Np(e)&&e.assignedNodes?o=It(e.assignedNodes()):ft(e,HTMLIFrameElement)&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?o=It(e.contentDocument.body.childNodes):o=It(((s=e.shadowRoot)!==null&&s!==void 0?s:e).childNodes),o.length===0||ft(e,HTMLVideoElement)||await o.reduce((r,a)=>r.then(()=>qn(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function Hp(e,t){const n=t.style;if(!n)return;const i=window.getComputedStyle(e);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):It(i).forEach(s=>{let o=i.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),ft(e,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(s,o,i.getPropertyPriority(s))})}function Wp(e,t){ft(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),ft(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Vp(e,t){if(ft(e,HTMLSelectElement)){const n=t,i=Array.from(n.children).find(s=>e.value===s.getAttribute("value"));i&&i.setAttribute("selected","")}}function Yp(e,t){return ft(t,Element)&&(Hp(e,t),Ap(e,t),Wp(e,t),Vp(e,t)),t}async function Up(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const i={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const l=e.querySelector(a),c=document.querySelector(a);!l&&c&&!i[a]&&(i[a]=await qn(c,t,!0))}}const s=Object.values(i);if(s.length){const o="http://www.w3.org/1999/xhtml",r=document.createElementNS(o,"svg");r.setAttribute("xmlns",o),r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.overflow="hidden",r.style.display="none";const a=document.createElementNS(o,"defs");r.appendChild(a);for(let l=0;l<s.length;l++)a.appendChild(s[l]);e.appendChild(r)}return e}async function qn(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(i=>zp(i,t)).then(i=>Bp(e,i,t)).then(i=>Yp(e,i)).then(i=>Up(i,t))}const Aa=/url\((['"]?)([^'"]+?)\1\)/g,Xp=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Kp=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function qp(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Gp(e){const t=[];return e.replace(Aa,(n,i,s)=>(t.push(s),n)),t.filter(n=>!Ei(n))}async function Jp(e,t,n,i,s){try{const o=n?yp(t,n):t,r=rs(t);let a;return s||(a=await as(o,r,i)),e.replace(qp(t),`$1${a}$3`)}catch{}return e}function Zp(e,{preferredFontFormat:t}){return t?e.replace(Kp,n=>{for(;;){const[i,,s]=Xp.exec(n)||[];if(!s)return"";if(s===t)return`src: ${i};`}}):e}function Ea(e){return e.search(Aa)!==-1}async function Ta(e,t,n){if(!Ea(e))return e;const i=Zp(e,n);return Gp(i).reduce((o,r)=>o.then(a=>Jp(a,r,t,n)),Promise.resolve(i))}async function Dn(e,t,n){var i;const s=(i=t.style)===null||i===void 0?void 0:i.getPropertyValue(e);if(s){const o=await Ta(s,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function Qp(e,t){await Dn("background",e,t)||await Dn("background-image",e,t),await Dn("mask",e,t)||await Dn("mask-image",e,t)}async function tg(e,t){const n=ft(e,HTMLImageElement);if(!(n&&!Ei(e.src))&&!(ft(e,SVGImageElement)&&!Ei(e.href.baseVal)))return;const i=n?e.src:e.href.baseVal,s=await as(i,rs(i),t);await new Promise((o,r)=>{e.onload=o,e.onerror=r;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=s):e.href.baseVal=s})}async function eg(e,t){const i=It(e.childNodes).map(s=>Ra(s,t));await Promise.all(i).then(()=>e)}async function Ra(e,t){ft(e,Element)&&(await Qp(e,t),await tg(e,t),await eg(e,t))}function ng(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const i=t.style;return i!=null&&Object.keys(i).forEach(s=>{n[s]=i[s]}),e}const nr={};async function ir(e){let t=nr[e];if(t!=null)return t;const i=await(await fetch(e)).text();return t={url:e,cssText:i},nr[e]=t,t}async function sr(e,t){let n=e.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async r=>{let a=r.replace(i,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),Da(a,t.fetchRequestInit,({result:l})=>(n=n.replace(r,`url(${l})`),[r,l]))});return Promise.all(o).then(()=>n)}function or(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=e.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=s.exec(i);if(l===null)break;t.push(l[0])}i=i.replace(s,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,r="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(r,"gi");for(;;){let l=o.exec(i);if(l===null){if(l=a.exec(i),l===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(l[0])}return t}async function ig(e,t){const n=[],i=[];return e.forEach(s=>{if("cssRules"in s)try{It(s.cssRules||[]).forEach((o,r)=>{if(o.type===CSSRule.IMPORT_RULE){let a=r+1;const l=o.href,c=ir(l).then(h=>sr(h,t)).then(h=>or(h).forEach(u=>{try{s.insertRule(u,u.startsWith("@import")?a+=1:s.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:u,error:d})}})).catch(h=>{console.error("Error loading remote css",h.toString())});i.push(c)}})}catch(o){const r=e.find(a=>a.href==null)||document.styleSheets[0];s.href!=null&&i.push(ir(s.href).then(a=>sr(a,t)).then(a=>or(a).forEach(l=>{r.insertRule(l,s.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(i).then(()=>(e.forEach(s=>{if("cssRules"in s)try{It(s.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${s.href}`,o)}}),n))}function sg(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ea(t.style.getPropertyValue("src")))}async function og(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=It(e.ownerDocument.styleSheets),i=await ig(n,t);return sg(i)}async function rg(e,t){const n=await og(e,t);return(await Promise.all(n.map(s=>{const o=s.parentStyleSheet?s.parentStyleSheet.href:null;return Ta(s.cssText,o,t)}))).join(`
+`)}async function ag(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await rg(e,t);if(n){const i=document.createElement("style"),s=document.createTextNode(n);i.appendChild(s),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}}async function La(e,t={}){const{width:n,height:i}=Oa(e,t),s=await qn(e,t,!0);return await ag(s,t),await Ra(s,t),ng(s,t),await Cp(s,n,i)}async function Fa(e,t={}){const{width:n,height:i}=Oa(e,t),s=await La(e,t),o=await Vn(s),r=document.createElement("canvas"),a=r.getContext("2d"),l=t.pixelRatio||Sp(),c=t.canvasWidth||n,h=t.canvasHeight||i;return r.width=c*l,r.height=h*l,t.skipAutoScale||kp(r),r.style.width=`${c}`,r.style.height=`${h}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,r.width,r.height)),a.drawImage(o,0,0,r.width,r.height),r}async function lg(e,t={}){return(await Fa(e,t)).toDataURL()}async function cg(e,t={}){return(await Fa(e,t)).toDataURL("image/jpeg",t.quality||1)}const hg=e=>{const t=wt.c(17),{filename:n}=e,i=A.useContext(hr),[s,o]=A.useState(!1),r=A.useRef(null);let a;t[0]!==i||t[1]!==n?(a=async v=>{if(i!=null&&i.current){o(!1);const _={transform:"scale(1)","transform-origin":"top left",background:"white"};let y;t:switch(v){case ge.JPEG:{y=await cg(i.current,{quality:.95,style:_});break t}case ge.SVG:{y=await La(i.current,{style:_});break t}case ge.PNG:default:y=await lg(i.current,{style:_})}const w=document.createElement("a");w.href=typeof y=="string"?y:URL.createObjectURL(y),w.download=`${n}.${v}`,document.body.appendChild(w),w.click(),document.body.removeChild(w)}},t[0]=i,t[1]=n,t[2]=a):a=t[2];const l=a;let c;t[3]!==s?(c=()=>{o(!s)},t[3]=s,t[4]=c):c=t[4];const h=c;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=v=>{r.current&&!r.current.contains(v.target)&&o(!1)},t[5]=u):u=t[5];const d=u;let f,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=()=>(document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}),g=[],t[6]=f,t[7]=g):(f=t[6],g=t[7]),A.useEffect(f,g);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=M.jsx(dr,{}),t[8]=m):m=t[8];let p;t[9]!==h?(p=M.jsxs("button",{className:"downloadbutton downloadimage",onClick:h,children:["IMAGE ",m]}),t[9]=h,t[10]=p):p=t[10];let b;t[11]!==l||t[12]!==s?(b=s&&M.jsxs("div",{className:"image-options",children:[M.jsx("div",{className:"imageoption downloadpng",onClick:()=>l(ge.PNG),children:M.jsx("span",{children:"PNG"})}),M.jsx("div",{className:"imageoption downloadjpeg",onClick:()=>l(ge.JPEG),children:M.jsx("span",{children:"JPEG"})}),M.jsx("div",{className:"imageoption downloadsvg",onClick:()=>l(ge.SVG),children:M.jsx("span",{children:"SVG"})})]}),t[11]=l,t[12]=s,t[13]=b):b=t[13];let x;return t[14]!==p||t[15]!==b?(x=M.jsxs("div",{className:"image-dropdown",ref:r,children:[p,b]}),t[14]=p,t[15]=b,t[16]=x):x=t[16],x};Ct.defaults.font.size=16;Ct.defaults.font.family="Open Sans";Ct.defaults.font.weight=700;function Ng(e){const t=wt.c(55),{title:n,description:i,filter:s,children:o,category:r,data:a,filename:l}=e,{preview:c,setPreview:h}=A.useContext(il),u=window.location.origin+window.location.pathname,{trackPageView:d}=sl();let f,g;t[0]!==n||t[1]!==d?(f=()=>{d({documentTitle:n})},g=[d,n],t[0]=n,t[1]=d,t[2]=f,t[3]=g):(f=t[2],g=t[3]),A.useEffect(f,g);let m;t[4]!==r?(m=r===G.Organisation&&M.jsx(up,{}),t[4]=r,t[5]=m):m=t[5];let p;t[6]!==r?(p=r===G.Policy&&M.jsx(dp,{}),t[6]=r,t[7]=p):p=t[7];let b;t[8]!==r?(b=r===G.Network&&M.jsx(pp,{}),t[8]=r,t[9]=b):b=t[9];let x;t[10]!==r?(x=r===G.ConnectedUsers&&M.jsx(fp,{}),t[10]=r,t[11]=x):x=t[11];let v;t[12]!==r?(v=r===G.Services&&M.jsx(gp,{}),t[12]=r,t[13]=v):v=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=M.jsx(ol,{type:"data"}),t[14]=_):_=t[14];let y;t[15]!==c||t[16]!==h?(y=c&&M.jsx(se,{className:"preview-banner",children:M.jsxs("span",{children:["You are viewing a preview of the website which includes pre-published survey data. ",M.jsx(rl,{to:u,onClick:()=>h(!1),children:"Click here"})," to deactivate preview mode."]})}),t[15]=c,t[16]=h,t[17]=y):y=t[17];let w;t[18]!==r?(w=M.jsx(hp,{activeCategory:r}),t[18]=r,t[19]=w):w=t[19];let k;t[20]!==n?(k=M.jsx(se,{children:M.jsx("h3",{className:"m-1",children:n})}),t[20]=n,t[21]=k):k=t[21];let S;t[22]!==i?(S=M.jsx(se,{children:M.jsx("p",{className:"p-md-4",children:i})}),t[22]=i,t[23]=S):S=t[23];const C=`${l}.csv`;let D;t[24]!==a||t[25]!==C?(D=M.jsx(Zo,{data:a,filename:C,exportType:xe.CSV}),t[24]=a,t[25]=C,t[26]=D):D=t[26];const P=`${l}.xlsx`;let O;t[27]!==a||t[28]!==P?(O=M.jsx(Zo,{data:a,filename:P,exportType:xe.EXCEL}),t[27]=a,t[28]=P,t[29]=O):O=t[29];let E;t[30]!==l?(E=M.jsx(hg,{filename:l}),t[30]=l,t[31]=E):E=t[31];let I;t[32]!==D||t[33]!==O||t[34]!==E?(I=M.jsxs(se,{className:"downloadcontainer",children:[D,O,E]}),t[32]=D,t[33]=O,t[34]=E,t[35]=I):I=t[35];let T;t[36]!==s?(T=M.jsx(se,{children:s}),t[36]=s,t[37]=T):T=t[37];let L;t[38]!==o?(L=M.jsx(se,{children:o}),t[38]=o,t[39]=L):L=t[39];let F;t[40]!==k||t[41]!==S||t[42]!==I||t[43]!==T||t[44]!==L?(F=M.jsxs(cr,{className:"mb-5 grow",children:[k,S,I,T,L]}),t[40]=k,t[41]=S,t[42]=I,t[43]=T,t[44]=L,t[45]=F):F=t[45];let B;return t[46]!==w||t[47]!==F||t[48]!==m||t[49]!==p||t[50]!==b||t[51]!==x||t[52]!==v||t[53]!==y?(B=M.jsxs(M.Fragment,{children:[m,p,b,x,v,_,y,w,F]}),t[46]=w,t[47]=F,t[48]=m,t[49]=p,t[50]=b,t[51]=x,t[52]=v,t[53]=y,t[54]=B):B=t[54],B}function Bg(e){const t=wt.c(81),{filterOptions:n,filterSelection:i,setFilterSelection:s,max1year:o,coloredYears:r}=e,a=o===void 0?!1:o,l=r===void 0?!1:r,[c,h]=A.useState(!0),{nrens:u}=A.useContext(al);let d,f;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{const H=()=>h(window.innerWidth>=992);return window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},f=[],t[0]=d,t[1]=f):(d=t[0],f=t[1]),A.useEffect(d,f),a&&i.selectedYears.length>1){const H=Math.max(...i.selectedYears);s({selectedYears:[H],selectedNrens:[...i.selectedNrens]})}let g;t[2]!==i.selectedNrens||t[3]!==i.selectedYears||t[4]!==s?(g=H=>{i.selectedNrens.includes(H)?s({selectedYears:[...i.selectedYears],selectedNrens:i.selectedNrens.filter(et=>et!==H)}):s({selectedYears:[...i.selectedYears],selectedNrens:[...i.selectedNrens,H]})},t[2]=i.selectedNrens,t[3]=i.selectedYears,t[4]=s,t[5]=g):g=t[5];const m=g;let p;t[6]!==i.selectedNrens||t[7]!==i.selectedYears||t[8]!==a||t[9]!==s?(p=H=>{i.selectedYears.includes(H)?s({selectedYears:i.selectedYears.filter(et=>et!==H),selectedNrens:[...i.selectedNrens]}):s({selectedYears:a?[H]:[...i.selectedYears,H],selectedNrens:[...i.selectedNrens]})},t[6]=i.selectedNrens,t[7]=i.selectedYears,t[8]=a,t[9]=s,t[10]=p):p=t[10];const b=p;let x;t[11]!==n.availableNrens||t[12]!==i.selectedYears||t[13]!==s?(x=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:n.availableNrens.map(fg)})},t[11]=n.availableNrens,t[12]=i.selectedYears,t[13]=s,t[14]=x):x=t[14];const v=x;let _;t[15]!==i.selectedYears||t[16]!==s?(_=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:[]})},t[15]=i.selectedYears,t[16]=s,t[17]=_):_=t[17];const y=_,w=c?3:2,k=Math.ceil(u.length/w);let S,C,D,P,O,E,I,T,L,F;if(t[18]!==n.availableNrens||t[19]!==i.selectedNrens||t[20]!==m||t[21]!==w||t[22]!==k||t[23]!==u){const H=Array.from(Array(w),dg);u.sort(ug).forEach((Jt,Zt)=>{const lt=Math.floor(Zt/k);H[lt].push(Jt)});let et;t[34]!==n.availableNrens?(et=Jt=>n.availableNrens.find(lt=>lt.name===Jt.name)!==void 0,t[34]=n.availableNrens,t[35]=et):et=t[35];const Ee=et;D=xs,L=3,C=ei,E="outside",I="m-3",t[36]===Symbol.for("react.memo_cache_sentinel")?(T=M.jsx(ei.Toggle,{id:"nren-dropdown-toggle",variant:"compendium",children:"Select NRENs    "}),t[36]=T):T=t[36],S=ei.Menu,t[37]===Symbol.for("react.memo_cache_sentinel")?(O={borderRadius:0},t[37]=O):O=t[37],F="d-flex fit-max-content mt-4 mx-3";let zt;t[38]!==i.selectedNrens||t[39]!==m||t[40]!==Ee?(zt=(Jt,Zt)=>M.jsx("div",{className:"flex-fill",children:Jt.map(lt=>M.jsx("div",{className:"filter-dropdown-item flex-fill py-1 px-3",children:M.jsxs(Jn.Check,{type:"checkbox",children:[M.jsx(Jn.Check.Input,{id:lt.name,readOnly:!0,type:"checkbox",onClick:()=>m(lt.name),checked:i.selectedNrens.includes(lt.name),className:"nren-checkbox",disabled:!Ee(lt)}),M.jsxs(Jn.Check.Label,{htmlFor:lt.name,className:"nren-checkbox-label",children:[lt.name," ",M.jsxs("span",{style:{fontWeight:"lighter"},children:["(",lt.country,")"]})]})]})},lt.name))},Zt),t[38]=i.selectedNrens,t[39]=m,t[40]=Ee,t[41]=zt):zt=t[41],P=H.map(zt),t[18]=n.availableNrens,t[19]=i.selectedNrens,t[20]=m,t[21]=w,t[22]=k,t[23]=u,t[24]=S,t[25]=C,t[26]=D,t[27]=P,t[28]=O,t[29]=E,t[30]=I,t[31]=T,t[32]=L,t[33]=F}else S=t[24],C=t[25],D=t[26],P=t[27],O=t[28],E=t[29],I=t[30],T=t[31],L=t[32],F=t[33];let B;t[42]!==P||t[43]!==F?(B=M.jsx("div",{className:F,children:P}),t[42]=P,t[43]=F,t[44]=B):B=t[44];let $;t[45]!==v?($=M.jsx(Ft,{variant:"compendium",className:"flex-fill",onClick:v,children:"Select all NRENs"}),t[45]=v,t[46]=$):$=t[46];let N;t[47]!==y?(N=M.jsx(Ft,{variant:"compendium",className:"flex-fill",onClick:y,children:"Unselect all NRENs"}),t[47]=y,t[48]=N):N=t[48];let tt;t[49]!==$||t[50]!==N?(tt=M.jsxs("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3",children:[$,N]}),t[49]=$,t[50]=N,t[51]=tt):tt=t[51];let Q;t[52]!==S||t[53]!==O||t[54]!==B||t[55]!==tt?(Q=M.jsxs(S,{style:O,children:[B,tt]}),t[52]=S,t[53]=O,t[54]=B,t[55]=tt,t[56]=Q):Q=t[56];let nt;t[57]!==C||t[58]!==E||t[59]!==I||t[60]!==T||t[61]!==Q?(nt=M.jsxs(C,{autoClose:E,className:I,children:[T,Q]}),t[57]=C,t[58]=E,t[59]=I,t[60]=T,t[61]=Q,t[62]=nt):nt=t[62];let U;t[63]!==D||t[64]!==L||t[65]!==nt?(U=M.jsx(D,{xs:L,children:nt}),t[63]=D,t[64]=L,t[65]=nt,t[66]=U):U=t[66];let X;if(t[67]!==l||t[68]!==n.availableYears||t[69]!==i.selectedYears||t[70]!==b){let H;t[72]!==l||t[73]!==i.selectedYears||t[74]!==b?(H=et=>M.jsx(Ft,{variant:l?"compendium-year-"+et%9:"compendium-year",active:i.selectedYears.includes(et),onClick:()=>b(et),children:et},et),t[72]=l,t[73]=i.selectedYears,t[74]=b,t[75]=H):H=t[75],X=n.availableYears.sort().map(H),t[67]=l,t[68]=n.availableYears,t[69]=i.selectedYears,t[70]=b,t[71]=X}else X=t[71];let q;t[76]!==X?(q=M.jsx(xs,{children:M.jsx(Ti,{className:"d-flex justify-content-end gap-2 m-3",children:X})}),t[76]=X,t[77]=q):q=t[77];let At;return t[78]!==U||t[79]!==q?(At=M.jsxs(M.Fragment,{children:[U,q]}),t[78]=U,t[79]=q,t[80]=At):At=t[80],At}function ug(e,t){return e.name.localeCompare(t.name)}function dg(){return[]}function fg(e){return e.name}const Hg=e=>{const t=wt.c(3),{children:n}=e,i=A.useContext(hr);let s;return t[0]!==n||t[1]!==i?(s=M.jsx("div",{ref:i,children:n}),t[0]=n,t[1]=i,t[2]=s):s=t[2],s};function rr(e){const t=new Set,n=new Map;return e.forEach(i=>{t.add(i.year),n.set(i.nren,{name:i.nren,country:i.nren_country})}),{years:t,nrens:n}}function Wg(e,t,n){const i=wt.c(14),s=n===void 0?gg:n;let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],i[0]=o):o=i[0];const[r,a]=A.useState(o),l=ll(),c=e+(l?"?preview":"");let h;i[1]!==c||i[2]!==t||i[3]!==s?(h=()=>{fetch(c).then(pg).then(b=>{const x=b.filter(s);a(x);const{years:v,nrens:_}=rr(x);t(y=>{const k=y.selectedYears.filter(D=>v.has(D)).length?y.selectedYears:[Math.max(...v)],C=y.selectedNrens.filter(D=>_.has(D)).length?y.selectedNrens:[..._.keys()];return{selectedYears:k,selectedNrens:C}})})},i[1]=c,i[2]=t,i[3]=s,i[4]=h):h=i[4];let u;i[5]!==c||i[6]!==t?(u=[c,t],i[5]=c,i[6]=t,i[7]=u):u=i[7],A.useEffect(h,u);let d,f;i[8]!==r?(f=rr(r),i[8]=r,i[9]=f):f=i[9],d=f;const{years:g,nrens:m}=d;let p;return i[10]!==r||i[11]!==m||i[12]!==g?(p={data:r,years:g,nrens:m},i[10]=r,i[11]=m,i[12]=g,i[13]=p):p=i[13],p}function pg(e){return e.json()}function gg(){return!0}export{K as A,bi as B,Ct as C,Ng as D,_t as E,Bg as F,j as G,Y as H,V as I,Mn as J,W as K,Vo as L,z as M,jg as N,pi as P,Ho as a,Cn as b,Mg as c,Sg as d,Fg as e,Hg as f,Tg as g,Ag as h,Eg as i,Lg as j,Ae as k,Ig as l,$g as m,Cg as n,zg as o,kg as p,Pg as q,Rg as r,Dg as s,hi as t,Wg as u,ci as v,Og as w,Je as x,at as y,bn as z};
diff --git a/compendium_v2/static/validation-COFmylEH.js b/compendium_v2/static/validation-COFmylEH.js
new file mode 100644
index 0000000000000000000000000000000000000000..6395d5fc64325a02092c02c5a8ea4823c5a56018
--- /dev/null
+++ b/compendium_v2/static/validation-COFmylEH.js
@@ -0,0 +1 @@
+var c=(e=>(e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e))(c||{}),l=(e=>(e.closed="closed",e.open="open",e.preview="preview",e.published="published",e))(l||{});function u(e,n=!1){if(!n&&(e==null||e==null||e==""))return!0;try{return e=e.trim(),e.includes(" ")?!1:(e.includes(":/")||(e="https://"+e),!!new URL(e))}catch{return!1}}const a={data_protection_contact:(...e)=>!0};function h(e){try{const n=this.question,t=e[0]||void 0,d=n.data&&"name"in n.data;let i;d?i=n.data.name:i=n.name;const r=n.value,o=a[i];if(o)return o(r,...e.slice(1));const s=f[t];if(!s)throw new Error(`Validation function ${t} not found for question ${i}`);return s(r,...e.slice(1))}catch(n){return console.error(n),!1}}function p(e){let n=e[0];if(n==null||n==null||n=="")return!0;try{return n=n.trim(),n.includes(" ")?!1:(n.includes(":/")||(n="https://"+n),!!new URL(n))}catch{return!1}}const f={validateWebsiteUrl:u};export{l as S,c as V,p as o,h as v};
diff --git a/compendium_v2/static/xlsx-BHRztzV8.js b/compendium_v2/static/xlsx-BHRztzV8.js
new file mode 100644
index 0000000000000000000000000000000000000000..b478d96586cac9523d58472d88d5137d18408476
--- /dev/null
+++ b/compendium_v2/static/xlsx-BHRztzV8.js
@@ -0,0 +1,95 @@
+/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Xt={};Xt.version="0.18.5";var $n=1252,Vi=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],jn=function(e){Vi.indexOf(e)!=-1&&($n=e)};function Xi(){jn(1252)}var Et=function(e){jn(e)};function Ki(){Et(1200),Xi()}var Mt=function(t){return String.fromCharCode(t)},fn=function(t){return String.fromCharCode(t)},ln,Rr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function wt(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0,l=0;l<e.length;)r=e.charCodeAt(l++),i=r>>2,n=e.charCodeAt(l++),s=(r&3)<<4|n>>4,a=e.charCodeAt(l++),f=(n&15)<<2|a>>6,o=a&63,isNaN(n)?f=o=64:isNaN(a)&&(o=64),t+=Rr.charAt(i)+Rr.charAt(s)+Rr.charAt(f)+Rr.charAt(o);return t}function yr(e){var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)i=Rr.indexOf(e.charAt(l++)),s=Rr.indexOf(e.charAt(l++)),r=i<<2|s>>4,t+=String.fromCharCode(r),f=Rr.indexOf(e.charAt(l++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),o=Rr.indexOf(e.charAt(l++)),a=(f&3)<<6|o,o!==64&&(t+=String.fromCharCode(a));return t}var ue=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Or=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Hr(e){return ue?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function on(e){return ue?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var xr=function(t){return ue?Or(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function a0(e){if(typeof ArrayBuffer>"u")return xr(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Ot(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function zi(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var be=ue?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Or(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function Yi(e){for(var t=[],r=0,n=e.length+250,a=Hr(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)a[r++]=s;else if(s<2048)a[r++]=192|s>>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|f>>6&15|(s&3)<<4,a[r++]=128|f&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Hr(65535),n=65530)}return t.push(a.slice(0,r)),be(t)}var pt=/\u0000/g,Bt=/[\u0001-\u0006]/g;function rt(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function vr(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}function D0(e,t){var r=""+e;return r.length>=t?r:Fe(" ",t-r.length)+r}function Kt(e,t){var r=""+e;return r.length>=t?r:r+Fe(" ",t-r.length)}function $i(e,t){var r=""+Math.round(e);return r.length>=t?r:Fe("0",t-r.length)+r}function ji(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}var cn=Math.pow(2,32);function Jr(e,t){if(e>cn||e<-cn)return $i(e,t);var r=Math.round(e);return ji(r,t)}function zt(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var hn=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],m0=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Ji(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var ye={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},un={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Zi={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Yt(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,s=1,f=0,o=1,l=0,c=0,p=Math.floor(a);l<t&&(p=Math.floor(a),f=p*s+i,c=p*l+o,!(a-p<5e-8));)a=1/(a-p),i=s,s=f,o=l,l=c;if(c>t&&(l>t?(c=o,f=i):(c=l,f=s)),!r)return[0,n*f,c];var x=Math.floor(n*f/c);return[x,n*f-x*c,c]}function Ut(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,s=[],f={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6&&(f.u=0),t&&t.date1904&&(n+=1462),f.u>.9999&&(f.u=0,++a==86400&&(f.T=a=0,++n,++f.D)),n===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var o=new Date(1900,0,1);o.setDate(o.getDate()+n-1),s=[o.getFullYear(),o.getMonth()+1,o.getDate()],i=o.getDay(),n<60&&(i=(i+6)%7),r&&(i=as(o,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=a%60,a=Math.floor(a/60),f.M=a%60,a=Math.floor(a/60),f.H=a,f.q=i,f}var Jn=new Date(1899,11,31,0,0,0),qi=Jn.getTime(),Qi=new Date(1900,2,1,0,0,0);function Zn(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=Qi&&(r+=24*60*60*1e3),(r-(qi+(e.getTimezoneOffset()-Jn.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function R0(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function es(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function rs(e){var t=e<0?12:11,r=R0(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function ts(e){var t=R0(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function ns(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=rs(e):t===10?r=e.toFixed(10).substr(0,12):r=ts(e),R0(es(r.toUpperCase()))}function F0(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):ns(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Nr(14,Zn(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function as(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function is(e,t,r,n){var a="",i=0,s=0,f=r.y,o,l=0;switch(e){case 98:f=r.y+543;case 121:switch(t.length){case 1:case 2:o=f%100,l=2;break;default:o=f%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:o=r.m,l=t.length;break;case 3:return m0[r.m-1][1];case 5:return m0[r.m-1][0];default:return m0[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=r.d,l=t.length;break;case 3:return hn[r.q][0];default:return hn[r.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?vr(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(a=vr(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":o=r.D*24+r.H;break;case"[m]":case"[mm]":o=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":o=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=t.length===3?1:2;break;case 101:o=f,l=1;break}var c=l>0?vr(o,l):"";return c}function Ir(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var qn=/%/g;function ss(e,t,r){var n=t.replace(qn,""),a=t.length-n.length;return Sr(e,n,r*Math.pow(10,2*a))+Fe("%",a)}function fs(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Sr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function Qn(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Qn(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,o,l,c){return o+l+c.substr(0,(a+i)%a)+"."+c.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var ea=/# (\?+)( ?)\/( ?)(\d+)/;function ls(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),s=a-i*n,f=n;return r+(i===0?"":""+i)+" "+(s===0?Fe(" ",e[1].length+1+e[4].length):D0(s,e[1].length)+e[2]+"/"+e[3]+vr(f,e[4].length))}function os(e,t,r){return r+(t===0?"":""+t)+Fe(" ",e[1].length+2+e[4].length)}var ra=/^#*0*\.([0#]+)/,ta=/\).*[0#]/,na=/\(###\) ###\\?-####/;function Ye(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function xn(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function vn(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function cs(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function hs(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function fr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ta)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?fr("n",n,r):"("+fr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return fs(e,t,r);if(t.indexOf("%")!==-1)return ss(e,t,r);if(t.indexOf("E")!==-1)return Qn(t,r);if(t.charCodeAt(0)===36)return"$"+fr(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Jr(o,t.length);if(t.match(/^[#?]+$/))return a=Jr(r,0),a==="0"&&(a=""),a.length>t.length?a:Ye(t.substr(0,t.length-a.length))+a;if(i=t.match(ea))return ls(i,o,l);if(t.match(/^#+0+$/))return l+Jr(o,t.length-t.indexOf("0"));if(i=t.match(ra))return a=xn(r,i[1].length).replace(/^([^\.]+)$/,"$1."+Ye(i[1])).replace(/\.$/,"."+Ye(i[1])).replace(/\.(\d*)$/,function(E,u){return"."+u+Fe("0",Ye(i[1]).length-u.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+xn(o,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Ir(Jr(o,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+fr(e,t,-r):Ir(""+(Math.floor(r)+cs(r,i[1].length)))+"."+vr(vn(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return fr(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=rt(fr(e,t.replace(/[\\-]/g,""),r)),s=0,rt(rt(t.replace(/\\/g,"")).replace(/[0#]/g,function(E){return s<a.length?a.charAt(s++):E==="0"?"0":""}));if(t.match(na))return a=fr(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),f=Yt(o,Math.pow(10,s)-1,!1),a=""+l,c=Sr("n",i[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),a+=c+i[2]+"/"+i[3],c=Kt(f[2],s),c.length<i[4].length&&(c=Ye(i[4].substr(i[4].length-c.length))+c),a+=c,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),f=Yt(o,Math.pow(10,s)-1,!0),l+(f[0]||(f[1]?"":"0"))+" "+(f[1]?D0(f[1],s)+i[2]+"/"+i[3]+Kt(f[2],s):Fe(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=Jr(r,0),t.length<=a.length?a:Ye(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var p=t.indexOf(".")-s,x=t.length-a.length-p;return Ye(t.substr(0,p)+a+t.substr(t.length-x))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=vn(r,i[1].length),r<0?"-"+fr(e,t,-r):Ir(hs(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(E){return"00,"+(E.length<3?vr(0,3-E.length):"")+E})+"."+vr(s,i[1].length);switch(t){case"###,##0.00":return fr(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var v=Ir(Jr(o,0));return v!=="0"?l+v:"";case"###,###.00":return fr(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return fr(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function us(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Sr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function xs(e,t,r){var n=t.replace(qn,""),a=t.length-n.length;return Sr(e,n,r*Math.pow(10,2*a))+Fe("%",a)}function aa(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+aa(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,o,l,c){return o+l+c.substr(0,(a+i)%a)+"."+c.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function mr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ta)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?mr("n",n,r):"("+mr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return us(e,t,r);if(t.indexOf("%")!==-1)return xs(e,t,r);if(t.indexOf("E")!==-1)return aa(t,r);if(t.charCodeAt(0)===36)return"$"+mr(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+vr(o,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:Ye(t.substr(0,t.length-a.length))+a;if(i=t.match(ea))return os(i,o,l);if(t.match(/^#+0+$/))return l+vr(o,t.length-t.indexOf("0"));if(i=t.match(ra))return a=(""+r).replace(/^([^\.]+)$/,"$1."+Ye(i[1])).replace(/\.$/,"."+Ye(i[1])),a=a.replace(/\.(\d*)$/,function(E,u){return"."+u+Fe("0",Ye(i[1]).length-u.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+(""+o).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Ir(""+o);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+mr(e,t,-r):Ir(""+r)+"."+Fe("0",i[1].length);if(i=t.match(/^#,#*,#0/))return mr(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=rt(mr(e,t.replace(/[\\-]/g,""),r)),s=0,rt(rt(t.replace(/\\/g,"")).replace(/[0#]/g,function(E){return s<a.length?a.charAt(s++):E==="0"?"0":""}));if(t.match(na))return a=mr(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),f=Yt(o,Math.pow(10,s)-1,!1),a=""+l,c=Sr("n",i[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),a+=c+i[2]+"/"+i[3],c=Kt(f[2],s),c.length<i[4].length&&(c=Ye(i[4].substr(i[4].length-c.length))+c),a+=c,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),f=Yt(o,Math.pow(10,s)-1,!0),l+(f[0]||(f[1]?"":"0"))+" "+(f[1]?D0(f[1],s)+i[2]+"/"+i[3]+Kt(f[2],s):Fe(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:Ye(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var p=t.indexOf(".")-s,x=t.length-a.length-p;return Ye(t.substr(0,p)+a+t.substr(t.length-x))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+mr(e,t,-r):Ir(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(E){return"00,"+(E.length<3?vr(0,3-E.length):"")+E})+"."+vr(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var v=Ir(""+o);return v!=="0"?l+v:"";default:if(t.match(/\.[0#?]*$/))return mr(e,t.slice(0,t.lastIndexOf(".")),r)+Ye(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Sr(e,t,r){return(r|0)===r?mr(e,t,r):fr(e,t,r)}function vs(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var ia=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function sa(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":zt(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(ia))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function ps(e,t,r,n){for(var a=[],i="",s=0,f="",o="t",l,c,p,x="H";s<e.length;)switch(f=e.charAt(s)){case"G":if(!zt(e,s))throw new Error("unrecognized character "+f+" in "+e);a[a.length]={t:"G",v:"General"},s+=7;break;case'"':for(i="";(p=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(p);a[a.length]={t:"t",v:i},++s;break;case"\\":var v=e.charAt(++s),E=v==="("||v===")"?v:"t";a[a.length]={t:E,v},++s;break;case"_":a[a.length]={t:"t",v:" "},s+=2;break;case"@":a[a.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(l==null&&(l=Ut(t,r,e.charAt(s+1)==="2"),l==null))return"";a[a.length]={t:"X",v:e.substr(s,2)},o=f,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||l==null&&(l=Ut(t,r),l==null))return"";for(i=f;++s<e.length&&e.charAt(s).toLowerCase()===f;)i+=f;f==="m"&&o.toLowerCase()==="h"&&(f="M"),f==="h"&&(f=x),a[a.length]={t:f,v:i},o=f;break;case"A":case"a":case"上":var u={t:f,v:f};if(l==null&&(l=Ut(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(l!=null&&(u.v=l.H>=12?"P":"A"),u.t="T",x="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(u.v=l.H>=12?"PM":"AM"),u.t="T",s+=5,x="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(l!=null&&(u.v=l.H>=12?"下午":"上午"),u.t="T",s+=5,x="h"):(u.t="t",++s),l==null&&u.t==="T")return"";a[a.length]=u,o=f;break;case"[":for(i=f;e.charAt(s++)!=="]"&&s<e.length;)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(ia)){if(l==null&&(l=Ut(t,r),l==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},o=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",sa(e)||(a[a.length]={t:"t",v:i}));break;case".":if(l!=null){for(i=f;++s<e.length&&(f=e.charAt(s))==="0";)i+=f;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=f;++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(s))>-1;)i+=f;a[a.length]={t:"n",v:i};break;case"?":for(i=f;e.charAt(++s)===f;)i+=f;a[a.length]={t:f,v:i},o=f;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=f;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)i+=e.charAt(s);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:f,v:f},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);a[a.length]={t:"t",v:f},++s;break}var _=0,O=0,R;for(s=a.length-1,o="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=x,o="h",_<1&&(_=1);break;case"s":(R=a[s].v.match(/\.0+$/))&&(O=Math.max(O,R[0].length-1)),_<3&&(_=3);case"d":case"y":case"M":case"e":o=a[s].t;break;case"m":o==="s"&&(a[s].t="M",_<2&&(_=2));break;case"X":break;case"Z":_<1&&a[s].v.match(/[Hh]/)&&(_=1),_<2&&a[s].v.match(/[Mm]/)&&(_=2),_<3&&a[s].v.match(/[Ss]/)&&(_=3)}switch(_){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var y="",M;for(s=0;s<a.length;++s)switch(a[s].t){case"t":case"T":case" ":case"D":break;case"X":a[s].v="",a[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[s].v=is(a[s].t.charCodeAt(0),a[s].v,l,O),a[s].t="t";break;case"n":case"?":for(M=s+1;a[M]!=null&&((f=a[M].t)==="?"||f==="D"||(f===" "||f==="t")&&a[M+1]!=null&&(a[M+1].t==="?"||a[M+1].t==="t"&&a[M+1].v==="/")||a[s].t==="("&&(f===" "||f==="n"||f===")")||f==="t"&&(a[M].v==="/"||a[M].v===" "&&a[M+1]!=null&&a[M+1].t=="?"));)a[s].v+=a[M].v,a[M]={v:"",t:";"},++M;y+=a[s].v,s=M-1;break;case"G":a[s].t="t",a[s].v=F0(t,r);break}var j="",ee,C;if(y.length>0){y.charCodeAt(0)==40?(ee=t<0&&y.charCodeAt(0)===45?-t:t,C=Sr("n",y,ee)):(ee=t<0&&n>1?-t:t,C=Sr("n",y,ee),ee<0&&a[0]&&a[0].t=="t"&&(C=C.substr(1),a[0].v="-"+a[0].v)),M=C.length-1;var b=a.length;for(s=0;s<a.length;++s)if(a[s]!=null&&a[s].t!="t"&&a[s].v.indexOf(".")>-1){b=s;break}var L=a.length;if(b===a.length&&C.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(M>=a[s].v.length-1?(M-=a[s].v.length,a[s].v=C.substr(M+1,a[s].v.length)):M<0?a[s].v="":(a[s].v=C.substr(0,M+1),M=-1),a[s].t="t",L=s);M>=0&&L<a.length&&(a[L].v=C.substr(0,M+1)+a[L].v)}else if(b!==a.length&&C.indexOf("E")===-1){for(M=C.indexOf(".")-1,s=b;s>=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(c=a[s].v.indexOf(".")>-1&&s===b?a[s].v.indexOf(".")-1:a[s].v.length-1,j=a[s].v.substr(c+1);c>=0;--c)M>=0&&(a[s].v.charAt(c)==="0"||a[s].v.charAt(c)==="#")&&(j=C.charAt(M--)+j);a[s].v=j,a[s].t="t",L=s}for(M>=0&&L<a.length&&(a[L].v=C.substr(0,M+1)+a[L].v),M=C.indexOf(".")+1,s=b;s<a.length;++s)if(!(a[s]==null||"n?(".indexOf(a[s].t)===-1&&s!==b)){for(c=a[s].v.indexOf(".")>-1&&s===b?a[s].v.indexOf(".")+1:0,j=a[s].v.substr(0,c);c<a[s].v.length;++c)M<C.length&&(j+=C.charAt(M++));a[s].v=j,a[s].t="t",L=s}}}for(s=0;s<a.length;++s)a[s]!=null&&"n?".indexOf(a[s].t)>-1&&(ee=n>1&&t<0&&s>0&&a[s-1].v==="-"?-t:t,a[s].v=Sr(a[s].t,a[s].v,ee),a[s].t="t");var G="";for(s=0;s!==a.length;++s)a[s]!=null&&(G+=a[s].v);return G}var pn=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function dn(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function ds(e,t){var r=vs(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(pn),f=r[1].match(pn);return dn(t,s)?[n,r[0]]:dn(t,f)?[n,r[1]]:[n,r[s!=null&&f!=null?2:1]]}return[n,i]}function Nr(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:ye)[e],n==null&&(n=r.table&&r.table[un[e]]||ye[un[e]]),n==null&&(n=Zi[e]||"General");break}if(zt(n,0))return F0(t,r);t instanceof Date&&(t=Zn(t,r.date1904));var a=ds(n,t);if(zt(a[1]))return F0(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return ps(a[1],t,r,a[0])}function fa(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(ye[r]==null){t<0&&(t=r);continue}if(ye[r]==e){t=r;break}}t<0&&(t=391)}return ye[t]=e,t}function i0(e){for(var t=0;t!=392;++t)e[t]!==void 0&&fa(e[t],t)}function s0(){ye=Ji()}var la=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function ms(e){var t=typeof e=="number"?ye[e]:e;return t=t.replace(la,"(\\d+)"),new RegExp("^"+t+"$")}function gs(e,t,r){var n=-1,a=-1,i=-1,s=-1,f=-1,o=-1;(t.match(la)||[]).forEach(function(p,x){var v=parseInt(r[x+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=v;break;case"d":i=v;break;case"h":s=v;break;case"s":o=v;break;case"m":s>=0?f=v:a=v;break}}),o>=0&&f==-1&&a>=0&&(f=a,a=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);return s==-1&&f==-1&&o==-1?l:n==-1&&a==-1&&i==-1?c:l+"T"+c}var _s=function(){var e={};e.version="1.2.0";function t(){for(var C=0,b=new Array(256),L=0;L!=256;++L)C=L,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,b[L]=C;return typeof Int32Array<"u"?new Int32Array(b):b}var r=t();function n(C){var b=0,L=0,G=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)V[G]=C[G];for(G=0;G!=256;++G)for(L=C[G],b=256+G;b<4096;b+=256)L=V[b]=L>>>8^C[L&255];var K=[];for(G=1;G!=16;++G)K[G-1]=typeof Int32Array<"u"?V.subarray(G*256,G*256+256):V.slice(G*256,G*256+256);return K}var a=n(r),i=a[0],s=a[1],f=a[2],o=a[3],l=a[4],c=a[5],p=a[6],x=a[7],v=a[8],E=a[9],u=a[10],_=a[11],O=a[12],R=a[13],y=a[14];function M(C,b){for(var L=b^-1,G=0,V=C.length;G<V;)L=L>>>8^r[(L^C.charCodeAt(G++))&255];return~L}function j(C,b){for(var L=b^-1,G=C.length-15,V=0;V<G;)L=y[C[V++]^L&255]^R[C[V++]^L>>8&255]^O[C[V++]^L>>16&255]^_[C[V++]^L>>>24]^u[C[V++]]^E[C[V++]]^v[C[V++]]^x[C[V++]]^p[C[V++]]^c[C[V++]]^l[C[V++]]^o[C[V++]]^f[C[V++]]^s[C[V++]]^i[C[V++]]^r[C[V++]];for(G+=15;V<G;)L=L>>>8^r[(L^C[V++])&255];return~L}function ee(C,b){for(var L=b^-1,G=0,V=C.length,K=0,re=0;G<V;)K=C.charCodeAt(G++),K<128?L=L>>>8^r[(L^K)&255]:K<2048?(L=L>>>8^r[(L^(192|K>>6&31))&255],L=L>>>8^r[(L^(128|K&63))&255]):K>=55296&&K<57344?(K=(K&1023)+64,re=C.charCodeAt(G++)&1023,L=L>>>8^r[(L^(240|K>>8&7))&255],L=L>>>8^r[(L^(128|K>>2&63))&255],L=L>>>8^r[(L^(128|re>>6&15|(K&3)<<4))&255],L=L>>>8^r[(L^(128|re&63))&255]):(L=L>>>8^r[(L^(224|K>>12&15))&255],L=L>>>8^r[(L^(128|K>>6&63))&255],L=L>>>8^r[(L^(128|K&63))&255]);return~L}return e.table=r,e.bstr=M,e.buf=j,e.str=ee,e}(),_e=function(){var t={};t.version="1.2.1";function r(h,g){for(var d=h.split("/"),m=g.split("/"),T=0,w=0,I=Math.min(d.length,m.length);T<I;++T){if(w=d[T].length-m[T].length)return w;if(d[T]!=m[T])return d[T]<m[T]?-1:1}return d.length-m.length}function n(h){if(h.charAt(h.length-1)=="/")return h.slice(0,-1).indexOf("/")===-1?h:n(h.slice(0,-1));var g=h.lastIndexOf("/");return g===-1?h:h.slice(0,g+1)}function a(h){if(h.charAt(h.length-1)=="/")return a(h.slice(0,-1));var g=h.lastIndexOf("/");return g===-1?h:h.slice(g+1)}function i(h,g){typeof g=="string"&&(g=new Date(g));var d=g.getHours();d=d<<6|g.getMinutes(),d=d<<5|g.getSeconds()>>>1,h.write_shift(2,d);var m=g.getFullYear()-1980;m=m<<4|g.getMonth()+1,m=m<<5|g.getDate(),h.write_shift(2,m)}function s(h){var g=h.read_shift(2)&65535,d=h.read_shift(2)&65535,m=new Date,T=d&31;d>>>=5;var w=d&15;d>>>=4,m.setMilliseconds(0),m.setFullYear(d+1980),m.setMonth(w-1),m.setDate(T);var I=g&31;g>>>=5;var U=g&63;return g>>>=6,m.setHours(g),m.setMinutes(U),m.setSeconds(I<<1),m}function f(h){rr(h,0);for(var g={},d=0;h.l<=h.length-4;){var m=h.read_shift(2),T=h.read_shift(2),w=h.l+T,I={};switch(m){case 21589:d=h.read_shift(1),d&1&&(I.mtime=h.read_shift(4)),T>5&&(d&2&&(I.atime=h.read_shift(4)),d&4&&(I.ctime=h.read_shift(4))),I.mtime&&(I.mt=new Date(I.mtime*1e3));break}h.l=w,g[m]=I}return g}var o;function l(){return o||(o={})}function c(h,g){if(h[0]==80&&h[1]==75)return sn(h,g);if((h[0]|32)==109&&(h[1]|32)==105)return Bi(h,g);if(h.length<512)throw new Error("CFB file size "+h.length+" < 512");var d=3,m=512,T=0,w=0,I=0,U=0,D=0,N=[],k=h.slice(0,512);rr(k,0);var X=p(k);switch(d=X[0],d){case 3:m=512;break;case 4:m=4096;break;case 0:if(X[1]==0)return sn(h,g);default:throw new Error("Major Version: Expected 3 or 4 saw "+d)}m!==512&&(k=h.slice(0,m),rr(k,28));var Z=h.slice(0,m);x(k,d);var te=k.read_shift(4,"i");if(d===3&&te!==0)throw new Error("# Directory Sectors: Expected 0 saw "+te);k.l+=4,I=k.read_shift(4,"i"),k.l+=4,k.chk("00100000","Mini Stream Cutoff Size: "),U=k.read_shift(4,"i"),T=k.read_shift(4,"i"),D=k.read_shift(4,"i"),w=k.read_shift(4,"i");for(var z=-1,Q=0;Q<109&&(z=k.read_shift(4,"i"),!(z<0));++Q)N[Q]=z;var fe=v(h,m);_(D,w,fe,m,N);var we=R(fe,I,N,m);we[I].name="!Directory",T>0&&U!==re&&(we[U].name="!MiniFAT"),we[N[0]].name="!FAT",we.fat_addrs=N,we.ssz=m;var Se={},Ve=[],ct=[],ht=[];y(I,we,fe,Ve,T,Se,ct,U),E(ct,ht,Ve),Ve.shift();var ut={FileIndex:ct,FullPaths:ht};return g&&g.raw&&(ut.raw={header:Z,sectors:fe}),ut}function p(h){if(h[h.l]==80&&h[h.l+1]==75)return[0,0];h.chk(ge,"Header Signature: "),h.l+=16;var g=h.read_shift(2,"u");return[h.read_shift(2,"u"),g]}function x(h,g){var d=9;switch(h.l+=2,d=h.read_shift(2)){case 9:if(g!=3)throw new Error("Sector Shift: Expected 9 saw "+d);break;case 12:if(g!=4)throw new Error("Sector Shift: Expected 12 saw "+d);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+d)}h.chk("0600","Mini Sector Shift: "),h.chk("000000000000","Reserved: ")}function v(h,g){for(var d=Math.ceil(h.length/g)-1,m=[],T=1;T<d;++T)m[T-1]=h.slice(T*g,(T+1)*g);return m[d-1]=h.slice(d*g),m}function E(h,g,d){for(var m=0,T=0,w=0,I=0,U=0,D=d.length,N=[],k=[];m<D;++m)N[m]=k[m]=m,g[m]=d[m];for(;U<k.length;++U)m=k[U],T=h[m].L,w=h[m].R,I=h[m].C,N[m]===m&&(T!==-1&&N[T]!==T&&(N[m]=N[T]),w!==-1&&N[w]!==w&&(N[m]=N[w])),I!==-1&&(N[I]=m),T!==-1&&m!=N[m]&&(N[T]=N[m],k.lastIndexOf(T)<U&&k.push(T)),w!==-1&&m!=N[m]&&(N[w]=N[m],k.lastIndexOf(w)<U&&k.push(w));for(m=1;m<D;++m)N[m]===m&&(w!==-1&&N[w]!==w?N[m]=N[w]:T!==-1&&N[T]!==T&&(N[m]=N[T]));for(m=1;m<D;++m)if(h[m].type!==0){if(U=m,U!=N[U])do U=N[U],g[m]=g[U]+"/"+g[m];while(U!==0&&N[U]!==-1&&U!=N[U]);N[m]=-1}for(g[0]+="/",m=1;m<D;++m)h[m].type!==2&&(g[m]+="/")}function u(h,g,d){for(var m=h.start,T=h.size,w=[],I=m;d&&T>0&&I>=0;)w.push(g.slice(I*K,I*K+K)),T-=K,I=br(d,I*4);return w.length===0?B(0):be(w).slice(0,h.size)}function _(h,g,d,m,T){var w=re;if(h===re){if(g!==0)throw new Error("DIFAT chain shorter than expected")}else if(h!==-1){var I=d[h],U=(m>>>2)-1;if(!I)return;for(var D=0;D<U&&(w=br(I,D*4))!==re;++D)T.push(w);_(br(I,m-4),g-1,d,m,T)}}function O(h,g,d,m,T){var w=[],I=[];T||(T=[]);var U=m-1,D=0,N=0;for(D=g;D>=0;){T[D]=!0,w[w.length]=D,I.push(h[D]);var k=d[Math.floor(D*4/m)];if(N=D*4&U,m<4+N)throw new Error("FAT boundary crossed: "+D+" 4 "+m);if(!h[k])break;D=br(h[k],N)}return{nodes:w,data:An([I])}}function R(h,g,d,m){var T=h.length,w=[],I=[],U=[],D=[],N=m-1,k=0,X=0,Z=0,te=0;for(k=0;k<T;++k)if(U=[],Z=k+g,Z>=T&&(Z-=T),!I[Z]){D=[];var z=[];for(X=Z;X>=0;){z[X]=!0,I[X]=!0,U[U.length]=X,D.push(h[X]);var Q=d[Math.floor(X*4/m)];if(te=X*4&N,m<4+te)throw new Error("FAT boundary crossed: "+X+" 4 "+m);if(!h[Q]||(X=br(h[Q],te),z[X]))break}w[Z]={nodes:U,data:An([D])}}return w}function y(h,g,d,m,T,w,I,U){for(var D=0,N=m.length?2:0,k=g[h].data,X=0,Z=0,te;X<k.length;X+=128){var z=k.slice(X,X+128);rr(z,64),Z=z.read_shift(2),te=L0(z,0,Z-N),m.push(te);var Q={name:te,type:z.read_shift(1),color:z.read_shift(1),L:z.read_shift(4,"i"),R:z.read_shift(4,"i"),C:z.read_shift(4,"i"),clsid:z.read_shift(16),state:z.read_shift(4,"i"),start:0,size:0},fe=z.read_shift(2)+z.read_shift(2)+z.read_shift(2)+z.read_shift(2);fe!==0&&(Q.ct=M(z,z.l-8));var we=z.read_shift(2)+z.read_shift(2)+z.read_shift(2)+z.read_shift(2);we!==0&&(Q.mt=M(z,z.l-8)),Q.start=z.read_shift(4,"i"),Q.size=z.read_shift(4,"i"),Q.size<0&&Q.start<0&&(Q.size=Q.type=0,Q.start=re,Q.name=""),Q.type===5?(D=Q.start,T>0&&D!==re&&(g[D].name="!StreamData")):Q.size>=4096?(Q.storage="fat",g[Q.start]===void 0&&(g[Q.start]=O(d,Q.start,g.fat_addrs,g.ssz)),g[Q.start].name=Q.name,Q.content=g[Q.start].data.slice(0,Q.size)):(Q.storage="minifat",Q.size<0?Q.size=0:D!==re&&Q.start!==re&&g[D]&&(Q.content=u(Q,g[D].data,(g[U]||{}).data))),Q.content&&rr(Q.content,0),w[te]=Q,I.push(Q)}}function M(h,g){return new Date((nr(h,g+4)/1e7*Math.pow(2,32)+nr(h,g)/1e7-11644473600)*1e3)}function j(h,g){return l(),c(o.readFileSync(h),g)}function ee(h,g){var d=g&&g.type;switch(d||ue&&Buffer.isBuffer(h)&&(d="buffer"),d||"base64"){case"file":return j(h,g);case"base64":return c(xr(yr(h)),g);case"binary":return c(xr(h),g)}return c(h,g)}function C(h,g){var d=g||{},m=d.root||"Root Entry";if(h.FullPaths||(h.FullPaths=[]),h.FileIndex||(h.FileIndex=[]),h.FullPaths.length!==h.FileIndex.length)throw new Error("inconsistent CFB structure");h.FullPaths.length===0&&(h.FullPaths[0]=m+"/",h.FileIndex[0]={name:m,type:5}),d.CLSID&&(h.FileIndex[0].clsid=d.CLSID),b(h)}function b(h){var g="Sh33tJ5";if(!_e.find(h,"/"+g)){var d=B(4);d[0]=55,d[1]=d[3]=50,d[2]=54,h.FileIndex.push({name:g,type:2,content:d,size:4,L:69,R:69,C:69}),h.FullPaths.push(h.FullPaths[0]+g),L(h)}}function L(h,g){C(h);for(var d=!1,m=!1,T=h.FullPaths.length-1;T>=0;--T){var w=h.FileIndex[T];switch(w.type){case 0:m?d=!0:(h.FileIndex.pop(),h.FullPaths.pop());break;case 1:case 2:case 5:m=!0,isNaN(w.R*w.L*w.C)&&(d=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(d=!0);break;default:d=!0;break}}if(!(!d&&!g)){var I=new Date(1987,1,19),U=0,D=Object.create?Object.create(null):{},N=[];for(T=0;T<h.FullPaths.length;++T)D[h.FullPaths[T]]=!0,h.FileIndex[T].type!==0&&N.push([h.FullPaths[T],h.FileIndex[T]]);for(T=0;T<N.length;++T){var k=n(N[T][0]);m=D[k],m||(N.push([k,{name:a(k).replace("/",""),type:1,clsid:Me,ct:I,mt:I,content:null}]),D[k]=!0)}for(N.sort(function(te,z){return r(te[0],z[0])}),h.FullPaths=[],h.FileIndex=[],T=0;T<N.length;++T)h.FullPaths[T]=N[T][0],h.FileIndex[T]=N[T][1];for(T=0;T<N.length;++T){var X=h.FileIndex[T],Z=h.FullPaths[T];if(X.name=a(Z).replace("/",""),X.L=X.R=X.C=-(X.color=1),X.size=X.content?X.content.length:0,X.start=0,X.clsid=X.clsid||Me,T===0)X.C=N.length>1?1:-1,X.size=0,X.type=5;else if(Z.slice(-1)=="/"){for(U=T+1;U<N.length&&n(h.FullPaths[U])!=Z;++U);for(X.C=U>=N.length?-1:U,U=T+1;U<N.length&&n(h.FullPaths[U])!=n(Z);++U);X.R=U>=N.length?-1:U,X.type=1}else n(h.FullPaths[T+1]||"")==n(Z)&&(X.R=T+1),X.type=2}}}function G(h,g){var d=g||{};if(d.fileType=="mad")return Ui(h,d);switch(L(h),d.fileType){case"zip":return Ii(h,d)}var m=function(te){for(var z=0,Q=0,fe=0;fe<te.FileIndex.length;++fe){var we=te.FileIndex[fe];if(we.content){var Se=we.content.length;Se>0&&(Se<4096?z+=Se+63>>6:Q+=Se+511>>9)}}for(var Ve=te.FullPaths.length+3>>2,ct=z+7>>3,ht=z+127>>7,ut=ct+Q+Ve+ht,Ur=ut+127>>7,d0=Ur<=109?0:Math.ceil((Ur-109)/127);ut+Ur+d0+127>>7>Ur;)d0=++Ur<=109?0:Math.ceil((Ur-109)/127);var wr=[1,d0,Ur,ht,Ve,Q,z,0];return te.FileIndex[0].size=z<<6,wr[7]=(te.FileIndex[0].start=wr[0]+wr[1]+wr[2]+wr[3]+wr[4]+wr[5])+(wr[6]+7>>3),wr}(h),T=B(m[7]<<9),w=0,I=0;{for(w=0;w<8;++w)T.write_shift(1,le[w]);for(w=0;w<8;++w)T.write_shift(2,0);for(T.write_shift(2,62),T.write_shift(2,3),T.write_shift(2,65534),T.write_shift(2,9),T.write_shift(2,6),w=0;w<3;++w)T.write_shift(2,0);for(T.write_shift(4,0),T.write_shift(4,m[2]),T.write_shift(4,m[0]+m[1]+m[2]+m[3]-1),T.write_shift(4,0),T.write_shift(4,4096),T.write_shift(4,m[3]?m[0]+m[1]+m[2]-1:re),T.write_shift(4,m[3]),T.write_shift(-4,m[1]?m[0]-1:re),T.write_shift(4,m[1]),w=0;w<109;++w)T.write_shift(-4,w<m[2]?m[1]+w:-1)}if(m[1])for(I=0;I<m[1];++I){for(;w<236+I*127;++w)T.write_shift(-4,w<m[2]?m[1]+w:-1);T.write_shift(-4,I===m[1]-1?re:I+1)}var U=function(te){for(I+=te;w<I-1;++w)T.write_shift(-4,w+1);te&&(++w,T.write_shift(-4,re))};for(I=w=0,I+=m[1];w<I;++w)T.write_shift(-4,Ce.DIFSECT);for(I+=m[2];w<I;++w)T.write_shift(-4,Ce.FATSECT);U(m[3]),U(m[4]);for(var D=0,N=0,k=h.FileIndex[0];D<h.FileIndex.length;++D)k=h.FileIndex[D],k.content&&(N=k.content.length,!(N<4096)&&(k.start=I,U(N+511>>9)));for(U(m[6]+7>>3);T.l&511;)T.write_shift(-4,Ce.ENDOFCHAIN);for(I=w=0,D=0;D<h.FileIndex.length;++D)k=h.FileIndex[D],k.content&&(N=k.content.length,!(!N||N>=4096)&&(k.start=I,U(N+63>>6)));for(;T.l&511;)T.write_shift(-4,Ce.ENDOFCHAIN);for(w=0;w<m[4]<<2;++w){var X=h.FullPaths[w];if(!X||X.length===0){for(D=0;D<17;++D)T.write_shift(4,0);for(D=0;D<3;++D)T.write_shift(4,-1);for(D=0;D<12;++D)T.write_shift(4,0);continue}k=h.FileIndex[w],w===0&&(k.start=k.size?k.start-1:re);var Z=w===0&&d.root||k.name;if(N=2*(Z.length+1),T.write_shift(64,Z,"utf16le"),T.write_shift(2,N),T.write_shift(1,k.type),T.write_shift(1,k.color),T.write_shift(-4,k.L),T.write_shift(-4,k.R),T.write_shift(-4,k.C),k.clsid)T.write_shift(16,k.clsid,"hex");else for(D=0;D<4;++D)T.write_shift(4,0);T.write_shift(4,k.state||0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,k.start),T.write_shift(4,k.size),T.write_shift(4,0)}for(w=1;w<h.FileIndex.length;++w)if(k=h.FileIndex[w],k.size>=4096)if(T.l=k.start+1<<9,ue&&Buffer.isBuffer(k.content))k.content.copy(T,T.l,0,k.size),T.l+=k.size+511&-512;else{for(D=0;D<k.size;++D)T.write_shift(1,k.content[D]);for(;D&511;++D)T.write_shift(1,0)}for(w=1;w<h.FileIndex.length;++w)if(k=h.FileIndex[w],k.size>0&&k.size<4096)if(ue&&Buffer.isBuffer(k.content))k.content.copy(T,T.l,0,k.size),T.l+=k.size+63&-64;else{for(D=0;D<k.size;++D)T.write_shift(1,k.content[D]);for(;D&63;++D)T.write_shift(1,0)}if(ue)T.l=T.length;else for(;T.l<T.length;)T.write_shift(1,0);return T}function V(h,g){var d=h.FullPaths.map(function(D){return D.toUpperCase()}),m=d.map(function(D){var N=D.split("/");return N[N.length-(D.slice(-1)=="/"?2:1)]}),T=!1;g.charCodeAt(0)===47?(T=!0,g=d[0].slice(0,-1)+g):T=g.indexOf("/")!==-1;var w=g.toUpperCase(),I=T===!0?d.indexOf(w):m.indexOf(w);if(I!==-1)return h.FileIndex[I];var U=!w.match(Bt);for(w=w.replace(pt,""),U&&(w=w.replace(Bt,"!")),I=0;I<d.length;++I)if((U?d[I].replace(Bt,"!"):d[I]).replace(pt,"")==w||(U?m[I].replace(Bt,"!"):m[I]).replace(pt,"")==w)return h.FileIndex[I];return null}var K=64,re=-2,ge="d0cf11e0a1b11ae1",le=[208,207,17,224,161,177,26,225],Me="00000000000000000000000000000000",Ce={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:re,FREESECT:-1,HEADER_SIGNATURE:ge,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Me,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function cr(h,g,d){l();var m=G(h,d);o.writeFileSync(g,m)}function Ne(h){for(var g=new Array(h.length),d=0;d<h.length;++d)g[d]=String.fromCharCode(h[d]);return g.join("")}function ir(h,g){var d=G(h,g);switch(g&&g.type||"buffer"){case"file":return l(),o.writeFileSync(g.filename,d),d;case"binary":return typeof d=="string"?d:Ne(d);case"base64":return wt(typeof d=="string"?d:Ne(d));case"buffer":if(ue)return Buffer.isBuffer(d)?d:Or(d);case"array":return typeof d=="string"?xr(d):d}return d}var Qe;function S(h){try{var g=h.InflateRaw,d=new g;if(d._processChunk(new Uint8Array([3,0]),d._finishFlushFlag),d.bytesRead)Qe=h;else throw new Error("zlib does not expose bytesRead")}catch(m){console.error("cannot use native zlib: "+(m.message||m))}}function P(h,g){if(!Qe)return nn(h,g);var d=Qe.InflateRaw,m=new d,T=m._processChunk(h.slice(h.l),m._finishFlushFlag);return h.l+=m.bytesRead,T}function F(h){return Qe?Qe.deflateRawSync(h):Z0(h)}var A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ie=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function se(h){var g=(h<<1|h<<11)&139536|(h<<5|h<<15)&558144;return(g>>16|g>>8|g)&255}for(var ae=typeof Uint8Array<"u",q=ae?new Uint8Array(256):[],Te=0;Te<256;++Te)q[Te]=se(Te);function ce(h,g){var d=q[h&255];return g<=8?d>>>8-g:(d=d<<8|q[h>>8&255],g<=16?d>>>16-g:(d=d<<8|q[h>>16&255],d>>>24-g))}function ze(h,g){var d=g&7,m=g>>>3;return(h[m]|(d<=6?0:h[m+1]<<8))>>>d&3}function xe(h,g){var d=g&7,m=g>>>3;return(h[m]|(d<=5?0:h[m+1]<<8))>>>d&7}function Tr(h,g){var d=g&7,m=g>>>3;return(h[m]|(d<=4?0:h[m+1]<<8))>>>d&15}function Ae(h,g){var d=g&7,m=g>>>3;return(h[m]|(d<=3?0:h[m+1]<<8))>>>d&31}function ne(h,g){var d=g&7,m=g>>>3;return(h[m]|(d<=1?0:h[m+1]<<8))>>>d&127}function sr(h,g,d){var m=g&7,T=g>>>3,w=(1<<d)-1,I=h[T]>>>m;return d<8-m||(I|=h[T+1]<<8-m,d<16-m)||(I|=h[T+2]<<16-m,d<24-m)||(I|=h[T+3]<<24-m),I&w}function Er(h,g,d){var m=g&7,T=g>>>3;return m<=5?h[T]|=(d&7)<<m:(h[T]|=d<<m&255,h[T+1]=(d&7)>>8-m),g+3}function Mr(h,g,d){var m=g&7,T=g>>>3;return d=(d&1)<<m,h[T]|=d,g+1}function jr(h,g,d){var m=g&7,T=g>>>3;return d<<=m,h[T]|=d&255,d>>>=8,h[T+1]=d,g+8}function J0(h,g,d){var m=g&7,T=g>>>3;return d<<=m,h[T]|=d&255,d>>>=8,h[T+1]=d&255,h[T+2]=d>>>8,g+16}function u0(h,g){var d=h.length,m=2*d>g?2*d:g+5,T=0;if(d>=g)return h;if(ue){var w=on(m);if(h.copy)h.copy(w);else for(;T<h.length;++T)w[T]=h[T];return w}else if(ae){var I=new Uint8Array(m);if(I.set)I.set(h);else for(;T<d;++T)I[T]=h[T];return I}return h.length=m,h}function dr(h){for(var g=new Array(h),d=0;d<h;++d)g[d]=0;return g}function Pt(h,g,d){var m=1,T=0,w=0,I=0,U=0,D=h.length,N=ae?new Uint16Array(32):dr(32);for(w=0;w<32;++w)N[w]=0;for(w=D;w<d;++w)h[w]=0;D=h.length;var k=ae?new Uint16Array(D):dr(D);for(w=0;w<D;++w)N[T=h[w]]++,m<T&&(m=T),k[w]=0;for(N[0]=0,w=1;w<=m;++w)N[w+16]=U=U+N[w-1]<<1;for(w=0;w<D;++w)U=h[w],U!=0&&(k[w]=N[U+16]++);var X=0;for(w=0;w<D;++w)if(X=h[w],X!=0)for(U=ce(k[w],m)>>m-X,I=(1<<m+4-X)-1;I>=0;--I)g[U|I<<X]=X&15|w<<4;return m}var x0=ae?new Uint16Array(512):dr(512),v0=ae?new Uint16Array(32):dr(32);if(!ae){for(var Br=0;Br<512;++Br)x0[Br]=0;for(Br=0;Br<32;++Br)v0[Br]=0}(function(){for(var h=[],g=0;g<32;g++)h.push(5);Pt(h,v0,32);var d=[];for(g=0;g<=143;g++)d.push(8);for(;g<=255;g++)d.push(9);for(;g<=279;g++)d.push(7);for(;g<=287;g++)d.push(8);Pt(d,x0,288)})();var Ci=function(){for(var g=ae?new Uint8Array(32768):[],d=0,m=0;d<ie.length-1;++d)for(;m<ie[d+1];++m)g[m]=d;for(;m<32768;++m)g[m]=29;var T=ae?new Uint8Array(259):[];for(d=0,m=0;d<H.length-1;++d)for(;m<H[d+1];++m)T[m]=d;function w(U,D){for(var N=0;N<U.length;){var k=Math.min(65535,U.length-N),X=N+k==U.length;for(D.write_shift(1,+X),D.write_shift(2,k),D.write_shift(2,~k&65535);k-- >0;)D[D.l++]=U[N++]}return D.l}function I(U,D){for(var N=0,k=0,X=ae?new Uint16Array(32768):[];k<U.length;){var Z=Math.min(65535,U.length-k);if(Z<10){for(N=Er(D,N,+(k+Z==U.length)),N&7&&(N+=8-(N&7)),D.l=N/8|0,D.write_shift(2,Z),D.write_shift(2,~Z&65535);Z-- >0;)D[D.l++]=U[k++];N=D.l*8;continue}N=Er(D,N,+(k+Z==U.length)+2);for(var te=0;Z-- >0;){var z=U[k];te=(te<<5^z)&32767;var Q=-1,fe=0;if((Q=X[te])&&(Q|=k&-32768,Q>k&&(Q-=32768),Q<k))for(;U[Q+fe]==U[k+fe]&&fe<250;)++fe;if(fe>2){z=T[fe],z<=22?N=jr(D,N,q[z+1]>>1)-1:(jr(D,N,3),N+=5,jr(D,N,q[z-23]>>5),N+=3);var we=z<8?0:z-4>>2;we>0&&(J0(D,N,fe-H[z]),N+=we),z=g[k-Q],N=jr(D,N,q[z]>>3),N-=3;var Se=z<4?0:z-2>>1;Se>0&&(J0(D,N,k-Q-ie[z]),N+=Se);for(var Ve=0;Ve<fe;++Ve)X[te]=k&32767,te=(te<<5^U[k])&32767,++k;Z-=fe-1}else z<=143?z=z+48:N=Mr(D,N,1),N=jr(D,N,q[z]),X[te]=k&32767,++k}N=jr(D,N,0)-1}return D.l=(N+7)/8|0,D.l}return function(D,N){return D.length<8?w(D,N):I(D,N)}}();function Z0(h){var g=B(50+Math.floor(h.length*1.1)),d=Ci(h,g);return g.slice(0,d)}var q0=ae?new Uint16Array(32768):dr(32768),Q0=ae?new Uint16Array(32768):dr(32768),en=ae?new Uint16Array(128):dr(128),rn=1,tn=1;function Oi(h,g){var d=Ae(h,g)+257;g+=5;var m=Ae(h,g)+1;g+=5;var T=Tr(h,g)+4;g+=4;for(var w=0,I=ae?new Uint8Array(19):dr(19),U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D=1,N=ae?new Uint8Array(8):dr(8),k=ae?new Uint8Array(8):dr(8),X=I.length,Z=0;Z<T;++Z)I[A[Z]]=w=xe(h,g),D<w&&(D=w),N[w]++,g+=3;var te=0;for(N[0]=0,Z=1;Z<=D;++Z)k[Z]=te=te+N[Z-1]<<1;for(Z=0;Z<X;++Z)(te=I[Z])!=0&&(U[Z]=k[te]++);var z=0;for(Z=0;Z<X;++Z)if(z=I[Z],z!=0){te=q[U[Z]]>>8-z;for(var Q=(1<<7-z)-1;Q>=0;--Q)en[te|Q<<z]=z&7|Z<<3}var fe=[];for(D=1;fe.length<d+m;)switch(te=en[ne(h,g)],g+=te&7,te>>>=3){case 16:for(w=3+ze(h,g),g+=2,te=fe[fe.length-1];w-- >0;)fe.push(te);break;case 17:for(w=3+xe(h,g),g+=3;w-- >0;)fe.push(0);break;case 18:for(w=11+ne(h,g),g+=7;w-- >0;)fe.push(0);break;default:fe.push(te),D<te&&(D=te);break}var we=fe.slice(0,d),Se=fe.slice(d);for(Z=d;Z<286;++Z)we[Z]=0;for(Z=m;Z<30;++Z)Se[Z]=0;return rn=Pt(we,q0,286),tn=Pt(Se,Q0,30),g}function Di(h,g){if(h[0]==3&&!(h[1]&3))return[Hr(g),2];for(var d=0,m=0,T=on(g||1<<18),w=0,I=T.length>>>0,U=0,D=0;!(m&1);){if(m=xe(h,d),d+=3,m>>>1)m>>1==1?(U=9,D=5):(d=Oi(h,d),U=rn,D=tn);else{d&7&&(d+=8-(d&7));var N=h[d>>>3]|h[(d>>>3)+1]<<8;if(d+=32,N>0)for(!g&&I<w+N&&(T=u0(T,w+N),I=T.length);N-- >0;)T[w++]=h[d>>>3],d+=8;continue}for(;;){!g&&I<w+32767&&(T=u0(T,w+32767),I=T.length);var k=sr(h,d,U),X=m>>>1==1?x0[k]:q0[k];if(d+=X&15,X>>>=4,!(X>>>8&255))T[w++]=X;else{if(X==256)break;X-=257;var Z=X<8?0:X-4>>2;Z>5&&(Z=0);var te=w+H[X];Z>0&&(te+=sr(h,d,Z),d+=Z),k=sr(h,d,D),X=m>>>1==1?v0[k]:Q0[k],d+=X&15,X>>>=4;var z=X<4?0:X-2>>1,Q=ie[X];for(z>0&&(Q+=sr(h,d,z),d+=z),!g&&I<te&&(T=u0(T,te+100),I=T.length);w<te;)T[w]=T[w-Q],++w}}}return g?[T,d+7>>>3]:[T.slice(0,w),d+7>>>3]}function nn(h,g){var d=h.slice(h.l||0),m=Di(d,g);return h.l+=m[1],m[0]}function an(h,g){if(h)typeof console<"u"&&console.error(g);else throw new Error(g)}function sn(h,g){var d=h;rr(d,0);var m=[],T=[],w={FileIndex:m,FullPaths:T};C(w,{root:g.root});for(var I=d.length-4;(d[I]!=80||d[I+1]!=75||d[I+2]!=5||d[I+3]!=6)&&I>=0;)--I;d.l=I+4,d.l+=4;var U=d.read_shift(2);d.l+=6;var D=d.read_shift(4);for(d.l=D,I=0;I<U;++I){d.l+=20;var N=d.read_shift(4),k=d.read_shift(4),X=d.read_shift(2),Z=d.read_shift(2),te=d.read_shift(2);d.l+=8;var z=d.read_shift(4),Q=f(d.slice(d.l+X,d.l+X+Z));d.l+=X+Z+te;var fe=d.l;d.l=z+4,Ri(d,N,k,w,Q),d.l=fe}return w}function Ri(h,g,d,m,T){h.l+=2;var w=h.read_shift(2),I=h.read_shift(2),U=s(h);if(w&8257)throw new Error("Unsupported ZIP encryption");for(var D=h.read_shift(4),N=h.read_shift(4),k=h.read_shift(4),X=h.read_shift(2),Z=h.read_shift(2),te="",z=0;z<X;++z)te+=String.fromCharCode(h[h.l++]);if(Z){var Q=f(h.slice(h.l,h.l+Z));(Q[21589]||{}).mt&&(U=Q[21589].mt),((T||{})[21589]||{}).mt&&(U=T[21589].mt)}h.l+=Z;var fe=h.slice(h.l,h.l+N);switch(I){case 8:fe=P(h,k);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+I)}var we=!1;w&8&&(D=h.read_shift(4),D==134695760&&(D=h.read_shift(4),we=!0),N=h.read_shift(4),k=h.read_shift(4)),N!=g&&an(we,"Bad compressed size: "+g+" != "+N),k!=d&&an(we,"Bad uncompressed size: "+d+" != "+k),p0(m,te,fe,{unsafe:!0,mt:U})}function Ii(h,g){var d=g||{},m=[],T=[],w=B(1),I=d.compression?8:0,U=0,D=0,N=0,k=0,X=0,Z=h.FullPaths[0],te=Z,z=h.FileIndex[0],Q=[],fe=0;for(D=1;D<h.FullPaths.length;++D)if(te=h.FullPaths[D].slice(Z.length),z=h.FileIndex[D],!(!z.size||!z.content||te=="Sh33tJ5")){var we=k,Se=B(te.length);for(N=0;N<te.length;++N)Se.write_shift(1,te.charCodeAt(N)&127);Se=Se.slice(0,Se.l),Q[X]=_s.buf(z.content,0);var Ve=z.content;I==8&&(Ve=F(Ve)),w=B(30),w.write_shift(4,67324752),w.write_shift(2,20),w.write_shift(2,U),w.write_shift(2,I),z.mt?i(w,z.mt):w.write_shift(4,0),w.write_shift(-4,Q[X]),w.write_shift(4,Ve.length),w.write_shift(4,z.content.length),w.write_shift(2,Se.length),w.write_shift(2,0),k+=w.length,m.push(w),k+=Se.length,m.push(Se),k+=Ve.length,m.push(Ve),w=B(46),w.write_shift(4,33639248),w.write_shift(2,0),w.write_shift(2,20),w.write_shift(2,U),w.write_shift(2,I),w.write_shift(4,0),w.write_shift(-4,Q[X]),w.write_shift(4,Ve.length),w.write_shift(4,z.content.length),w.write_shift(2,Se.length),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(4,0),w.write_shift(4,we),fe+=w.l,T.push(w),fe+=Se.length,T.push(Se),++X}return w=B(22),w.write_shift(4,101010256),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,X),w.write_shift(2,X),w.write_shift(4,fe),w.write_shift(4,k),w.write_shift(2,0),be([be(m),be(T),w])}var Lt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Ni(h,g){if(h.ctype)return h.ctype;var d=h.name||"",m=d.match(/\.([^\.]+)$/);return m&&Lt[m[1]]||g&&(m=(d=g).match(/[\.\\]([^\.\\])+$/),m&&Lt[m[1]])?Lt[m[1]]:"application/octet-stream"}function ki(h){for(var g=wt(h),d=[],m=0;m<g.length;m+=76)d.push(g.slice(m,m+76));return d.join(`\r
+`)+`\r
+`}function Pi(h){var g=h.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(N){var k=N.charCodeAt(0).toString(16).toUpperCase();return"="+(k.length==1?"0"+k:k)});g=g.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),g.charAt(0)==`
+`&&(g="=0D"+g.slice(1)),g=g.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
+=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var d=[],m=g.split(`\r
+`),T=0;T<m.length;++T){var w=m[T];if(w.length==0){d.push("");continue}for(var I=0;I<w.length;){var U=76,D=w.slice(I,I+U);D.charAt(U-1)=="="?U--:D.charAt(U-2)=="="?U-=2:D.charAt(U-3)=="="&&(U-=3),D=w.slice(I,I+U),I+=U,I<w.length&&(D+="="),d.push(D)}}return d.join(`\r
+`)}function Li(h){for(var g=[],d=0;d<h.length;++d){for(var m=h[d];d<=h.length&&m.charAt(m.length-1)=="=";)m=m.slice(0,m.length-1)+h[++d];g.push(m)}for(var T=0;T<g.length;++T)g[T]=g[T].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return xr(g.join(`\r
+`))}function Mi(h,g,d){for(var m="",T="",w="",I,U=0;U<10;++U){var D=g[U];if(!D||D.match(/^\s*$/))break;var N=D.match(/^(.*?):\s*([^\s].*)$/);if(N)switch(N[1].toLowerCase()){case"content-location":m=N[2].trim();break;case"content-type":w=N[2].trim();break;case"content-transfer-encoding":T=N[2].trim();break}}switch(++U,T.toLowerCase()){case"base64":I=xr(yr(g.slice(U).join("")));break;case"quoted-printable":I=Li(g.slice(U));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+T)}var k=p0(h,m.slice(d.length),I,{unsafe:!0});w&&(k.ctype=w)}function Bi(h,g){if(Ne(h.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var d=g&&g.root||"",m=(ue&&Buffer.isBuffer(h)?h.toString("binary"):Ne(h)).split(`\r
+`),T=0,w="";for(T=0;T<m.length;++T)if(w=m[T],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),d||(d=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,d.length)!=d))for(;d.length>0&&(d=d.slice(0,d.length-1),d=d.slice(0,d.lastIndexOf("/")+1),w.slice(0,d.length)!=d););var I=(m[1]||"").match(/boundary="(.*?)"/);if(!I)throw new Error("MAD cannot find boundary");var U="--"+(I[1]||""),D=[],N=[],k={FileIndex:D,FullPaths:N};C(k);var X,Z=0;for(T=0;T<m.length;++T){var te=m[T];te!==U&&te!==U+"--"||(Z++&&Mi(k,m.slice(X,T),d),X=T)}return k}function Ui(h,g){var d=g||{},m=d.boundary||"SheetJS";m="------="+m;for(var T=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+m.slice(2)+'"',"","",""],w=h.FullPaths[0],I=w,U=h.FileIndex[0],D=1;D<h.FullPaths.length;++D)if(I=h.FullPaths[D].slice(w.length),U=h.FileIndex[D],!(!U.size||!U.content||I=="Sh33tJ5")){I=I.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(fe){return"_x"+fe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(fe){return"_u"+fe.charCodeAt(0).toString(16)+"_"});for(var N=U.content,k=ue&&Buffer.isBuffer(N)?N.toString("binary"):Ne(N),X=0,Z=Math.min(1024,k.length),te=0,z=0;z<=Z;++z)(te=k.charCodeAt(z))>=32&&te<128&&++X;var Q=X>=Z*4/5;T.push(m),T.push("Content-Location: "+(d.root||"file:///C:/SheetJS/")+I),T.push("Content-Transfer-Encoding: "+(Q?"quoted-printable":"base64")),T.push("Content-Type: "+Ni(U,I)),T.push(""),T.push(Q?Pi(k):ki(k))}return T.push(m+`--\r
+`),T.join(`\r
+`)}function bi(h){var g={};return C(g,h),g}function p0(h,g,d,m){var T=m&&m.unsafe;T||C(h);var w=!T&&_e.find(h,g);if(!w){var I=h.FullPaths[0];g.slice(0,I.length)==I?I=g:(I.slice(-1)!="/"&&(I+="/"),I=(I+g).replace("//","/")),w={name:a(g),type:2},h.FileIndex.push(w),h.FullPaths.push(I),T||_e.utils.cfb_gc(h)}return w.content=d,w.size=d?d.length:0,m&&(m.CLSID&&(w.clsid=m.CLSID),m.mt&&(w.mt=m.mt),m.ct&&(w.ct=m.ct)),w}function Wi(h,g){C(h);var d=_e.find(h,g);if(d){for(var m=0;m<h.FileIndex.length;++m)if(h.FileIndex[m]==d)return h.FileIndex.splice(m,1),h.FullPaths.splice(m,1),!0}return!1}function Hi(h,g,d){C(h);var m=_e.find(h,g);if(m){for(var T=0;T<h.FileIndex.length;++T)if(h.FileIndex[T]==m)return h.FileIndex[T].name=a(d),h.FullPaths[T]=d,!0}return!1}function Gi(h){L(h,!0)}return t.find=V,t.read=ee,t.parse=c,t.write=ir,t.writeFile=cr,t.utils={cfb_new:bi,cfb_add:p0,cfb_del:Wi,cfb_mov:Hi,cfb_gc:Gi,ReadShift:mt,CheckField:ya,prep_blob:rr,bconcat:be,use_zlib:S,_deflateRaw:Z0,_inflateRaw:nn,consts:Ce},t}();function Ts(e){return typeof e=="string"?a0(e):Array.isArray(e)?zi(e):e}function Dt(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=a0(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?At(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([Ts(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var f=File(e);return f.open("w"),f.encoding="binary",Array.isArray(t)&&(t=Ot(t)),f.write(t),f.close(),t}catch(o){if(!o.message||!o.message.match(/onstruct/))throw o}throw new Error("cannot save file "+e)}function Ge(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function mn(e,t){for(var r=[],n=Ge(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function I0(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function f0(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function Es(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var $t=new Date(1899,11,30,0,0,0);function Ze(e,t){var r=e.getTime(),n=$t.getTime()+(e.getTimezoneOffset()-$t.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var oa=new Date,ws=$t.getTime()+(oa.getTimezoneOffset()-$t.getTimezoneOffset())*6e4,gn=oa.getTimezoneOffset();function ca(e){var t=new Date;return t.setTime(e*24*60*60*1e3+ws),t.getTimezoneOffset()!==gn&&t.setTime(t.getTime()+(t.getTimezoneOffset()-gn)*6e4),t}var _n=new Date("2017-02-19T19:06:09.000Z"),ha=isNaN(_n.getFullYear())?new Date("2/19/17"):_n,Ss=ha.getFullYear()==2017;function je(e,t){var r=new Date(e);if(Ss)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(ha.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function l0(e,t){if(ue&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function qe(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=qe(e[r]));return t}function Fe(e,t){for(var r="";r.length<t;)r+=e;return r}function Ar(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(t=Number(n)))?t/r:t}var As=["january","february","march","april","may","june","july","august","september","october","november","december"];function St(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&As.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function oe(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return ue?n=Or(r):n=Yi(r),_e.utils.cfb_add(e,t,n)}_e.utils.cfb_add(e,t,r)}else e.file(t,r)}function N0(){return _e.utils.cfb_new()}var Re=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+`,Fs={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},k0=I0(Fs),P0=/[&<>'"]/g,ys=/[\u0000-\u0008\u000b-\u001f]/g;function de(e){var t=e+"";return t.replace(P0,function(r){return k0[r]}).replace(ys,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Tn(e){return de(e).replace(/ /g,"_x0020_")}var ua=/[\u0000-\u001f]/g;function Cs(e){var t=e+"";return t.replace(P0,function(r){return k0[r]}).replace(/\n/g,"<br/>").replace(ua,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Os(e){var t=e+"";return t.replace(P0,function(r){return k0[r]}).replace(ua,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function Ds(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function Rs(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function g0(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),f=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function En(e){var t=Hr(2*e.length),r,n,a=1,i=0,s=0,f;for(n=0;n<e.length;n+=a)a=1,(f=e.charCodeAt(n))<128?r=f:f<224?(r=(f&31)*64+(e.charCodeAt(n+1)&63),a=2):f<240?(r=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function wn(e){return Or(e,"binary").toString("utf8")}var bt="foo bar baz☃🍣",dt=ue&&(wn(bt)==g0(bt)&&wn||En(bt)==g0(bt)&&En)||g0,At=ue?function(e){return Or(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},Is=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
+`).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),xa=/(^\s|\s$|\n)/;function We(e,t){return"<"+e+(t.match(xa)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Ft(e){return Ge(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Y(e,t,r){return"<"+e+(r!=null?Ft(r):"")+(t!=null?(t.match(xa)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function y0(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Ns(e,t){switch(typeof e){case"string":var r=Y("vt:lpwstr",de(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return Y((e|0)==e?"vt:i4":"vt:r8",de(String(e)));case"boolean":return Y("vt:bool",e?"true":"false")}if(e instanceof Date)return Y("vt:filetime",y0(e));throw new Error("Unable to serialize "+e)}var ke={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},st=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],tr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function ks(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Ps(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var f=0;f<=5;++f,i/=256)e[r+f]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var Sn=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},An=ue?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Or(t)})):Sn(e)}:Sn,Fn=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(vt(e,a)));return n.join("").replace(pt,"")},L0=ue?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(pt,""):Fn(e,t,r)}:Fn,yn=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},va=ue?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):yn(e,t,r)}:yn,Cn=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(Qr(e,a)));return n.join("")},Rt=ue?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Cn(t,r,n)}:Cn,pa=function(e,t){var r=nr(e,t);return r>0?Rt(e,t+4,t+4+r-1):""},da=pa,ma=function(e,t){var r=nr(e,t);return r>0?Rt(e,t+4,t+4+r-1):""},ga=ma,_a=function(e,t){var r=2*nr(e,t);return r>0?Rt(e,t+4,t+4+r-1):""},Ta=_a,Ea=function(t,r){var n=nr(t,r);return n>0?L0(t,r+4,r+4+n):""},wa=Ea,Sa=function(e,t){var r=nr(e,t);return r>0?Rt(e,t+4,t+4+r):""},Aa=Sa,Fa=function(e,t){return ks(e,t)},jt=Fa,M0=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};ue&&(da=function(t,r){if(!Buffer.isBuffer(t))return pa(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},ga=function(t,r){if(!Buffer.isBuffer(t))return ma(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Ta=function(t,r){if(!Buffer.isBuffer(t))return _a(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},wa=function(t,r){if(!Buffer.isBuffer(t))return Ea(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Aa=function(t,r){if(!Buffer.isBuffer(t))return Sa(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},jt=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Fa(t,r)},M0=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Qr=function(e,t){return e[t]},vt=function(e,t){return e[t+1]*256+e[t]},Ls=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},nr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},br=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Ms=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function mt(e,t){var r="",n,a,i=[],s,f,o,l;switch(t){case"dbcs":if(l=this.l,ue&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o<e;++o)r+=String.fromCharCode(vt(this,l)),l+=2;e*=2;break;case"utf8":r=Rt(this,this.l,this.l+e);break;case"utf16le":e*=2,r=L0(this,this.l,this.l+e);break;case"wstr":return mt.call(this,e,"dbcs");case"lpstr-ansi":r=da(this,this.l),e=4+nr(this,this.l);break;case"lpstr-cp":r=ga(this,this.l),e=4+nr(this,this.l);break;case"lpwstr":r=Ta(this,this.l),e=4+2*nr(this,this.l);break;case"lpp4":e=4+nr(this,this.l),r=wa(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+nr(this,this.l),r=Aa(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(s=Qr(this,this.l+e++))!==0;)i.push(Mt(s));r=i.join("");break;case"_wstr":for(e=0,r="";(s=vt(this,this.l+e))!==0;)i.push(Mt(s)),e+=2;e+=2,r=i.join("");break;case"dbcs-cont":for(r="",l=this.l,o=0;o<e;++o){if(this.lens&&this.lens.indexOf(l)!==-1)return s=Qr(this,l),this.l=l+1,f=mt.call(this,e-o,s?"dbcs-cont":"sbcs-cont"),i.join("")+f;i.push(Mt(vt(this,l))),l+=2}r=i.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",l=this.l,o=0;o!=e;++o){if(this.lens&&this.lens.indexOf(l)!==-1)return s=Qr(this,l),this.l=l+1,f=mt.call(this,e-o,s?"dbcs-cont":"sbcs-cont"),i.join("")+f;i.push(Mt(Qr(this,l))),l+=1}r=i.join("");break;default:switch(e){case 1:return n=Qr(this,this.l),this.l++,n;case 2:return n=(t==="i"?Ls:vt)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?br:Ms)(this,this.l),this.l+=4,n):(a=nr(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=jt(this,this.l):a=jt([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=va(this,this.l,e);break}}return this.l+=e,r}var Bs=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},Us=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},bs=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function Ws(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)bs(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var s=t.charCodeAt(a);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,Bs(this,t,this.l);break;case 8:if(n=8,r==="f"){Ps(this,t,this.l);break}case 16:break;case-4:n=4,Us(this,t,this.l);break}return this.l+=n,this}function ya(e,t){var r=va(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function rr(e,t){e.l=t,e.read_shift=mt,e.chk=ya,e.write_shift=Ws}function _r(e,t){e.l+=t}function B(e){var t=Hr(e);return rr(t,0),t}function Je(){var e=[],t=ue?256:2048,r=function(l){var c=B(l);return rr(c,0),c},n=r(t),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(l){return n&&l<n.length-n.l?n:(a(),n=r(Math.max(l+1,t)))},s=function(){return a(),be(e)},f=function(l){a(),n=l,n.l==null&&(n.l=n.length),i(t)};return{next:i,push:f,end:s,_bufs:e}}function W(e,t,r,n){var a=+t,i;if(!isNaN(a)){n||(n=Lh[a].p||(r||[]).length||0),i=1+(a>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var s=e.next(i);a<=127?s.write_shift(1,a):(s.write_shift(1,(a&127)+128),s.write_shift(1,a>>7));for(var f=0;f!=4;++f)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&M0(r)&&e.push(r)}}function gt(e,t,r){var n=qe(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function On(e,t,r){var n=qe(e);return n.s=gt(n.s,t.s,r),n.e=gt(n.e,t.s,r),n}function _t(e,t){if(e.cRel&&e.c<0)for(e=qe(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=qe(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=me(e);return!e.cRel&&e.cRel!=null&&(r=Vs(r)),!e.rRel&&e.rRel!=null&&(r=Hs(r)),r}function _0(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Xe(e.s.c)+":"+(e.e.cRel?"":"$")+Xe(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+He(e.s.r)+":"+(e.e.rRel?"":"$")+He(e.e.r):_t(e.s,t.biff)+":"+_t(e.e,t.biff)}function B0(e){return parseInt(Gs(e),10)-1}function He(e){return""+(e+1)}function Hs(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Gs(e){return e.replace(/\$(\d+)$/,"$1")}function U0(e){for(var t=Xs(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Xe(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Vs(e){return e.replace(/^([A-Z])/,"$$$1")}function Xs(e){return e.replace(/^\$([A-Z])/,"$1")}function Ks(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Pe(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function me(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function ar(e){var t=e.indexOf(":");return t==-1?{s:Pe(e),e:Pe(e)}:{s:Pe(e.slice(0,t)),e:Pe(e.slice(t+1))}}function De(e,t){return typeof t>"u"||typeof t=="number"?De(e.s,e.e):(typeof e!="string"&&(e=me(e)),typeof t!="string"&&(t=me(t)),e==t?e:e+":"+t)}function Ee(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n<i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function Dn(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Nr(e.z,r?Ze(t):t)}catch{}try{return e.w=Nr((e.XF||{}).numFmtId||(r?14:0),r?Ze(t):t)}catch{return""+t}}function Cr(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?It[e.v]||e.v:t==null?Dn(e,e.v):Dn(e,t))}function Xr(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Ca(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),s=0,f=0;if(i&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Pe(n.origin):n.origin;s=o.r,f=o.c}i["!ref"]||(i["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=Ee(i["!ref"]);l.s.c=c.s.c,l.s.r=c.s.r,l.e.c=Math.max(l.e.c,c.e.c),l.e.r=Math.max(l.e.r,c.e.r),s==-1&&(l.e.r=s=c.e.r+1)}for(var p=0;p!=t.length;++p)if(t[p]){if(!Array.isArray(t[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var x=0;x!=t[p].length;++x)if(!(typeof t[p][x]>"u")){var v={v:t[p][x]},E=s+p,u=f+x;if(l.s.r>E&&(l.s.r=E),l.s.c>u&&(l.s.c=u),l.e.r<E&&(l.e.r=E),l.e.c<u&&(l.e.c=u),t[p][x]&&typeof t[p][x]=="object"&&!Array.isArray(t[p][x])&&!(t[p][x]instanceof Date))v=t[p][x];else if(Array.isArray(v.v)&&(v.f=t[p][x][1],v.v=v.v[0]),v.v===null)if(v.f)v.t="n";else if(n.nullError)v.t="e",v.v=0;else if(n.sheetStubs)v.t="z";else continue;else typeof v.v=="number"?v.t="n":typeof v.v=="boolean"?v.t="b":v.v instanceof Date?(v.z=n.dateNF||ye[14],n.cellDates?(v.t="d",v.w=Nr(v.z,Ze(v.v))):(v.t="n",v.v=Ze(v.v),v.w=Nr(v.z,v.v))):v.t="s";if(a)i[E]||(i[E]=[]),i[E][u]&&i[E][u].z&&(v.z=i[E][u].z),i[E][u]=v;else{var _=me({c:u,r:E});i[_]&&i[_].z&&(v.z=i[_].z),i[_]=v}}}return l.s.c<1e7&&(i["!ref"]=De(l)),i}function ft(e,t){return Ca(null,e,t)}function zs(e){return e.read_shift(4,"i")}function pr(e,t){return t||(t=B(4)),t.write_shift(4,e),t}function Ke(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function Le(e,t){var r=!1;return t==null&&(r=!0,t=B(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Ys(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function $s(e,t){return t||(t=B(4)),t.write_shift(2,0),t.write_shift(2,0),t}function b0(e,t){var r=e.l,n=e.read_shift(1),a=Ke(e),i=[],s={t:a,h:a};if(n&1){for(var f=e.read_shift(4),o=0;o!=f;++o)i.push(Ys(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function js(e,t){var r=!1;return t==null&&(r=!0,t=B(15+4*e.t.length)),t.write_shift(1,0),Le(e.t,t),r?t.slice(0,t.l):t}var Js=b0;function Zs(e,t){var r=!1;return t==null&&(r=!0,t=B(23+4*e.t.length)),t.write_shift(1,1),Le(e.t,t),t.write_shift(4,1),$s({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function or(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function Kr(e,t){return t==null&&(t=B(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function zr(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Yr(e,t){return t==null&&(t=B(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var qs=Ke,Oa=Le;function W0(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Jt(e,t){var r=!1;return t==null&&(r=!0,t=B(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var Qs=Ke,C0=W0,H0=Jt;function Da(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?jt([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):br(t,0)>>2;return r?a/100:a}function Ra(e,t){t==null&&(t=B(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:a==(a|0)&&a>=-536870912&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Ia(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function ef(e,t){return t||(t=B(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var $r=Ia,lt=ef;function ot(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Gr(e,t){return(t||B(8)).write_shift(8,e,"f")}function rf(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),s=e.read_shift(1),f=e.read_shift(1),o=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var l=hf[a];l&&(t.rgb=Wn(l));break;case 2:t.rgb=Wn([s,f,o]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function Zt(e,t){if(t||(t=B(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function tf(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function nf(e,t){t||(t=B(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var Na=2,er=3,Wt=11,qt=19,Ht=64,af=65,sf=71,ff=4108,lf=4126,Ue=80,Rn={1:{n:"CodePage",t:Na},2:{n:"Category",t:Ue},3:{n:"PresentationFormat",t:Ue},4:{n:"ByteCount",t:er},5:{n:"LineCount",t:er},6:{n:"ParagraphCount",t:er},7:{n:"SlideCount",t:er},8:{n:"NoteCount",t:er},9:{n:"HiddenCount",t:er},10:{n:"MultimediaClipCount",t:er},11:{n:"ScaleCrop",t:Wt},12:{n:"HeadingPairs",t:ff},13:{n:"TitlesOfParts",t:lf},14:{n:"Manager",t:Ue},15:{n:"Company",t:Ue},16:{n:"LinksUpToDate",t:Wt},17:{n:"CharacterCount",t:er},19:{n:"SharedDoc",t:Wt},22:{n:"HyperlinksChanged",t:Wt},23:{n:"AppVersion",t:er,p:"version"},24:{n:"DigSig",t:af},26:{n:"ContentType",t:Ue},27:{n:"ContentStatus",t:Ue},28:{n:"Language",t:Ue},29:{n:"Version",t:Ue},255:{},2147483648:{n:"Locale",t:qt},2147483651:{n:"Behavior",t:qt},1919054434:{}},In={1:{n:"CodePage",t:Na},2:{n:"Title",t:Ue},3:{n:"Subject",t:Ue},4:{n:"Author",t:Ue},5:{n:"Keywords",t:Ue},6:{n:"Comments",t:Ue},7:{n:"Template",t:Ue},8:{n:"LastAuthor",t:Ue},9:{n:"RevNumber",t:Ue},10:{n:"EditTime",t:Ht},11:{n:"LastPrinted",t:Ht},12:{n:"CreatedDate",t:Ht},13:{n:"ModifiedDate",t:Ht},14:{n:"PageCount",t:er},15:{n:"WordCount",t:er},16:{n:"CharCount",t:er},17:{n:"Thumbnail",t:sf},18:{n:"Application",t:Ue},19:{n:"DocSecurity",t:er},255:{},2147483648:{n:"Locale",t:qt},2147483651:{n:"Behavior",t:qt},1919054434:{}};function of(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var cf=of([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),hf=qe(cf),It={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},uf={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Gt={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function ka(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Pa(e,t){var r=Es(uf),n=[],a;n[n.length]=Re,n[n.length]=Y("Types",null,{xmlns:ke.CT,"xmlns:xsd":ke.xsd,"xmlns:xsi":ke.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(o){return Y("Default",null,{Extension:o[0],ContentType:o[1]})}));var i=function(o){e[o]&&e[o].length>0&&(a=e[o][0],n[n.length]=Y("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Gt[o][t.bookType]||Gt[o].xlsx}))},s=function(o){(e[o]||[]).forEach(function(l){n[n.length]=Y("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:Gt[o][t.bookType]||Gt[o].xlsx})})},f=function(o){(e[o]||[]).forEach(function(l){n[n.length]=Y("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:r[o][0]})})};return i("workbooks"),s("sheets"),s("charts"),f("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(f),f("vba"),f("comments"),f("threadedcomments"),f("drawings"),s("metadata"),f("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var he={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function La(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function tt(e){var t=[Re,Y("Relationships",null,{xmlns:ke.RELS})];return Ge(e["!id"]).forEach(function(r){t[t.length]=Y("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function pe(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,[he.HLINK,he.XPATH,he.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}function xf(e){var t=[Re];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
+`),t.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
+`);for(var r=0;r<e.length;++r)t.push('  <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
+`);return t.push("</manifest:manifest>"),t.join("")}function Nn(e,t,r){return['  <rdf:Description rdf:about="'+e+`">
+`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
+`,`  </rdf:Description>
+`].join("")}function vf(e,t){return['  <rdf:Description rdf:about="'+e+`">
+`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
+`,`  </rdf:Description>
+`].join("")}function pf(e){var t=[Re];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+`);for(var r=0;r!=e.length;++r)t.push(Nn(e[r][0],e[r][1])),t.push(vf("",e[r][0]));return t.push(Nn("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function Ma(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Xt.version+"</meta:generator></office:meta></office:document-meta>"}var Wr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function T0(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=de(t),n[n.length]=r?Y(e,t,r):We(e,t))}function Ba(e,t){var r=t||{},n=[Re,Y("cp:coreProperties",null,{"xmlns:cp":ke.CORE_PROPS,"xmlns:dc":ke.dc,"xmlns:dcterms":ke.dcterms,"xmlns:dcmitype":ke.dcmitype,"xmlns:xsi":ke.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&T0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:y0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&T0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:y0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Wr.length;++i){var s=Wr[i],f=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&T0(s[0],f,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var nt=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Ua=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ba(e){var t=[],r=Y;return e||(e={}),e.Application="SheetJS",t[t.length]=Re,t[t.length]=Y("Properties",null,{xmlns:ke.EXT_PROPS,"xmlns:vt":ke.vt}),nt.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=de(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+de(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Wa(e){var t=[Re,Y("Properties",null,{xmlns:ke.CUST_PROPS,"xmlns:vt":ke.vt})];if(!e)return t.join("");var r=1;return Ge(e).forEach(function(a){++r,t[t.length]=Y("property",Ns(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:de(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var kn={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function df(e,t){var r=[];return Ge(kn).map(function(n){for(var a=0;a<Wr.length;++a)if(Wr[a][1]==n)return Wr[a];for(a=0;a<nt.length;++a)if(nt[a][1]==n)return nt[a];throw n}).forEach(function(n){if(e[n[1]]!=null){var a=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(We(kn[n[1]]||n[1],a))}}),Y("DocumentProperties",r.join(""),{xmlns:tr.o})}function mf(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return e&&Ge(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)){for(var s=0;s<Wr.length;++s)if(i==Wr[s][1])return;for(s=0;s<nt.length;++s)if(i==nt[s][1])return;for(s=0;s<r.length;++s)if(i==r[s])return;var f=e[i],o="string";typeof f=="number"?(o="float",f=String(f)):f===!0||f===!1?(o="boolean",f=f?"1":"0"):f=String(f),a.push(Y(Tn(i),f,{"dt:dt":o}))}}),t&&Ge(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)&&!(e&&Object.prototype.hasOwnProperty.call(e,i))){var s=t[i],f="string";typeof s=="number"?(f="float",s=String(s)):s===!0||s===!1?(f="boolean",s=s?"1":"0"):s instanceof Date?(f="dateTime.tz",s=s.toISOString()):s=String(s),a.push(Y(Tn(i),s,{"dt:dt":f}))}}),"<"+n+' xmlns="'+tr.o+'">'+a.join("")+"</"+n+">"}function gf(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var s=B(8);return s.write_shift(4,n),s.write_shift(4,a),s}function Pn(e,t){var r=B(4),n=B(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=B(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=gf(t);break;case 31:case 80:for(n=B(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return be([r,n])}var Ha=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function _f(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Ln(e,t,r){var n=B(8),a=[],i=[],s=8,f=0,o=B(8),l=B(8);if(o.write_shift(4,2),o.write_shift(4,1200),l.write_shift(4,1),i.push(o),a.push(l),s+=8+o.length,!t){l=B(8),l.write_shift(4,0),a.unshift(l);var c=[B(4)];for(c[0].write_shift(4,e.length),f=0;f<e.length;++f){var p=e[f][0];for(o=B(8+2*(p.length+1)+(p.length%2?0:2)),o.write_shift(4,f+2),o.write_shift(4,p.length+1),o.write_shift(0,p,"dbcs");o.l!=o.length;)o.write_shift(1,0);c.push(o)}o=be(c),i.unshift(o),s+=8+o.length}for(f=0;f<e.length;++f)if(!(t&&!t[e[f][0]])&&!(Ha.indexOf(e[f][0])>-1||Ua.indexOf(e[f][0])>-1)&&e[f][1]!=null){var x=e[f][1],v=0;if(t){v=+t[e[f][0]];var E=r[v];if(E.p=="version"&&typeof x=="string"){var u=x.split(".");x=(+u[0]<<16)+(+u[1]||0)}o=Pn(E.t,x)}else{var _=_f(x);_==-1&&(_=31,x=String(x)),o=Pn(_,x)}i.push(o),l=B(8),l.write_shift(4,t?v:2+f),a.push(l),s+=8+o.length}var O=8*(i.length+1);for(f=0;f<i.length;++f)a[f].write_shift(4,O),O+=i[f].length;return n.write_shift(4,s),n.write_shift(4,i.length),be([n].concat(a).concat(i))}function Mn(e,t,r,n,a,i){var s=B(a?68:48),f=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,_e.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,a?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,a?68:48);var o=Ln(e,r,n);if(f.push(o),a){var l=Ln(a,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+o.length),f.push(l)}return be(f)}function Tf(e,t){t||(t=B(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function Ef(e,t){return e.read_shift(t)===1}function $e(e,t){return t||(t=B(2)),t.write_shift(2,+!!e),t}function Ga(e){return e.read_shift(2,"u")}function lr(e,t){return t||(t=B(2)),t.write_shift(2,e),t}function Va(e,t,r){return r||(r=B(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function Xa(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=e.read_shift(1);i&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var s=n?e.read_shift(n,a):"";return s}function wf(e){var t=e.t||"",r=B(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=B(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return be(a)}function Sf(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function Af(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Sf(e,n,r)}function Ff(e,t,r){if(r.biff>5)return Af(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Ka(e,t,r){return r||(r=B(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Bn(e,t){t||(t=B(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function yf(e){var t=B(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),i=a>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)t.write_shift(4,s[r]);if(i==28)n=n.slice(1),Bn(n,t);else if(i&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));var f=a>-1?n.slice(0,a):n;for(t.write_shift(4,2*(f.length+1)),r=0;r<f.length;++r)t.write_shift(2,f.charCodeAt(r));t.write_shift(2,0),i&8&&Bn(a>-1?n.slice(a+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));for(var o=0;n.slice(o*3,o*3+3)=="../"||n.slice(o*3,o*3+3)=="..\\";)++o;for(t.write_shift(2,o),t.write_shift(4,n.length-3*o+1),r=0;r<n.length-3*o;++r)t.write_shift(1,n.charCodeAt(r+3*o)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Vr(e,t,r,n){return n||(n=B(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function Cf(e,t,r){var n=r.biff>8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[a,i,s]}function Of(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function za(e,t){return t||(t=B(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function G0(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=B(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function Df(e,t){var r=!t||t.biff==8,n=B(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function Rf(e,t){var r=!t||t.biff>=8?2:1,n=B(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function If(e,t){var r=B(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],a=0;a<e.length;++a)n[a]=wf(e[a]);var i=be([r].concat(n));return i.parts=[r.length].concat(n.map(function(s){return s.length})),i}function Nf(){var e=B(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function kf(e){var t=B(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function Pf(e,t){var r=e.name||"Arial",n=t.biff==5,a=n?15+r.length:16+2*r.length,i=B(a);return i.write_shift(2,(e.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function Lf(e,t,r,n){var a=B(10);return Vr(e,t,n,a),a.write_shift(4,r),a}function Mf(e,t,r,n,a){var i=!a||a.biff==8,s=B(8+ +i+(1+i)*r.length);return Vr(e,t,n,s),s.write_shift(2,r.length),i&&s.write_shift(1,1),s.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),s}function Bf(e,t,r,n){var a=r.biff==5;n||(n=B(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}function Uf(e,t){var r=t.biff==8||!t.biff?4:2,n=B(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Un(e,t,r,n){var a=r.biff==5;n||(n=B(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function bf(e){var t=B(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function Wf(e,t,r,n,a,i){var s=B(8);return Vr(e,t,n,s),Va(r,i,s),s}function Hf(e,t,r,n){var a=B(14);return Vr(e,t,n,a),Gr(r,a),a}function Gf(e,t,r){if(r.biff<8)return Vf(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(Cf(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function Vf(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=Xa(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function Xf(e){var t=B(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)za(e[r],t);return t}function Kf(e){var t=B(24),r=Pe(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return be([t,yf(e[1])])}function zf(e){var t=e[1].Tooltip,r=B(10+2*(t.length+1));r.write_shift(2,2048);var n=Pe(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<t.length;++a)r.write_shift(2,t.charCodeAt(a));return r.write_shift(2,0),r}function Yf(e){return e||(e=B(4)),e.write_shift(2,1),e.write_shift(2,1),e}function $f(e,t,r){if(!r.cellStyles)return _r(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),s=e.read_shift(n),f=e.read_shift(n),o=e.read_shift(2);n==2&&(e.l+=2);var l={s:a,e:i,w:s,ixfe:f,flags:o};return(r.biff>=5||!r.biff)&&(l.level=o>>8&7),l}function jf(e,t){var r=B(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function Jf(e){for(var t=B(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function Zf(e,t,r){var n=B(15);return kt(n,e,t),n.write_shift(8,r,"f"),n}function qf(e,t,r){var n=B(9);return kt(n,e,t),n.write_shift(2,r),n}var Qf=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=I0({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(f,o){var l=[],c=Hr(1);switch(o.type){case"base64":c=xr(yr(f));break;case"binary":c=xr(f);break;case"buffer":case"array":c=f;break}rr(c,0);var p=c.read_shift(1),x=!!(p&136),v=!1,E=!1;switch(p){case 2:break;case 3:break;case 48:v=!0,x=!0;break;case 49:v=!0,x=!0;break;case 131:break;case 139:break;case 140:E=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+p.toString(16))}var u=0,_=521;p==2&&(u=c.read_shift(2)),c.l+=3,p!=2&&(u=c.read_shift(4)),u>1048576&&(u=1e6),p!=2&&(_=c.read_shift(2));var O=c.read_shift(2),R=o.codepage||1252;p!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(R=e[c[c.l]]),c.l+=1,c.l+=2),E&&(c.l+=36);for(var y=[],M={},j=Math.min(c.length,p==2?521:_-10-(v?264:0)),ee=E?32:11;c.l<j&&c[c.l]!=13;)switch(M={},M.name=ln.utils.decode(R,c.slice(c.l,c.l+ee)).replace(/[\u0000\r\n].*$/g,""),c.l+=ee,M.type=String.fromCharCode(c.read_shift(1)),p!=2&&!E&&(M.offset=c.read_shift(4)),M.len=c.read_shift(1),p==2&&(M.offset=c.read_shift(2)),M.dec=c.read_shift(1),M.name.length&&y.push(M),p!=2&&(c.l+=E?13:14),M.type){case"B":(!v||M.len!=8)&&o.WTF&&console.log("Skipping "+M.name+":"+M.type);break;case"G":case"P":o.WTF&&console.log("Skipping "+M.name+":"+M.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+M.type)}if(c[c.l]!==13&&(c.l=_-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=_;var C=0,b=0;for(l[0]=[],b=0;b!=y.length;++b)l[0][b]=y[b].name;for(;u-- >0;){if(c[c.l]===42){c.l+=O;continue}for(++c.l,l[++C]=[],b=0,b=0;b!=y.length;++b){var L=c.slice(c.l,c.l+y[b].len);c.l+=y[b].len,rr(L,0);var G=ln.utils.decode(R,L);switch(y[b].type){case"C":G.trim().length&&(l[C][b]=G.replace(/\s+$/,""));break;case"D":G.length===8?l[C][b]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):l[C][b]=G;break;case"F":l[C][b]=parseFloat(G.trim());break;case"+":case"I":l[C][b]=E?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":l[C][b]=!0;break;case"N":case"F":l[C][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!x)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));l[C][b]="##MEMO##"+(E?parseInt(G.trim(),10):L.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(l[C][b]=+G||0);break;case"@":l[C][b]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":l[C][b]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":l[C][b]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[C][b]=-L.read_shift(-8,"f");break;case"B":if(v&&y[b].len==8){l[C][b]=L.read_shift(8,"f");break}case"G":case"P":L.l+=y[b].len;break;case"0":if(y[b].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[b].type)}}}if(p!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return o.sheetRows&&(l=l.slice(0,o.sheetRows)),o.DBF=y,l}function n(f,o){var l=o||{};l.dateNF||(l.dateNF="yyyymmdd");var c=ft(r(f,l),l);return c["!cols"]=l.DBF.map(function(p){return{wch:p.len,DBF:p}}),delete l.DBF,c}function a(f,o){try{return Xr(n(f,o),o)}catch(l){if(o&&o.WTF)throw l}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function s(f,o){var l=o||{};if(+l.codepage>=0&&Et(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=Je(),p=n0(f,{header:1,raw:!0,cellDates:!0}),x=p[0],v=p.slice(1),E=f["!cols"]||[],u=0,_=0,O=0,R=1;for(u=0;u<x.length;++u){if(((E[u]||{}).DBF||{}).name){x[u]=E[u].DBF.name,++O;continue}if(x[u]!=null){if(++O,typeof x[u]=="number"&&(x[u]=x[u].toString(10)),typeof x[u]!="string")throw new Error("DBF Invalid column name "+x[u]+" |"+typeof x[u]+"|");if(x.indexOf(x[u])!==u){for(_=0;_<1024;++_)if(x.indexOf(x[u]+"_"+_)==-1){x[u]+="_"+_;break}}}}var y=Ee(f["!ref"]),M=[],j=[],ee=[];for(u=0;u<=y.e.c-y.s.c;++u){var C="",b="",L=0,G=[];for(_=0;_<v.length;++_)v[_][u]!=null&&G.push(v[_][u]);if(G.length==0||x[u]==null){M[u]="?";continue}for(_=0;_<G.length;++_){switch(typeof G[_]){case"number":b="B";break;case"string":b="C";break;case"boolean":b="L";break;case"object":b=G[_]instanceof Date?"D":"C";break;default:b="C"}L=Math.max(L,String(G[_]).length),C=C&&C!=b?"C":b}L>250&&(L=250),b=((E[u]||{}).DBF||{}).type,b=="C"&&E[u].DBF.len>L&&(L=E[u].DBF.len),C=="B"&&b=="N"&&(C="N",ee[u]=E[u].DBF.dec,L=E[u].DBF.len),j[u]=C=="C"||b=="N"?L:i[C]||0,R+=j[u],M[u]=C}var V=c.next(32);for(V.write_shift(4,318902576),V.write_shift(4,v.length),V.write_shift(2,296+32*O),V.write_shift(2,R),u=0;u<4;++u)V.write_shift(4,0);for(V.write_shift(4,0|(+t[$n]||3)<<8),u=0,_=0;u<x.length;++u)if(x[u]!=null){var K=c.next(32),re=(x[u].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);K.write_shift(1,re,"sbcs"),K.write_shift(1,M[u]=="?"?"C":M[u],"sbcs"),K.write_shift(4,_),K.write_shift(1,j[u]||i[M[u]]||0),K.write_shift(1,ee[u]||0),K.write_shift(1,2),K.write_shift(4,0),K.write_shift(1,0),K.write_shift(4,0),K.write_shift(4,0),_+=j[u]||i[M[u]]||0}var ge=c.next(264);for(ge.write_shift(4,13),u=0;u<65;++u)ge.write_shift(4,0);for(u=0;u<v.length;++u){var le=c.next(R);for(le.write_shift(1,0),_=0;_<x.length;++_)if(x[_]!=null)switch(M[_]){case"L":le.write_shift(1,v[u][_]==null?63:v[u][_]?84:70);break;case"B":le.write_shift(8,v[u][_]||0,"f");break;case"N":var Me="0";for(typeof v[u][_]=="number"&&(Me=v[u][_].toFixed(ee[_]||0)),O=0;O<j[_]-Me.length;++O)le.write_shift(1,32);le.write_shift(1,Me,"sbcs");break;case"D":v[u][_]?(le.write_shift(4,("0000"+v[u][_].getFullYear()).slice(-4),"sbcs"),le.write_shift(2,("00"+(v[u][_].getMonth()+1)).slice(-2),"sbcs"),le.write_shift(2,("00"+v[u][_].getDate()).slice(-2),"sbcs")):le.write_shift(8,"00000000","sbcs");break;case"C":var Ce=String(v[u][_]!=null?v[u][_]:"").slice(0,j[_]);for(le.write_shift(1,Ce,"sbcs"),O=0;O<j[_]-Ce.length;++O)le.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:a,to_sheet:n,from_sheet:s}}(),el=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Ge(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(x,v){var E=e[v];return typeof E=="number"?fn(E):E},n=function(x,v,E){var u=v.charCodeAt(0)-32<<4|E.charCodeAt(0)-48;return u==59?x:fn(u)};e["|"]=254;function a(x,v){switch(v.type){case"base64":return i(yr(x),v);case"binary":return i(x,v);case"buffer":return i(ue&&Buffer.isBuffer(x)?x.toString("binary"):Ot(x),v);case"array":return i(l0(x),v)}throw new Error("Unrecognized type "+v.type)}function i(x,v){var E=x.split(/[\n\r]+/),u=-1,_=-1,O=0,R=0,y=[],M=[],j=null,ee={},C=[],b=[],L=[],G=0,V;for(+v.codepage>=0&&Et(+v.codepage);O!==E.length;++O){G=0;var K=E[O].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),re=K.replace(/;;/g,"\0").split(";").map(function(A){return A.replace(/\u0000/g,";")}),ge=re[0],le;if(K.length>0)switch(ge){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":re[1].charAt(0)=="P"&&M.push(K.slice(3).replace(/;;/g,";"));break;case"C":var Me=!1,Ce=!1,cr=!1,Ne=!1,ir=-1,Qe=-1;for(R=1;R<re.length;++R)switch(re[R].charAt(0)){case"A":break;case"X":_=parseInt(re[R].slice(1))-1,Ce=!0;break;case"Y":for(u=parseInt(re[R].slice(1))-1,Ce||(_=0),V=y.length;V<=u;++V)y[V]=[];break;case"K":le=re[R].slice(1),le.charAt(0)==='"'?le=le.slice(1,le.length-1):le==="TRUE"?le=!0:le==="FALSE"?le=!1:isNaN(Ar(le))?isNaN(St(le).getDate())||(le=je(le)):(le=Ar(le),j!==null&&sa(j)&&(le=ca(le))),Me=!0;break;case"E":Ne=!0;var S=ql(re[R].slice(1),{r:u,c:_});y[u][_]=[y[u][_],S];break;case"S":cr=!0,y[u][_]=[y[u][_],"S5S"];break;case"G":break;case"R":ir=parseInt(re[R].slice(1))-1;break;case"C":Qe=parseInt(re[R].slice(1))-1;break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+K)}if(Me&&(y[u][_]&&y[u][_].length==2?y[u][_][0]=le:y[u][_]=le,j=null),cr){if(Ne)throw new Error("SYLK shared formula cannot have own formula");var P=ir>-1&&y[ir][Qe];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");y[u][_][1]=Ql(P[1],{r:u-ir,c:_-Qe})}break;case"F":var F=0;for(R=1;R<re.length;++R)switch(re[R].charAt(0)){case"X":_=parseInt(re[R].slice(1))-1,++F;break;case"Y":for(u=parseInt(re[R].slice(1))-1,V=y.length;V<=u;++V)y[V]=[];break;case"M":G=parseInt(re[R].slice(1))/20;break;case"F":break;case"G":break;case"P":j=M[parseInt(re[R].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=re[R].slice(1).split(" "),V=parseInt(L[0],10);V<=parseInt(L[1],10);++V)G=parseInt(L[2],10),b[V-1]=G===0?{hidden:!0}:{wch:G},V0(b[V-1]);break;case"C":_=parseInt(re[R].slice(1))-1,b[_]||(b[_]={});break;case"R":u=parseInt(re[R].slice(1))-1,C[u]||(C[u]={}),G>0?(C[u].hpt=G,C[u].hpx=Za(G)):G===0&&(C[u].hidden=!0);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+K)}F<1&&(j=null);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+K)}}return C.length>0&&(ee["!rows"]=C),b.length>0&&(ee["!cols"]=b),v&&v.sheetRows&&(y=y.slice(0,v.sheetRows)),[y,ee]}function s(x,v){var E=a(x,v),u=E[0],_=E[1],O=ft(u,v);return Ge(_).forEach(function(R){O[R]=_[R]}),O}function f(x,v){return Xr(s(x,v),v)}function o(x,v,E,u){var _="C;Y"+(E+1)+";X"+(u+1)+";K";switch(x.t){case"n":_+=x.v||0,x.f&&!x.F&&(_+=";E"+K0(x.f,{r:E,c:u}));break;case"b":_+=x.v?"TRUE":"FALSE";break;case"e":_+=x.w||x.v;break;case"d":_+='"'+(x.w||x.v)+'"';break;case"s":_+='"'+x.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return _}function l(x,v){v.forEach(function(E,u){var _="F;W"+(u+1)+" "+(u+1)+" ";E.hidden?_+="0":(typeof E.width=="number"&&!E.wpx&&(E.wpx=Qt(E.width)),typeof E.wpx=="number"&&!E.wch&&(E.wch=e0(E.wpx)),typeof E.wch=="number"&&(_+=Math.round(E.wch))),_.charAt(_.length-1)!=" "&&x.push(_)})}function c(x,v){v.forEach(function(E,u){var _="F;";E.hidden?_+="M0;":E.hpt?_+="M"+20*E.hpt+";":E.hpx&&(_+="M"+20*r0(E.hpx)+";"),_.length>2&&x.push(_+"R"+(u+1))})}function p(x,v){var E=["ID;PWXL;N;E"],u=[],_=Ee(x["!ref"]),O,R=Array.isArray(x),y=`\r
+`;E.push("P;PGeneral"),E.push("F;P0;DG0G8;M255"),x["!cols"]&&l(E,x["!cols"]),x["!rows"]&&c(E,x["!rows"]),E.push("B;Y"+(_.e.r-_.s.r+1)+";X"+(_.e.c-_.s.c+1)+";D"+[_.s.c,_.s.r,_.e.c,_.e.r].join(" "));for(var M=_.s.r;M<=_.e.r;++M)for(var j=_.s.c;j<=_.e.c;++j){var ee=me({r:M,c:j});O=R?(x[M]||[])[j]:x[ee],!(!O||O.v==null&&(!O.f||O.F))&&u.push(o(O,x,M,j))}return E.join(y)+y+u.join(y)+y+"E"+y}return{to_workbook:f,to_sheet:s,from_sheet:p}}(),rl=function(){function e(i,s){switch(s.type){case"base64":return t(yr(i),s);case"binary":return t(i,s);case"buffer":return t(ue&&Buffer.isBuffer(i)?i.toString("binary"):Ot(i),s);case"array":return t(l0(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var f=i.split(`
+`),o=-1,l=-1,c=0,p=[];c!==f.length;++c){if(f[c].trim()==="BOT"){p[++o]=[],l=0;continue}if(!(o<0)){var x=f[c].trim().split(","),v=x[0],E=x[1];++c;for(var u=f[c]||"";(u.match(/["]/g)||[]).length&1&&c<f.length-1;)u+=`
+`+f[++c];switch(u=u.trim(),+v){case-1:if(u==="BOT"){p[++o]=[],l=0;continue}else if(u!=="EOD")throw new Error("Unrecognized DIF special command "+u);break;case 0:u==="TRUE"?p[o][l]=!0:u==="FALSE"?p[o][l]=!1:isNaN(Ar(E))?isNaN(St(E).getDate())?p[o][l]=E:p[o][l]=je(E):p[o][l]=Ar(E),++l;break;case 1:u=u.slice(1,u.length-1),u=u.replace(/""/g,'"'),u&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),p[o][l++]=u!==""?u:null;break}if(u==="EOD")break}}return s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),p}function r(i,s){return ft(e(i,s),s)}function n(i,s){return Xr(r(i,s),s)}var a=function(){var i=function(o,l,c,p,x){o.push(l),o.push(c+","+p),o.push('"'+x.replace(/"/g,'""')+'"')},s=function(o,l,c,p){o.push(l+","+c),o.push(l==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(o){var l=[],c=Ee(o["!ref"]),p,x=Array.isArray(o);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,c.e.r-c.s.r+1,""),i(l,"TUPLES",0,c.e.c-c.s.c+1,""),i(l,"DATA",0,0,"");for(var v=c.s.r;v<=c.e.r;++v){s(l,-1,0,"BOT");for(var E=c.s.c;E<=c.e.c;++E){var u=me({r:v,c:E});if(p=x?(o[v]||[])[E]:o[u],!p){s(l,1,0,"");continue}switch(p.t){case"n":var _=p.w;!_&&p.v!=null&&(_=p.v),_==null?p.f&&!p.F?s(l,1,0,"="+p.f):s(l,1,0,""):s(l,0,_,"V");break;case"b":s(l,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":s(l,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=Nr(p.z||ye[14],Ze(je(p.v)))),s(l,0,p.w,"V");break;default:s(l,1,0,"")}}}s(l,-1,0,"EOD");var O=`\r
+`,R=l.join(O);return R}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),Ya=function(){function e(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
+`)}function t(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(p,x){for(var v=p.split(`
+`),E=-1,u=-1,_=0,O=[];_!==v.length;++_){var R=v[_].trim().split(":");if(R[0]==="cell"){var y=Pe(R[1]);if(O.length<=y.r)for(E=O.length;E<=y.r;++E)O[E]||(O[E]=[]);switch(E=y.r,u=y.c,R[2]){case"t":O[E][u]=e(R[3]);break;case"v":O[E][u]=+R[3];break;case"vtf":var M=R[R.length-1];case"vtc":switch(R[3]){case"nl":O[E][u]=!!+R[4];break;default:O[E][u]=+R[4];break}R[2]=="vtf"&&(O[E][u]=[O[E][u],M])}}}return x&&x.sheetRows&&(O=O.slice(0,x.sheetRows)),O}function n(p,x){return ft(r(p,x),x)}function a(p,x){return Xr(n(p,x),x)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
+`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
+`)+`
+`,f=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
+`),o="--SocialCalcSpreadsheetControlSave--";function l(p){if(!p||!p["!ref"])return"";for(var x=[],v=[],E,u="",_=ar(p["!ref"]),O=Array.isArray(p),R=_.s.r;R<=_.e.r;++R)for(var y=_.s.c;y<=_.e.c;++y)if(u=me({r:R,c:y}),E=O?(p[R]||[])[y]:p[u],!(!E||E.v==null||E.t==="z")){switch(v=["cell",u,"t"],E.t){case"s":case"str":v.push(t(E.v));break;case"n":E.f?(v[2]="vtf",v[3]="n",v[4]=E.v,v[5]=t(E.f)):(v[2]="v",v[3]=E.v);break;case"b":v[2]="vt"+(E.f?"f":"c"),v[3]="nl",v[4]=E.v?"1":"0",v[5]=t(E.f||(E.v?"TRUE":"FALSE"));break;case"d":var M=Ze(je(E.v));v[2]="vtc",v[3]="nd",v[4]=""+M,v[5]=E.w||Nr(E.z||ye[14],M);break;case"e":continue}x.push(v.join(":"))}return x.push("sheet:c:"+(_.e.c-_.s.c+1)+":r:"+(_.e.r-_.s.r+1)+":tvf:1"),x.push("valueformat:1:text-wiki"),x.join(`
+`)}function c(p){return[i,s,f,s,l(p),o].join(`
+`)}return{to_workbook:a,to_sheet:n,from_sheet:c}}(),tl=function(){function e(c,p,x,v,E){E.raw?p[x][v]=c:c===""||(c==="TRUE"?p[x][v]=!0:c==="FALSE"?p[x][v]=!1:isNaN(Ar(c))?isNaN(St(c).getDate())?p[x][v]=c:p[x][v]=je(c):p[x][v]=Ar(c))}function t(c,p){var x=p||{},v=[];if(!c||c.length===0)return v;for(var E=c.split(/[\r\n]/),u=E.length-1;u>=0&&E[u].length===0;)--u;for(var _=10,O=0,R=0;R<=u;++R)O=E[R].indexOf(" "),O==-1?O=E[R].length:O++,_=Math.max(_,O);for(R=0;R<=u;++R){v[R]=[];var y=0;for(e(E[R].slice(0,_).trim(),v,R,y,x),y=1;y<=(E[R].length-_)/10+1;++y)e(E[R].slice(_+(y-1)*10,_+y*10).trim(),v,R,y,x)}return x.sheetRows&&(v=v.slice(0,x.sheetRows)),v}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(c){for(var p={},x=!1,v=0,E=0;v<c.length;++v)(E=c.charCodeAt(v))==34?x=!x:!x&&E in r&&(p[E]=(p[E]||0)+1);E=[];for(v in p)Object.prototype.hasOwnProperty.call(p,v)&&E.push([p[v],v]);if(!E.length){p=n;for(v in p)Object.prototype.hasOwnProperty.call(p,v)&&E.push([p[v],v])}return E.sort(function(u,_){return u[0]-_[0]||n[u[1]]-n[_[1]]}),r[E.pop()[1]]||44}function i(c,p){var x=p||{},v="",E=x.dense?[]:{},u={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(v=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(v=c.charAt(4),c=c.slice(6)):v=a(c.slice(0,1024)):x.FS?v=x.FS:v=a(c.slice(0,1024));var _=0,O=0,R=0,y=0,M=0,j=v.charCodeAt(0),ee=!1,C=0,b=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
+`);var L=x.dateNF!=null?ms(x.dateNF):null;function G(){var V=c.slice(y,M),K={};if(V.charAt(0)=='"'&&V.charAt(V.length-1)=='"'&&(V=V.slice(1,-1).replace(/""/g,'"')),V.length===0)K.t="z";else if(x.raw)K.t="s",K.v=V;else if(V.trim().length===0)K.t="s",K.v=V;else if(V.charCodeAt(0)==61)V.charCodeAt(1)==34&&V.charCodeAt(V.length-1)==34?(K.t="s",K.v=V.slice(2,-1).replace(/""/g,'"')):eo(V)?(K.t="n",K.f=V.slice(1)):(K.t="s",K.v=V);else if(V=="TRUE")K.t="b",K.v=!0;else if(V=="FALSE")K.t="b",K.v=!1;else if(!isNaN(R=Ar(V)))K.t="n",x.cellText!==!1&&(K.w=V),K.v=R;else if(!isNaN(St(V).getDate())||L&&V.match(L)){K.z=x.dateNF||ye[14];var re=0;L&&V.match(L)&&(V=gs(V,x.dateNF,V.match(L)||[]),re=1),x.cellDates?(K.t="d",K.v=je(V,re)):(K.t="n",K.v=Ze(je(V,re))),x.cellText!==!1&&(K.w=Nr(K.z,K.v instanceof Date?Ze(K.v):K.v)),x.cellNF||delete K.z}else K.t="s",K.v=V;if(K.t=="z"||(x.dense?(E[_]||(E[_]=[]),E[_][O]=K):E[me({c:O,r:_})]=K),y=M+1,b=c.charCodeAt(y),u.e.c<O&&(u.e.c=O),u.e.r<_&&(u.e.r=_),C==j)++O;else if(O=0,++_,x.sheetRows&&x.sheetRows<=_)return!0}e:for(;M<c.length;++M)switch(C=c.charCodeAt(M)){case 34:b===34&&(ee=!ee);break;case j:case 10:case 13:if(!ee&&G())break e;break}return M-y>0&&G(),E["!ref"]=De(u),E}function s(c,p){return!(p&&p.PRN)||p.FS||c.slice(0,4)=="sep="||c.indexOf("	")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?i(c,p):ft(t(c,p),p)}function f(c,p){var x="",v=p.type=="string"?[0,0,0,0]:pu(c,p);switch(p.type){case"base64":x=yr(c);break;case"binary":x=c;break;case"buffer":p.codepage==65001?x=c.toString("utf8"):(p.codepage,x=ue&&Buffer.isBuffer(c)?c.toString("binary"):Ot(c));break;case"array":x=l0(c);break;case"string":x=c;break;default:throw new Error("Unrecognized type "+p.type)}return v[0]==239&&v[1]==187&&v[2]==191?x=dt(x.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?x=dt(x):p.type=="binary",x.slice(0,19)=="socialcalc:version:"?Ya.to_sheet(p.type=="string"?x:dt(x),p):s(x,p)}function o(c,p){return Xr(f(c,p),p)}function l(c){for(var p=[],x=Ee(c["!ref"]),v,E=Array.isArray(c),u=x.s.r;u<=x.e.r;++u){for(var _=[],O=x.s.c;O<=x.e.c;++O){var R=me({r:u,c:O});if(v=E?(c[u]||[])[O]:c[R],!v||v.v==null){_.push("          ");continue}for(var y=(v.w||(Cr(v),v.w)||"").slice(0,10);y.length<10;)y+=" ";_.push(y+(O===0?" ":""))}p.push(_.join(""))}return p.join(`
+`)}return{to_workbook:o,to_sheet:f,from_sheet:l}}(),bn=function(){function e(S,P,F){if(S){rr(S,S.l||0);for(var A=F.Enum||ir;S.l<S.length;){var H=S.read_shift(2),ie=A[H]||A[65535],se=S.read_shift(2),ae=S.l+se,q=ie.f&&ie.f(S,se,F);if(S.l=ae,P(q,ie,H))return}}}function t(S,P){switch(P.type){case"base64":return r(xr(yr(S)),P);case"binary":return r(xr(S),P);case"buffer":case"array":return r(S,P)}throw"Unsupported type "+P.type}function r(S,P){if(!S)return S;var F=P||{},A=F.dense?[]:{},H="Sheet1",ie="",se=0,ae={},q=[],Te=[],ce={s:{r:0,c:0},e:{r:0,c:0}},ze=F.sheetRows||0;if(S[2]==0&&(S[3]==8||S[3]==9)&&S.length>=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)F.Enum=ir,e(S,function(ne,sr,Er){switch(Er){case 0:F.vers=ne,ne>=4096&&(F.qpro=!0);break;case 6:ce=ne;break;case 204:ne&&(ie=ne);break;case 222:ie=ne;break;case 15:case 51:F.qpro||(ne[1].v=ne[1].v.slice(1));case 13:case 14:case 16:Er==14&&(ne[2]&112)==112&&(ne[2]&15)>1&&(ne[2]&15)<15&&(ne[1].z=F.dateNF||ye[14],F.cellDates&&(ne[1].t="d",ne[1].v=ca(ne[1].v))),F.qpro&&ne[3]>se&&(A["!ref"]=De(ce),ae[H]=A,q.push(H),A=F.dense?[]:{},ce={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H=ie||"Sheet"+(se+1),ie="");var Mr=F.dense?(A[ne[0].r]||[])[ne[0].c]:A[me(ne[0])];if(Mr){Mr.t=ne[1].t,Mr.v=ne[1].v,ne[1].z!=null&&(Mr.z=ne[1].z),ne[1].f!=null&&(Mr.f=ne[1].f);break}F.dense?(A[ne[0].r]||(A[ne[0].r]=[]),A[ne[0].r][ne[0].c]=ne[1]):A[me(ne[0])]=ne[1];break}},F);else if(S[2]==26||S[2]==14)F.Enum=Qe,S[2]==14&&(F.qpro=!0,S.l=0),e(S,function(ne,sr,Er){switch(Er){case 204:H=ne;break;case 22:ne[1].v=ne[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ne[3]>se&&(A["!ref"]=De(ce),ae[H]=A,q.push(H),A=F.dense?[]:{},ce={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H="Sheet"+(se+1)),ze>0&&ne[0].r>=ze)break;F.dense?(A[ne[0].r]||(A[ne[0].r]=[]),A[ne[0].r][ne[0].c]=ne[1]):A[me(ne[0])]=ne[1],ce.e.c<ne[0].c&&(ce.e.c=ne[0].c),ce.e.r<ne[0].r&&(ce.e.r=ne[0].r);break;case 27:ne[14e3]&&(Te[ne[14e3][0]]=ne[14e3][1]);break;case 1537:Te[ne[0]]=ne[1],ne[0]==se&&(H=ne[1]);break}},F);else throw new Error("Unrecognized LOTUS BOF "+S[2]);if(A["!ref"]=De(ce),ae[ie||H]=A,q.push(ie||H),!Te.length)return{SheetNames:q,Sheets:ae};for(var xe={},Tr=[],Ae=0;Ae<Te.length;++Ae)ae[q[Ae]]?(Tr.push(Te[Ae]||q[Ae]),xe[Te[Ae]]=ae[Te[Ae]]||ae[q[Ae]]):(Tr.push(Te[Ae]),xe[Te[Ae]]={"!ref":"A1"});return{SheetNames:Tr,Sheets:xe}}function n(S,P){var F=P||{};if(+F.codepage>=0&&Et(+F.codepage),F.type=="string")throw new Error("Cannot write WK1 to JS string");var A=Je(),H=Ee(S["!ref"]),ie=Array.isArray(S),se=[];J(A,0,i(1030)),J(A,6,o(H));for(var ae=Math.min(H.e.r,8191),q=H.s.r;q<=ae;++q)for(var Te=He(q),ce=H.s.c;ce<=H.e.c;++ce){q===H.s.r&&(se[ce]=Xe(ce));var ze=se[ce]+Te,xe=ie?(S[q]||[])[ce]:S[ze];if(!(!xe||xe.t=="z"))if(xe.t=="n")(xe.v|0)==xe.v&&xe.v>=-32768&&xe.v<=32767?J(A,13,v(q,ce,xe.v)):J(A,14,u(q,ce,xe.v));else{var Tr=Cr(xe);J(A,15,p(q,ce,Tr.slice(0,239)))}}return J(A,1),A.end()}function a(S,P){var F=P||{};if(+F.codepage>=0&&Et(+F.codepage),F.type=="string")throw new Error("Cannot write WK3 to JS string");var A=Je();J(A,0,s(S));for(var H=0,ie=0;H<S.SheetNames.length;++H)(S.Sheets[S.SheetNames[H]]||{})["!ref"]&&J(A,27,Ne(S.SheetNames[H],ie++));var se=0;for(H=0;H<S.SheetNames.length;++H){var ae=S.Sheets[S.SheetNames[H]];if(!(!ae||!ae["!ref"])){for(var q=Ee(ae["!ref"]),Te=Array.isArray(ae),ce=[],ze=Math.min(q.e.r,8191),xe=q.s.r;xe<=ze;++xe)for(var Tr=He(xe),Ae=q.s.c;Ae<=q.e.c;++Ae){xe===q.s.r&&(ce[Ae]=Xe(Ae));var ne=ce[Ae]+Tr,sr=Te?(ae[xe]||[])[Ae]:ae[ne];if(!(!sr||sr.t=="z"))if(sr.t=="n")J(A,23,G(xe,Ae,se,sr.v));else{var Er=Cr(sr);J(A,22,C(xe,Ae,se,Er.slice(0,239)))}}++se}}return J(A,1),A.end()}function i(S){var P=B(2);return P.write_shift(2,S),P}function s(S){var P=B(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var F=0,A=0,H=0,ie=0;ie<S.SheetNames.length;++ie){var se=S.SheetNames[ie],ae=S.Sheets[se];if(!(!ae||!ae["!ref"])){++H;var q=ar(ae["!ref"]);F<q.e.r&&(F=q.e.r),A<q.e.c&&(A=q.e.c)}}return F>8191&&(F=8191),P.write_shift(2,F),P.write_shift(1,H),P.write_shift(1,A),P.write_shift(2,0),P.write_shift(2,0),P.write_shift(1,1),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(4,0),P}function f(S,P,F){var A={s:{c:0,r:0},e:{c:0,r:0}};return P==8&&F.qpro?(A.s.c=S.read_shift(1),S.l++,A.s.r=S.read_shift(2),A.e.c=S.read_shift(1),S.l++,A.e.r=S.read_shift(2),A):(A.s.c=S.read_shift(2),A.s.r=S.read_shift(2),P==12&&F.qpro&&(S.l+=2),A.e.c=S.read_shift(2),A.e.r=S.read_shift(2),P==12&&F.qpro&&(S.l+=2),A.s.c==65535&&(A.s.c=A.e.c=A.s.r=A.e.r=0),A)}function o(S){var P=B(8);return P.write_shift(2,S.s.c),P.write_shift(2,S.s.r),P.write_shift(2,S.e.c),P.write_shift(2,S.e.r),P}function l(S,P,F){var A=[{c:0,r:0},{t:"n",v:0},0,0];return F.qpro&&F.vers!=20768?(A[0].c=S.read_shift(1),A[3]=S.read_shift(1),A[0].r=S.read_shift(2),S.l+=2):(A[2]=S.read_shift(1),A[0].c=S.read_shift(2),A[0].r=S.read_shift(2)),A}function c(S,P,F){var A=S.l+P,H=l(S,P,F);if(H[1].t="s",F.vers==20768){S.l++;var ie=S.read_shift(1);return H[1].v=S.read_shift(ie,"utf8"),H}return F.qpro&&S.l++,H[1].v=S.read_shift(A-S.l,"cstr"),H}function p(S,P,F){var A=B(7+F.length);A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(1,39);for(var H=0;H<A.length;++H){var ie=F.charCodeAt(H);A.write_shift(1,ie>=128?95:ie)}return A.write_shift(1,0),A}function x(S,P,F){var A=l(S,P,F);return A[1].v=S.read_shift(2,"i"),A}function v(S,P,F){var A=B(7);return A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(2,F,"i"),A}function E(S,P,F){var A=l(S,P,F);return A[1].v=S.read_shift(8,"f"),A}function u(S,P,F){var A=B(13);return A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(8,F,"f"),A}function _(S,P,F){var A=S.l+P,H=l(S,P,F);if(H[1].v=S.read_shift(8,"f"),F.qpro)S.l=A;else{var ie=S.read_shift(2);M(S.slice(S.l,S.l+ie),H),S.l+=ie}return H}function O(S,P,F){var A=P&32768;return P&=-32769,P=(A?S:0)+(P>=8192?P-16384:P),(A?"":"$")+(F?Xe(P):He(P))}var R={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function M(S,P){rr(S,0);for(var F=[],A=0,H="",ie="",se="",ae="";S.l<S.length;){var q=S[S.l++];switch(q){case 0:F.push(S.read_shift(8,"f"));break;case 1:ie=O(P[0].c,S.read_shift(2),!0),H=O(P[0].r,S.read_shift(2),!1),F.push(ie+H);break;case 2:{var Te=O(P[0].c,S.read_shift(2),!0),ce=O(P[0].r,S.read_shift(2),!1);ie=O(P[0].c,S.read_shift(2),!0),H=O(P[0].r,S.read_shift(2),!1),F.push(Te+ce+":"+ie+H)}break;case 3:if(S.l<S.length){console.error("WK1 premature formula end");return}break;case 4:F.push("("+F.pop()+")");break;case 5:F.push(S.read_shift(2));break;case 6:{for(var ze="";q=S[S.l++];)ze+=String.fromCharCode(q);F.push('"'+ze.replace(/"/g,'""')+'"')}break;case 8:F.push("-"+F.pop());break;case 23:F.push("+"+F.pop());break;case 22:F.push("NOT("+F.pop()+")");break;case 20:case 21:ae=F.pop(),se=F.pop(),F.push(["AND","OR"][q-20]+"("+se+","+ae+")");break;default:if(q<32&&y[q])ae=F.pop(),se=F.pop(),F.push(se+y[q]+ae);else if(R[q]){if(A=R[q][1],A==69&&(A=S[S.l++]),A>F.length){console.error("WK1 bad formula parse 0x"+q.toString(16)+":|"+F.join("|")+"|");return}var xe=F.slice(-A);F.length-=A,F.push(R[q][0]+"("+xe.join(",")+")")}else return q<=7?console.error("WK1 invalid opcode "+q.toString(16)):q<=24?console.error("WK1 unsupported op "+q.toString(16)):q<=30?console.error("WK1 invalid opcode "+q.toString(16)):q<=115?console.error("WK1 unsupported function opcode "+q.toString(16)):console.error("WK1 unrecognized opcode "+q.toString(16))}}F.length==1?P[1].f=""+F[0]:console.error("WK1 bad formula parse |"+F.join("|")+"|")}function j(S){var P=[{c:0,r:0},{t:"n",v:0},0];return P[0].r=S.read_shift(2),P[3]=S[S.l++],P[0].c=S[S.l++],P}function ee(S,P){var F=j(S);return F[1].t="s",F[1].v=S.read_shift(P-4,"cstr"),F}function C(S,P,F,A){var H=B(6+A.length);H.write_shift(2,S),H.write_shift(1,F),H.write_shift(1,P),H.write_shift(1,39);for(var ie=0;ie<A.length;++ie){var se=A.charCodeAt(ie);H.write_shift(1,se>=128?95:se)}return H.write_shift(1,0),H}function b(S,P){var F=j(S);F[1].v=S.read_shift(2);var A=F[1].v>>1;if(F[1].v&1)switch(A&7){case 0:A=(A>>3)*5e3;break;case 1:A=(A>>3)*500;break;case 2:A=(A>>3)/20;break;case 3:A=(A>>3)/200;break;case 4:A=(A>>3)/2e3;break;case 5:A=(A>>3)/2e4;break;case 6:A=(A>>3)/16;break;case 7:A=(A>>3)/64;break}return F[1].v=A,F}function L(S,P){var F=j(S),A=S.read_shift(4),H=S.read_shift(4),ie=S.read_shift(2);if(ie==65535)return A===0&&H===3221225472?(F[1].t="e",F[1].v=15):A===0&&H===3489660928?(F[1].t="e",F[1].v=42):F[1].v=0,F;var se=ie&32768;return ie=(ie&32767)-16446,F[1].v=(1-se*2)*(H*Math.pow(2,ie+32)+A*Math.pow(2,ie)),F}function G(S,P,F,A){var H=B(14);if(H.write_shift(2,S),H.write_shift(1,F),H.write_shift(1,P),A==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var ie=0,se=0,ae=0,q=0;return A<0&&(ie=1,A=-A),se=Math.log2(A)|0,A/=Math.pow(2,se-31),q=A>>>0,q&2147483648||(A/=2,++se,q=A>>>0),A-=q,q|=2147483648,q>>>=0,A*=Math.pow(2,32),ae=A>>>0,H.write_shift(4,ae),H.write_shift(4,q),se+=16383+(ie?32768:0),H.write_shift(2,se),H}function V(S,P){var F=L(S);return S.l+=P-14,F}function K(S,P){var F=j(S),A=S.read_shift(4);return F[1].v=A>>6,F}function re(S,P){var F=j(S),A=S.read_shift(8,"f");return F[1].v=A,F}function ge(S,P){var F=re(S);return S.l+=P-10,F}function le(S,P){return S[S.l+P-1]==0?S.read_shift(P,"cstr"):""}function Me(S,P){var F=S[S.l++];F>P-1&&(F=P-1);for(var A="";A.length<F;)A+=String.fromCharCode(S[S.l++]);return A}function Ce(S,P,F){if(!(!F.qpro||P<21)){var A=S.read_shift(1);S.l+=17,S.l+=1,S.l+=2;var H=S.read_shift(P-21,"cstr");return[A,H]}}function cr(S,P){for(var F={},A=S.l+P;S.l<A;){var H=S.read_shift(2);if(H==14e3){for(F[H]=[0,""],F[H][0]=S.read_shift(2);S[S.l];)F[H][1]+=String.fromCharCode(S[S.l]),S.l++;S.l++}}return F}function Ne(S,P){var F=B(5+S.length);F.write_shift(2,14e3),F.write_shift(2,P);for(var A=0;A<S.length;++A){var H=S.charCodeAt(A);F[F.l++]=H>127?95:H}return F[F.l++]=0,F}var ir={0:{n:"BOF",f:Ga},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:x},14:{n:"NUMBER",f:E},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:_},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:le},222:{n:"SHEETNAMELP",f:Me},65535:{n:""}},Qe={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:ee},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:b},25:{n:"FORMULA19",f:V},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:cr},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:K},38:{n:"??"},39:{n:"NUMBER27",f:re},40:{n:"FORMULA28",f:ge},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:le},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:Ce},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}(),nl=/^\s|\s$|[\t\n\r]/;function $a(e,t){if(!t.bookSST)return"";var r=[Re];r[r.length]=Y("sst",null,{xmlns:st[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(nl)&&(i+=' xml:space="preserve"'),i+=">"+de(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function al(e){return[e.read_shift(4),e.read_shift(4)]}function il(e,t){return t||(t=B(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var sl=js;function fl(e){var t=Je();W(t,159,il(e));for(var r=0;r<e.length;++r)W(t,19,sl(e[r]));return W(t,160),t.end()}function ll(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function ja(e){var t=0,r,n=ll(e),a=n.length+1,i,s,f,o,l;for(r=Hr(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)s=r[i],f=t&16384?1:0,o=t<<1&32767,l=f|o,t=l^s;return t^52811}var ol=function(){function e(a,i){switch(i.type){case"base64":return t(yr(a),i);case"binary":return t(a,i);case"buffer":return t(ue&&Buffer.isBuffer(a)?a.toString("binary"):Ot(a),i);case"array":return t(l0(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var s=i||{},f=s.dense?[]:{},o=a.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(c,p){Array.isArray(f)&&(f[p]=[]);for(var x=/\\\w+\b/g,v=0,E,u=-1;E=x.exec(c);){switch(E[0]){case"\\cell":var _=c.slice(v,x.lastIndex-E[0].length);if(_[0]==" "&&(_=_.slice(1)),++u,_.length){var O={v:_,t:"s"};Array.isArray(f)?f[p][u]=O:f[me({r:p,c:u})]=O}break}v=x.lastIndex}u>l.e.c&&(l.e.c=u)}),f["!ref"]=De(l),f}function r(a,i){return Xr(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],s=Ee(a["!ref"]),f,o=Array.isArray(a),l=s.s.r;l<=s.e.r;++l){i.push("\\trowd\\trautofit1");for(var c=s.s.c;c<=s.e.c;++c)i.push("\\cellx"+(c+1));for(i.push("\\pard\\intbl"),c=s.s.c;c<=s.e.c;++c){var p=me({r:l,c});f=o?(a[l]||[])[c]:a[p],!(!f||f.v==null&&(!f.f||f.F))&&(i.push(" "+(f.w||(Cr(f),f.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Wn(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var cl=6,Fr=cl;function Qt(e){return Math.floor((e+Math.round(128/Fr)/256)*Fr)}function e0(e){return Math.floor((e-5)/Fr*100+.5)/100}function O0(e){return Math.round((e*Fr+5)/Fr*256)/256}function V0(e){e.width?(e.wpx=Qt(e.width),e.wch=e0(e.wpx),e.MDW=Fr):e.wpx?(e.wch=e0(e.wpx),e.width=O0(e.wch),e.MDW=Fr):typeof e.wch=="number"&&(e.width=O0(e.wch),e.wpx=Qt(e.width),e.MDW=Fr),e.customWidth&&delete e.customWidth}var hl=96,Ja=hl;function r0(e){return e*96/Ja}function Za(e){return e*Ja/96}function ul(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=Y("numFmt",null,{numFmtId:n,formatCode:de(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=Y("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function xl(e){var t=[];return t[t.length]=Y("cellXfs",null),e.forEach(function(r){t[t.length]=Y("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=Y("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function qa(e,t){var r=[Re,Y("styleSheet",null,{xmlns:st[0],"xmlns:vt":ke.vt})],n;return e.SSF&&(n=ul(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=xl(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function vl(e,t){var r=e.read_shift(2),n=Ke(e);return[r,n]}function pl(e,t,r){r||(r=B(6+4*t.length)),r.write_shift(2,e),Le(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function dl(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=tf(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var f=e.read_shift(1);f>0&&(n.family=f);var o=e.read_shift(1);switch(o>0&&(n.charset=o),e.l++,n.color=rf(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Ke(e),n}function ml(e,t){t||(t=B(25+4*32)),t.write_shift(2,e.sz*20),nf(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Zt(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),Le(e.name,t),t.length>t.l?t.slice(0,t.l):t}var gl=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],E0,_l=_r;function Hn(e,t){t||(t=B(4*3+8*7+16*1)),E0||(E0=I0(gl));var r=E0[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Zt({auto:1},t),Zt({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Tl(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function Qa(e,t,r){r||(r=B(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function xt(e,t){return t||(t=B(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var El=_r;function wl(e,t){return t||(t=B(51)),t.write_shift(1,0),xt(null,t),xt(null,t),xt(null,t),xt(null,t),xt(null,t),t.length>t.l?t.slice(0,t.l):t}function Sl(e,t){return t||(t=B(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),Jt(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function Al(e,t,r){var n=B(2052);return n.write_shift(4,e),Jt(t,n),Jt(r,n),n.length>n.l?n.slice(0,n.l):n}function Fl(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(W(e,615,pr(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&W(e,44,pl(a,t[a]))}),W(e,616))}}function yl(e){var t=1;W(e,611,pr(t)),W(e,43,ml({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),W(e,612)}function Cl(e){var t=2;W(e,603,pr(t)),W(e,45,Hn({patternType:"none"})),W(e,45,Hn({patternType:"gray125"})),W(e,604)}function Ol(e){var t=1;W(e,613,pr(t)),W(e,46,wl()),W(e,614)}function Dl(e){var t=1;W(e,626,pr(t)),W(e,47,Qa({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),W(e,627)}function Rl(e,t){W(e,617,pr(t.length)),t.forEach(function(r){W(e,47,Qa(r,0))}),W(e,618)}function Il(e){var t=1;W(e,619,pr(t)),W(e,48,Sl({xfId:0,builtinId:0,name:"Normal"})),W(e,620)}function Nl(e){var t=0;W(e,505,pr(t)),W(e,506)}function kl(e){var t=0;W(e,508,Al(t,"TableStyleMedium9","PivotStyleMedium4")),W(e,509)}function Pl(e,t){var r=Je();return W(r,278),Fl(r,e.SSF),yl(r),Cl(r),Ol(r),Dl(r),Rl(r,t.cellXfs),Il(r),Nl(r),kl(r),W(r,279),r.end()}function ei(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Re];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function Ll(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ke(e)}}function Ml(e){var t=B(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Le(e.name,t),t.slice(0,t.l)}function Bl(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function Ul(e){var t=B(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function bl(e,t){var r=B(8+2*t.length);return r.write_shift(4,e),Le(t,r),r.slice(0,r.l)}function Wl(e){return e.l+=4,e.read_shift(4)!=0}function Hl(e,t){var r=B(8);return r.write_shift(4,e),r.write_shift(4,1),r}function Gl(){var e=Je();return W(e,332),W(e,334,pr(1)),W(e,335,Ml({name:"XLDAPR",version:12e4,flags:3496657072})),W(e,336),W(e,339,bl(1,"XLDAPR")),W(e,52),W(e,35,pr(514)),W(e,4096,pr(0)),W(e,4097,lr(1)),W(e,36),W(e,53),W(e,340),W(e,337,Hl(1)),W(e,51,Ul([[1,0]])),W(e,338),W(e,333),e.end()}function ri(){var e=[Re];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
+  <metadataTypes count="1">
+    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
+  </metadataTypes>
+  <futureMetadata name="XLDAPR" count="1">
+    <bk>
+      <extLst>
+        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
+          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
+        </ext>
+      </extLst>
+    </bk>
+  </futureMetadata>
+  <cellMetadata count="1">
+    <bk>
+      <rc t="1" v="0"/>
+    </bk>
+  </cellMetadata>
+</metadata>`),e.join("")}function Vl(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=me(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var et=1024;function ti(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[Y("xml",null,{"xmlns:v":tr.v,"xmlns:o":tr.o,"xmlns:x":tr.x,"xmlns:mv":tr.mv}).replace(/\/>/,">"),Y("o:shapelayout",Y("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Y("v:shapetype",[Y("v:stroke",null,{joinstyle:"miter"}),Y("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];et<e*1e3;)et+=1e3;return t.forEach(function(i){var s=Pe(i[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var o=f.type=="gradient"?Y("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=Y("v:fill",o,f),c={on:"t",obscured:"t"};++et,a=a.concat(["<v:shape"+Ft({id:"_x0000_s"+et,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,Y("v:shadow",null,c),Y("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",We("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),We("x:AutoFill","False"),We("x:Row",String(s.r)),We("x:Column",String(s.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function ni(e){var t=[Re,Y("comments",null,{xmlns:st[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var i=de(a.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(o){o.a&&(a=r.indexOf(de(o.a))),i.push(o.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)t.push(We("t",de(i[0]||"")));else{for(var s=`Comment:
+    `+i[0]+`
+`,f=1;f<i.length;++f)s+=`Reply:
+    `+i[f]+`
+`;t.push(We("t",de(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Xl(e,t,r){var n=[Re,Y("ThreadedComments",null,{xmlns:ke.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var o={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?i=o.id:o.parentId=i,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(Y("threadedComment",We("text",s.t||""),o))})}),n.push("</ThreadedComments>"),n.join("")}function Kl(e){var t=[Re,Y("personList",null,{xmlns:ke.TCMNT,"xmlns:x":st[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Y("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function zl(e){var t={};t.iauthor=e.read_shift(4);var r=$r(e);return t.rfx=r.s,t.ref=me(r.s),e.l+=16,t}function Yl(e,t){return t==null&&(t=B(36)),t.write_shift(4,e[1].iauthor),lt(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var $l=Ke;function jl(e){return Le(e.slice(0,54))}function Jl(e){var t=Je(),r=[];return W(t,628),W(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),W(t,632,jl(a.a)))})}),W(t,631),W(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:Pe(n[0]),e:Pe(n[0])};W(t,635,Yl([i,a])),a.t&&a.t.length>0&&W(t,637,Zs(a)),W(t,636),delete a.iauthor})}),W(t,634),W(t,629),t.end()}function Zl(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&_e.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var ai=["xlsb","xlsm","xlam","biff8","xla"],ql=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,s){var f=!1,o=!1;i.length==0?o=!0:i.charAt(0)=="["&&(o=!0,i=i.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=t.c:--c,o?l+=t.r:--l,a+(f?"":"$")+Xe(c)+(o?"":"$")+He(l)}return function(a,i){return t=i,a.replace(e,r)}}(),X0=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,K0=function(){return function(t,r){return t.replace(X0,function(n,a,i,s,f,o){var l=U0(s)-(i?0:r.c),c=B0(o)-(f?0:r.r),p=c==0?"":f?c+1:"["+c+"]",x=l==0?"":i?l+1:"["+l+"]";return a+"R"+p+"C"+x})}}();function Ql(e,t){return e.replace(X0,function(r,n,a,i,s,f){return n+(a=="$"?a+i:Xe(U0(i)+t.c))+(s=="$"?s+f:He(B0(f)+t.r))})}function eo(e){return e.length!=1}function Oe(e){e.l+=1}function kr(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function ii(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return si(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=kr(e),f=kr(e);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}function si(e){var t=kr(e),r=kr(e),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function ro(e,t,r){if(r.biff<8)return si(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=kr(e),s=kr(e);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function fi(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return to(e);var n=e.read_shift(r&&r.biff==12?4:2),a=kr(e);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function to(e){var t=kr(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function no(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function ao(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return io(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,f=(i&32768)>>15;if(i&=16383,f==1)for(;a>524287;)a-=1048576;if(s==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:s,rRel:f}}function io(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function so(e,t,r){var n=(e[e.l++]&96)>>5,a=ii(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function fo(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var s=ii(e,i,r);return[n,a,s]}function lo(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function oo(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function co(e,t,r){var n=(e[e.l++]&96)>>5,a=ro(e,t-1,r);return[n,a]}function ho(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Gn(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function uo(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function xo(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function vo(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function po(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function mo(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function li(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function go(e){return e.read_shift(2),li(e)}function _o(e){return e.read_shift(2),li(e)}function To(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=fi(e,0,r);return[n,a]}function Eo(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=ao(e,0,r);return[n,a]}function wo(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=fi(e,0,r);return[n,a,i]}function So(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[Sc[a],hi[a],n]}function Ao(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:Fo(e);return[a,(i[0]===0?hi:wc)[i[1]]]}function Fo(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function yo(e,t,r){e.l+=r&&r.biff==2?3:4}function Co(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Oo(e){return e.l++,It[e.read_shift(1)]}function Do(e){return e.l++,e.read_shift(2)}function Ro(e){return e.l++,e.read_shift(1)!==0}function Io(e){return e.l++,ot(e)}function No(e,t,r){return e.l++,Xa(e,t-1,r)}function ko(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Ef(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=It[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=ot(e);break;case 2:r[1]=Ff(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Po(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?$r:Of)(e));return a}function Lo(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,s=[];i!=n&&(s[i]=[]);++i)for(var f=0;f!=a;++f)s[i][f]=ko(e,r.biff);return s}function Mo(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function Bo(e,t,r){if(r.biff==5)return Uo(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function Uo(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function bo(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Wo(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Ho(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function Go(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var Vo=_r,Xo=_r,Ko=_r;function Nt(e,t,r){return e.l+=2,[no(e)]}function z0(e){return e.l+=6,[]}var zo=Nt,Yo=z0,$o=z0,jo=Nt;function oi(e){return e.l+=2,[Ga(e),e.read_shift(2)&1]}var Jo=Nt,Zo=oi,qo=z0,Qo=Nt,ec=Nt,rc=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function tc(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),s=rc[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:a,C:i}}function nc(e){return e.l+=2,[e.read_shift(4)]}function ac(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function ic(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function sc(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function fc(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function lc(e){return e.l+=4,[0,0]}var Vn={1:{n:"PtgExp",f:Co},2:{n:"PtgTbl",f:Ko},3:{n:"PtgAdd",f:Oe},4:{n:"PtgSub",f:Oe},5:{n:"PtgMul",f:Oe},6:{n:"PtgDiv",f:Oe},7:{n:"PtgPower",f:Oe},8:{n:"PtgConcat",f:Oe},9:{n:"PtgLt",f:Oe},10:{n:"PtgLe",f:Oe},11:{n:"PtgEq",f:Oe},12:{n:"PtgGe",f:Oe},13:{n:"PtgGt",f:Oe},14:{n:"PtgNe",f:Oe},15:{n:"PtgIsect",f:Oe},16:{n:"PtgUnion",f:Oe},17:{n:"PtgRange",f:Oe},18:{n:"PtgUplus",f:Oe},19:{n:"PtgUminus",f:Oe},20:{n:"PtgPercent",f:Oe},21:{n:"PtgParen",f:Oe},22:{n:"PtgMissArg",f:Oe},23:{n:"PtgStr",f:No},26:{n:"PtgSheet",f:ac},27:{n:"PtgEndSheet",f:ic},28:{n:"PtgErr",f:Oo},29:{n:"PtgBool",f:Ro},30:{n:"PtgInt",f:Do},31:{n:"PtgNum",f:Io},32:{n:"PtgArray",f:ho},33:{n:"PtgFunc",f:So},34:{n:"PtgFuncVar",f:Ao},35:{n:"PtgName",f:Mo},36:{n:"PtgRef",f:To},37:{n:"PtgArea",f:so},38:{n:"PtgMemArea",f:bo},39:{n:"PtgMemErr",f:Vo},40:{n:"PtgMemNoMem",f:Xo},41:{n:"PtgMemFunc",f:Wo},42:{n:"PtgRefErr",f:Ho},43:{n:"PtgAreaErr",f:lo},44:{n:"PtgRefN",f:Eo},45:{n:"PtgAreaN",f:co},46:{n:"PtgMemAreaN",f:sc},47:{n:"PtgMemNoMemN",f:fc},57:{n:"PtgNameX",f:Bo},58:{n:"PtgRef3d",f:wo},59:{n:"PtgArea3d",f:fo},60:{n:"PtgRefErr3d",f:Go},61:{n:"PtgAreaErr3d",f:oo},255:{}},oc={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},cc={1:{n:"PtgElfLel",f:oi},2:{n:"PtgElfRw",f:Qo},3:{n:"PtgElfCol",f:zo},6:{n:"PtgElfRwV",f:ec},7:{n:"PtgElfColV",f:jo},10:{n:"PtgElfRadical",f:Jo},11:{n:"PtgElfRadicalS",f:qo},13:{n:"PtgElfColS",f:Yo},15:{n:"PtgElfColSV",f:$o},16:{n:"PtgElfRadicalLel",f:Zo},25:{n:"PtgList",f:tc},29:{n:"PtgSxName",f:nc},255:{}},hc={0:{n:"PtgAttrNoop",f:lc},1:{n:"PtgAttrSemi",f:mo},2:{n:"PtgAttrIf",f:vo},4:{n:"PtgAttrChoose",f:uo},8:{n:"PtgAttrGoto",f:xo},16:{n:"PtgAttrSum",f:yo},32:{n:"PtgAttrBaxcel",f:Gn},33:{n:"PtgAttrBaxcel",f:Gn},64:{n:"PtgAttrSpace",f:go},65:{n:"PtgAttrSpaceSemi",f:_o},128:{n:"PtgAttrIfError",f:po},255:{}};function uc(e,t,r,n){if(n.biff<8)return _r(e,t);for(var a=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=Lo(e,0,n),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=Po(e,r[s][1],n),i.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=a-e.l,t!==0&&i.push(_r(e,t)),i}function xc(e,t,r){for(var n=e.l+t,a,i,s=[];n!=e.l;)t=n-e.l,i=e[e.l],a=Vn[i]||Vn[oc[i]],(i===24||i===25)&&(a=(i===24?cc:hc)[e[e.l+1]]),!a||!a.f?_r(e,t):s.push([a.n,a.f(e,t,r)]);return s}function vc(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],i=0;i<n.length;++i){var s=n[i];if(s)switch(s[0]){case 2:a.push('"'+s[1].replace(/"/g,'""')+'"');break;default:a.push(s[1])}else a.push("")}t.push(a.join(","))}return t.join(";")}var pc={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function dc(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function ci(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Xn(e,t,r){var n=ci(e,t,r);return n=="#REF"?n:dc(n,r)}function it(e,t,r,n,a){var i=a&&a.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},f=[],o,l,c,p=0,x=0,v,E="";if(!e[0]||!e[0][0])return"";for(var u=-1,_="",O=0,R=e[0].length;O<R;++O){var y=e[0][O];switch(y[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=f.pop(),l=f.pop(),u>=0){switch(e[0][u][1][0]){case 0:_=Fe(" ",e[0][u][1][1]);break;case 1:_=Fe("\r",e[0][u][1][1]);break;default:if(_="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}l=l+_,u=-1}f.push(l+pc[y[0]]+o);break;case"PtgIsect":o=f.pop(),l=f.pop(),f.push(l+" "+o);break;case"PtgUnion":o=f.pop(),l=f.pop(),f.push(l+","+o);break;case"PtgRange":o=f.pop(),l=f.pop(),f.push(l+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=gt(y[1][1],s,a),f.push(_t(c,i));break;case"PtgRefN":c=r?gt(y[1][1],r,a):y[1][1],f.push(_t(c,i));break;case"PtgRef3d":p=y[1][1],c=gt(y[1][2],s,a),E=Xn(n,p,a),f.push(E+"!"+_t(c,i));break;case"PtgFunc":case"PtgFuncVar":var M=y[1][0],j=y[1][1];M||(M=0),M&=127;var ee=M==0?[]:f.slice(-M);f.length-=M,j==="User"&&(j=ee.shift()),f.push(j+"("+ee.join(",")+")");break;case"PtgBool":f.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(y[1]);break;case"PtgNum":f.push(String(y[1]));break;case"PtgStr":f.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(y[1]);break;case"PtgAreaN":v=On(y[1][1],r?{s:r}:s,a),f.push(_0(v,a));break;case"PtgArea":v=On(y[1][1],s,a),f.push(_0(v,a));break;case"PtgArea3d":p=y[1][1],v=y[1][2],E=Xn(n,p,a),f.push(E+"!"+_0(v,a));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":x=y[1][2];var C=(n.names||[])[x-1]||(n[0]||[])[x],b=C?C.Name:"SH33TJSNAME"+String(x);b&&b.slice(0,6)=="_xlfn."&&!a.xlfn&&(b=b.slice(6)),f.push(b);break;case"PtgNameX":var L=y[1][1];x=y[1][2];var G;if(a.biff<=5)L<0&&(L=-L),n[L]&&(G=n[L][x]);else{var V="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][x]&&n[L][x].itab>0&&(V=n.SheetNames[n[L][x].itab-1]+"!"):V=n.SheetNames[x-1]+"!"),n[L]&&n[L][x])V+=n[L][x].Name;else if(n[0]&&n[0][x])V+=n[0][x].Name;else{var K=(ci(n,L,a)||"").split(";;");K[x-1]?V=K[x-1]:V+="SH33TJSERRX"}f.push(V);break}G||(G={Name:"SH33TJSERRY"}),f.push(G.Name);break;case"PtgParen":var re="(",ge=")";if(u>=0){switch(_="",e[0][u][1][0]){case 2:re=Fe(" ",e[0][u][1][1])+re;break;case 3:re=Fe("\r",e[0][u][1][1])+re;break;case 4:ge=Fe(" ",e[0][u][1][1])+ge;break;case 5:ge=Fe("\r",e[0][u][1][1])+ge;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}u=-1}f.push(re+f.pop()+ge);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:y[1][1],r:y[1][0]};var le={c:r.c,r:r.r};if(n.sharedf[me(c)]){var Me=n.sharedf[me(c)];f.push(it(Me,s,le,n,a))}else{var Ce=!1;for(o=0;o!=n.arrayf.length;++o)if(l=n.arrayf[o],!(c.c<l[0].s.c||c.c>l[0].e.c)&&!(c.r<l[0].s.r||c.r>l[0].e.r)){f.push(it(l[1],s,le,n,a)),Ce=!0;break}Ce||f.push(y[1])}break;case"PtgArray":f.push("{"+vc(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":u=O;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var cr=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&u>=0&&cr.indexOf(e[0][O][0])==-1){y=e[0][u];var Ne=!0;switch(y[1][0]){case 4:Ne=!1;case 0:_=Fe(" ",y[1][1]);break;case 5:Ne=!1;case 1:_=Fe("\r",y[1][1]);break;default:if(_="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}f.push((Ne?_:"")+f.pop()+(Ne?"":_)),u=-1}}if(f.length>1&&a.WTF)throw new Error("bad formula stack");return f[0]}function mc(e){if(e==null){var t=B(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Gr(e);return Gr(0)}function gc(e,t,r,n,a){var i=Vr(t,r,a),s=mc(e.v),f=B(6),o=33;f.write_shift(2,o),f.write_shift(4,0);for(var l=B(e.bf.length),c=0;c<e.bf.length;++c)l[c]=e.bf[c];var p=be([i,s,f,l]);return p}function o0(e,t,r){var n=e.read_shift(4),a=xc(e,n,r),i=e.read_shift(4),s=i>0?uc(e,i,a,r):null;return[a,s]}var _c=o0,c0=o0,Tc=o0,Ec=o0,wc={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},hi={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Sc={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Ac(e){var t="of:="+e.replace(X0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function Fc(e){return e.replace(/\./,"!")}var Tt=typeof Map<"u";function Y0(e,t,r){var n=0,a=e.length;if(r){if(Tt?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=Tt?r.get(t):r[t];n<i.length;++n)if(e[i[n]].t===t)return e.Count++,i[n]}}else for(;n<a;++n)if(e[n].t===t)return e.Count++,n;return e[a]={t},e.Count++,e.Unique++,r&&(Tt?(r.has(t)||r.set(t,[]),r.get(t).push(a)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(a))),a}function h0(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(Fr=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=e0(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=O0(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function ui(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Lr(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){fa(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function yc(e,t,r){if(e&&e["!ref"]){var n=Ee(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function Cc(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+De(e[r])+'"/>';return t+"</mergeCells>"}function Oc(e,t,r,n,a){var i=!1,s={},f=null;if(n.bookType!=="xlsx"&&t.vbaraw){var o=t.SheetNames[r];try{t.Workbook&&(o=t.Workbook.Sheets[r].CodeName||o)}catch{}i=!0,s.codeName=At(de(o))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),f=(f||"")+Y("outlinePr",null,l)}!i&&!f||(a[a.length]=Y("sheetPr",f,s))}var Dc=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Rc=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Ic(e){var t={sheet:1};return Dc.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),Rc.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=ja(e.password).toString(16).toUpperCase()),Y("sheetProtection",null,t)}function Nc(e){return ui(e),Y("pageMargins",null,e)}function kc(e,t){for(var r=["<cols>"],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=Y("col",null,h0(a,n)));return r[r.length]="</cols>",r.join("")}function Pc(e,t,r,n){var a=typeof e.ref=="string"?e.ref:De(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,s=ar(a);s.s.r==s.e.r&&(s.e.r=ar(t["!ref"]).e.r,a=De(s));for(var f=0;f<i.length;++f){var o=i[f];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==n){o.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return f==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),Y("autoFilter",null,{ref:a})}function Lc(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Y("sheetViews",Y("sheetView",null,a),{})}function Mc(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=It[e.v];break;case"d":n&&n.cellDates?a=je(e.v,-1).toISOString():(e=qe(e),e.t="n",a=""+(e.v=Ze(je(e.v)))),typeof e.z>"u"&&(e.z=ye[14]);break;default:a=e.v;break}var f=We("v",de(a)),o={r:t},l=Lr(n.cellXfs,e,n);switch(l!==0&&(o.s=l),e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){f=We("v",""+Y0(n.Strings,e.v,n.revStrings)),o.t="s";break}o.t="str";break}if(e.t!=i&&(e.t=i,e.v=s),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;f=Y("f",de(e.f),c)+(e.v!=null?f:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(o.cm=1),Y("c",f,o)}function Bc(e,t,r,n){var a=[],i=[],s=Ee(e["!ref"]),f="",o,l="",c=[],p=0,x=0,v=e["!rows"],E=Array.isArray(e),u={r:l},_,O=-1;for(x=s.s.c;x<=s.e.c;++x)c[x]=Xe(x);for(p=s.s.r;p<=s.e.r;++p){for(i=[],l=He(p),x=s.s.c;x<=s.e.c;++x){o=c[x]+l;var R=E?(e[p]||[])[x]:e[o];R!==void 0&&(f=Mc(R,o,e,t))!=null&&i.push(f)}(i.length>0||v&&v[p])&&(u={r:l},v&&v[p]&&(_=v[p],_.hidden&&(u.hidden=1),O=-1,_.hpx?O=r0(_.hpx):_.hpt&&(O=_.hpt),O>-1&&(u.ht=O,u.customHeight=1),_.level&&(u.outlineLevel=_.level)),a[a.length]=Y("row",i.join(""),u))}if(v)for(;p<v.length;++p)v&&v[p]&&(u={r:p+1},_=v[p],_.hidden&&(u.hidden=1),O=-1,_.hpx?O=r0(_.hpx):_.hpt&&(O=_.hpt),O>-1&&(u.ht=O,u.customHeight=1),_.level&&(u.outlineLevel=_.level),a[a.length]=Y("row","",u));return a.join("")}function xi(e,t,r,n){var a=[Re,Y("worksheet",null,{xmlns:st[0],"xmlns:r":ke.r})],i=r.SheetNames[e],s=0,f="",o=r.Sheets[i];o==null&&(o={});var l=o["!ref"]||"A1",c=Ee(l);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),l=De(c)}n||(n={}),o["!comments"]=[];var p=[];Oc(o,r,e,t,a),a[a.length]=Y("dimension",null,{ref:l}),a[a.length]=Lc(o,t,e,r),t.sheetFormat&&(a[a.length]=Y("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),o["!cols"]!=null&&o["!cols"].length>0&&(a[a.length]=kc(o,o["!cols"])),a[s=a.length]="<sheetData/>",o["!links"]=[],o["!ref"]!=null&&(f=Bc(o,t),f.length>0&&(a[a.length]=f)),a.length>s+1&&(a[a.length]="</sheetData>",a[s]=a[s].replace("/>",">")),o["!protect"]&&(a[a.length]=Ic(o["!protect"])),o["!autofilter"]!=null&&(a[a.length]=Pc(o["!autofilter"],o,r,e)),o["!merges"]!=null&&o["!merges"].length>0&&(a[a.length]=Cc(o["!merges"]));var x=-1,v,E=-1;return o["!links"].length>0&&(a[a.length]="<hyperlinks>",o["!links"].forEach(function(u){u[1].Target&&(v={ref:u[0]},u[1].Target.charAt(0)!="#"&&(E=pe(n,-1,de(u[1].Target).replace(/#.*$/,""),he.HLINK),v["r:id"]="rId"+E),(x=u[1].Target.indexOf("#"))>-1&&(v.location=de(u[1].Target.slice(x+1))),u[1].Tooltip&&(v.tooltip=de(u[1].Tooltip)),a[a.length]=Y("hyperlink",null,v))}),a[a.length]="</hyperlinks>"),delete o["!links"],o["!margins"]!=null&&(a[a.length]=Nc(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=We("ignoredErrors",Y("ignoredError",null,{numberStoredAsText:1,sqref:l}))),p.length>0&&(E=pe(n,-1,"../drawings/drawing"+(e+1)+".xml",he.DRAW),a[a.length]=Y("drawing",null,{"r:id":"rId"+E}),o["!drawing"]=p),o["!comments"].length>0&&(E=pe(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",he.VML),a[a.length]=Y("legacyDrawing",null,{"r:id":"rId"+E}),o["!legacy"]=E),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function Uc(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function bc(e,t,r){var n=B(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=r0(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var f=0,o=n.l;n.l+=4;for(var l={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var p=-1,x=-1,v=c<<10;v<c+1<<10;++v){l.c=v;var E=Array.isArray(r)?(r[l.r]||[])[l.c]:r[me(l)];E&&(p<0&&(p=v),x=v)}p<0||(++f,n.write_shift(4,p),n.write_shift(4,x))}var u=n.l;return n.l=o,n.write_shift(4,f),n.l=u,n.length>n.l?n.slice(0,n.l):n}function Wc(e,t,r,n){var a=bc(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&W(e,0,a)}var Hc=$r,Gc=lt;function Vc(){}function Xc(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=qs(e),r}function Kc(e,t,r){r==null&&(r=B(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Zt({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Oa(e,r),r.slice(0,r.l)}function zc(e){var t=or(e);return[t]}function Yc(e,t,r){return r==null&&(r=B(8)),Kr(t,r)}function $c(e){var t=zr(e);return[t]}function jc(e,t,r){return r==null&&(r=B(4)),Yr(t,r)}function Jc(e){var t=or(e),r=e.read_shift(1);return[t,r,"b"]}function Zc(e,t,r){return r==null&&(r=B(9)),Kr(t,r),r.write_shift(1,e.v?1:0),r}function qc(e){var t=zr(e),r=e.read_shift(1);return[t,r,"b"]}function Qc(e,t,r){return r==null&&(r=B(5)),Yr(t,r),r.write_shift(1,e.v?1:0),r}function e1(e){var t=or(e),r=e.read_shift(1);return[t,r,"e"]}function r1(e,t,r){return r==null&&(r=B(9)),Kr(t,r),r.write_shift(1,e.v),r}function t1(e){var t=zr(e),r=e.read_shift(1);return[t,r,"e"]}function n1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function a1(e){var t=or(e),r=e.read_shift(4);return[t,r,"s"]}function i1(e,t,r){return r==null&&(r=B(12)),Kr(t,r),r.write_shift(4,t.v),r}function s1(e){var t=zr(e),r=e.read_shift(4);return[t,r,"s"]}function f1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),r.write_shift(4,t.v),r}function l1(e){var t=or(e),r=ot(e);return[t,r,"n"]}function o1(e,t,r){return r==null&&(r=B(16)),Kr(t,r),Gr(e.v,r),r}function c1(e){var t=zr(e),r=ot(e);return[t,r,"n"]}function h1(e,t,r){return r==null&&(r=B(12)),Yr(t,r),Gr(e.v,r),r}function u1(e){var t=or(e),r=Da(e);return[t,r,"n"]}function x1(e,t,r){return r==null&&(r=B(12)),Kr(t,r),Ra(e.v,r),r}function v1(e){var t=zr(e),r=Da(e);return[t,r,"n"]}function p1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),Ra(e.v,r),r}function d1(e){var t=or(e),r=b0(e);return[t,r,"is"]}function m1(e){var t=or(e),r=Ke(e);return[t,r,"str"]}function g1(e,t,r){return r==null&&(r=B(12+4*e.v.length)),Kr(t,r),Le(e.v,r),r.length>r.l?r.slice(0,r.l):r}function _1(e){var t=zr(e),r=Ke(e);return[t,r,"str"]}function T1(e,t,r){return r==null&&(r=B(8+4*e.v.length)),Yr(t,r),Le(e.v,r),r.length>r.l?r.slice(0,r.l):r}function E1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"b"];if(r.cellFormula){e.l+=2;var f=c0(e,n-e.l,r);s[3]=it(f,null,a,r.supbooks,r)}else e.l=n;return s}function w1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"e"];if(r.cellFormula){e.l+=2;var f=c0(e,n-e.l,r);s[3]=it(f,null,a,r.supbooks,r)}else e.l=n;return s}function S1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=ot(e),s=[a,i,"n"];if(r.cellFormula){e.l+=2;var f=c0(e,n-e.l,r);s[3]=it(f,null,a,r.supbooks,r)}else e.l=n;return s}function A1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=Ke(e),s=[a,i,"str"];if(r.cellFormula){e.l+=2;var f=c0(e,n-e.l,r);s[3]=it(f,null,a,r.supbooks,r)}else e.l=n;return s}var F1=$r,y1=lt;function C1(e,t){return t==null&&(t=B(4)),t.write_shift(4,e),t}function O1(e,t){var r=e.l+t,n=$r(e),a=W0(e),i=Ke(e),s=Ke(e),f=Ke(e);e.l=r;var o={rfx:n,relId:a,loc:i,display:f};return s&&(o.Tooltip=s),o}function D1(e,t){var r=B(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));lt({s:Pe(e[0]),e:Pe(e[0])},r),H0("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return Le(a||"",r),Le(e[1].Tooltip||"",r),Le("",r),r.slice(0,r.l)}function R1(){}function I1(e,t,r){var n=e.l+t,a=Ia(e),i=e.read_shift(1),s=[a];if(s[2]=i,r.cellFormula){var f=_c(e,n-e.l,r);s[1]=f}else e.l=n;return s}function N1(e,t,r){var n=e.l+t,a=$r(e),i=[a];if(r.cellFormula){var s=Ec(e,n-e.l,r);i[1]=s,e.l=n}else e.l=n;return i}function k1(e,t,r){r==null&&(r=B(18));var n=h0(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var vi=["left","right","top","bottom","header","footer"];function P1(e){var t={};return vi.forEach(function(r){t[r]=ot(e)}),t}function L1(e,t){return t==null&&(t=B(6*8)),ui(e),vi.forEach(function(r){Gr(e[r],t)}),t}function M1(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function B1(e,t,r){r==null&&(r=B(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function U1(e){var t=B(24);return t.write_shift(4,4),t.write_shift(4,1),lt(e,t),t}function b1(e,t){return t==null&&(t=B(16*4+2)),t.write_shift(2,e.password?ja(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function W1(){}function H1(){}function G1(e,t,r,n,a,i,s){if(t.v===void 0)return!1;var f="";switch(t.t){case"b":f=t.v?"1":"0";break;case"d":t=qe(t),t.z=t.z||ye[14],t.v=Ze(je(t.v)),t.t="n";break;case"n":case"e":f=""+t.v;break;default:f=t.v;break}var o={r,c:n};switch(o.s=Lr(a.cellXfs,t,a),t.l&&i["!links"].push([me(o),t.l]),t.c&&i["!comments"].push([me(o),t.c]),t.t){case"s":case"str":return a.bookSST?(f=Y0(a.Strings,t.v,a.revStrings),o.t="s",o.v=f,s?W(e,18,f1(t,o)):W(e,7,i1(t,o))):(o.t="str",s?W(e,17,T1(t,o)):W(e,6,g1(t,o))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?W(e,13,p1(t,o)):W(e,2,x1(t,o)):s?W(e,16,h1(t,o)):W(e,5,o1(t,o)),!0;case"b":return o.t="b",s?W(e,15,Qc(t,o)):W(e,4,Zc(t,o)),!0;case"e":return o.t="e",s?W(e,14,n1(t,o)):W(e,3,r1(t,o)),!0}return s?W(e,12,jc(t,o)):W(e,1,Yc(t,o)),!0}function V1(e,t,r,n){var a=Ee(t["!ref"]||"A1"),i,s="",f=[];W(e,145);var o=Array.isArray(t),l=a.e.r;t["!rows"]&&(l=Math.max(a.e.r,t["!rows"].length-1));for(var c=a.s.r;c<=l;++c){s=He(c),Wc(e,t,a,c);var p=!1;if(c<=a.e.r)for(var x=a.s.c;x<=a.e.c;++x){c===a.s.r&&(f[x]=Xe(x)),i=f[x]+s;var v=o?(t[c]||[])[x]:t[i];if(!v){p=!1;continue}p=G1(e,v,c,x,n,t,p)}}W(e,146)}function X1(e,t){!t||!t["!merges"]||(W(e,177,C1(t["!merges"].length)),t["!merges"].forEach(function(r){W(e,176,y1(r))}),W(e,178))}function K1(e,t){!t||!t["!cols"]||(W(e,390),t["!cols"].forEach(function(r,n){r&&W(e,60,k1(n,r))}),W(e,391))}function z1(e,t){!t||!t["!ref"]||(W(e,648),W(e,649,U1(Ee(t["!ref"]))),W(e,650))}function Y1(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=pe(r,-1,n[1].Target.replace(/#.*$/,""),he.HLINK);W(e,494,D1(n,a))}}),delete t["!links"]}function $1(e,t,r,n){if(t["!comments"].length>0){var a=pe(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",he.VML);W(e,551,H0("rId"+a)),t["!legacy"]=a}}function j1(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:De(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,f=ar(i);f.s.r==f.e.r&&(f.e.r=ar(t["!ref"]).e.r,i=De(f));for(var o=0;o<s.length;++o){var l=s[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}o==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),W(e,161,lt(Ee(i))),W(e,162)}}function J1(e,t,r){W(e,133),W(e,137,B1(t,r)),W(e,138),W(e,134)}function Z1(e,t){t["!protect"]&&W(e,535,b1(t["!protect"]))}function q1(e,t,r,n){var a=Je(),i=r.SheetNames[e],s=r.Sheets[i]||{},f=i;try{r&&r.Workbook&&(f=r.Workbook.Sheets[e].CodeName||f)}catch{}var o=Ee(s["!ref"]||"A1");if(o.e.c>16383||o.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383),o.e.r=Math.min(o.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],W(a,129),(r.vbaraw||s["!outline"])&&W(a,147,Kc(f,s["!outline"])),W(a,148,Gc(o)),J1(a,s,r.Workbook),K1(a,s),V1(a,s,e,t),Z1(a,s),j1(a,s,r,e),X1(a,s),Y1(a,s,n),s["!margins"]&&W(a,476,L1(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&z1(a,s),$1(a,s,e,n),W(a,130),a.end()}function Q1(e,t){e.l+=10;var r=Ke(e);return{name:r}}var eh=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function rh(e){return!e.Workbook||!e.Workbook.WBProps?"false":Rs(e.Workbook.WBProps.date1904)?"true":"false"}var th="][*?/\\".split("");function pi(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return th.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function nh(e,t,r){e.forEach(function(n,a){pi(n);for(var i=0;i<a;++i)if(n==e[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var s=t[a]&&t[a].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function ah(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];nh(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)yc(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function di(e){var t=[Re];t[t.length]=Y("workbook",null,{xmlns:st[0],"xmlns:r":ke.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(eh.forEach(function(f){e.Workbook.WBProps[f[0]]!=null&&e.Workbook.WBProps[f[0]]!=f[1]&&(n[f[0]]=e.Workbook.WBProps[f[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=Y("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a[0]&&a[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:de(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=Y("sheet",null,s)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(f){var o={name:f.Name};f.Comment&&(o.comment=f.Comment),f.Sheet!=null&&(o.localSheetId=""+f.Sheet),f.Hidden&&(o.hidden="1"),f.Ref&&(t[t.length]=Y("definedName",de(f.Ref),o))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function ih(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=C0(e),r.name=Ke(e),r}function sh(e,t){return t||(t=B(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),H0(e.strRelID,t),Le(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function fh(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?Ke(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function lh(e,t){t||(t=B(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Oa(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function oh(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=Qs(e),s=Tc(e,0,r),f=W0(e);e.l=n;var o={Name:i,Ptg:s};return a<268435455&&(o.Sheet=a),f&&(o.Comment=f),o}function ch(e,t){W(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};W(e,156,sh(a))}W(e,144)}function hh(e,t){t||(t=B(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return Le("SheetJS",t),Le(Xt.version,t),Le(Xt.version,t),Le("7262",t),t.length>t.l?t.slice(0,t.l):t}function uh(e,t){t||(t=B(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function xh(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&i==-1&&(i=n);i>a||(W(e,135),W(e,158,uh(a)),W(e,136))}}function vh(e,t){var r=Je();return W(r,131),W(r,128,hh()),W(r,153,lh(e.Workbook&&e.Workbook.WBProps||null)),xh(r,e),ch(r,e),W(r,132),r.end()}function ph(e,t,r){return(t.slice(-4)===".bin"?vh:di)(e)}function dh(e,t,r,n,a){return(t.slice(-4)===".bin"?q1:xi)(e,r,n,a)}function mh(e,t,r){return(t.slice(-4)===".bin"?Pl:qa)(e,r)}function gh(e,t,r){return(t.slice(-4)===".bin"?fl:$a)(e,r)}function _h(e,t,r){return(t.slice(-4)===".bin"?Jl:ni)(e)}function Th(e){return(e.slice(-4)===".bin"?Gl:ri)()}function Eh(e,t){var r=[];return e.Props&&r.push(df(e.Props,t)),e.Custprops&&r.push(mf(e.Props,e.Custprops)),r.join("")}function wh(){return""}function Sh(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,a){var i=[];i.push(Y("NumberFormat",null,{"ss:Format":de(ye[n.numFmtId])}));var s={"ss:ID":"s"+(21+a)};r.push(Y("Style",i.join(""),s))}),Y("Styles",r.join(""))}function mi(e){return Y("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+K0(e.Ref,{r:0,c:0})})}function Ah(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var a=t[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(mi(a)))}return Y("Names",r.join(""))}function Fh(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,i=[],s=0;s<a.length;++s){var f=a[s];f.Sheet==r&&(f.Name.match(/^_xlfn\./)||i.push(mi(f)))}return i.join("")}function yh(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push("<PageSetup>"),e["!margins"].header&&a.push(Y("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(Y("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(Y("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(Y("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(n.Workbook.Sheets[i]&&!n.Workbook.Sheets[i].Hidden);++i);i==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),e["!protect"]&&(a.push(We("ProtectContents","True")),e["!protect"].objects&&a.push(We("ProtectObjects","True")),e["!protect"].scenarios&&a.push(We("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(We("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(We("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&a.push("<"+s[1]+"/>")})),a.length==0?"":Y("WorksheetOptions",a.join(""),{xmlns:tr.x})}function Ch(e){return e.map(function(t){var r=Ds(t.t||""),n=Y("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Y("Comment",n,{"ss:Author":t.a})}).join("")}function Oh(e,t,r,n,a,i,s){if(!e||e.v==null&&e.f==null)return"";var f={};if(e.f&&(f["ss:Formula"]="="+de(K0(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var o=Pe(e.F.slice(t.length+1));f["ss:ArrayRange"]="RC:R"+(o.r==s.r?"":"["+(o.r-s.r)+"]")+"C"+(o.c==s.c?"":"["+(o.c-s.c)+"]")}if(e.l&&e.l.Target&&(f["ss:HRef"]=de(e.l.Target),e.l.Tooltip&&(f["x:HRefScreenTip"]=de(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],c=0;c!=l.length;++c)l[c].s.c!=s.c||l[c].s.r!=s.r||(l[c].e.c>l[c].s.c&&(f["ss:MergeAcross"]=l[c].e.c-l[c].s.c),l[c].e.r>l[c].s.r&&(f["ss:MergeDown"]=l[c].e.r-l[c].s.r));var p="",x="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",x=String(e.v);break;case"b":p="Boolean",x=e.v?"1":"0";break;case"e":p="Error",x=It[e.v];break;case"d":p="DateTime",x=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||ye[14]);break;case"s":p="String",x=Os(e.v||"");break}var v=Lr(n.cellXfs,e,n);f["ss:StyleID"]="s"+(21+v),f["ss:Index"]=s.c+1;var E=e.v!=null?x:"",u=e.t=="z"?"":'<Data ss:Type="'+p+'">'+E+"</Data>";return(e.c||[]).length>0&&(u+=Ch(e.c)),Y("Cell",u,f)}function Dh(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Za(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function Rh(e,t,r,n){if(!e["!ref"])return"";var a=Ee(e["!ref"]),i=e["!merges"]||[],s=0,f=[];e["!cols"]&&e["!cols"].forEach(function(_,O){V0(_);var R=!!_.width,y=h0(O,_),M={"ss:Index":O+1};R&&(M["ss:Width"]=Qt(y.width)),_.hidden&&(M["ss:Hidden"]="1"),f.push(Y("Column",null,M))});for(var o=Array.isArray(e),l=a.s.r;l<=a.e.r;++l){for(var c=[Dh(l,(e["!rows"]||[])[l])],p=a.s.c;p<=a.e.c;++p){var x=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>p)&&!(i[s].s.r>l)&&!(i[s].e.c<p)&&!(i[s].e.r<l)){(i[s].s.c!=p||i[s].s.r!=l)&&(x=!0);break}if(!x){var v={r:l,c:p},E=me(v),u=o?(e[l]||[])[p]:e[E];c.push(Oh(u,E,e,t,r,n,v))}}c.push("</Row>"),c.length>2&&f.push(c.join(""))}return f.join("")}function Ih(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],s=i?Fh(i,t,e,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=i?Rh(i,t,e,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(yh(i,t,e,r)),n.join("")}function Nh(e,t){t||(t={}),e.SSF||(e.SSF=qe(ye)),e.SSF&&(s0(),i0(e.SSF),t.revssf=f0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Lr(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(Eh(e,t)),r.push(wh()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(Y("Worksheet",Ih(n,t,e),{"ss:Name":de(e.SheetNames[n])}));return r[2]=Sh(e,t),r[3]=Ah(e),Re+Y("Workbook",r.join(""),{xmlns:tr.ss,"xmlns:o":tr.o,"xmlns:x":tr.x,"xmlns:ss":tr.ss,"xmlns:dt":tr.dt,"xmlns:html":tr.html})}var w0={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function kh(e,t){var r=[],n=[],a=[],i=0,s,f=mn(Rn,"n"),o=mn(In,"n");if(e.Props)for(s=Ge(e.Props),i=0;i<s.length;++i)(Object.prototype.hasOwnProperty.call(f,s[i])?r:Object.prototype.hasOwnProperty.call(o,s[i])?n:a).push([s[i],e.Props[s[i]]]);if(e.Custprops)for(s=Ge(e.Custprops),i=0;i<s.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},s[i])||(Object.prototype.hasOwnProperty.call(f,s[i])?r:Object.prototype.hasOwnProperty.call(o,s[i])?n:a).push([s[i],e.Custprops[s[i]]]);var l=[];for(i=0;i<a.length;++i)Ha.indexOf(a[i][0])>-1||Ua.indexOf(a[i][0])>-1||a[i][1]!=null&&l.push(a[i]);n.length&&_e.utils.cfb_add(t,"/SummaryInformation",Mn(n,w0.SI,o,In)),(r.length||l.length)&&_e.utils.cfb_add(t,"/DocumentSummaryInformation",Mn(r,w0.DSI,f,Rn,l.length?l:null,w0.UDI))}function Ph(e,t){var r=t,n=_e.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return _e.utils.cfb_add(n,a,gi(e,r)),r.biff==8&&(e.Props||e.Custprops)&&kh(e,n),r.biff==8&&e.vbaraw&&Zl(n,_e.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Lh={0:{f:Uc},1:{f:zc},2:{f:u1},3:{f:e1},4:{f:Jc},5:{f:l1},6:{f:m1},7:{f:a1},8:{f:A1},9:{f:S1},10:{f:E1},11:{f:w1},12:{f:$c},13:{f:v1},14:{f:t1},15:{f:qc},16:{f:c1},17:{f:_1},18:{f:s1},19:{f:b0},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:oh},40:{},42:{},43:{f:dl},44:{f:vl},45:{f:_l},46:{f:El},47:{f:Tl},48:{},49:{f:zs},50:{},51:{f:Bl},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:$f},62:{f:d1},63:{f:Vl},64:{f:W1},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:_r,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:M1},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Xc},148:{f:Hc,p:16},151:{f:R1},152:{},153:{f:fh},154:{},155:{},156:{f:ih},157:{},158:{},159:{T:1,f:al},160:{T:-1},161:{T:1,f:$r},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:F1},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Ll},336:{T:-1},337:{f:Wl,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:C0},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Gf},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:I1},427:{f:N1},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:P1},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Vc},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:O1},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:C0},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:$l},633:{T:1},634:{T:-1},635:{T:1,f:zl},636:{T:-1},637:{f:Js},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Q1},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:H1},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function J(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,i),i>0&&M0(r)&&e.push(r)}}function Mh(e,t,r,n){var a=(r||[]).length||0;if(a<=8224)return J(e,t,r,a);var i=t;if(!isNaN(i)){for(var s=r.parts||[],f=0,o=0,l=0;l+(s[f]||8224)<=8224;)l+=s[f]||8224,f++;var c=e.next(4);for(c.write_shift(2,i),c.write_shift(2,l),e.push(r.slice(o,o+l)),o+=l;o<a;){for(c=e.next(4),c.write_shift(2,60),l=0;l+(s[f]||8224)<=8224;)l+=s[f]||8224,f++;c.write_shift(2,l),e.push(r.slice(o,o+l)),o+=l}}}function kt(e,t,r){return e||(e=B(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function Bh(e,t,r,n){var a=B(9);return kt(a,e,t),Va(r,n||"b",a),a}function Uh(e,t,r){var n=B(8+2*r.length);return kt(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function bh(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var a=t.t=="d"?Ze(je(t.v)):t.v;a==(a|0)&&a>=0&&a<65536?J(e,2,qf(r,n,a)):J(e,3,Zf(r,n,a));return;case"b":case"e":J(e,5,Bh(r,n,t.v,t.t));return;case"s":case"str":J(e,4,Uh(r,n,(t.v||"").slice(0,255)));return}J(e,1,kt(null,r,n))}function Wh(e,t,r,n){var a=Array.isArray(t),i=Ee(t["!ref"]||"A1"),s,f="",o=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),s=De(i)}for(var l=i.s.r;l<=i.e.r;++l){f=He(l);for(var c=i.s.c;c<=i.e.c;++c){l===i.s.r&&(o[c]=Xe(c)),s=o[c]+f;var p=a?(t[l]||[])[c]:t[s];p&&bh(e,p,l,c)}}}function Hh(e,t){for(var r=t||{},n=Je(),a=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==r.sheet&&(a=i);if(a==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return J(n,r.biff==4?1033:r.biff==3?521:9,G0(e,16,r)),Wh(n,e.Sheets[e.SheetNames[a]],a,r),J(n,10),n.end()}function Gh(e,t,r){J(e,49,Pf({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function Vh(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&J(e,1054,Bf(a,t[a],r))})}function Xh(e,t){var r=B(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),J(e,2151,r),r=B(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),za(Ee(t["!ref"]||"A1"),r),r.write_shift(4,4),J(e,2152,r)}function Kh(e,t){for(var r=0;r<16;++r)J(e,224,Un({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){J(e,224,Un(n,0,t))})}function zh(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];J(e,440,Kf(n)),n[1].Tooltip&&J(e,2048,zf(n))}delete t["!links"]}function Yh(e,t){if(t){var r=0;t.forEach(function(n,a){++r<=256&&n&&J(e,125,jf(h0(a,n),a))})}}function $h(e,t,r,n,a){var i=16+Lr(a.cellXfs,t,a);if(t.v==null&&!t.bf){J(e,513,Vr(r,n,i));return}if(t.bf)J(e,6,gc(t,r,n,a,i));else switch(t.t){case"d":case"n":var s=t.t=="d"?Ze(je(t.v)):t.v;J(e,515,Hf(r,n,s,i));break;case"b":case"e":J(e,517,Wf(r,n,t.v,i,a,t.t));break;case"s":case"str":if(a.bookSST){var f=Y0(a.Strings,t.v,a.revStrings);J(e,253,Lf(r,n,f,i))}else J(e,516,Mf(r,n,(t.v||"").slice(0,255),i,a));break;default:J(e,513,Vr(r,n,i))}}function jh(e,t,r){var n=Je(),a=r.SheetNames[e],i=r.Sheets[a]||{},s=(r||{}).Workbook||{},f=(s.Sheets||[])[e]||{},o=Array.isArray(i),l=t.biff==8,c,p="",x=[],v=Ee(i["!ref"]||"A1"),E=l?65536:16384;if(v.e.c>255||v.e.r>=E){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");v.e.c=Math.min(v.e.c,255),v.e.r=Math.min(v.e.c,E-1)}J(n,2057,G0(r,16,t)),J(n,13,lr(1)),J(n,12,lr(100)),J(n,15,$e(!0)),J(n,17,$e(!1)),J(n,16,Gr(.001)),J(n,95,$e(!0)),J(n,42,$e(!1)),J(n,43,$e(!1)),J(n,130,lr(1)),J(n,128,bf()),J(n,131,$e(!1)),J(n,132,$e(!1)),l&&Yh(n,i["!cols"]),J(n,512,Uf(v,t)),l&&(i["!links"]=[]);for(var u=v.s.r;u<=v.e.r;++u){p=He(u);for(var _=v.s.c;_<=v.e.c;++_){u===v.s.r&&(x[_]=Xe(_)),c=x[_]+p;var O=o?(i[u]||[])[_]:i[c];O&&($h(n,O,u,_,t),l&&O.l&&i["!links"].push([c,O.l]))}}var R=f.CodeName||f.name||a;return l&&J(n,574,kf((s.Views||[])[0])),l&&(i["!merges"]||[]).length&&J(n,229,Xf(i["!merges"])),l&&zh(n,i),J(n,442,Ka(R)),l&&Xh(n,i),J(n,10),n.end()}function Jh(e,t,r){var n=Je(),a=(e||{}).Workbook||{},i=a.Sheets||[],s=a.WBProps||{},f=r.biff==8,o=r.biff==5;if(J(n,2057,G0(e,5,r)),r.bookType=="xla"&&J(n,135),J(n,225,f?lr(1200):null),J(n,193,Tf(2)),o&&J(n,191),o&&J(n,192),J(n,226),J(n,92,Df("SheetJS",r)),J(n,66,lr(f?1200:1252)),f&&J(n,353,lr(0)),f&&J(n,448),J(n,317,Jf(e.SheetNames.length)),f&&e.vbaraw&&J(n,211),f&&e.vbaraw){var l=s.CodeName||"ThisWorkbook";J(n,442,Ka(l))}J(n,156,lr(17)),J(n,25,$e(!1)),J(n,18,$e(!1)),J(n,19,lr(0)),f&&J(n,431,$e(!1)),f&&J(n,444,lr(0)),J(n,61,Nf()),J(n,64,$e(!1)),J(n,141,lr(0)),J(n,34,$e(rh(e)=="true")),J(n,14,$e(!0)),f&&J(n,439,$e(!1)),J(n,218,lr(0)),Gh(n,e,r),Vh(n,e.SSF,r),Kh(n,r),f&&J(n,352,$e(!1));var c=n.end(),p=Je();f&&J(p,140,Yf()),f&&r.Strings&&Mh(p,252,If(r.Strings)),J(p,10);var x=p.end(),v=Je(),E=0,u=0;for(u=0;u<e.SheetNames.length;++u)E+=(f?12:11)+(f?2:1)*e.SheetNames[u].length;var _=c.length+E+x.length;for(u=0;u<e.SheetNames.length;++u){var O=i[u]||{};J(v,133,Rf({pos:_,hs:O.Hidden||0,dt:0,name:e.SheetNames[u]},r)),_+=t[u].length}var R=v.end();if(E!=R.length)throw new Error("BS8 "+E+" != "+R.length);var y=[];return c.length&&y.push(c),R.length&&y.push(R),x.length&&y.push(x),be(y)}function Zh(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(s0(),i0(e.SSF),r.revssf=f0(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,$0(r),r.cellXfs=[],Lr(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var a=0;a<e.SheetNames.length;++a)n[n.length]=jh(a,r,e);return n.unshift(Jh(e,n,r)),be(n)}function gi(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var a=ar(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return Zh(e,t);case 4:case 3:case 2:return Hh(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function qh(e,t,r,n){for(var a=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var f=0,o=0,l=0;l<a.length;++l)if(!(a[l].s.r>r||a[l].s.c>s)&&!(a[l].e.r<r||a[l].e.c<s)){if(a[l].s.r<r||a[l].s.c<s){f=-1;break}f=a[l].e.r-a[l].s.r+1,o=a[l].e.c-a[l].s.c+1;break}if(!(f<0)){var c=me({r,c:s}),p=n.dense?(e[r]||[])[s]:e[c],x=p&&p.v!=null&&(p.h||Cs(p.w||(Cr(p),p.w)||""))||"",v={};f>1&&(v.rowspan=f),o>1&&(v.colspan=o),n.editable?x='<span contenteditable="true">'+x+"</span>":p&&(v["data-t"]=p&&p.t||"z",p.v!=null&&(v["data-v"]=p.v),p.z!=null&&(v["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(x='<a href="'+p.l.Target+'">'+x+"</a>")),v.id=(n.id||"sjs")+"-"+c,i.push(Y("td",x,v))}}var E="<tr>";return E+i.join("")+"</tr>"}var Qh='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',eu="</body></html>";function ru(e,t,r){var n=[];return n.join("")+"<table"+(r.id?' id="'+r.id+'"':"")+">"}function _i(e,t){var r=t||{},n=r.header!=null?r.header:Qh,a=r.footer!=null?r.footer:eu,i=[n],s=ar(e["!ref"]);r.dense=Array.isArray(e),i.push(ru(e,s,r));for(var f=s.s.r;f<=s.e.r;++f)i.push(qh(e,s,f,r));return i.push("</table>"+a),i.join("")}function Ti(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?Pe(n.origin):n.origin;a=s.r,i=s.c}var f=t.getElementsByTagName("tr"),o=Math.min(n.sheetRows||1e7,f.length),l={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var c=ar(e["!ref"]);l.s.r=Math.min(l.s.r,c.s.r),l.s.c=Math.min(l.s.c,c.s.c),l.e.r=Math.max(l.e.r,c.e.r),l.e.c=Math.max(l.e.c,c.e.c),a==-1&&(l.e.r=a=c.e.r+1)}var p=[],x=0,v=e["!rows"]||(e["!rows"]=[]),E=0,u=0,_=0,O=0,R=0,y=0;for(e["!cols"]||(e["!cols"]=[]);E<f.length&&u<o;++E){var M=f[E];if(Kn(M)){if(n.display)continue;v[u]={hidden:!0}}var j=M.children;for(_=O=0;_<j.length;++_){var ee=j[_];if(!(n.display&&Kn(ee))){var C=ee.hasAttribute("data-v")?ee.getAttribute("data-v"):ee.hasAttribute("v")?ee.getAttribute("v"):Is(ee.innerHTML),b=ee.getAttribute("data-z")||ee.getAttribute("z");for(x=0;x<p.length;++x){var L=p[x];L.s.c==O+i&&L.s.r<u+a&&u+a<=L.e.r&&(O=L.e.c+1-i,x=-1)}y=+ee.getAttribute("colspan")||1,((R=+ee.getAttribute("rowspan")||1)>1||y>1)&&p.push({s:{r:u+a,c:O+i},e:{r:u+a+(R||1)-1,c:O+i+(y||1)-1}});var G={t:"s",v:C},V=ee.getAttribute("data-t")||ee.getAttribute("t")||"";C!=null&&(C.length==0?G.t=V||"z":n.raw||C.trim().length==0||V=="s"||(C==="TRUE"?G={t:"b",v:!0}:C==="FALSE"?G={t:"b",v:!1}:isNaN(Ar(C))?isNaN(St(C).getDate())||(G={t:"d",v:je(C)},n.cellDates||(G={t:"n",v:Ze(G.v)}),G.z=n.dateNF||ye[14]):G={t:"n",v:Ar(C)})),G.z===void 0&&b!=null&&(G.z=b);var K="",re=ee.getElementsByTagName("A");if(re&&re.length)for(var ge=0;ge<re.length&&!(re[ge].hasAttribute("href")&&(K=re[ge].getAttribute("href"),K.charAt(0)!="#"));++ge);K&&K.charAt(0)!="#"&&(G.l={Target:K}),n.dense?(e[u+a]||(e[u+a]=[]),e[u+a][O+i]=G):e[me({c:O+i,r:u+a})]=G,l.e.c<O+i&&(l.e.c=O+i),O+=y}}++u}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),l.e.r=Math.max(l.e.r,u-1+a),e["!ref"]=De(l),u>=o&&(e["!fullref"]=De((l.e.r=f.length-E+u-1+a,l))),e}function Ei(e,t){var r=t||{},n=r.dense?[]:{};return Ti(n,e,t)}function tu(e,t){return Xr(Ei(e,t),t)}function Kn(e){var t="",r=nu(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function nu(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var au=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Ft({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Re+t}}(),zn=function(){var e=function(i){return de(i).replace(/  +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=`          <table:table-cell />
+`,r=`          <table:covered-table-cell/>
+`,n=function(i,s,f){var o=[];o.push('      <table:table table:name="'+de(s.SheetNames[f])+`" table:style-name="ta1">
+`);var l=0,c=0,p=ar(i["!ref"]||"A1"),x=i["!merges"]||[],v=0,E=Array.isArray(i);if(i["!cols"])for(c=0;c<=p.e.c;++c)o.push("        <table:table-column"+(i["!cols"][c]?' table:style-name="co'+i["!cols"][c].ods+'"':"")+`></table:table-column>
+`);var u="",_=i["!rows"]||[];for(l=0;l<p.s.r;++l)u=_[l]?' table:style-name="ro'+_[l].ods+'"':"",o.push("        <table:table-row"+u+`></table:table-row>
+`);for(;l<=p.e.r;++l){for(u=_[l]?' table:style-name="ro'+_[l].ods+'"':"",o.push("        <table:table-row"+u+`>
+`),c=0;c<p.s.c;++c)o.push(t);for(;c<=p.e.c;++c){var O=!1,R={},y="";for(v=0;v!=x.length;++v)if(!(x[v].s.c>c)&&!(x[v].s.r>l)&&!(x[v].e.c<c)&&!(x[v].e.r<l)){(x[v].s.c!=c||x[v].s.r!=l)&&(O=!0),R["table:number-columns-spanned"]=x[v].e.c-x[v].s.c+1,R["table:number-rows-spanned"]=x[v].e.r-x[v].s.r+1;break}if(O){o.push(r);continue}var M=me({r:l,c}),j=E?(i[l]||[])[c]:i[M];if(j&&j.f&&(R["table:formula"]=de(Ac(j.f)),j.F&&j.F.slice(0,M.length)==M)){var ee=ar(j.F);R["table:number-matrix-columns-spanned"]=ee.e.c-ee.s.c+1,R["table:number-matrix-rows-spanned"]=ee.e.r-ee.s.r+1}if(!j){o.push(t);continue}switch(j.t){case"b":y=j.v?"TRUE":"FALSE",R["office:value-type"]="boolean",R["office:boolean-value"]=j.v?"true":"false";break;case"n":y=j.w||String(j.v||0),R["office:value-type"]="float",R["office:value"]=j.v||0;break;case"s":case"str":y=j.v==null?"":j.v,R["office:value-type"]="string";break;case"d":y=j.w||je(j.v).toISOString(),R["office:value-type"]="date",R["office:date-value"]=je(j.v).toISOString(),R["table:style-name"]="ce1";break;default:o.push(t);continue}var C=e(y);if(j.l&&j.l.Target){var b=j.l.Target;b=b.charAt(0)=="#"?"#"+Fc(b.slice(1)):b,b.charAt(0)!="#"&&!b.match(/^\w+:/)&&(b="../"+b),C=Y("text:a",C,{"xlink:href":b.replace(/&/g,"&amp;")})}o.push("          "+Y("table:table-cell",Y("text:p",C,{}),R)+`
+`)}o.push(`        </table:table-row>
+`)}return o.push(`      </table:table>
+`),o.join("")},a=function(i,s){i.push(` <office:automatic-styles>
+`),i.push(`  <number:date-style style:name="N37" number:automatic-order="true">
+`),i.push(`   <number:month number:style="long"/>
+`),i.push(`   <number:text>/</number:text>
+`),i.push(`   <number:day number:style="long"/>
+`),i.push(`   <number:text>/</number:text>
+`),i.push(`   <number:year/>
+`),i.push(`  </number:date-style>
+`);var f=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!cols"]){for(var c=0;c<l["!cols"].length;++c)if(l["!cols"][c]){var p=l["!cols"][c];if(p.width==null&&p.wpx==null&&p.wch==null)continue;V0(p),p.ods=f;var x=l["!cols"][c].wpx+"px";i.push('  <style:style style:name="co'+f+`" style:family="table-column">
+`),i.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+x+`"/>
+`),i.push(`  </style:style>
+`),++f}}});var o=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!rows"]){for(var c=0;c<l["!rows"].length;++c)if(l["!rows"][c]){l["!rows"][c].ods=o;var p=l["!rows"][c].hpx+"px";i.push('  <style:style style:name="ro'+o+`" style:family="table-row">
+`),i.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
+`),i.push(`  </style:style>
+`),++o}}}),i.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
+`),i.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
+`),i.push(`  </style:style>
+`),i.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
+`),i.push(` </office:automatic-styles>
+`)};return function(s,f){var o=[Re],l=Ft({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=Ft({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(o.push("<office:document"+l+c+`>
+`),o.push(Ma().replace(/office:document-meta/g,"office:meta"))):o.push("<office:document-content"+l+`>
+`),a(o,s),o.push(`  <office:body>
+`),o.push(`    <office:spreadsheet>
+`);for(var p=0;p!=s.SheetNames.length;++p)o.push(n(s.Sheets[s.SheetNames[p]],s,p));return o.push(`    </office:spreadsheet>
+`),o.push(`  </office:body>
+`),f.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}}();function wi(e,t){if(t.bookType=="fods")return zn(e,t);var r=N0(),n="",a=[],i=[];return n="mimetype",oe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",oe(r,n,zn(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",oe(r,n,au(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",oe(r,n,Re+Ma()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",oe(r,n,pf(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",oe(r,n,xf(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function t0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function iu(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):xr(At(e))}function su(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Pr(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function fu(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function yt(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function ve(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function at(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Ie(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=yt(e,r),i=a&7;a=Math.floor(a/8);var s=0,f;if(a==0)break;switch(i){case 0:{for(var o=r[0];e[r[0]++]>=128;);f=e.slice(o,r[0])}break;case 5:s=4,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=yt(e,r),f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var l={data:f,type:i};t[a]==null?t[a]=[l]:t[a].push(l)}return t}function Be(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(ve(n*8+a.type)),a.type==2&&t.push(ve(a.data.length)),t.push(a.data))})}),Pr(t)}function hr(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=yt(e,n),i=Ie(e.slice(n[0],n[0]+a));n[0]+=a;var s={id:at(i[1][0].data),messages:[]};i[2].forEach(function(f){var o=Ie(f.data),l=at(o[3][0].data);s.messages.push({meta:o,data:e.slice(n[0],n[0]+l)}),n[0]+=l}),(t=i[3])!=null&&t[0]&&(s.merge=at(i[3][0].data)>>>0>0),r.push(s)}return r}function Zr(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:ve(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:ve(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:ve(s.data.length)}],n[2].push({data:Be(s.meta),type:2})});var i=Be(n);t.push(ve(i.length)),t.push(i),a.forEach(function(s){return t.push(s)})}),Pr(t)}function lu(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=yt(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var f=s-59;s=t[r[0]],f>1&&(s|=t[r[0]+1]<<8),f>2&&(s|=t[r[0]+2]<<16),f>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=f}a.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var o=0,l=0;if(i==1?(l=(t[r[0]]>>2&7)+4,o=(t[r[0]++]&224)<<3,o|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,i==2?(o=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(o=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Pr(a)],o==0)throw new Error("Invalid offset 0");if(o>a[0].length)throw new Error("Invalid offset beyond length");if(l>=o)for(a.push(a[0].slice(-o)),l-=o;l>=a[a.length-1].length;)a.push(a[a.length-1]),l-=a[a.length-1].length;a.push(a[0].slice(-o,-o+l))}}var c=Pr(a);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function ur(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(lu(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Pr(t)}function qr(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),a=new Uint8Array(4);t.push(a);var i=ve(n),s=i.length;t.push(i),n<=60?(s++,t.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,a[0]=0,a[1]=s&255,a[2]=s>>8&255,a[3]=s>>16&255,r+=n}return Pr(t)}function S0(e,t){var r=new Uint8Array(32),n=t0(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,fu(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function A0(e,t){var r=new Uint8Array(32),n=t0(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function Dr(e){var t=Ie(e);return yt(t[1][0].data)}function ou(e,t,r){var n,a,i,s;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var f=((s=(i=e[8])==null?void 0:i[0])==null?void 0:s.data)&&at(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var o=0,l=t0(e[7][0].data),c=0,p=[],x=t0(e[4][0].data),v=0,E=[],u=0;u<t.length;++u){if(t[u]==null){l.setUint16(u*2,65535,!0),x.setUint16(u*2,65535);continue}l.setUint16(u*2,c,!0),x.setUint16(u*2,v,!0);var _,O;switch(typeof t[u]){case"string":_=S0({t:"s",v:t[u]},r),O=A0({t:"s",v:t[u]},r);break;case"number":_=S0({t:"n",v:t[u]},r),O=A0({t:"n",v:t[u]},r);break;case"boolean":_=S0({t:"b",v:t[u]},r),O=A0({t:"b",v:t[u]},r);break;default:throw new Error("Unsupported value "+t[u])}p.push(_),c+=_.length,E.push(O),v+=O.length,++o}for(e[2][0].data=ve(o);u<e[7][0].data.length/2;++u)l.setUint16(u*2,65535,!0),x.setUint16(u*2,65535,!0);return e[6][0].data=Pr(p),e[3][0].data=Pr(E),o}function cu(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=ar(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(De(n)));var i=n0(r,{range:n,header:1}),s=["~Sh33tJ5~"];i.forEach(function(P){return P.forEach(function(F){typeof F=="string"&&s.push(F)})});var f={},o=[],l=_e.read(t.numbers,{type:"base64"});l.FileIndex.map(function(P,F){return[P,l.FullPaths[F]]}).forEach(function(P){var F=P[0],A=P[1];if(F.type==2&&F.name.match(/\.iwa/)){var H=F.content,ie=ur(H),se=hr(ie);se.forEach(function(ae){o.push(ae.id),f[ae.id]={deps:[],location:A,type:at(ae.messages[0].meta[1][0].data)}})}}),o.sort(function(P,F){return P-F});var c=o.filter(function(P){return P>1}).map(function(P){return[P,ve(P)]});l.FileIndex.map(function(P,F){return[P,l.FullPaths[F]]}).forEach(function(P){var F=P[0];if(P[1],!!F.name.match(/\.iwa/)){var A=hr(ur(F.content));A.forEach(function(H){H.messages.forEach(function(ie){c.forEach(function(se){H.messages.some(function(ae){return at(ae.meta[1][0].data)!=11006&&su(ae.data,se[1])})&&f[se[0]].deps.push(H.id)})})})}});for(var p=_e.find(l,f[1].location),x=hr(ur(p.content)),v,E=0;E<x.length;++E){var u=x[E];u.id==1&&(v=u)}var _=Dr(Ie(v.messages[0].data)[1][0].data);for(p=_e.find(l,f[_].location),x=hr(ur(p.content)),E=0;E<x.length;++E)u=x[E],u.id==_&&(v=u);for(_=Dr(Ie(v.messages[0].data)[2][0].data),p=_e.find(l,f[_].location),x=hr(ur(p.content)),E=0;E<x.length;++E)u=x[E],u.id==_&&(v=u);for(_=Dr(Ie(v.messages[0].data)[2][0].data),p=_e.find(l,f[_].location),x=hr(ur(p.content)),E=0;E<x.length;++E)u=x[E],u.id==_&&(v=u);var O=Ie(v.messages[0].data);{O[6][0].data=ve(n.e.r+1),O[7][0].data=ve(n.e.c+1);var R=Dr(O[46][0].data),y=_e.find(l,f[R].location),M=hr(ur(y.content));{for(var j=0;j<M.length&&M[j].id!=R;++j);if(M[j].id!=R)throw"Bad ColumnRowUIDMapArchive";var ee=Ie(M[j].messages[0].data);ee[1]=[],ee[2]=[],ee[3]=[];for(var C=0;C<=n.e.c;++C){var b=[];b[1]=b[2]=[{type:0,data:ve(C+420690)}],ee[1].push({type:2,data:Be(b)}),ee[2].push({type:0,data:ve(C)}),ee[3].push({type:0,data:ve(C)})}ee[4]=[],ee[5]=[],ee[6]=[];for(var L=0;L<=n.e.r;++L)b=[],b[1]=b[2]=[{type:0,data:ve(L+726270)}],ee[4].push({type:2,data:Be(b)}),ee[5].push({type:0,data:ve(L)}),ee[6].push({type:0,data:ve(L)});M[j].messages[0].data=Be(ee)}y.content=qr(Zr(M)),y.size=y.content.length,delete O[46];var G=Ie(O[4][0].data);{G[7][0].data=ve(n.e.r+1);var V=Ie(G[1][0].data),K=Dr(V[2][0].data);y=_e.find(l,f[K].location),M=hr(ur(y.content));{if(M[0].id!=K)throw"Bad HeaderStorageBucket";var re=Ie(M[0].messages[0].data);for(L=0;L<i.length;++L){var ge=Ie(re[2][0].data);ge[1][0].data=ve(L),ge[4][0].data=ve(i[L].length),re[2][L]={type:re[2][0].type,data:Be(ge)}}M[0].messages[0].data=Be(re)}y.content=qr(Zr(M)),y.size=y.content.length;var le=Dr(G[2][0].data);y=_e.find(l,f[le].location),M=hr(ur(y.content));{if(M[0].id!=le)throw"Bad HeaderStorageBucket";for(re=Ie(M[0].messages[0].data),C=0;C<=n.e.c;++C)ge=Ie(re[2][0].data),ge[1][0].data=ve(C),ge[4][0].data=ve(n.e.r+1),re[2][C]={type:re[2][0].type,data:Be(ge)};M[0].messages[0].data=Be(re)}y.content=qr(Zr(M)),y.size=y.content.length;var Me=Dr(G[4][0].data);(function(){for(var P=_e.find(l,f[Me].location),F=hr(ur(P.content)),A,H=0;H<F.length;++H){var ie=F[H];ie.id==Me&&(A=ie)}var se=Ie(A.messages[0].data);{se[3]=[];var ae=[];s.forEach(function(ce,ze){ae[1]=[{type:0,data:ve(ze)}],ae[2]=[{type:0,data:ve(1)}],ae[3]=[{type:2,data:iu(ce)}],se[3].push({type:2,data:Be(ae)})})}A.messages[0].data=Be(se);var q=Zr(F),Te=qr(q);P.content=Te,P.size=P.content.length})();var Ce=Ie(G[3][0].data);{var cr=Ce[1][0];delete Ce[2];var Ne=Ie(cr.data);{var ir=Dr(Ne[2][0].data);(function(){for(var P=_e.find(l,f[ir].location),F=hr(ur(P.content)),A,H=0;H<F.length;++H){var ie=F[H];ie.id==ir&&(A=ie)}var se=Ie(A.messages[0].data);{delete se[6],delete Ce[7];var ae=new Uint8Array(se[5][0].data);se[5]=[];for(var q=0,Te=0;Te<=n.e.r;++Te){var ce=Ie(ae);q+=ou(ce,i[Te],s),ce[1][0].data=ve(Te),se[5].push({data:Be(ce),type:2})}se[1]=[{type:0,data:ve(n.e.c+1)}],se[2]=[{type:0,data:ve(n.e.r+1)}],se[3]=[{type:0,data:ve(q)}],se[4]=[{type:0,data:ve(n.e.r+1)}]}A.messages[0].data=Be(se);var ze=Zr(F),xe=qr(ze);P.content=xe,P.size=P.content.length})()}cr.data=Be(Ne)}G[3][0].data=Be(Ce)}O[4][0].data=Be(G)}v.messages[0].data=Be(O);var Qe=Zr(x),S=qr(Qe);return p.content=S,p.size=p.content.length,l}function hu(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function $0(e){hu([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function uu(e,t){return t.bookType=="ods"?wi(e,t):t.bookType=="numbers"?cu(e,t):t.bookType=="xlsb"?xu(e,t):vu(e,t)}function xu(e,t){et=1024,e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(s0(),i0(e.SSF),t.revssf=f0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Tt?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=ai.indexOf(t.bookType)>-1,a=ka();$0(t=t||{});var i=N0(),s="",f=0;if(t.cellXfs=[],Lr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",oe(i,s,Ba(e.Props,t)),a.coreprops.push(s),pe(t.rels,2,s,he.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(e.SheetNames[l]);e.Props.SheetNames=o}for(e.Props.Worksheets=e.Props.SheetNames.length,oe(i,s,ba(e.Props)),a.extprops.push(s),pe(t.rels,3,s,he.EXT_PROPS),e.Custprops!==e.Props&&Ge(e.Custprops||{}).length>0&&(s="docProps/custom.xml",oe(i,s,Wa(e.Custprops)),a.custprops.push(s),pe(t.rels,4,s,he.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var c={"!id":{}},p=e.Sheets[e.SheetNames[f-1]],x=(p||{})["!type"]||"sheet";switch(x){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,oe(i,s,dh(f-1,s,t,e,c)),a.sheets.push(s),pe(t.wbrels,-1,"worksheets/sheet"+f+"."+r,he.WS[0])}if(p){var v=p["!comments"],E=!1,u="";v&&v.length>0&&(u="xl/comments"+f+"."+r,oe(i,u,_h(v,u)),a.comments.push(u),pe(c,-1,"../comments"+f+"."+r,he.CMNT),E=!0),p["!legacy"]&&E&&oe(i,"xl/drawings/vmlDrawing"+f+".vml",ti(f,p["!comments"])),delete p["!comments"],delete p["!legacy"]}c["!id"].rId1&&oe(i,La(s),tt(c))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,oe(i,s,gh(t.Strings,s,t)),a.strs.push(s),pe(t.wbrels,-1,"sharedStrings."+r,he.SST)),s="xl/workbook."+r,oe(i,s,ph(e,s)),a.workbooks.push(s),pe(t.rels,1,s,he.WB),s="xl/theme/theme1.xml",oe(i,s,ei(e.Themes,t)),a.themes.push(s),pe(t.wbrels,-1,"theme/theme1.xml",he.THEME),s="xl/styles."+r,oe(i,s,mh(e,s,t)),a.styles.push(s),pe(t.wbrels,-1,"styles."+r,he.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",oe(i,s,e.vbaraw),a.vba.push(s),pe(t.wbrels,-1,"vbaProject.bin",he.VBA)),s="xl/metadata."+r,oe(i,s,Th(s)),a.metadata.push(s),pe(t.wbrels,-1,"metadata."+r,he.XLMETA),oe(i,"[Content_Types].xml",Pa(a,t)),oe(i,"_rels/.rels",tt(t.rels)),oe(i,"xl/_rels/workbook."+r+".rels",tt(t.wbrels)),delete t.revssf,delete t.ssf,i}function vu(e,t){et=1024,e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(s0(),i0(e.SSF),t.revssf=f0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Tt?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=ai.indexOf(t.bookType)>-1,a=ka();$0(t=t||{});var i=N0(),s="",f=0;if(t.cellXfs=[],Lr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",oe(i,s,Ba(e.Props,t)),a.coreprops.push(s),pe(t.rels,2,s,he.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(e.SheetNames[l]);e.Props.SheetNames=o}e.Props.Worksheets=e.Props.SheetNames.length,oe(i,s,ba(e.Props)),a.extprops.push(s),pe(t.rels,3,s,he.EXT_PROPS),e.Custprops!==e.Props&&Ge(e.Custprops||{}).length>0&&(s="docProps/custom.xml",oe(i,s,Wa(e.Custprops)),a.custprops.push(s),pe(t.rels,4,s,he.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,f=1;f<=e.SheetNames.length;++f){var p={"!id":{}},x=e.Sheets[e.SheetNames[f-1]],v=(x||{})["!type"]||"sheet";switch(v){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,oe(i,s,xi(f-1,t,e,p)),a.sheets.push(s),pe(t.wbrels,-1,"worksheets/sheet"+f+"."+r,he.WS[0])}if(x){var E=x["!comments"],u=!1,_="";if(E&&E.length>0){var O=!1;E.forEach(function(R){R[1].forEach(function(y){y.T==!0&&(O=!0)})}),O&&(_="xl/threadedComments/threadedComment"+f+"."+r,oe(i,_,Xl(E,c,t)),a.threadedcomments.push(_),pe(p,-1,"../threadedComments/threadedComment"+f+"."+r,he.TCMNT)),_="xl/comments"+f+"."+r,oe(i,_,ni(E)),a.comments.push(_),pe(p,-1,"../comments"+f+"."+r,he.CMNT),u=!0}x["!legacy"]&&u&&oe(i,"xl/drawings/vmlDrawing"+f+".vml",ti(f,x["!comments"])),delete x["!comments"],delete x["!legacy"]}p["!id"].rId1&&oe(i,La(s),tt(p))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,oe(i,s,$a(t.Strings,t)),a.strs.push(s),pe(t.wbrels,-1,"sharedStrings."+r,he.SST)),s="xl/workbook."+r,oe(i,s,di(e)),a.workbooks.push(s),pe(t.rels,1,s,he.WB),s="xl/theme/theme1.xml",oe(i,s,ei(e.Themes,t)),a.themes.push(s),pe(t.wbrels,-1,"theme/theme1.xml",he.THEME),s="xl/styles."+r,oe(i,s,qa(e,t)),a.styles.push(s),pe(t.wbrels,-1,"styles."+r,he.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",oe(i,s,e.vbaraw),a.vba.push(s),pe(t.wbrels,-1,"vbaProject.bin",he.VBA)),s="xl/metadata."+r,oe(i,s,ri()),a.metadata.push(s),pe(t.wbrels,-1,"metadata."+r,he.XLMETA),c.length>1&&(s="xl/persons/person.xml",oe(i,s,Kl(c)),a.people.push(s),pe(t.wbrels,-1,"persons/person.xml",he.PEOPLE)),oe(i,"[Content_Types].xml",Pa(a,t)),oe(i,"_rels/.rels",tt(t.rels)),oe(i,"xl/_rels/workbook."+r+".rels",tt(t.wbrels)),delete t.revssf,delete t.ssf,i}function pu(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=yr(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Si(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Dt(t.file,_e.write(e,{type:ue?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return _e.write(e,t)}function du(e,t){var r=qe(t||{}),n=uu(e,r);return mu(n,r)}function mu(e,t){var r={},n=ue?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?_e.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(a0(a))}return t.password&&typeof encrypt_agile<"u"?Si(encrypt_agile(a,t.password),t):t.type==="file"?Dt(t.file,a):t.type=="string"?dt(a):a}function gu(e,t){var r=t||{},n=Ph(e,r);return Si(n,r)}function gr(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return wt(At(n));case"binary":return At(n);case"string":return e;case"file":return Dt(t.file,n,"utf8");case"buffer":return ue?Or(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):gr(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function _u(e,t){switch(t.type){case"base64":return wt(e);case"binary":return e;case"string":return e;case"file":return Dt(t.file,e,"binary");case"buffer":return ue?Or(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Vt(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?wt(r):t.type=="string"?dt(r):r;case"file":return Dt(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Tu(e,t){Ki(),ah(e);var r=qe(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=Tu(e,r);return r.type="array",a0(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=e.SheetNames.indexOf(r.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return gr(Nh(e,r),r);case"slk":case"sylk":return gr(el.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"htm":case"html":return gr(_i(e.Sheets[e.SheetNames[a]],r),r);case"txt":return _u(Ai(e.Sheets[e.SheetNames[a]],r),r);case"csv":return gr(j0(e.Sheets[e.SheetNames[a]],r),r,"\uFEFF");case"dif":return gr(rl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"dbf":return Vt(Qf.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"prn":return gr(tl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"rtf":return gr(ol.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"eth":return gr(Ya.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"fods":return gr(wi(e,r),r);case"wk1":return Vt(bn.sheet_to_wk1(e.Sheets[e.SheetNames[a]],r),r);case"wk3":return Vt(bn.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Vt(gi(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),gu(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return du(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function Eu(e,t,r,n,a,i,s,f){var o=He(r),l=f.defval,c=f.raw||!Object.prototype.hasOwnProperty.call(f,"raw"),p=!0,x=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(x,"__rowNum__",{value:r,enumerable:!1})}catch{x.__rowNum__=r}else x.__rowNum__=r;if(!s||e[r])for(var v=t.s.c;v<=t.e.c;++v){var E=s?e[r][v]:e[n[v]+o];if(E===void 0||E.t===void 0){if(l===void 0)continue;i[v]!=null&&(x[i[v]]=l);continue}var u=E.v;switch(E.t){case"z":if(u==null)break;continue;case"e":u=u==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+E.t)}if(i[v]!=null){if(u==null)if(E.t=="e"&&u===null)x[i[v]]=null;else if(l!==void 0)x[i[v]]=l;else if(c&&u===null)x[i[v]]=null;else continue;else x[i[v]]=c&&(E.t!=="n"||E.t==="n"&&f.rawNumbers!==!1)?u:Cr(E,u,f);u!=null&&(p=!1)}}return{row:x,isempty:p}}function n0(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],s=0,f="",o={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},c=l.range!=null?l.range:e["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof c){case"string":o=Ee(c);break;case"number":o=Ee(e["!ref"]),o.s.r=c;break;default:o=c}n>0&&(a=0);var p=He(o.s.r),x=[],v=[],E=0,u=0,_=Array.isArray(e),O=o.s.r,R=0,y={};_&&!e[O]&&(e[O]=[]);var M=l.skipHidden&&e["!cols"]||[],j=l.skipHidden&&e["!rows"]||[];for(R=o.s.c;R<=o.e.c;++R)if(!(M[R]||{}).hidden)switch(x[R]=Xe(R),r=_?e[O][R]:e[x[R]+p],n){case 1:i[R]=R-o.s.c;break;case 2:i[R]=x[R];break;case 3:i[R]=l.header[R-o.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),f=s=Cr(r,null,l),u=y[s]||0,!u)y[s]=1;else{do f=s+"_"+u++;while(y[f]);y[s]=u,y[f]=1}i[R]=f}for(O=o.s.r+a;O<=o.e.r;++O)if(!(j[O]||{}).hidden){var ee=Eu(e,o,O,x,n,i,_,l);(ee.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(v[E++]=ee.row)}return v.length=E,v}var Yn=/"/g;function wu(e,t,r,n,a,i,s,f){for(var o=!0,l=[],c="",p=He(r),x=t.s.c;x<=t.e.c;++x)if(n[x]){var v=f.dense?(e[r]||[])[x]:e[n[x]+p];if(v==null)c="";else if(v.v!=null){o=!1,c=""+(f.rawNumbers&&v.t=="n"?v.v:Cr(v,null,f));for(var E=0,u=0;E!==c.length;++E)if((u=c.charCodeAt(E))===a||u===i||u===34||f.forceQuotes){c='"'+c.replace(Yn,'""')+'"';break}c=="ID"&&(c='"ID"')}else v.f!=null&&!v.F?(o=!1,c="="+v.f,c.indexOf(",")>=0&&(c='"'+c.replace(Yn,'""')+'"')):c="";l.push(c)}return f.blankrows===!1&&o?null:l.join(s)}function j0(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=Ee(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),f=n.RS!==void 0?n.RS:`
+`,o=f.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",p=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],E=a.s.c;E<=a.e.c;++E)(x[E]||{}).hidden||(p[E]=Xe(E));for(var u=0,_=a.s.r;_<=a.e.r;++_)(v[_]||{}).hidden||(c=wu(e,a,_,p,s,o,i,n),c!=null&&(n.strip&&(c=c.replace(l,"")),(c||n.blankrows!==!1)&&r.push((u++?f:"")+c)));return delete n.dense,r.join("")}function Ai(e,t){t||(t={}),t.FS="	",t.RS=`
+`;var r=j0(e,t);return r}function Su(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Ee(e["!ref"]),i="",s=[],f,o=[],l=Array.isArray(e);for(f=a.s.c;f<=a.e.c;++f)s[f]=Xe(f);for(var c=a.s.r;c<=a.e.r;++c)for(i=He(c),f=a.s.c;f<=a.e.c;++f)if(t=s[f]+i,r=l?(e[c]||[])[f]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}o[o.length]=t+"="+n}return o}function Fi(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,f=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Pe(n.origin):n.origin;s=o.r,f=o.c}var l,c={s:{c:0,r:0},e:{c:f,r:s+t.length-1+a}};if(i["!ref"]){var p=Ee(i["!ref"]);c.e.c=Math.max(c.e.c,p.e.c),c.e.r=Math.max(c.e.r,p.e.r),s==-1&&(s=p.e.r+1,c.e.r=s+t.length-1+a)}else s==-1&&(s=0,c.e.r=t.length-1+a);var x=n.header||[],v=0;t.forEach(function(u,_){Ge(u).forEach(function(O){(v=x.indexOf(O))==-1&&(x[v=x.length]=O);var R=u[O],y="z",M="",j=me({c:f+v,r:s+_+a});l=Ct(i,j),R&&typeof R=="object"&&!(R instanceof Date)?i[j]=R:(typeof R=="number"?y="n":typeof R=="boolean"?y="b":typeof R=="string"?y="s":R instanceof Date?(y="d",n.cellDates||(y="n",R=Ze(R)),M=n.dateNF||ye[14]):R===null&&n.nullError&&(y="e",R=0),l?(l.t=y,l.v=R,delete l.w,delete l.R,M&&(l.z=M)):i[j]=l={t:y,v:R},M&&(l.z=M))})}),c.e.c=Math.max(c.e.c,f+x.length-1);var E=He(s);if(a)for(v=0;v<x.length;++v)i[Xe(v+f)+E]={t:"s",v:x[v]};return i["!ref"]=De(c),i}function Au(e,t){return Fi(null,e,t)}function Ct(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Pe(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Ct(e,me(t)):Ct(e,me({r:t,c:r||0}))}function Fu(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function yu(){return{SheetNames:[],Sheets:{}}}function Cu(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(pi(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Ou(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Fu(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function Du(e,t){return e.z=t,e}function yi(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Ru(e,t,r){return yi(e,"#"+t,r)}function Iu(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function Nu(e,t,r,n){for(var a=typeof t!="string"?t:Ee(t),i=typeof t=="string"?t:De(t),s=a.s.r;s<=a.e.r;++s)for(var f=a.s.c;f<=a.e.c;++f){var o=Ct(e,s,f);o.t="n",o.F=i,delete o.v,s==a.s.r&&f==a.s.c&&(o.f=r,n&&(o.D=!0))}return e}var ku={encode_col:Xe,encode_row:He,encode_cell:me,encode_range:De,decode_col:U0,decode_row:B0,split_cell:Ks,decode_cell:Pe,decode_range:ar,format_cell:Cr,sheet_add_aoa:Ca,sheet_add_json:Fi,sheet_add_dom:Ti,aoa_to_sheet:ft,json_to_sheet:Au,table_to_sheet:Ei,table_to_book:tu,sheet_to_csv:j0,sheet_to_txt:Ai,sheet_to_json:n0,sheet_to_html:_i,sheet_to_formulae:Su,sheet_to_row_object_array:n0,sheet_get_cell:Ct,book_new:yu,book_append_sheet:Cu,book_set_sheet_visibility:Ou,cell_set_number_format:Du,cell_set_hyperlink:yi,cell_set_internal_link:Ru,cell_add_comment:Iu,sheet_set_array_formula:Nu,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};export{ku as u,Tu as w};
diff --git a/compendium_v2/static/xlsx-CxqzP9DR.js b/compendium_v2/static/xlsx-CxqzP9DR.js
deleted file mode 100644
index 473e8eeed7306e665d3ec347246c98296ac687e0..0000000000000000000000000000000000000000
--- a/compendium_v2/static/xlsx-CxqzP9DR.js
+++ /dev/null
@@ -1,95 +0,0 @@
-import{a as Jn,r as jt,j as xr,R as Ki,L as zi,f as Yi,A as $i}from"./main-BIBsTO5W.js";function Hu(e){const t=Jn.c(9),{to:r,children:n}=e,a=window.location.pathname===r,i=jt.useRef(null);let s,f;t[0]!==a?(s=()=>{a&&i.current&&i.current.scrollIntoView({behavior:"smooth",block:"center"})},f=[a],t[0]=a,t[1]=s,t[2]=f):(s=t[1],f=t[2]),jt.useEffect(s,f);let o;t[3]!==n||t[4]!==a?(o=a?xr.jsx("b",{children:n}):n,t[3]=n,t[4]=a,t[5]=o):o=t[5];let l;return t[6]!==o||t[7]!==r?(l=xr.jsx(Ki,{children:xr.jsx(zi,{to:r,className:"link-text-underline",ref:i,children:o})}),t[6]=o,t[7]=r,t[8]=l):l=t[8],l}const Gu=e=>{const t=Jn.c(23),{children:r,survey:n}=e,[a,i]=jt.useState(!1);let s;t[0]!==a?(s=M=>{M.stopPropagation(),M.preventDefault(),i(!a)},t[0]=a,t[1]=s):s=t[1];const f=s;let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=M=>{M.target.closest("#sidebar")||M.target.closest(".toggle-btn")||i(!1)},t[2]=o):o=t[2];const l=o;let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=()=>(document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}),t[3]=c):c=t[3],jt.useEffect(c);let d;t[4]!==a||t[5]!==n?(d=[],a||d.push("no-sidebar"),n&&d.push("survey"),t[4]=a,t[5]=n,t[6]=d):d=t[6];const x=d.join(" ");let v;t[7]!==r?(v=xr.jsx("div",{className:"menu-items",children:r}),t[7]=r,t[8]=v):v=t[8];let _;t[9]!==x||t[10]!==v?(_=xr.jsx("nav",{className:x,id:"sidebar",children:v}),t[9]=x,t[10]=v,t[11]=_):_=t[11];const u=`toggle-btn${n?"-survey":""}`;let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=xr.jsx("span",{children:"MENU"}),t[12]=g):g=t[12];let C;t[13]!==a||t[14]!==f?(C=xr.jsxs("div",{className:"toggle-btn-wrapper",children:[g," ",a?xr.jsx(Yi,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:f}):xr.jsx($i,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:f})]}),t[13]=a,t[14]=f,t[15]=C):C=t[15];let O;t[16]!==u||t[17]!==C||t[18]!==f?(O=xr.jsx("div",{className:u,onClick:f,children:C}),t[16]=u,t[17]=C,t[18]=f,t[19]=O):O=t[19];let y;return t[20]!==O||t[21]!==_?(y=xr.jsxs("div",{className:"sidebar-wrapper",children:[_,O]}),t[20]=O,t[21]=_,t[22]=y):y=t[22],y};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Kt={};Kt.version="0.18.5";var Zn=1252,Ji=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],qn=function(e){Ji.indexOf(e)!=-1&&(Zn=e)};function Zi(){qn(1252)}var wt=function(e){qn(e)};function qi(){wt(1200),Zi()}var Bt=function(t){return String.fromCharCode(t)},on=function(t){return String.fromCharCode(t)},cn,Ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function St(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0,l=0;l<e.length;)r=e.charCodeAt(l++),i=r>>2,n=e.charCodeAt(l++),s=(r&3)<<4|n>>4,a=e.charCodeAt(l++),f=(n&15)<<2|a>>6,o=a&63,isNaN(n)?f=o=64:isNaN(a)&&(o=64),t+=Ir.charAt(i)+Ir.charAt(s)+Ir.charAt(f)+Ir.charAt(o);return t}function Cr(e){var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)i=Ir.indexOf(e.charAt(l++)),s=Ir.indexOf(e.charAt(l++)),r=i<<2|s>>4,t+=String.fromCharCode(r),f=Ir.indexOf(e.charAt(l++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),o=Ir.indexOf(e.charAt(l++)),a=(f&3)<<6|o,o!==64&&(t+=String.fromCharCode(a));return t}var ue=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Dr=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Gr(e){return ue?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function hn(e){return ue?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var vr=function(t){return ue?Dr(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function s0(e){if(typeof ArrayBuffer>"u")return vr(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Dt(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function Qi(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var be=ue?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Dr(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function es(e){for(var t=[],r=0,n=e.length+250,a=Gr(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)a[r++]=s;else if(s<2048)a[r++]=192|s>>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|f>>6&15|(s&3)<<4,a[r++]=128|f&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Gr(65535),n=65530)}return t.push(a.slice(0,r)),be(t)}var pt=/\u0000/g,Ut=/[\u0001-\u0006]/g;function tt(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function dr(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}function I0(e,t){var r=""+e;return r.length>=t?r:Fe(" ",t-r.length)+r}function zt(e,t){var r=""+e;return r.length>=t?r:r+Fe(" ",t-r.length)}function rs(e,t){var r=""+Math.round(e);return r.length>=t?r:Fe("0",t-r.length)+r}function ts(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}var un=Math.pow(2,32);function Zr(e,t){if(e>un||e<-un)return rs(e,t);var r=Math.round(e);return ts(r,t)}function Yt(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var xn=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],_0=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function ns(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var ye={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},vn={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},as={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function $t(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,s=1,f=0,o=1,l=0,c=0,d=Math.floor(a);l<t&&(d=Math.floor(a),f=d*s+i,c=d*l+o,!(a-d<5e-8));)a=1/(a-d),i=s,s=f,o=l,l=c;if(c>t&&(l>t?(c=o,f=i):(c=l,f=s)),!r)return[0,n*f,c];var x=Math.floor(n*f/c);return[x,n*f-x*c,c]}function bt(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,s=[],f={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6&&(f.u=0),t&&t.date1904&&(n+=1462),f.u>.9999&&(f.u=0,++a==86400&&(f.T=a=0,++n,++f.D)),n===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var o=new Date(1900,0,1);o.setDate(o.getDate()+n-1),s=[o.getFullYear(),o.getMonth()+1,o.getDate()],i=o.getDay(),n<60&&(i=(i+6)%7),r&&(i=hs(o,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=a%60,a=Math.floor(a/60),f.M=a%60,a=Math.floor(a/60),f.H=a,f.q=i,f}var Qn=new Date(1899,11,31,0,0,0),is=Qn.getTime(),ss=new Date(1900,2,1,0,0,0);function ea(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=ss&&(r+=24*60*60*1e3),(r-(is+(e.getTimezoneOffset()-Qn.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function N0(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function fs(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ls(e){var t=e<0?12:11,r=N0(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function os(e){var t=N0(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function cs(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=ls(e):t===10?r=e.toFixed(10).substr(0,12):r=os(e),N0(fs(r.toUpperCase()))}function C0(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):cs(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return kr(14,ea(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function hs(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function us(e,t,r,n){var a="",i=0,s=0,f=r.y,o,l=0;switch(e){case 98:f=r.y+543;case 121:switch(t.length){case 1:case 2:o=f%100,l=2;break;default:o=f%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:o=r.m,l=t.length;break;case 3:return _0[r.m-1][1];case 5:return _0[r.m-1][0];default:return _0[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=r.d,l=t.length;break;case 3:return xn[r.q][0];default:return xn[r.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?dr(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(a=dr(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":o=r.D*24+r.H;break;case"[m]":case"[mm]":o=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":o=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=t.length===3?1:2;break;case 101:o=f,l=1;break}var c=l>0?dr(o,l):"";return c}function Nr(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var ra=/%/g;function xs(e,t,r){var n=t.replace(ra,""),a=t.length-n.length;return Ar(e,n,r*Math.pow(10,2*a))+Fe("%",a)}function vs(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Ar(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function ta(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+ta(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,o,l,c){return o+l+c.substr(0,(a+i)%a)+"."+c.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var na=/# (\?+)( ?)\/( ?)(\d+)/;function ds(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),s=a-i*n,f=n;return r+(i===0?"":""+i)+" "+(s===0?Fe(" ",e[1].length+1+e[4].length):I0(s,e[1].length)+e[2]+"/"+e[3]+dr(f,e[4].length))}function ps(e,t,r){return r+(t===0?"":""+t)+Fe(" ",e[1].length+2+e[4].length)}var aa=/^#*0*\.([0#]+)/,ia=/\).*[0#]/,sa=/\(###\) ###\\?-####/;function ze(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function dn(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function pn(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function ms(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function gs(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function fr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ia)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?fr("n",n,r):"("+fr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return vs(e,t,r);if(t.indexOf("%")!==-1)return xs(e,t,r);if(t.indexOf("E")!==-1)return ta(t,r);if(t.charCodeAt(0)===36)return"$"+fr(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Zr(o,t.length);if(t.match(/^[#?]+$/))return a=Zr(r,0),a==="0"&&(a=""),a.length>t.length?a:ze(t.substr(0,t.length-a.length))+a;if(i=t.match(na))return ds(i,o,l);if(t.match(/^#+0+$/))return l+Zr(o,t.length-t.indexOf("0"));if(i=t.match(aa))return a=dn(r,i[1].length).replace(/^([^\.]+)$/,"$1."+ze(i[1])).replace(/\.$/,"."+ze(i[1])).replace(/\.(\d*)$/,function(_,u){return"."+u+Fe("0",ze(i[1]).length-u.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+dn(o,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Nr(Zr(o,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+fr(e,t,-r):Nr(""+(Math.floor(r)+ms(r,i[1].length)))+"."+dr(pn(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return fr(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=tt(fr(e,t.replace(/[\\-]/g,""),r)),s=0,tt(tt(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s<a.length?a.charAt(s++):_==="0"?"0":""}));if(t.match(sa))return a=fr(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),f=$t(o,Math.pow(10,s)-1,!1),a=""+l,c=Ar("n",i[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),a+=c+i[2]+"/"+i[3],c=zt(f[2],s),c.length<i[4].length&&(c=ze(i[4].substr(i[4].length-c.length))+c),a+=c,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),f=$t(o,Math.pow(10,s)-1,!0),l+(f[0]||(f[1]?"":"0"))+" "+(f[1]?I0(f[1],s)+i[2]+"/"+i[3]+zt(f[2],s):Fe(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=Zr(r,0),t.length<=a.length?a:ze(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var d=t.indexOf(".")-s,x=t.length-a.length-d;return ze(t.substr(0,d)+a+t.substr(t.length-x))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=pn(r,i[1].length),r<0?"-"+fr(e,t,-r):Nr(gs(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?dr(0,3-_.length):"")+_})+"."+dr(s,i[1].length);switch(t){case"###,##0.00":return fr(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var v=Nr(Zr(o,0));return v!=="0"?l+v:"";case"###,###.00":return fr(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return fr(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function _s(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Ar(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function Ts(e,t,r){var n=t.replace(ra,""),a=t.length-n.length;return Ar(e,n,r*Math.pow(10,2*a))+Fe("%",a)}function fa(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+fa(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,o,l,c){return o+l+c.substr(0,(a+i)%a)+"."+c.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function gr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ia)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?gr("n",n,r):"("+gr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return _s(e,t,r);if(t.indexOf("%")!==-1)return Ts(e,t,r);if(t.indexOf("E")!==-1)return fa(t,r);if(t.charCodeAt(0)===36)return"$"+gr(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+dr(o,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:ze(t.substr(0,t.length-a.length))+a;if(i=t.match(na))return ps(i,o,l);if(t.match(/^#+0+$/))return l+dr(o,t.length-t.indexOf("0"));if(i=t.match(aa))return a=(""+r).replace(/^([^\.]+)$/,"$1."+ze(i[1])).replace(/\.$/,"."+ze(i[1])),a=a.replace(/\.(\d*)$/,function(_,u){return"."+u+Fe("0",ze(i[1]).length-u.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+(""+o).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Nr(""+o);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+gr(e,t,-r):Nr(""+r)+"."+Fe("0",i[1].length);if(i=t.match(/^#,#*,#0/))return gr(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=tt(gr(e,t.replace(/[\\-]/g,""),r)),s=0,tt(tt(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s<a.length?a.charAt(s++):_==="0"?"0":""}));if(t.match(sa))return a=gr(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),f=$t(o,Math.pow(10,s)-1,!1),a=""+l,c=Ar("n",i[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),a+=c+i[2]+"/"+i[3],c=zt(f[2],s),c.length<i[4].length&&(c=ze(i[4].substr(i[4].length-c.length))+c),a+=c,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),f=$t(o,Math.pow(10,s)-1,!0),l+(f[0]||(f[1]?"":"0"))+" "+(f[1]?I0(f[1],s)+i[2]+"/"+i[3]+zt(f[2],s):Fe(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:ze(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var d=t.indexOf(".")-s,x=t.length-a.length-d;return ze(t.substr(0,d)+a+t.substr(t.length-x))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+gr(e,t,-r):Nr(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?dr(0,3-_.length):"")+_})+"."+dr(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var v=Nr(""+o);return v!=="0"?l+v:"";default:if(t.match(/\.[0#?]*$/))return gr(e,t.slice(0,t.lastIndexOf(".")),r)+ze(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Ar(e,t,r){return(r|0)===r?gr(e,t,r):fr(e,t,r)}function Es(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var la=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function oa(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Yt(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(la))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function ws(e,t,r,n){for(var a=[],i="",s=0,f="",o="t",l,c,d,x="H";s<e.length;)switch(f=e.charAt(s)){case"G":if(!Yt(e,s))throw new Error("unrecognized character "+f+" in "+e);a[a.length]={t:"G",v:"General"},s+=7;break;case'"':for(i="";(d=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(d);a[a.length]={t:"t",v:i},++s;break;case"\\":var v=e.charAt(++s),_=v==="("||v===")"?v:"t";a[a.length]={t:_,v},++s;break;case"_":a[a.length]={t:"t",v:" "},s+=2;break;case"@":a[a.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(l==null&&(l=bt(t,r,e.charAt(s+1)==="2"),l==null))return"";a[a.length]={t:"X",v:e.substr(s,2)},o=f,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||l==null&&(l=bt(t,r),l==null))return"";for(i=f;++s<e.length&&e.charAt(s).toLowerCase()===f;)i+=f;f==="m"&&o.toLowerCase()==="h"&&(f="M"),f==="h"&&(f=x),a[a.length]={t:f,v:i},o=f;break;case"A":case"a":case"上":var u={t:f,v:f};if(l==null&&(l=bt(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(l!=null&&(u.v=l.H>=12?"P":"A"),u.t="T",x="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(u.v=l.H>=12?"PM":"AM"),u.t="T",s+=5,x="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(l!=null&&(u.v=l.H>=12?"下午":"上午"),u.t="T",s+=5,x="h"):(u.t="t",++s),l==null&&u.t==="T")return"";a[a.length]=u,o=f;break;case"[":for(i=f;e.charAt(s++)!=="]"&&s<e.length;)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(la)){if(l==null&&(l=bt(t,r),l==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},o=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",oa(e)||(a[a.length]={t:"t",v:i}));break;case".":if(l!=null){for(i=f;++s<e.length&&(f=e.charAt(s))==="0";)i+=f;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=f;++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(s))>-1;)i+=f;a[a.length]={t:"n",v:i};break;case"?":for(i=f;e.charAt(++s)===f;)i+=f;a[a.length]={t:f,v:i},o=f;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=f;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)i+=e.charAt(s);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:f,v:f},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);a[a.length]={t:"t",v:f},++s;break}var g=0,C=0,O;for(s=a.length-1,o="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=x,o="h",g<1&&(g=1);break;case"s":(O=a[s].v.match(/\.0+$/))&&(C=Math.max(C,O[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":o=a[s].t;break;case"m":o==="s"&&(a[s].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&a[s].v.match(/[Hh]/)&&(g=1),g<2&&a[s].v.match(/[Mm]/)&&(g=2),g<3&&a[s].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var y="",M;for(s=0;s<a.length;++s)switch(a[s].t){case"t":case"T":case" ":case"D":break;case"X":a[s].v="",a[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[s].v=us(a[s].t.charCodeAt(0),a[s].v,l,C),a[s].t="t";break;case"n":case"?":for(M=s+1;a[M]!=null&&((f=a[M].t)==="?"||f==="D"||(f===" "||f==="t")&&a[M+1]!=null&&(a[M+1].t==="?"||a[M+1].t==="t"&&a[M+1].v==="/")||a[s].t==="("&&(f===" "||f==="n"||f===")")||f==="t"&&(a[M].v==="/"||a[M].v===" "&&a[M+1]!=null&&a[M+1].t=="?"));)a[s].v+=a[M].v,a[M]={v:"",t:";"},++M;y+=a[s].v,s=M-1;break;case"G":a[s].t="t",a[s].v=C0(t,r);break}var Y="",ee,D;if(y.length>0){y.charCodeAt(0)==40?(ee=t<0&&y.charCodeAt(0)===45?-t:t,D=Ar("n",y,ee)):(ee=t<0&&n>1?-t:t,D=Ar("n",y,ee),ee<0&&a[0]&&a[0].t=="t"&&(D=D.substr(1),a[0].v="-"+a[0].v)),M=D.length-1;var b=a.length;for(s=0;s<a.length;++s)if(a[s]!=null&&a[s].t!="t"&&a[s].v.indexOf(".")>-1){b=s;break}var L=a.length;if(b===a.length&&D.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(M>=a[s].v.length-1?(M-=a[s].v.length,a[s].v=D.substr(M+1,a[s].v.length)):M<0?a[s].v="":(a[s].v=D.substr(0,M+1),M=-1),a[s].t="t",L=s);M>=0&&L<a.length&&(a[L].v=D.substr(0,M+1)+a[L].v)}else if(b!==a.length&&D.indexOf("E")===-1){for(M=D.indexOf(".")-1,s=b;s>=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(c=a[s].v.indexOf(".")>-1&&s===b?a[s].v.indexOf(".")-1:a[s].v.length-1,Y=a[s].v.substr(c+1);c>=0;--c)M>=0&&(a[s].v.charAt(c)==="0"||a[s].v.charAt(c)==="#")&&(Y=D.charAt(M--)+Y);a[s].v=Y,a[s].t="t",L=s}for(M>=0&&L<a.length&&(a[L].v=D.substr(0,M+1)+a[L].v),M=D.indexOf(".")+1,s=b;s<a.length;++s)if(!(a[s]==null||"n?(".indexOf(a[s].t)===-1&&s!==b)){for(c=a[s].v.indexOf(".")>-1&&s===b?a[s].v.indexOf(".")+1:0,Y=a[s].v.substr(0,c);c<a[s].v.length;++c)M<D.length&&(Y+=D.charAt(M++));a[s].v=Y,a[s].t="t",L=s}}}for(s=0;s<a.length;++s)a[s]!=null&&"n?".indexOf(a[s].t)>-1&&(ee=n>1&&t<0&&s>0&&a[s-1].v==="-"?-t:t,a[s].v=Ar(a[s].t,a[s].v,ee),a[s].t="t");var G="";for(s=0;s!==a.length;++s)a[s]!=null&&(G+=a[s].v);return G}var mn=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function gn(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function Ss(e,t){var r=Es(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(mn),f=r[1].match(mn);return gn(t,s)?[n,r[0]]:gn(t,f)?[n,r[1]]:[n,r[s!=null&&f!=null?2:1]]}return[n,i]}function kr(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:ye)[e],n==null&&(n=r.table&&r.table[vn[e]]||ye[vn[e]]),n==null&&(n=as[e]||"General");break}if(Yt(n,0))return C0(t,r);t instanceof Date&&(t=ea(t,r.date1904));var a=Ss(n,t);if(Yt(a[1]))return C0(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return ws(a[1],t,r,a[0])}function ca(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(ye[r]==null){t<0&&(t=r);continue}if(ye[r]==e){t=r;break}}t<0&&(t=391)}return ye[t]=e,t}function f0(e){for(var t=0;t!=392;++t)e[t]!==void 0&&ca(e[t],t)}function l0(){ye=ns()}var ha=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function As(e){var t=typeof e=="number"?ye[e]:e;return t=t.replace(ha,"(\\d+)"),new RegExp("^"+t+"$")}function Fs(e,t,r){var n=-1,a=-1,i=-1,s=-1,f=-1,o=-1;(t.match(ha)||[]).forEach(function(d,x){var v=parseInt(r[x+1],10);switch(d.toLowerCase().charAt(0)){case"y":n=v;break;case"d":i=v;break;case"h":s=v;break;case"s":o=v;break;case"m":s>=0?f=v:a=v;break}}),o>=0&&f==-1&&a>=0&&(f=a,a=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);return s==-1&&f==-1&&o==-1?l:n==-1&&a==-1&&i==-1?c:l+"T"+c}var ys=function(){var e={};e.version="1.2.0";function t(){for(var D=0,b=new Array(256),L=0;L!=256;++L)D=L,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,b[L]=D;return typeof Int32Array<"u"?new Int32Array(b):b}var r=t();function n(D){var b=0,L=0,G=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)V[G]=D[G];for(G=0;G!=256;++G)for(L=D[G],b=256+G;b<4096;b+=256)L=V[b]=L>>>8^D[L&255];var j=[];for(G=1;G!=16;++G)j[G-1]=typeof Int32Array<"u"?V.subarray(G*256,G*256+256):V.slice(G*256,G*256+256);return j}var a=n(r),i=a[0],s=a[1],f=a[2],o=a[3],l=a[4],c=a[5],d=a[6],x=a[7],v=a[8],_=a[9],u=a[10],g=a[11],C=a[12],O=a[13],y=a[14];function M(D,b){for(var L=b^-1,G=0,V=D.length;G<V;)L=L>>>8^r[(L^D.charCodeAt(G++))&255];return~L}function Y(D,b){for(var L=b^-1,G=D.length-15,V=0;V<G;)L=y[D[V++]^L&255]^O[D[V++]^L>>8&255]^C[D[V++]^L>>16&255]^g[D[V++]^L>>>24]^u[D[V++]]^_[D[V++]]^v[D[V++]]^x[D[V++]]^d[D[V++]]^c[D[V++]]^l[D[V++]]^o[D[V++]]^f[D[V++]]^s[D[V++]]^i[D[V++]]^r[D[V++]];for(G+=15;V<G;)L=L>>>8^r[(L^D[V++])&255];return~L}function ee(D,b){for(var L=b^-1,G=0,V=D.length,j=0,re=0;G<V;)j=D.charCodeAt(G++),j<128?L=L>>>8^r[(L^j)&255]:j<2048?(L=L>>>8^r[(L^(192|j>>6&31))&255],L=L>>>8^r[(L^(128|j&63))&255]):j>=55296&&j<57344?(j=(j&1023)+64,re=D.charCodeAt(G++)&1023,L=L>>>8^r[(L^(240|j>>8&7))&255],L=L>>>8^r[(L^(128|j>>2&63))&255],L=L>>>8^r[(L^(128|re>>6&15|(j&3)<<4))&255],L=L>>>8^r[(L^(128|re&63))&255]):(L=L>>>8^r[(L^(224|j>>12&15))&255],L=L>>>8^r[(L^(128|j>>6&63))&255],L=L>>>8^r[(L^(128|j&63))&255]);return~L}return e.table=r,e.bstr=M,e.buf=Y,e.str=ee,e}(),_e=function(){var t={};t.version="1.2.1";function r(h,T){for(var p=h.split("/"),m=T.split("/"),E=0,w=0,I=Math.min(p.length,m.length);E<I;++E){if(w=p[E].length-m[E].length)return w;if(p[E]!=m[E])return p[E]<m[E]?-1:1}return p.length-m.length}function n(h){if(h.charAt(h.length-1)=="/")return h.slice(0,-1).indexOf("/")===-1?h:n(h.slice(0,-1));var T=h.lastIndexOf("/");return T===-1?h:h.slice(0,T+1)}function a(h){if(h.charAt(h.length-1)=="/")return a(h.slice(0,-1));var T=h.lastIndexOf("/");return T===-1?h:h.slice(T+1)}function i(h,T){typeof T=="string"&&(T=new Date(T));var p=T.getHours();p=p<<6|T.getMinutes(),p=p<<5|T.getSeconds()>>>1,h.write_shift(2,p);var m=T.getFullYear()-1980;m=m<<4|T.getMonth()+1,m=m<<5|T.getDate(),h.write_shift(2,m)}function s(h){var T=h.read_shift(2)&65535,p=h.read_shift(2)&65535,m=new Date,E=p&31;p>>>=5;var w=p&15;p>>>=4,m.setMilliseconds(0),m.setFullYear(p+1980),m.setMonth(w-1),m.setDate(E);var I=T&31;T>>>=5;var U=T&63;return T>>>=6,m.setHours(T),m.setMinutes(U),m.setSeconds(I<<1),m}function f(h){rr(h,0);for(var T={},p=0;h.l<=h.length-4;){var m=h.read_shift(2),E=h.read_shift(2),w=h.l+E,I={};switch(m){case 21589:p=h.read_shift(1),p&1&&(I.mtime=h.read_shift(4)),E>5&&(p&2&&(I.atime=h.read_shift(4)),p&4&&(I.ctime=h.read_shift(4))),I.mtime&&(I.mt=new Date(I.mtime*1e3));break}h.l=w,T[m]=I}return T}var o;function l(){return o||(o={})}function c(h,T){if(h[0]==80&&h[1]==75)return ln(h,T);if((h[0]|32)==109&&(h[1]|32)==105)return Wi(h,T);if(h.length<512)throw new Error("CFB file size "+h.length+" < 512");var p=3,m=512,E=0,w=0,I=0,U=0,R=0,N=[],k=h.slice(0,512);rr(k,0);var X=d(k);switch(p=X[0],p){case 3:m=512;break;case 4:m=4096;break;case 0:if(X[1]==0)return ln(h,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+p)}m!==512&&(k=h.slice(0,m),rr(k,28));var Z=h.slice(0,m);x(k,p);var te=k.read_shift(4,"i");if(p===3&&te!==0)throw new Error("# Directory Sectors: Expected 0 saw "+te);k.l+=4,I=k.read_shift(4,"i"),k.l+=4,k.chk("00100000","Mini Stream Cutoff Size: "),U=k.read_shift(4,"i"),E=k.read_shift(4,"i"),R=k.read_shift(4,"i"),w=k.read_shift(4,"i");for(var K=-1,Q=0;Q<109&&(K=k.read_shift(4,"i"),!(K<0));++Q)N[Q]=K;var fe=v(h,m);g(R,w,fe,m,N);var we=O(fe,I,N,m);we[I].name="!Directory",E>0&&U!==re&&(we[U].name="!MiniFAT"),we[N[0]].name="!FAT",we.fat_addrs=N,we.ssz=m;var Se={},Ve=[],ht=[],ut=[];y(I,we,fe,Ve,E,Se,ht,U),_(ht,ut,Ve),Ve.shift();var xt={FileIndex:ht,FullPaths:ut};return T&&T.raw&&(xt.raw={header:Z,sectors:fe}),xt}function d(h){if(h[h.l]==80&&h[h.l+1]==75)return[0,0];h.chk(ge,"Header Signature: "),h.l+=16;var T=h.read_shift(2,"u");return[h.read_shift(2,"u"),T]}function x(h,T){var p=9;switch(h.l+=2,p=h.read_shift(2)){case 9:if(T!=3)throw new Error("Sector Shift: Expected 9 saw "+p);break;case 12:if(T!=4)throw new Error("Sector Shift: Expected 12 saw "+p);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+p)}h.chk("0600","Mini Sector Shift: "),h.chk("000000000000","Reserved: ")}function v(h,T){for(var p=Math.ceil(h.length/T)-1,m=[],E=1;E<p;++E)m[E-1]=h.slice(E*T,(E+1)*T);return m[p-1]=h.slice(p*T),m}function _(h,T,p){for(var m=0,E=0,w=0,I=0,U=0,R=p.length,N=[],k=[];m<R;++m)N[m]=k[m]=m,T[m]=p[m];for(;U<k.length;++U)m=k[U],E=h[m].L,w=h[m].R,I=h[m].C,N[m]===m&&(E!==-1&&N[E]!==E&&(N[m]=N[E]),w!==-1&&N[w]!==w&&(N[m]=N[w])),I!==-1&&(N[I]=m),E!==-1&&m!=N[m]&&(N[E]=N[m],k.lastIndexOf(E)<U&&k.push(E)),w!==-1&&m!=N[m]&&(N[w]=N[m],k.lastIndexOf(w)<U&&k.push(w));for(m=1;m<R;++m)N[m]===m&&(w!==-1&&N[w]!==w?N[m]=N[w]:E!==-1&&N[E]!==E&&(N[m]=N[E]));for(m=1;m<R;++m)if(h[m].type!==0){if(U=m,U!=N[U])do U=N[U],T[m]=T[U]+"/"+T[m];while(U!==0&&N[U]!==-1&&U!=N[U]);N[m]=-1}for(T[0]+="/",m=1;m<R;++m)h[m].type!==2&&(T[m]+="/")}function u(h,T,p){for(var m=h.start,E=h.size,w=[],I=m;p&&E>0&&I>=0;)w.push(T.slice(I*j,I*j+j)),E-=j,I=Wr(p,I*4);return w.length===0?B(0):be(w).slice(0,h.size)}function g(h,T,p,m,E){var w=re;if(h===re){if(T!==0)throw new Error("DIFAT chain shorter than expected")}else if(h!==-1){var I=p[h],U=(m>>>2)-1;if(!I)return;for(var R=0;R<U&&(w=Wr(I,R*4))!==re;++R)E.push(w);g(Wr(I,m-4),T-1,p,m,E)}}function C(h,T,p,m,E){var w=[],I=[];E||(E=[]);var U=m-1,R=0,N=0;for(R=T;R>=0;){E[R]=!0,w[w.length]=R,I.push(h[R]);var k=p[Math.floor(R*4/m)];if(N=R*4&U,m<4+N)throw new Error("FAT boundary crossed: "+R+" 4 "+m);if(!h[k])break;R=Wr(h[k],N)}return{nodes:w,data:yn([I])}}function O(h,T,p,m){var E=h.length,w=[],I=[],U=[],R=[],N=m-1,k=0,X=0,Z=0,te=0;for(k=0;k<E;++k)if(U=[],Z=k+T,Z>=E&&(Z-=E),!I[Z]){R=[];var K=[];for(X=Z;X>=0;){K[X]=!0,I[X]=!0,U[U.length]=X,R.push(h[X]);var Q=p[Math.floor(X*4/m)];if(te=X*4&N,m<4+te)throw new Error("FAT boundary crossed: "+X+" 4 "+m);if(!h[Q]||(X=Wr(h[Q],te),K[X]))break}w[Z]={nodes:U,data:yn([R])}}return w}function y(h,T,p,m,E,w,I,U){for(var R=0,N=m.length?2:0,k=T[h].data,X=0,Z=0,te;X<k.length;X+=128){var K=k.slice(X,X+128);rr(K,64),Z=K.read_shift(2),te=B0(K,0,Z-N),m.push(te);var Q={name:te,type:K.read_shift(1),color:K.read_shift(1),L:K.read_shift(4,"i"),R:K.read_shift(4,"i"),C:K.read_shift(4,"i"),clsid:K.read_shift(16),state:K.read_shift(4,"i"),start:0,size:0},fe=K.read_shift(2)+K.read_shift(2)+K.read_shift(2)+K.read_shift(2);fe!==0&&(Q.ct=M(K,K.l-8));var we=K.read_shift(2)+K.read_shift(2)+K.read_shift(2)+K.read_shift(2);we!==0&&(Q.mt=M(K,K.l-8)),Q.start=K.read_shift(4,"i"),Q.size=K.read_shift(4,"i"),Q.size<0&&Q.start<0&&(Q.size=Q.type=0,Q.start=re,Q.name=""),Q.type===5?(R=Q.start,E>0&&R!==re&&(T[R].name="!StreamData")):Q.size>=4096?(Q.storage="fat",T[Q.start]===void 0&&(T[Q.start]=C(p,Q.start,T.fat_addrs,T.ssz)),T[Q.start].name=Q.name,Q.content=T[Q.start].data.slice(0,Q.size)):(Q.storage="minifat",Q.size<0?Q.size=0:R!==re&&Q.start!==re&&T[R]&&(Q.content=u(Q,T[R].data,(T[U]||{}).data))),Q.content&&rr(Q.content,0),w[te]=Q,I.push(Q)}}function M(h,T){return new Date((nr(h,T+4)/1e7*Math.pow(2,32)+nr(h,T)/1e7-11644473600)*1e3)}function Y(h,T){return l(),c(o.readFileSync(h),T)}function ee(h,T){var p=T&&T.type;switch(p||ue&&Buffer.isBuffer(h)&&(p="buffer"),p||"base64"){case"file":return Y(h,T);case"base64":return c(vr(Cr(h)),T);case"binary":return c(vr(h),T)}return c(h,T)}function D(h,T){var p=T||{},m=p.root||"Root Entry";if(h.FullPaths||(h.FullPaths=[]),h.FileIndex||(h.FileIndex=[]),h.FullPaths.length!==h.FileIndex.length)throw new Error("inconsistent CFB structure");h.FullPaths.length===0&&(h.FullPaths[0]=m+"/",h.FileIndex[0]={name:m,type:5}),p.CLSID&&(h.FileIndex[0].clsid=p.CLSID),b(h)}function b(h){var T="Sh33tJ5";if(!_e.find(h,"/"+T)){var p=B(4);p[0]=55,p[1]=p[3]=50,p[2]=54,h.FileIndex.push({name:T,type:2,content:p,size:4,L:69,R:69,C:69}),h.FullPaths.push(h.FullPaths[0]+T),L(h)}}function L(h,T){D(h);for(var p=!1,m=!1,E=h.FullPaths.length-1;E>=0;--E){var w=h.FileIndex[E];switch(w.type){case 0:m?p=!0:(h.FileIndex.pop(),h.FullPaths.pop());break;case 1:case 2:case 5:m=!0,isNaN(w.R*w.L*w.C)&&(p=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(p=!0);break;default:p=!0;break}}if(!(!p&&!T)){var I=new Date(1987,1,19),U=0,R=Object.create?Object.create(null):{},N=[];for(E=0;E<h.FullPaths.length;++E)R[h.FullPaths[E]]=!0,h.FileIndex[E].type!==0&&N.push([h.FullPaths[E],h.FileIndex[E]]);for(E=0;E<N.length;++E){var k=n(N[E][0]);m=R[k],m||(N.push([k,{name:a(k).replace("/",""),type:1,clsid:Me,ct:I,mt:I,content:null}]),R[k]=!0)}for(N.sort(function(te,K){return r(te[0],K[0])}),h.FullPaths=[],h.FileIndex=[],E=0;E<N.length;++E)h.FullPaths[E]=N[E][0],h.FileIndex[E]=N[E][1];for(E=0;E<N.length;++E){var X=h.FileIndex[E],Z=h.FullPaths[E];if(X.name=a(Z).replace("/",""),X.L=X.R=X.C=-(X.color=1),X.size=X.content?X.content.length:0,X.start=0,X.clsid=X.clsid||Me,E===0)X.C=N.length>1?1:-1,X.size=0,X.type=5;else if(Z.slice(-1)=="/"){for(U=E+1;U<N.length&&n(h.FullPaths[U])!=Z;++U);for(X.C=U>=N.length?-1:U,U=E+1;U<N.length&&n(h.FullPaths[U])!=n(Z);++U);X.R=U>=N.length?-1:U,X.type=1}else n(h.FullPaths[E+1]||"")==n(Z)&&(X.R=E+1),X.type=2}}}function G(h,T){var p=T||{};if(p.fileType=="mad")return Hi(h,p);switch(L(h),p.fileType){case"zip":return Pi(h,p)}var m=function(te){for(var K=0,Q=0,fe=0;fe<te.FileIndex.length;++fe){var we=te.FileIndex[fe];if(we.content){var Se=we.content.length;Se>0&&(Se<4096?K+=Se+63>>6:Q+=Se+511>>9)}}for(var Ve=te.FullPaths.length+3>>2,ht=K+7>>3,ut=K+127>>7,xt=ht+Q+Ve+ut,br=xt+127>>7,g0=br<=109?0:Math.ceil((br-109)/127);xt+br+g0+127>>7>br;)g0=++br<=109?0:Math.ceil((br-109)/127);var Sr=[1,g0,br,ut,Ve,Q,K,0];return te.FileIndex[0].size=K<<6,Sr[7]=(te.FileIndex[0].start=Sr[0]+Sr[1]+Sr[2]+Sr[3]+Sr[4]+Sr[5])+(Sr[6]+7>>3),Sr}(h),E=B(m[7]<<9),w=0,I=0;{for(w=0;w<8;++w)E.write_shift(1,le[w]);for(w=0;w<8;++w)E.write_shift(2,0);for(E.write_shift(2,62),E.write_shift(2,3),E.write_shift(2,65534),E.write_shift(2,9),E.write_shift(2,6),w=0;w<3;++w)E.write_shift(2,0);for(E.write_shift(4,0),E.write_shift(4,m[2]),E.write_shift(4,m[0]+m[1]+m[2]+m[3]-1),E.write_shift(4,0),E.write_shift(4,4096),E.write_shift(4,m[3]?m[0]+m[1]+m[2]-1:re),E.write_shift(4,m[3]),E.write_shift(-4,m[1]?m[0]-1:re),E.write_shift(4,m[1]),w=0;w<109;++w)E.write_shift(-4,w<m[2]?m[1]+w:-1)}if(m[1])for(I=0;I<m[1];++I){for(;w<236+I*127;++w)E.write_shift(-4,w<m[2]?m[1]+w:-1);E.write_shift(-4,I===m[1]-1?re:I+1)}var U=function(te){for(I+=te;w<I-1;++w)E.write_shift(-4,w+1);te&&(++w,E.write_shift(-4,re))};for(I=w=0,I+=m[1];w<I;++w)E.write_shift(-4,Ce.DIFSECT);for(I+=m[2];w<I;++w)E.write_shift(-4,Ce.FATSECT);U(m[3]),U(m[4]);for(var R=0,N=0,k=h.FileIndex[0];R<h.FileIndex.length;++R)k=h.FileIndex[R],k.content&&(N=k.content.length,!(N<4096)&&(k.start=I,U(N+511>>9)));for(U(m[6]+7>>3);E.l&511;)E.write_shift(-4,Ce.ENDOFCHAIN);for(I=w=0,R=0;R<h.FileIndex.length;++R)k=h.FileIndex[R],k.content&&(N=k.content.length,!(!N||N>=4096)&&(k.start=I,U(N+63>>6)));for(;E.l&511;)E.write_shift(-4,Ce.ENDOFCHAIN);for(w=0;w<m[4]<<2;++w){var X=h.FullPaths[w];if(!X||X.length===0){for(R=0;R<17;++R)E.write_shift(4,0);for(R=0;R<3;++R)E.write_shift(4,-1);for(R=0;R<12;++R)E.write_shift(4,0);continue}k=h.FileIndex[w],w===0&&(k.start=k.size?k.start-1:re);var Z=w===0&&p.root||k.name;if(N=2*(Z.length+1),E.write_shift(64,Z,"utf16le"),E.write_shift(2,N),E.write_shift(1,k.type),E.write_shift(1,k.color),E.write_shift(-4,k.L),E.write_shift(-4,k.R),E.write_shift(-4,k.C),k.clsid)E.write_shift(16,k.clsid,"hex");else for(R=0;R<4;++R)E.write_shift(4,0);E.write_shift(4,k.state||0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,k.start),E.write_shift(4,k.size),E.write_shift(4,0)}for(w=1;w<h.FileIndex.length;++w)if(k=h.FileIndex[w],k.size>=4096)if(E.l=k.start+1<<9,ue&&Buffer.isBuffer(k.content))k.content.copy(E,E.l,0,k.size),E.l+=k.size+511&-512;else{for(R=0;R<k.size;++R)E.write_shift(1,k.content[R]);for(;R&511;++R)E.write_shift(1,0)}for(w=1;w<h.FileIndex.length;++w)if(k=h.FileIndex[w],k.size>0&&k.size<4096)if(ue&&Buffer.isBuffer(k.content))k.content.copy(E,E.l,0,k.size),E.l+=k.size+63&-64;else{for(R=0;R<k.size;++R)E.write_shift(1,k.content[R]);for(;R&63;++R)E.write_shift(1,0)}if(ue)E.l=E.length;else for(;E.l<E.length;)E.write_shift(1,0);return E}function V(h,T){var p=h.FullPaths.map(function(R){return R.toUpperCase()}),m=p.map(function(R){var N=R.split("/");return N[N.length-(R.slice(-1)=="/"?2:1)]}),E=!1;T.charCodeAt(0)===47?(E=!0,T=p[0].slice(0,-1)+T):E=T.indexOf("/")!==-1;var w=T.toUpperCase(),I=E===!0?p.indexOf(w):m.indexOf(w);if(I!==-1)return h.FileIndex[I];var U=!w.match(Ut);for(w=w.replace(pt,""),U&&(w=w.replace(Ut,"!")),I=0;I<p.length;++I)if((U?p[I].replace(Ut,"!"):p[I]).replace(pt,"")==w||(U?m[I].replace(Ut,"!"):m[I]).replace(pt,"")==w)return h.FileIndex[I];return null}var j=64,re=-2,ge="d0cf11e0a1b11ae1",le=[208,207,17,224,161,177,26,225],Me="00000000000000000000000000000000",Ce={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:re,FREESECT:-1,HEADER_SIGNATURE:ge,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Me,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function cr(h,T,p){l();var m=G(h,p);o.writeFileSync(T,m)}function Ne(h){for(var T=new Array(h.length),p=0;p<h.length;++p)T[p]=String.fromCharCode(h[p]);return T.join("")}function ir(h,T){var p=G(h,T);switch(T&&T.type||"buffer"){case"file":return l(),o.writeFileSync(T.filename,p),p;case"binary":return typeof p=="string"?p:Ne(p);case"base64":return St(typeof p=="string"?p:Ne(p));case"buffer":if(ue)return Buffer.isBuffer(p)?p:Dr(p);case"array":return typeof p=="string"?vr(p):p}return p}var Qe;function S(h){try{var T=h.InflateRaw,p=new T;if(p._processChunk(new Uint8Array([3,0]),p._finishFlushFlag),p.bytesRead)Qe=h;else throw new Error("zlib does not expose bytesRead")}catch(m){console.error("cannot use native zlib: "+(m.message||m))}}function P(h,T){if(!Qe)return sn(h,T);var p=Qe.InflateRaw,m=new p,E=m._processChunk(h.slice(h.l),m._finishFlushFlag);return h.l+=m.bytesRead,E}function F(h){return Qe?Qe.deflateRawSync(h):Q0(h)}var A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ie=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function se(h){var T=(h<<1|h<<11)&139536|(h<<5|h<<15)&558144;return(T>>16|T>>8|T)&255}for(var ae=typeof Uint8Array<"u",q=ae?new Uint8Array(256):[],Te=0;Te<256;++Te)q[Te]=se(Te);function ce(h,T){var p=q[h&255];return T<=8?p>>>8-T:(p=p<<8|q[h>>8&255],T<=16?p>>>16-T:(p=p<<8|q[h>>16&255],p>>>24-T))}function Ke(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=6?0:h[m+1]<<8))>>>p&3}function xe(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=5?0:h[m+1]<<8))>>>p&7}function Er(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=4?0:h[m+1]<<8))>>>p&15}function Ae(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=3?0:h[m+1]<<8))>>>p&31}function ne(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=1?0:h[m+1]<<8))>>>p&127}function sr(h,T,p){var m=T&7,E=T>>>3,w=(1<<p)-1,I=h[E]>>>m;return p<8-m||(I|=h[E+1]<<8-m,p<16-m)||(I|=h[E+2]<<16-m,p<24-m)||(I|=h[E+3]<<24-m),I&w}function wr(h,T,p){var m=T&7,E=T>>>3;return m<=5?h[E]|=(p&7)<<m:(h[E]|=p<<m&255,h[E+1]=(p&7)>>8-m),T+3}function Br(h,T,p){var m=T&7,E=T>>>3;return p=(p&1)<<m,h[E]|=p,T+1}function Jr(h,T,p){var m=T&7,E=T>>>3;return p<<=m,h[E]|=p&255,p>>>=8,h[E+1]=p,T+8}function q0(h,T,p){var m=T&7,E=T>>>3;return p<<=m,h[E]|=p&255,p>>>=8,h[E+1]=p&255,h[E+2]=p>>>8,T+16}function v0(h,T){var p=h.length,m=2*p>T?2*p:T+5,E=0;if(p>=T)return h;if(ue){var w=hn(m);if(h.copy)h.copy(w);else for(;E<h.length;++E)w[E]=h[E];return w}else if(ae){var I=new Uint8Array(m);if(I.set)I.set(h);else for(;E<p;++E)I[E]=h[E];return I}return h.length=m,h}function mr(h){for(var T=new Array(h),p=0;p<h;++p)T[p]=0;return T}function Lt(h,T,p){var m=1,E=0,w=0,I=0,U=0,R=h.length,N=ae?new Uint16Array(32):mr(32);for(w=0;w<32;++w)N[w]=0;for(w=R;w<p;++w)h[w]=0;R=h.length;var k=ae?new Uint16Array(R):mr(R);for(w=0;w<R;++w)N[E=h[w]]++,m<E&&(m=E),k[w]=0;for(N[0]=0,w=1;w<=m;++w)N[w+16]=U=U+N[w-1]<<1;for(w=0;w<R;++w)U=h[w],U!=0&&(k[w]=N[U+16]++);var X=0;for(w=0;w<R;++w)if(X=h[w],X!=0)for(U=ce(k[w],m)>>m-X,I=(1<<m+4-X)-1;I>=0;--I)T[U|I<<X]=X&15|w<<4;return m}var d0=ae?new Uint16Array(512):mr(512),p0=ae?new Uint16Array(32):mr(32);if(!ae){for(var Ur=0;Ur<512;++Ur)d0[Ur]=0;for(Ur=0;Ur<32;++Ur)p0[Ur]=0}(function(){for(var h=[],T=0;T<32;T++)h.push(5);Lt(h,p0,32);var p=[];for(T=0;T<=143;T++)p.push(8);for(;T<=255;T++)p.push(9);for(;T<=279;T++)p.push(7);for(;T<=287;T++)p.push(8);Lt(p,d0,288)})();var Ri=function(){for(var T=ae?new Uint8Array(32768):[],p=0,m=0;p<ie.length-1;++p)for(;m<ie[p+1];++m)T[m]=p;for(;m<32768;++m)T[m]=29;var E=ae?new Uint8Array(259):[];for(p=0,m=0;p<H.length-1;++p)for(;m<H[p+1];++m)E[m]=p;function w(U,R){for(var N=0;N<U.length;){var k=Math.min(65535,U.length-N),X=N+k==U.length;for(R.write_shift(1,+X),R.write_shift(2,k),R.write_shift(2,~k&65535);k-- >0;)R[R.l++]=U[N++]}return R.l}function I(U,R){for(var N=0,k=0,X=ae?new Uint16Array(32768):[];k<U.length;){var Z=Math.min(65535,U.length-k);if(Z<10){for(N=wr(R,N,+(k+Z==U.length)),N&7&&(N+=8-(N&7)),R.l=N/8|0,R.write_shift(2,Z),R.write_shift(2,~Z&65535);Z-- >0;)R[R.l++]=U[k++];N=R.l*8;continue}N=wr(R,N,+(k+Z==U.length)+2);for(var te=0;Z-- >0;){var K=U[k];te=(te<<5^K)&32767;var Q=-1,fe=0;if((Q=X[te])&&(Q|=k&-32768,Q>k&&(Q-=32768),Q<k))for(;U[Q+fe]==U[k+fe]&&fe<250;)++fe;if(fe>2){K=E[fe],K<=22?N=Jr(R,N,q[K+1]>>1)-1:(Jr(R,N,3),N+=5,Jr(R,N,q[K-23]>>5),N+=3);var we=K<8?0:K-4>>2;we>0&&(q0(R,N,fe-H[K]),N+=we),K=T[k-Q],N=Jr(R,N,q[K]>>3),N-=3;var Se=K<4?0:K-2>>1;Se>0&&(q0(R,N,k-Q-ie[K]),N+=Se);for(var Ve=0;Ve<fe;++Ve)X[te]=k&32767,te=(te<<5^U[k])&32767,++k;Z-=fe-1}else K<=143?K=K+48:N=Br(R,N,1),N=Jr(R,N,q[K]),X[te]=k&32767,++k}N=Jr(R,N,0)-1}return R.l=(N+7)/8|0,R.l}return function(R,N){return R.length<8?w(R,N):I(R,N)}}();function Q0(h){var T=B(50+Math.floor(h.length*1.1)),p=Ri(h,T);return T.slice(0,p)}var en=ae?new Uint16Array(32768):mr(32768),rn=ae?new Uint16Array(32768):mr(32768),tn=ae?new Uint16Array(128):mr(128),nn=1,an=1;function Ii(h,T){var p=Ae(h,T)+257;T+=5;var m=Ae(h,T)+1;T+=5;var E=Er(h,T)+4;T+=4;for(var w=0,I=ae?new Uint8Array(19):mr(19),U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R=1,N=ae?new Uint8Array(8):mr(8),k=ae?new Uint8Array(8):mr(8),X=I.length,Z=0;Z<E;++Z)I[A[Z]]=w=xe(h,T),R<w&&(R=w),N[w]++,T+=3;var te=0;for(N[0]=0,Z=1;Z<=R;++Z)k[Z]=te=te+N[Z-1]<<1;for(Z=0;Z<X;++Z)(te=I[Z])!=0&&(U[Z]=k[te]++);var K=0;for(Z=0;Z<X;++Z)if(K=I[Z],K!=0){te=q[U[Z]]>>8-K;for(var Q=(1<<7-K)-1;Q>=0;--Q)tn[te|Q<<K]=K&7|Z<<3}var fe=[];for(R=1;fe.length<p+m;)switch(te=tn[ne(h,T)],T+=te&7,te>>>=3){case 16:for(w=3+Ke(h,T),T+=2,te=fe[fe.length-1];w-- >0;)fe.push(te);break;case 17:for(w=3+xe(h,T),T+=3;w-- >0;)fe.push(0);break;case 18:for(w=11+ne(h,T),T+=7;w-- >0;)fe.push(0);break;default:fe.push(te),R<te&&(R=te);break}var we=fe.slice(0,p),Se=fe.slice(p);for(Z=p;Z<286;++Z)we[Z]=0;for(Z=m;Z<30;++Z)Se[Z]=0;return nn=Lt(we,en,286),an=Lt(Se,rn,30),T}function Ni(h,T){if(h[0]==3&&!(h[1]&3))return[Gr(T),2];for(var p=0,m=0,E=hn(T||1<<18),w=0,I=E.length>>>0,U=0,R=0;!(m&1);){if(m=xe(h,p),p+=3,m>>>1)m>>1==1?(U=9,R=5):(p=Ii(h,p),U=nn,R=an);else{p&7&&(p+=8-(p&7));var N=h[p>>>3]|h[(p>>>3)+1]<<8;if(p+=32,N>0)for(!T&&I<w+N&&(E=v0(E,w+N),I=E.length);N-- >0;)E[w++]=h[p>>>3],p+=8;continue}for(;;){!T&&I<w+32767&&(E=v0(E,w+32767),I=E.length);var k=sr(h,p,U),X=m>>>1==1?d0[k]:en[k];if(p+=X&15,X>>>=4,!(X>>>8&255))E[w++]=X;else{if(X==256)break;X-=257;var Z=X<8?0:X-4>>2;Z>5&&(Z=0);var te=w+H[X];Z>0&&(te+=sr(h,p,Z),p+=Z),k=sr(h,p,R),X=m>>>1==1?p0[k]:rn[k],p+=X&15,X>>>=4;var K=X<4?0:X-2>>1,Q=ie[X];for(K>0&&(Q+=sr(h,p,K),p+=K),!T&&I<te&&(E=v0(E,te+100),I=E.length);w<te;)E[w]=E[w-Q],++w}}}return T?[E,p+7>>>3]:[E.slice(0,w),p+7>>>3]}function sn(h,T){var p=h.slice(h.l||0),m=Ni(p,T);return h.l+=m[1],m[0]}function fn(h,T){if(h)typeof console<"u"&&console.error(T);else throw new Error(T)}function ln(h,T){var p=h;rr(p,0);var m=[],E=[],w={FileIndex:m,FullPaths:E};D(w,{root:T.root});for(var I=p.length-4;(p[I]!=80||p[I+1]!=75||p[I+2]!=5||p[I+3]!=6)&&I>=0;)--I;p.l=I+4,p.l+=4;var U=p.read_shift(2);p.l+=6;var R=p.read_shift(4);for(p.l=R,I=0;I<U;++I){p.l+=20;var N=p.read_shift(4),k=p.read_shift(4),X=p.read_shift(2),Z=p.read_shift(2),te=p.read_shift(2);p.l+=8;var K=p.read_shift(4),Q=f(p.slice(p.l+X,p.l+X+Z));p.l+=X+Z+te;var fe=p.l;p.l=K+4,ki(p,N,k,w,Q),p.l=fe}return w}function ki(h,T,p,m,E){h.l+=2;var w=h.read_shift(2),I=h.read_shift(2),U=s(h);if(w&8257)throw new Error("Unsupported ZIP encryption");for(var R=h.read_shift(4),N=h.read_shift(4),k=h.read_shift(4),X=h.read_shift(2),Z=h.read_shift(2),te="",K=0;K<X;++K)te+=String.fromCharCode(h[h.l++]);if(Z){var Q=f(h.slice(h.l,h.l+Z));(Q[21589]||{}).mt&&(U=Q[21589].mt),((E||{})[21589]||{}).mt&&(U=E[21589].mt)}h.l+=Z;var fe=h.slice(h.l,h.l+N);switch(I){case 8:fe=P(h,k);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+I)}var we=!1;w&8&&(R=h.read_shift(4),R==134695760&&(R=h.read_shift(4),we=!0),N=h.read_shift(4),k=h.read_shift(4)),N!=T&&fn(we,"Bad compressed size: "+T+" != "+N),k!=p&&fn(we,"Bad uncompressed size: "+p+" != "+k),m0(m,te,fe,{unsafe:!0,mt:U})}function Pi(h,T){var p=T||{},m=[],E=[],w=B(1),I=p.compression?8:0,U=0,R=0,N=0,k=0,X=0,Z=h.FullPaths[0],te=Z,K=h.FileIndex[0],Q=[],fe=0;for(R=1;R<h.FullPaths.length;++R)if(te=h.FullPaths[R].slice(Z.length),K=h.FileIndex[R],!(!K.size||!K.content||te=="Sh33tJ5")){var we=k,Se=B(te.length);for(N=0;N<te.length;++N)Se.write_shift(1,te.charCodeAt(N)&127);Se=Se.slice(0,Se.l),Q[X]=ys.buf(K.content,0);var Ve=K.content;I==8&&(Ve=F(Ve)),w=B(30),w.write_shift(4,67324752),w.write_shift(2,20),w.write_shift(2,U),w.write_shift(2,I),K.mt?i(w,K.mt):w.write_shift(4,0),w.write_shift(-4,Q[X]),w.write_shift(4,Ve.length),w.write_shift(4,K.content.length),w.write_shift(2,Se.length),w.write_shift(2,0),k+=w.length,m.push(w),k+=Se.length,m.push(Se),k+=Ve.length,m.push(Ve),w=B(46),w.write_shift(4,33639248),w.write_shift(2,0),w.write_shift(2,20),w.write_shift(2,U),w.write_shift(2,I),w.write_shift(4,0),w.write_shift(-4,Q[X]),w.write_shift(4,Ve.length),w.write_shift(4,K.content.length),w.write_shift(2,Se.length),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(4,0),w.write_shift(4,we),fe+=w.l,E.push(w),fe+=Se.length,E.push(Se),++X}return w=B(22),w.write_shift(4,101010256),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,X),w.write_shift(2,X),w.write_shift(4,fe),w.write_shift(4,k),w.write_shift(2,0),be([be(m),be(E),w])}var Mt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Li(h,T){if(h.ctype)return h.ctype;var p=h.name||"",m=p.match(/\.([^\.]+)$/);return m&&Mt[m[1]]||T&&(m=(p=T).match(/[\.\\]([^\.\\])+$/),m&&Mt[m[1]])?Mt[m[1]]:"application/octet-stream"}function Mi(h){for(var T=St(h),p=[],m=0;m<T.length;m+=76)p.push(T.slice(m,m+76));return p.join(`\r
-`)+`\r
-`}function Bi(h){var T=h.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(N){var k=N.charCodeAt(0).toString(16).toUpperCase();return"="+(k.length==1?"0"+k:k)});T=T.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),T.charAt(0)==`
-`&&(T="=0D"+T.slice(1)),T=T.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
-=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var p=[],m=T.split(`\r
-`),E=0;E<m.length;++E){var w=m[E];if(w.length==0){p.push("");continue}for(var I=0;I<w.length;){var U=76,R=w.slice(I,I+U);R.charAt(U-1)=="="?U--:R.charAt(U-2)=="="?U-=2:R.charAt(U-3)=="="&&(U-=3),R=w.slice(I,I+U),I+=U,I<w.length&&(R+="="),p.push(R)}}return p.join(`\r
-`)}function Ui(h){for(var T=[],p=0;p<h.length;++p){for(var m=h[p];p<=h.length&&m.charAt(m.length-1)=="=";)m=m.slice(0,m.length-1)+h[++p];T.push(m)}for(var E=0;E<T.length;++E)T[E]=T[E].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return vr(T.join(`\r
-`))}function bi(h,T,p){for(var m="",E="",w="",I,U=0;U<10;++U){var R=T[U];if(!R||R.match(/^\s*$/))break;var N=R.match(/^(.*?):\s*([^\s].*)$/);if(N)switch(N[1].toLowerCase()){case"content-location":m=N[2].trim();break;case"content-type":w=N[2].trim();break;case"content-transfer-encoding":E=N[2].trim();break}}switch(++U,E.toLowerCase()){case"base64":I=vr(Cr(T.slice(U).join("")));break;case"quoted-printable":I=Ui(T.slice(U));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+E)}var k=m0(h,m.slice(p.length),I,{unsafe:!0});w&&(k.ctype=w)}function Wi(h,T){if(Ne(h.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var p=T&&T.root||"",m=(ue&&Buffer.isBuffer(h)?h.toString("binary"):Ne(h)).split(`\r
-`),E=0,w="";for(E=0;E<m.length;++E)if(w=m[E],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),p||(p=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,p.length)!=p))for(;p.length>0&&(p=p.slice(0,p.length-1),p=p.slice(0,p.lastIndexOf("/")+1),w.slice(0,p.length)!=p););var I=(m[1]||"").match(/boundary="(.*?)"/);if(!I)throw new Error("MAD cannot find boundary");var U="--"+(I[1]||""),R=[],N=[],k={FileIndex:R,FullPaths:N};D(k);var X,Z=0;for(E=0;E<m.length;++E){var te=m[E];te!==U&&te!==U+"--"||(Z++&&bi(k,m.slice(X,E),p),X=E)}return k}function Hi(h,T){var p=T||{},m=p.boundary||"SheetJS";m="------="+m;for(var E=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+m.slice(2)+'"',"","",""],w=h.FullPaths[0],I=w,U=h.FileIndex[0],R=1;R<h.FullPaths.length;++R)if(I=h.FullPaths[R].slice(w.length),U=h.FileIndex[R],!(!U.size||!U.content||I=="Sh33tJ5")){I=I.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(fe){return"_x"+fe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(fe){return"_u"+fe.charCodeAt(0).toString(16)+"_"});for(var N=U.content,k=ue&&Buffer.isBuffer(N)?N.toString("binary"):Ne(N),X=0,Z=Math.min(1024,k.length),te=0,K=0;K<=Z;++K)(te=k.charCodeAt(K))>=32&&te<128&&++X;var Q=X>=Z*4/5;E.push(m),E.push("Content-Location: "+(p.root||"file:///C:/SheetJS/")+I),E.push("Content-Transfer-Encoding: "+(Q?"quoted-printable":"base64")),E.push("Content-Type: "+Li(U,I)),E.push(""),E.push(Q?Bi(k):Mi(k))}return E.push(m+`--\r
-`),E.join(`\r
-`)}function Gi(h){var T={};return D(T,h),T}function m0(h,T,p,m){var E=m&&m.unsafe;E||D(h);var w=!E&&_e.find(h,T);if(!w){var I=h.FullPaths[0];T.slice(0,I.length)==I?I=T:(I.slice(-1)!="/"&&(I+="/"),I=(I+T).replace("//","/")),w={name:a(T),type:2},h.FileIndex.push(w),h.FullPaths.push(I),E||_e.utils.cfb_gc(h)}return w.content=p,w.size=p?p.length:0,m&&(m.CLSID&&(w.clsid=m.CLSID),m.mt&&(w.mt=m.mt),m.ct&&(w.ct=m.ct)),w}function Vi(h,T){D(h);var p=_e.find(h,T);if(p){for(var m=0;m<h.FileIndex.length;++m)if(h.FileIndex[m]==p)return h.FileIndex.splice(m,1),h.FullPaths.splice(m,1),!0}return!1}function Xi(h,T,p){D(h);var m=_e.find(h,T);if(m){for(var E=0;E<h.FileIndex.length;++E)if(h.FileIndex[E]==m)return h.FileIndex[E].name=a(p),h.FullPaths[E]=p,!0}return!1}function ji(h){L(h,!0)}return t.find=V,t.read=ee,t.parse=c,t.write=ir,t.writeFile=cr,t.utils={cfb_new:Gi,cfb_add:m0,cfb_del:Vi,cfb_mov:Xi,cfb_gc:ji,ReadShift:gt,CheckField:Da,prep_blob:rr,bconcat:be,use_zlib:S,_deflateRaw:Q0,_inflateRaw:sn,consts:Ce},t}();function Cs(e){return typeof e=="string"?s0(e):Array.isArray(e)?Qi(e):e}function Rt(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=s0(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?Ft(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([Cs(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var f=File(e);return f.open("w"),f.encoding="binary",Array.isArray(t)&&(t=Dt(t)),f.write(t),f.close(),t}catch(o){if(!o.message||!o.message.match(/onstruct/))throw o}throw new Error("cannot save file "+e)}function Ge(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function _n(e,t){for(var r=[],n=Ge(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function k0(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function o0(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function Os(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var Jt=new Date(1899,11,30,0,0,0);function Ze(e,t){var r=e.getTime(),n=Jt.getTime()+(e.getTimezoneOffset()-Jt.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var ua=new Date,Ds=Jt.getTime()+(ua.getTimezoneOffset()-Jt.getTimezoneOffset())*6e4,Tn=ua.getTimezoneOffset();function xa(e){var t=new Date;return t.setTime(e*24*60*60*1e3+Ds),t.getTimezoneOffset()!==Tn&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Tn)*6e4),t}var En=new Date("2017-02-19T19:06:09.000Z"),va=isNaN(En.getFullYear())?new Date("2/19/17"):En,Rs=va.getFullYear()==2017;function $e(e,t){var r=new Date(e);if(Rs)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(va.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function c0(e,t){if(ue&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function qe(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=qe(e[r]));return t}function Fe(e,t){for(var r="";r.length<t;)r+=e;return r}function Fr(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(t=Number(n)))?t/r:t}var Is=["january","february","march","april","may","june","july","august","september","october","november","december"];function At(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&Is.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function oe(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return ue?n=Dr(r):n=es(r),_e.utils.cfb_add(e,t,n)}_e.utils.cfb_add(e,t,r)}else e.file(t,r)}function P0(){return _e.utils.cfb_new()}var Re=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
-`,Ns={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},L0=k0(Ns),M0=/[&<>'"]/g,ks=/[\u0000-\u0008\u000b-\u001f]/g;function pe(e){var t=e+"";return t.replace(M0,function(r){return L0[r]}).replace(ks,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function wn(e){return pe(e).replace(/ /g,"_x0020_")}var da=/[\u0000-\u001f]/g;function Ps(e){var t=e+"";return t.replace(M0,function(r){return L0[r]}).replace(/\n/g,"<br/>").replace(da,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Ls(e){var t=e+"";return t.replace(M0,function(r){return L0[r]}).replace(da,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function Ms(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function Bs(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function T0(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),f=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function Sn(e){var t=Gr(2*e.length),r,n,a=1,i=0,s=0,f;for(n=0;n<e.length;n+=a)a=1,(f=e.charCodeAt(n))<128?r=f:f<224?(r=(f&31)*64+(e.charCodeAt(n+1)&63),a=2):f<240?(r=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function An(e){return Dr(e,"binary").toString("utf8")}var Wt="foo bar baz☃🍣",mt=ue&&(An(Wt)==T0(Wt)&&An||Sn(Wt)==T0(Wt)&&Sn)||T0,Ft=ue?function(e){return Dr(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},Us=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
-`).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),pa=/(^\s|\s$|\n)/;function We(e,t){return"<"+e+(t.match(pa)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function yt(e){return Ge(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function z(e,t,r){return"<"+e+(r!=null?yt(r):"")+(t!=null?(t.match(pa)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function O0(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function bs(e,t){switch(typeof e){case"string":var r=z("vt:lpwstr",pe(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return z((e|0)==e?"vt:i4":"vt:r8",pe(String(e)));case"boolean":return z("vt:bool",e?"true":"false")}if(e instanceof Date)return z("vt:filetime",O0(e));throw new Error("Unable to serialize "+e)}var ke={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},ft=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],tr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Ws(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Hs(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var f=0;f<=5;++f,i/=256)e[r+f]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var Fn=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},yn=ue?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Dr(t)})):Fn(e)}:Fn,Cn=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(dt(e,a)));return n.join("").replace(pt,"")},B0=ue?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(pt,""):Cn(e,t,r)}:Cn,On=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},ma=ue?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):On(e,t,r)}:On,Dn=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(et(e,a)));return n.join("")},It=ue?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Dn(t,r,n)}:Dn,ga=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},_a=ga,Ta=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},Ea=Ta,wa=function(e,t){var r=2*nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},Sa=wa,Aa=function(t,r){var n=nr(t,r);return n>0?B0(t,r+4,r+4+n):""},Fa=Aa,ya=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r):""},Ca=ya,Oa=function(e,t){return Ws(e,t)},Zt=Oa,U0=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};ue&&(_a=function(t,r){if(!Buffer.isBuffer(t))return ga(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Ea=function(t,r){if(!Buffer.isBuffer(t))return Ta(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Sa=function(t,r){if(!Buffer.isBuffer(t))return wa(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Fa=function(t,r){if(!Buffer.isBuffer(t))return Aa(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Ca=function(t,r){if(!Buffer.isBuffer(t))return ya(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Zt=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Oa(t,r)},U0=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var et=function(e,t){return e[t]},dt=function(e,t){return e[t+1]*256+e[t]},Gs=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},nr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Wr=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Vs=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function gt(e,t){var r="",n,a,i=[],s,f,o,l;switch(t){case"dbcs":if(l=this.l,ue&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o<e;++o)r+=String.fromCharCode(dt(this,l)),l+=2;e*=2;break;case"utf8":r=It(this,this.l,this.l+e);break;case"utf16le":e*=2,r=B0(this,this.l,this.l+e);break;case"wstr":return gt.call(this,e,"dbcs");case"lpstr-ansi":r=_a(this,this.l),e=4+nr(this,this.l);break;case"lpstr-cp":r=Ea(this,this.l),e=4+nr(this,this.l);break;case"lpwstr":r=Sa(this,this.l),e=4+2*nr(this,this.l);break;case"lpp4":e=4+nr(this,this.l),r=Fa(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+nr(this,this.l),r=Ca(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(s=et(this,this.l+e++))!==0;)i.push(Bt(s));r=i.join("");break;case"_wstr":for(e=0,r="";(s=dt(this,this.l+e))!==0;)i.push(Bt(s)),e+=2;e+=2,r=i.join("");break;case"dbcs-cont":for(r="",l=this.l,o=0;o<e;++o){if(this.lens&&this.lens.indexOf(l)!==-1)return s=et(this,l),this.l=l+1,f=gt.call(this,e-o,s?"dbcs-cont":"sbcs-cont"),i.join("")+f;i.push(Bt(dt(this,l))),l+=2}r=i.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",l=this.l,o=0;o!=e;++o){if(this.lens&&this.lens.indexOf(l)!==-1)return s=et(this,l),this.l=l+1,f=gt.call(this,e-o,s?"dbcs-cont":"sbcs-cont"),i.join("")+f;i.push(Bt(et(this,l))),l+=1}r=i.join("");break;default:switch(e){case 1:return n=et(this,this.l),this.l++,n;case 2:return n=(t==="i"?Gs:dt)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?Wr:Vs)(this,this.l),this.l+=4,n):(a=nr(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=Zt(this,this.l):a=Zt([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=ma(this,this.l,e);break}}return this.l+=e,r}var Xs=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},js=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Ks=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function zs(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)Ks(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var s=t.charCodeAt(a);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,Xs(this,t,this.l);break;case 8:if(n=8,r==="f"){Hs(this,t,this.l);break}case 16:break;case-4:n=4,js(this,t,this.l);break}return this.l+=n,this}function Da(e,t){var r=ma(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function rr(e,t){e.l=t,e.read_shift=gt,e.chk=Da,e.write_shift=zs}function Tr(e,t){e.l+=t}function B(e){var t=Gr(e);return rr(t,0),t}function Je(){var e=[],t=ue?256:2048,r=function(l){var c=B(l);return rr(c,0),c},n=r(t),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(l){return n&&l<n.length-n.l?n:(a(),n=r(Math.max(l+1,t)))},s=function(){return a(),be(e)},f=function(l){a(),n=l,n.l==null&&(n.l=n.length),i(t)};return{next:i,push:f,end:s,_bufs:e}}function W(e,t,r,n){var a=+t,i;if(!isNaN(a)){n||(n=Gh[a].p||(r||[]).length||0),i=1+(a>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var s=e.next(i);a<=127?s.write_shift(1,a):(s.write_shift(1,(a&127)+128),s.write_shift(1,a>>7));for(var f=0;f!=4;++f)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&U0(r)&&e.push(r)}}function _t(e,t,r){var n=qe(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Rn(e,t,r){var n=qe(e);return n.s=_t(n.s,t.s,r),n.e=_t(n.e,t.s,r),n}function Tt(e,t){if(e.cRel&&e.c<0)for(e=qe(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=qe(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=me(e);return!e.cRel&&e.cRel!=null&&(r=Js(r)),!e.rRel&&e.rRel!=null&&(r=Ys(r)),r}function E0(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Xe(e.s.c)+":"+(e.e.cRel?"":"$")+Xe(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+He(e.s.r)+":"+(e.e.rRel?"":"$")+He(e.e.r):Tt(e.s,t.biff)+":"+Tt(e.e,t.biff)}function b0(e){return parseInt($s(e),10)-1}function He(e){return""+(e+1)}function Ys(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function $s(e){return e.replace(/\$(\d+)$/,"$1")}function W0(e){for(var t=Zs(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Xe(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Js(e){return e.replace(/^([A-Z])/,"$$$1")}function Zs(e){return e.replace(/^\$([A-Z])/,"$1")}function qs(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Pe(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function me(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function ar(e){var t=e.indexOf(":");return t==-1?{s:Pe(e),e:Pe(e)}:{s:Pe(e.slice(0,t)),e:Pe(e.slice(t+1))}}function De(e,t){return typeof t>"u"||typeof t=="number"?De(e.s,e.e):(typeof e!="string"&&(e=me(e)),typeof t!="string"&&(t=me(t)),e==t?e:e+":"+t)}function Ee(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n<i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function In(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=kr(e.z,r?Ze(t):t)}catch{}try{return e.w=kr((e.XF||{}).numFmtId||(r?14:0),r?Ze(t):t)}catch{return""+t}}function Or(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Nt[e.v]||e.v:t==null?In(e,e.v):In(e,t))}function jr(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Ra(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),s=0,f=0;if(i&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Pe(n.origin):n.origin;s=o.r,f=o.c}i["!ref"]||(i["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=Ee(i["!ref"]);l.s.c=c.s.c,l.s.r=c.s.r,l.e.c=Math.max(l.e.c,c.e.c),l.e.r=Math.max(l.e.r,c.e.r),s==-1&&(l.e.r=s=c.e.r+1)}for(var d=0;d!=t.length;++d)if(t[d]){if(!Array.isArray(t[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var x=0;x!=t[d].length;++x)if(!(typeof t[d][x]>"u")){var v={v:t[d][x]},_=s+d,u=f+x;if(l.s.r>_&&(l.s.r=_),l.s.c>u&&(l.s.c=u),l.e.r<_&&(l.e.r=_),l.e.c<u&&(l.e.c=u),t[d][x]&&typeof t[d][x]=="object"&&!Array.isArray(t[d][x])&&!(t[d][x]instanceof Date))v=t[d][x];else if(Array.isArray(v.v)&&(v.f=t[d][x][1],v.v=v.v[0]),v.v===null)if(v.f)v.t="n";else if(n.nullError)v.t="e",v.v=0;else if(n.sheetStubs)v.t="z";else continue;else typeof v.v=="number"?v.t="n":typeof v.v=="boolean"?v.t="b":v.v instanceof Date?(v.z=n.dateNF||ye[14],n.cellDates?(v.t="d",v.w=kr(v.z,Ze(v.v))):(v.t="n",v.v=Ze(v.v),v.w=kr(v.z,v.v))):v.t="s";if(a)i[_]||(i[_]=[]),i[_][u]&&i[_][u].z&&(v.z=i[_][u].z),i[_][u]=v;else{var g=me({c:u,r:_});i[g]&&i[g].z&&(v.z=i[g].z),i[g]=v}}}return l.s.c<1e7&&(i["!ref"]=De(l)),i}function lt(e,t){return Ra(null,e,t)}function Qs(e){return e.read_shift(4,"i")}function pr(e,t){return t||(t=B(4)),t.write_shift(4,e),t}function je(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function Le(e,t){var r=!1;return t==null&&(r=!0,t=B(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function ef(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function rf(e,t){return t||(t=B(4)),t.write_shift(2,0),t.write_shift(2,0),t}function H0(e,t){var r=e.l,n=e.read_shift(1),a=je(e),i=[],s={t:a,h:a};if(n&1){for(var f=e.read_shift(4),o=0;o!=f;++o)i.push(ef(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function tf(e,t){var r=!1;return t==null&&(r=!0,t=B(15+4*e.t.length)),t.write_shift(1,0),Le(e.t,t),r?t.slice(0,t.l):t}var nf=H0;function af(e,t){var r=!1;return t==null&&(r=!0,t=B(23+4*e.t.length)),t.write_shift(1,1),Le(e.t,t),t.write_shift(4,1),rf({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function or(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function Kr(e,t){return t==null&&(t=B(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function zr(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Yr(e,t){return t==null&&(t=B(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var sf=je,Ia=Le;function G0(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function qt(e,t){var r=!1;return t==null&&(r=!0,t=B(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var ff=je,D0=G0,V0=qt;function Na(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?Zt([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Wr(t,0)>>2;return r?a/100:a}function ka(e,t){t==null&&(t=B(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:a==(a|0)&&a>=-536870912&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Pa(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function lf(e,t){return t||(t=B(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var $r=Pa,ot=lf;function ct(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Vr(e,t){return(t||B(8)).write_shift(8,e,"f")}function of(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),s=e.read_shift(1),f=e.read_shift(1),o=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var l=gf[a];l&&(t.rgb=Gn(l));break;case 2:t.rgb=Gn([s,f,o]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function Qt(e,t){if(t||(t=B(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function cf(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function hf(e,t){t||(t=B(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var La=2,er=3,Ht=11,e0=19,Gt=64,uf=65,xf=71,vf=4108,df=4126,Ue=80,Nn={1:{n:"CodePage",t:La},2:{n:"Category",t:Ue},3:{n:"PresentationFormat",t:Ue},4:{n:"ByteCount",t:er},5:{n:"LineCount",t:er},6:{n:"ParagraphCount",t:er},7:{n:"SlideCount",t:er},8:{n:"NoteCount",t:er},9:{n:"HiddenCount",t:er},10:{n:"MultimediaClipCount",t:er},11:{n:"ScaleCrop",t:Ht},12:{n:"HeadingPairs",t:vf},13:{n:"TitlesOfParts",t:df},14:{n:"Manager",t:Ue},15:{n:"Company",t:Ue},16:{n:"LinksUpToDate",t:Ht},17:{n:"CharacterCount",t:er},19:{n:"SharedDoc",t:Ht},22:{n:"HyperlinksChanged",t:Ht},23:{n:"AppVersion",t:er,p:"version"},24:{n:"DigSig",t:uf},26:{n:"ContentType",t:Ue},27:{n:"ContentStatus",t:Ue},28:{n:"Language",t:Ue},29:{n:"Version",t:Ue},255:{},2147483648:{n:"Locale",t:e0},2147483651:{n:"Behavior",t:e0},1919054434:{}},kn={1:{n:"CodePage",t:La},2:{n:"Title",t:Ue},3:{n:"Subject",t:Ue},4:{n:"Author",t:Ue},5:{n:"Keywords",t:Ue},6:{n:"Comments",t:Ue},7:{n:"Template",t:Ue},8:{n:"LastAuthor",t:Ue},9:{n:"RevNumber",t:Ue},10:{n:"EditTime",t:Gt},11:{n:"LastPrinted",t:Gt},12:{n:"CreatedDate",t:Gt},13:{n:"ModifiedDate",t:Gt},14:{n:"PageCount",t:er},15:{n:"WordCount",t:er},16:{n:"CharCount",t:er},17:{n:"Thumbnail",t:xf},18:{n:"Application",t:Ue},19:{n:"DocSecurity",t:er},255:{},2147483648:{n:"Locale",t:e0},2147483651:{n:"Behavior",t:e0},1919054434:{}};function pf(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var mf=pf([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),gf=qe(mf),Nt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},_f={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Vt={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Ma(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Ba(e,t){var r=Os(_f),n=[],a;n[n.length]=Re,n[n.length]=z("Types",null,{xmlns:ke.CT,"xmlns:xsd":ke.xsd,"xmlns:xsi":ke.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(o){return z("Default",null,{Extension:o[0],ContentType:o[1]})}));var i=function(o){e[o]&&e[o].length>0&&(a=e[o][0],n[n.length]=z("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Vt[o][t.bookType]||Vt[o].xlsx}))},s=function(o){(e[o]||[]).forEach(function(l){n[n.length]=z("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:Vt[o][t.bookType]||Vt[o].xlsx})})},f=function(o){(e[o]||[]).forEach(function(l){n[n.length]=z("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:r[o][0]})})};return i("workbooks"),s("sheets"),s("charts"),f("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(f),f("vba"),f("comments"),f("threadedcomments"),f("drawings"),s("metadata"),f("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var he={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ua(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function nt(e){var t=[Re,z("Relationships",null,{xmlns:ke.RELS})];return Ge(e["!id"]).forEach(function(r){t[t.length]=z("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function de(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,[he.HLINK,he.XPATH,he.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}function Tf(e){var t=[Re];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
-`),t.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
-`);for(var r=0;r<e.length;++r)t.push('  <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
-`);return t.push("</manifest:manifest>"),t.join("")}function Pn(e,t,r){return['  <rdf:Description rdf:about="'+e+`">
-`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
-`,`  </rdf:Description>
-`].join("")}function Ef(e,t){return['  <rdf:Description rdf:about="'+e+`">
-`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
-`,`  </rdf:Description>
-`].join("")}function wf(e){var t=[Re];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-`);for(var r=0;r!=e.length;++r)t.push(Pn(e[r][0],e[r][1])),t.push(Ef("",e[r][0]));return t.push(Pn("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function ba(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Kt.version+"</meta:generator></office:meta></office:document-meta>"}var Hr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function w0(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=pe(t),n[n.length]=r?z(e,t,r):We(e,t))}function Wa(e,t){var r=t||{},n=[Re,z("cp:coreProperties",null,{"xmlns:cp":ke.CORE_PROPS,"xmlns:dc":ke.dc,"xmlns:dcterms":ke.dcterms,"xmlns:dcmitype":ke.dcmitype,"xmlns:xsi":ke.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&w0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:O0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&w0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:O0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Hr.length;++i){var s=Hr[i],f=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&w0(s[0],f,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var at=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Ha=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Ga(e){var t=[],r=z;return e||(e={}),e.Application="SheetJS",t[t.length]=Re,t[t.length]=z("Properties",null,{xmlns:ke.EXT_PROPS,"xmlns:vt":ke.vt}),at.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=pe(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+pe(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Va(e){var t=[Re,z("Properties",null,{xmlns:ke.CUST_PROPS,"xmlns:vt":ke.vt})];if(!e)return t.join("");var r=1;return Ge(e).forEach(function(a){++r,t[t.length]=z("property",bs(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:pe(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Ln={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Sf(e,t){var r=[];return Ge(Ln).map(function(n){for(var a=0;a<Hr.length;++a)if(Hr[a][1]==n)return Hr[a];for(a=0;a<at.length;++a)if(at[a][1]==n)return at[a];throw n}).forEach(function(n){if(e[n[1]]!=null){var a=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(We(Ln[n[1]]||n[1],a))}}),z("DocumentProperties",r.join(""),{xmlns:tr.o})}function Af(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return e&&Ge(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)){for(var s=0;s<Hr.length;++s)if(i==Hr[s][1])return;for(s=0;s<at.length;++s)if(i==at[s][1])return;for(s=0;s<r.length;++s)if(i==r[s])return;var f=e[i],o="string";typeof f=="number"?(o="float",f=String(f)):f===!0||f===!1?(o="boolean",f=f?"1":"0"):f=String(f),a.push(z(wn(i),f,{"dt:dt":o}))}}),t&&Ge(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)&&!(e&&Object.prototype.hasOwnProperty.call(e,i))){var s=t[i],f="string";typeof s=="number"?(f="float",s=String(s)):s===!0||s===!1?(f="boolean",s=s?"1":"0"):s instanceof Date?(f="dateTime.tz",s=s.toISOString()):s=String(s),a.push(z(wn(i),s,{"dt:dt":f}))}}),"<"+n+' xmlns="'+tr.o+'">'+a.join("")+"</"+n+">"}function Ff(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var s=B(8);return s.write_shift(4,n),s.write_shift(4,a),s}function Mn(e,t){var r=B(4),n=B(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=B(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=Ff(t);break;case 31:case 80:for(n=B(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return be([r,n])}var Xa=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function yf(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Bn(e,t,r){var n=B(8),a=[],i=[],s=8,f=0,o=B(8),l=B(8);if(o.write_shift(4,2),o.write_shift(4,1200),l.write_shift(4,1),i.push(o),a.push(l),s+=8+o.length,!t){l=B(8),l.write_shift(4,0),a.unshift(l);var c=[B(4)];for(c[0].write_shift(4,e.length),f=0;f<e.length;++f){var d=e[f][0];for(o=B(8+2*(d.length+1)+(d.length%2?0:2)),o.write_shift(4,f+2),o.write_shift(4,d.length+1),o.write_shift(0,d,"dbcs");o.l!=o.length;)o.write_shift(1,0);c.push(o)}o=be(c),i.unshift(o),s+=8+o.length}for(f=0;f<e.length;++f)if(!(t&&!t[e[f][0]])&&!(Xa.indexOf(e[f][0])>-1||Ha.indexOf(e[f][0])>-1)&&e[f][1]!=null){var x=e[f][1],v=0;if(t){v=+t[e[f][0]];var _=r[v];if(_.p=="version"&&typeof x=="string"){var u=x.split(".");x=(+u[0]<<16)+(+u[1]||0)}o=Mn(_.t,x)}else{var g=yf(x);g==-1&&(g=31,x=String(x)),o=Mn(g,x)}i.push(o),l=B(8),l.write_shift(4,t?v:2+f),a.push(l),s+=8+o.length}var C=8*(i.length+1);for(f=0;f<i.length;++f)a[f].write_shift(4,C),C+=i[f].length;return n.write_shift(4,s),n.write_shift(4,i.length),be([n].concat(a).concat(i))}function Un(e,t,r,n,a,i){var s=B(a?68:48),f=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,_e.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,a?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,a?68:48);var o=Bn(e,r,n);if(f.push(o),a){var l=Bn(a,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+o.length),f.push(l)}return be(f)}function Cf(e,t){t||(t=B(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function Of(e,t){return e.read_shift(t)===1}function Ye(e,t){return t||(t=B(2)),t.write_shift(2,+!!e),t}function ja(e){return e.read_shift(2,"u")}function lr(e,t){return t||(t=B(2)),t.write_shift(2,e),t}function Ka(e,t,r){return r||(r=B(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function za(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=e.read_shift(1);i&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var s=n?e.read_shift(n,a):"";return s}function Df(e){var t=e.t||"",r=B(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=B(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return be(a)}function Rf(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function If(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Rf(e,n,r)}function Nf(e,t,r){if(r.biff>5)return If(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Ya(e,t,r){return r||(r=B(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function bn(e,t){t||(t=B(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function kf(e){var t=B(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),i=a>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)t.write_shift(4,s[r]);if(i==28)n=n.slice(1),bn(n,t);else if(i&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));var f=a>-1?n.slice(0,a):n;for(t.write_shift(4,2*(f.length+1)),r=0;r<f.length;++r)t.write_shift(2,f.charCodeAt(r));t.write_shift(2,0),i&8&&bn(a>-1?n.slice(a+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));for(var o=0;n.slice(o*3,o*3+3)=="../"||n.slice(o*3,o*3+3)=="..\\";)++o;for(t.write_shift(2,o),t.write_shift(4,n.length-3*o+1),r=0;r<n.length-3*o;++r)t.write_shift(1,n.charCodeAt(r+3*o)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Xr(e,t,r,n){return n||(n=B(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function Pf(e,t,r){var n=r.biff>8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[a,i,s]}function Lf(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function $a(e,t){return t||(t=B(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function X0(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=B(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function Mf(e,t){var r=!t||t.biff==8,n=B(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function Bf(e,t){var r=!t||t.biff>=8?2:1,n=B(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function Uf(e,t){var r=B(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],a=0;a<e.length;++a)n[a]=Df(e[a]);var i=be([r].concat(n));return i.parts=[r.length].concat(n.map(function(s){return s.length})),i}function bf(){var e=B(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function Wf(e){var t=B(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function Hf(e,t){var r=e.name||"Arial",n=t.biff==5,a=n?15+r.length:16+2*r.length,i=B(a);return i.write_shift(2,(e.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function Gf(e,t,r,n){var a=B(10);return Xr(e,t,n,a),a.write_shift(4,r),a}function Vf(e,t,r,n,a){var i=!a||a.biff==8,s=B(8+ +i+(1+i)*r.length);return Xr(e,t,n,s),s.write_shift(2,r.length),i&&s.write_shift(1,1),s.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),s}function Xf(e,t,r,n){var a=r.biff==5;n||(n=B(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}function jf(e,t){var r=t.biff==8||!t.biff?4:2,n=B(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Wn(e,t,r,n){var a=r.biff==5;n||(n=B(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function Kf(e){var t=B(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function zf(e,t,r,n,a,i){var s=B(8);return Xr(e,t,n,s),Ka(r,i,s),s}function Yf(e,t,r,n){var a=B(14);return Xr(e,t,n,a),Vr(r,a),a}function $f(e,t,r){if(r.biff<8)return Jf(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(Pf(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function Jf(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=za(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function Zf(e){var t=B(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)$a(e[r],t);return t}function qf(e){var t=B(24),r=Pe(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return be([t,kf(e[1])])}function Qf(e){var t=e[1].Tooltip,r=B(10+2*(t.length+1));r.write_shift(2,2048);var n=Pe(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<t.length;++a)r.write_shift(2,t.charCodeAt(a));return r.write_shift(2,0),r}function el(e){return e||(e=B(4)),e.write_shift(2,1),e.write_shift(2,1),e}function rl(e,t,r){if(!r.cellStyles)return Tr(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),s=e.read_shift(n),f=e.read_shift(n),o=e.read_shift(2);n==2&&(e.l+=2);var l={s:a,e:i,w:s,ixfe:f,flags:o};return(r.biff>=5||!r.biff)&&(l.level=o>>8&7),l}function tl(e,t){var r=B(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function nl(e){for(var t=B(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function al(e,t,r){var n=B(15);return Pt(n,e,t),n.write_shift(8,r,"f"),n}function il(e,t,r){var n=B(9);return Pt(n,e,t),n.write_shift(2,r),n}var sl=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=k0({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(f,o){var l=[],c=Gr(1);switch(o.type){case"base64":c=vr(Cr(f));break;case"binary":c=vr(f);break;case"buffer":case"array":c=f;break}rr(c,0);var d=c.read_shift(1),x=!!(d&136),v=!1,_=!1;switch(d){case 2:break;case 3:break;case 48:v=!0,x=!0;break;case 49:v=!0,x=!0;break;case 131:break;case 139:break;case 140:_=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var u=0,g=521;d==2&&(u=c.read_shift(2)),c.l+=3,d!=2&&(u=c.read_shift(4)),u>1048576&&(u=1e6),d!=2&&(g=c.read_shift(2));var C=c.read_shift(2),O=o.codepage||1252;d!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(O=e[c[c.l]]),c.l+=1,c.l+=2),_&&(c.l+=36);for(var y=[],M={},Y=Math.min(c.length,d==2?521:g-10-(v?264:0)),ee=_?32:11;c.l<Y&&c[c.l]!=13;)switch(M={},M.name=cn.utils.decode(O,c.slice(c.l,c.l+ee)).replace(/[\u0000\r\n].*$/g,""),c.l+=ee,M.type=String.fromCharCode(c.read_shift(1)),d!=2&&!_&&(M.offset=c.read_shift(4)),M.len=c.read_shift(1),d==2&&(M.offset=c.read_shift(2)),M.dec=c.read_shift(1),M.name.length&&y.push(M),d!=2&&(c.l+=_?13:14),M.type){case"B":(!v||M.len!=8)&&o.WTF&&console.log("Skipping "+M.name+":"+M.type);break;case"G":case"P":o.WTF&&console.log("Skipping "+M.name+":"+M.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+M.type)}if(c[c.l]!==13&&(c.l=g-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=g;var D=0,b=0;for(l[0]=[],b=0;b!=y.length;++b)l[0][b]=y[b].name;for(;u-- >0;){if(c[c.l]===42){c.l+=C;continue}for(++c.l,l[++D]=[],b=0,b=0;b!=y.length;++b){var L=c.slice(c.l,c.l+y[b].len);c.l+=y[b].len,rr(L,0);var G=cn.utils.decode(O,L);switch(y[b].type){case"C":G.trim().length&&(l[D][b]=G.replace(/\s+$/,""));break;case"D":G.length===8?l[D][b]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):l[D][b]=G;break;case"F":l[D][b]=parseFloat(G.trim());break;case"+":case"I":l[D][b]=_?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":l[D][b]=!0;break;case"N":case"F":l[D][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!x)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));l[D][b]="##MEMO##"+(_?parseInt(G.trim(),10):L.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(l[D][b]=+G||0);break;case"@":l[D][b]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":l[D][b]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":l[D][b]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][b]=-L.read_shift(-8,"f");break;case"B":if(v&&y[b].len==8){l[D][b]=L.read_shift(8,"f");break}case"G":case"P":L.l+=y[b].len;break;case"0":if(y[b].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[b].type)}}}if(d!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return o.sheetRows&&(l=l.slice(0,o.sheetRows)),o.DBF=y,l}function n(f,o){var l=o||{};l.dateNF||(l.dateNF="yyyymmdd");var c=lt(r(f,l),l);return c["!cols"]=l.DBF.map(function(d){return{wch:d.len,DBF:d}}),delete l.DBF,c}function a(f,o){try{return jr(n(f,o),o)}catch(l){if(o&&o.WTF)throw l}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function s(f,o){var l=o||{};if(+l.codepage>=0&&wt(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=Je(),d=i0(f,{header:1,raw:!0,cellDates:!0}),x=d[0],v=d.slice(1),_=f["!cols"]||[],u=0,g=0,C=0,O=1;for(u=0;u<x.length;++u){if(((_[u]||{}).DBF||{}).name){x[u]=_[u].DBF.name,++C;continue}if(x[u]!=null){if(++C,typeof x[u]=="number"&&(x[u]=x[u].toString(10)),typeof x[u]!="string")throw new Error("DBF Invalid column name "+x[u]+" |"+typeof x[u]+"|");if(x.indexOf(x[u])!==u){for(g=0;g<1024;++g)if(x.indexOf(x[u]+"_"+g)==-1){x[u]+="_"+g;break}}}}var y=Ee(f["!ref"]),M=[],Y=[],ee=[];for(u=0;u<=y.e.c-y.s.c;++u){var D="",b="",L=0,G=[];for(g=0;g<v.length;++g)v[g][u]!=null&&G.push(v[g][u]);if(G.length==0||x[u]==null){M[u]="?";continue}for(g=0;g<G.length;++g){switch(typeof G[g]){case"number":b="B";break;case"string":b="C";break;case"boolean":b="L";break;case"object":b=G[g]instanceof Date?"D":"C";break;default:b="C"}L=Math.max(L,String(G[g]).length),D=D&&D!=b?"C":b}L>250&&(L=250),b=((_[u]||{}).DBF||{}).type,b=="C"&&_[u].DBF.len>L&&(L=_[u].DBF.len),D=="B"&&b=="N"&&(D="N",ee[u]=_[u].DBF.dec,L=_[u].DBF.len),Y[u]=D=="C"||b=="N"?L:i[D]||0,O+=Y[u],M[u]=D}var V=c.next(32);for(V.write_shift(4,318902576),V.write_shift(4,v.length),V.write_shift(2,296+32*C),V.write_shift(2,O),u=0;u<4;++u)V.write_shift(4,0);for(V.write_shift(4,0|(+t[Zn]||3)<<8),u=0,g=0;u<x.length;++u)if(x[u]!=null){var j=c.next(32),re=(x[u].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,re,"sbcs"),j.write_shift(1,M[u]=="?"?"C":M[u],"sbcs"),j.write_shift(4,g),j.write_shift(1,Y[u]||i[M[u]]||0),j.write_shift(1,ee[u]||0),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(1,0),j.write_shift(4,0),j.write_shift(4,0),g+=Y[u]||i[M[u]]||0}var ge=c.next(264);for(ge.write_shift(4,13),u=0;u<65;++u)ge.write_shift(4,0);for(u=0;u<v.length;++u){var le=c.next(O);for(le.write_shift(1,0),g=0;g<x.length;++g)if(x[g]!=null)switch(M[g]){case"L":le.write_shift(1,v[u][g]==null?63:v[u][g]?84:70);break;case"B":le.write_shift(8,v[u][g]||0,"f");break;case"N":var Me="0";for(typeof v[u][g]=="number"&&(Me=v[u][g].toFixed(ee[g]||0)),C=0;C<Y[g]-Me.length;++C)le.write_shift(1,32);le.write_shift(1,Me,"sbcs");break;case"D":v[u][g]?(le.write_shift(4,("0000"+v[u][g].getFullYear()).slice(-4),"sbcs"),le.write_shift(2,("00"+(v[u][g].getMonth()+1)).slice(-2),"sbcs"),le.write_shift(2,("00"+v[u][g].getDate()).slice(-2),"sbcs")):le.write_shift(8,"00000000","sbcs");break;case"C":var Ce=String(v[u][g]!=null?v[u][g]:"").slice(0,Y[g]);for(le.write_shift(1,Ce,"sbcs"),C=0;C<Y[g]-Ce.length;++C)le.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:a,to_sheet:n,from_sheet:s}}(),fl=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Ge(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(x,v){var _=e[v];return typeof _=="number"?on(_):_},n=function(x,v,_){var u=v.charCodeAt(0)-32<<4|_.charCodeAt(0)-48;return u==59?x:on(u)};e["|"]=254;function a(x,v){switch(v.type){case"base64":return i(Cr(x),v);case"binary":return i(x,v);case"buffer":return i(ue&&Buffer.isBuffer(x)?x.toString("binary"):Dt(x),v);case"array":return i(c0(x),v)}throw new Error("Unrecognized type "+v.type)}function i(x,v){var _=x.split(/[\n\r]+/),u=-1,g=-1,C=0,O=0,y=[],M=[],Y=null,ee={},D=[],b=[],L=[],G=0,V;for(+v.codepage>=0&&wt(+v.codepage);C!==_.length;++C){G=0;var j=_[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),re=j.replace(/;;/g,"\0").split(";").map(function(A){return A.replace(/\u0000/g,";")}),ge=re[0],le;if(j.length>0)switch(ge){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":re[1].charAt(0)=="P"&&M.push(j.slice(3).replace(/;;/g,";"));break;case"C":var Me=!1,Ce=!1,cr=!1,Ne=!1,ir=-1,Qe=-1;for(O=1;O<re.length;++O)switch(re[O].charAt(0)){case"A":break;case"X":g=parseInt(re[O].slice(1))-1,Ce=!0;break;case"Y":for(u=parseInt(re[O].slice(1))-1,Ce||(g=0),V=y.length;V<=u;++V)y[V]=[];break;case"K":le=re[O].slice(1),le.charAt(0)==='"'?le=le.slice(1,le.length-1):le==="TRUE"?le=!0:le==="FALSE"?le=!1:isNaN(Fr(le))?isNaN(At(le).getDate())||(le=$e(le)):(le=Fr(le),Y!==null&&oa(Y)&&(le=xa(le))),Me=!0;break;case"E":Ne=!0;var S=io(re[O].slice(1),{r:u,c:g});y[u][g]=[y[u][g],S];break;case"S":cr=!0,y[u][g]=[y[u][g],"S5S"];break;case"G":break;case"R":ir=parseInt(re[O].slice(1))-1;break;case"C":Qe=parseInt(re[O].slice(1))-1;break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}if(Me&&(y[u][g]&&y[u][g].length==2?y[u][g][0]=le:y[u][g]=le,Y=null),cr){if(Ne)throw new Error("SYLK shared formula cannot have own formula");var P=ir>-1&&y[ir][Qe];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");y[u][g][1]=so(P[1],{r:u-ir,c:g-Qe})}break;case"F":var F=0;for(O=1;O<re.length;++O)switch(re[O].charAt(0)){case"X":g=parseInt(re[O].slice(1))-1,++F;break;case"Y":for(u=parseInt(re[O].slice(1))-1,V=y.length;V<=u;++V)y[V]=[];break;case"M":G=parseInt(re[O].slice(1))/20;break;case"F":break;case"G":break;case"P":Y=M[parseInt(re[O].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=re[O].slice(1).split(" "),V=parseInt(L[0],10);V<=parseInt(L[1],10);++V)G=parseInt(L[2],10),b[V-1]=G===0?{hidden:!0}:{wch:G},j0(b[V-1]);break;case"C":g=parseInt(re[O].slice(1))-1,b[g]||(b[g]={});break;case"R":u=parseInt(re[O].slice(1))-1,D[u]||(D[u]={}),G>0?(D[u].hpt=G,D[u].hpx=ei(G)):G===0&&(D[u].hidden=!0);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}F<1&&(Y=null);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}}return D.length>0&&(ee["!rows"]=D),b.length>0&&(ee["!cols"]=b),v&&v.sheetRows&&(y=y.slice(0,v.sheetRows)),[y,ee]}function s(x,v){var _=a(x,v),u=_[0],g=_[1],C=lt(u,v);return Ge(g).forEach(function(O){C[O]=g[O]}),C}function f(x,v){return jr(s(x,v),v)}function o(x,v,_,u){var g="C;Y"+(_+1)+";X"+(u+1)+";K";switch(x.t){case"n":g+=x.v||0,x.f&&!x.F&&(g+=";E"+z0(x.f,{r:_,c:u}));break;case"b":g+=x.v?"TRUE":"FALSE";break;case"e":g+=x.w||x.v;break;case"d":g+='"'+(x.w||x.v)+'"';break;case"s":g+='"'+x.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function l(x,v){v.forEach(function(_,u){var g="F;W"+(u+1)+" "+(u+1)+" ";_.hidden?g+="0":(typeof _.width=="number"&&!_.wpx&&(_.wpx=r0(_.width)),typeof _.wpx=="number"&&!_.wch&&(_.wch=t0(_.wpx)),typeof _.wch=="number"&&(g+=Math.round(_.wch))),g.charAt(g.length-1)!=" "&&x.push(g)})}function c(x,v){v.forEach(function(_,u){var g="F;";_.hidden?g+="M0;":_.hpt?g+="M"+20*_.hpt+";":_.hpx&&(g+="M"+20*n0(_.hpx)+";"),g.length>2&&x.push(g+"R"+(u+1))})}function d(x,v){var _=["ID;PWXL;N;E"],u=[],g=Ee(x["!ref"]),C,O=Array.isArray(x),y=`\r
-`;_.push("P;PGeneral"),_.push("F;P0;DG0G8;M255"),x["!cols"]&&l(_,x["!cols"]),x["!rows"]&&c(_,x["!rows"]),_.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var M=g.s.r;M<=g.e.r;++M)for(var Y=g.s.c;Y<=g.e.c;++Y){var ee=me({r:M,c:Y});C=O?(x[M]||[])[Y]:x[ee],!(!C||C.v==null&&(!C.f||C.F))&&u.push(o(C,x,M,Y))}return _.join(y)+y+u.join(y)+y+"E"+y}return{to_workbook:f,to_sheet:s,from_sheet:d}}(),ll=function(){function e(i,s){switch(s.type){case"base64":return t(Cr(i),s);case"binary":return t(i,s);case"buffer":return t(ue&&Buffer.isBuffer(i)?i.toString("binary"):Dt(i),s);case"array":return t(c0(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var f=i.split(`
-`),o=-1,l=-1,c=0,d=[];c!==f.length;++c){if(f[c].trim()==="BOT"){d[++o]=[],l=0;continue}if(!(o<0)){var x=f[c].trim().split(","),v=x[0],_=x[1];++c;for(var u=f[c]||"";(u.match(/["]/g)||[]).length&1&&c<f.length-1;)u+=`
-`+f[++c];switch(u=u.trim(),+v){case-1:if(u==="BOT"){d[++o]=[],l=0;continue}else if(u!=="EOD")throw new Error("Unrecognized DIF special command "+u);break;case 0:u==="TRUE"?d[o][l]=!0:u==="FALSE"?d[o][l]=!1:isNaN(Fr(_))?isNaN(At(_).getDate())?d[o][l]=_:d[o][l]=$e(_):d[o][l]=Fr(_),++l;break;case 1:u=u.slice(1,u.length-1),u=u.replace(/""/g,'"'),u&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),d[o][l++]=u!==""?u:null;break}if(u==="EOD")break}}return s&&s.sheetRows&&(d=d.slice(0,s.sheetRows)),d}function r(i,s){return lt(e(i,s),s)}function n(i,s){return jr(r(i,s),s)}var a=function(){var i=function(o,l,c,d,x){o.push(l),o.push(c+","+d),o.push('"'+x.replace(/"/g,'""')+'"')},s=function(o,l,c,d){o.push(l+","+c),o.push(l==1?'"'+d.replace(/"/g,'""')+'"':d)};return function(o){var l=[],c=Ee(o["!ref"]),d,x=Array.isArray(o);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,c.e.r-c.s.r+1,""),i(l,"TUPLES",0,c.e.c-c.s.c+1,""),i(l,"DATA",0,0,"");for(var v=c.s.r;v<=c.e.r;++v){s(l,-1,0,"BOT");for(var _=c.s.c;_<=c.e.c;++_){var u=me({r:v,c:_});if(d=x?(o[v]||[])[_]:o[u],!d){s(l,1,0,"");continue}switch(d.t){case"n":var g=d.w;!g&&d.v!=null&&(g=d.v),g==null?d.f&&!d.F?s(l,1,0,"="+d.f):s(l,1,0,""):s(l,0,g,"V");break;case"b":s(l,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":s(l,1,0,isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=kr(d.z||ye[14],Ze($e(d.v)))),s(l,0,d.w,"V");break;default:s(l,1,0,"")}}}s(l,-1,0,"EOD");var C=`\r
-`,O=l.join(C);return O}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),Ja=function(){function e(d){return d.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
-`)}function t(d){return d.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(d,x){for(var v=d.split(`
-`),_=-1,u=-1,g=0,C=[];g!==v.length;++g){var O=v[g].trim().split(":");if(O[0]==="cell"){var y=Pe(O[1]);if(C.length<=y.r)for(_=C.length;_<=y.r;++_)C[_]||(C[_]=[]);switch(_=y.r,u=y.c,O[2]){case"t":C[_][u]=e(O[3]);break;case"v":C[_][u]=+O[3];break;case"vtf":var M=O[O.length-1];case"vtc":switch(O[3]){case"nl":C[_][u]=!!+O[4];break;default:C[_][u]=+O[4];break}O[2]=="vtf"&&(C[_][u]=[C[_][u],M])}}}return x&&x.sheetRows&&(C=C.slice(0,x.sheetRows)),C}function n(d,x){return lt(r(d,x),x)}function a(d,x){return jr(n(d,x),x)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
-`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
-`)+`
-`,f=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
-`),o="--SocialCalcSpreadsheetControlSave--";function l(d){if(!d||!d["!ref"])return"";for(var x=[],v=[],_,u="",g=ar(d["!ref"]),C=Array.isArray(d),O=g.s.r;O<=g.e.r;++O)for(var y=g.s.c;y<=g.e.c;++y)if(u=me({r:O,c:y}),_=C?(d[O]||[])[y]:d[u],!(!_||_.v==null||_.t==="z")){switch(v=["cell",u,"t"],_.t){case"s":case"str":v.push(t(_.v));break;case"n":_.f?(v[2]="vtf",v[3]="n",v[4]=_.v,v[5]=t(_.f)):(v[2]="v",v[3]=_.v);break;case"b":v[2]="vt"+(_.f?"f":"c"),v[3]="nl",v[4]=_.v?"1":"0",v[5]=t(_.f||(_.v?"TRUE":"FALSE"));break;case"d":var M=Ze($e(_.v));v[2]="vtc",v[3]="nd",v[4]=""+M,v[5]=_.w||kr(_.z||ye[14],M);break;case"e":continue}x.push(v.join(":"))}return x.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),x.push("valueformat:1:text-wiki"),x.join(`
-`)}function c(d){return[i,s,f,s,l(d),o].join(`
-`)}return{to_workbook:a,to_sheet:n,from_sheet:c}}(),ol=function(){function e(c,d,x,v,_){_.raw?d[x][v]=c:c===""||(c==="TRUE"?d[x][v]=!0:c==="FALSE"?d[x][v]=!1:isNaN(Fr(c))?isNaN(At(c).getDate())?d[x][v]=c:d[x][v]=$e(c):d[x][v]=Fr(c))}function t(c,d){var x=d||{},v=[];if(!c||c.length===0)return v;for(var _=c.split(/[\r\n]/),u=_.length-1;u>=0&&_[u].length===0;)--u;for(var g=10,C=0,O=0;O<=u;++O)C=_[O].indexOf(" "),C==-1?C=_[O].length:C++,g=Math.max(g,C);for(O=0;O<=u;++O){v[O]=[];var y=0;for(e(_[O].slice(0,g).trim(),v,O,y,x),y=1;y<=(_[O].length-g)/10+1;++y)e(_[O].slice(g+(y-1)*10,g+y*10).trim(),v,O,y,x)}return x.sheetRows&&(v=v.slice(0,x.sheetRows)),v}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(c){for(var d={},x=!1,v=0,_=0;v<c.length;++v)(_=c.charCodeAt(v))==34?x=!x:!x&&_ in r&&(d[_]=(d[_]||0)+1);_=[];for(v in d)Object.prototype.hasOwnProperty.call(d,v)&&_.push([d[v],v]);if(!_.length){d=n;for(v in d)Object.prototype.hasOwnProperty.call(d,v)&&_.push([d[v],v])}return _.sort(function(u,g){return u[0]-g[0]||n[u[1]]-n[g[1]]}),r[_.pop()[1]]||44}function i(c,d){var x=d||{},v="",_=x.dense?[]:{},u={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(v=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(v=c.charAt(4),c=c.slice(6)):v=a(c.slice(0,1024)):x.FS?v=x.FS:v=a(c.slice(0,1024));var g=0,C=0,O=0,y=0,M=0,Y=v.charCodeAt(0),ee=!1,D=0,b=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
-`);var L=x.dateNF!=null?As(x.dateNF):null;function G(){var V=c.slice(y,M),j={};if(V.charAt(0)=='"'&&V.charAt(V.length-1)=='"'&&(V=V.slice(1,-1).replace(/""/g,'"')),V.length===0)j.t="z";else if(x.raw)j.t="s",j.v=V;else if(V.trim().length===0)j.t="s",j.v=V;else if(V.charCodeAt(0)==61)V.charCodeAt(1)==34&&V.charCodeAt(V.length-1)==34?(j.t="s",j.v=V.slice(2,-1).replace(/""/g,'"')):fo(V)?(j.t="n",j.f=V.slice(1)):(j.t="s",j.v=V);else if(V=="TRUE")j.t="b",j.v=!0;else if(V=="FALSE")j.t="b",j.v=!1;else if(!isNaN(O=Fr(V)))j.t="n",x.cellText!==!1&&(j.w=V),j.v=O;else if(!isNaN(At(V).getDate())||L&&V.match(L)){j.z=x.dateNF||ye[14];var re=0;L&&V.match(L)&&(V=Fs(V,x.dateNF,V.match(L)||[]),re=1),x.cellDates?(j.t="d",j.v=$e(V,re)):(j.t="n",j.v=Ze($e(V,re))),x.cellText!==!1&&(j.w=kr(j.z,j.v instanceof Date?Ze(j.v):j.v)),x.cellNF||delete j.z}else j.t="s",j.v=V;if(j.t=="z"||(x.dense?(_[g]||(_[g]=[]),_[g][C]=j):_[me({c:C,r:g})]=j),y=M+1,b=c.charCodeAt(y),u.e.c<C&&(u.e.c=C),u.e.r<g&&(u.e.r=g),D==Y)++C;else if(C=0,++g,x.sheetRows&&x.sheetRows<=g)return!0}e:for(;M<c.length;++M)switch(D=c.charCodeAt(M)){case 34:b===34&&(ee=!ee);break;case Y:case 10:case 13:if(!ee&&G())break e;break}return M-y>0&&G(),_["!ref"]=De(u),_}function s(c,d){return!(d&&d.PRN)||d.FS||c.slice(0,4)=="sep="||c.indexOf("	")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?i(c,d):lt(t(c,d),d)}function f(c,d){var x="",v=d.type=="string"?[0,0,0,0]:wu(c,d);switch(d.type){case"base64":x=Cr(c);break;case"binary":x=c;break;case"buffer":d.codepage==65001?x=c.toString("utf8"):(d.codepage,x=ue&&Buffer.isBuffer(c)?c.toString("binary"):Dt(c));break;case"array":x=c0(c);break;case"string":x=c;break;default:throw new Error("Unrecognized type "+d.type)}return v[0]==239&&v[1]==187&&v[2]==191?x=mt(x.slice(3)):d.type!="string"&&d.type!="buffer"&&d.codepage==65001?x=mt(x):d.type=="binary",x.slice(0,19)=="socialcalc:version:"?Ja.to_sheet(d.type=="string"?x:mt(x),d):s(x,d)}function o(c,d){return jr(f(c,d),d)}function l(c){for(var d=[],x=Ee(c["!ref"]),v,_=Array.isArray(c),u=x.s.r;u<=x.e.r;++u){for(var g=[],C=x.s.c;C<=x.e.c;++C){var O=me({r:u,c:C});if(v=_?(c[u]||[])[C]:c[O],!v||v.v==null){g.push("          ");continue}for(var y=(v.w||(Or(v),v.w)||"").slice(0,10);y.length<10;)y+=" ";g.push(y+(C===0?" ":""))}d.push(g.join(""))}return d.join(`
-`)}return{to_workbook:o,to_sheet:f,from_sheet:l}}(),Hn=function(){function e(S,P,F){if(S){rr(S,S.l||0);for(var A=F.Enum||ir;S.l<S.length;){var H=S.read_shift(2),ie=A[H]||A[65535],se=S.read_shift(2),ae=S.l+se,q=ie.f&&ie.f(S,se,F);if(S.l=ae,P(q,ie,H))return}}}function t(S,P){switch(P.type){case"base64":return r(vr(Cr(S)),P);case"binary":return r(vr(S),P);case"buffer":case"array":return r(S,P)}throw"Unsupported type "+P.type}function r(S,P){if(!S)return S;var F=P||{},A=F.dense?[]:{},H="Sheet1",ie="",se=0,ae={},q=[],Te=[],ce={s:{r:0,c:0},e:{r:0,c:0}},Ke=F.sheetRows||0;if(S[2]==0&&(S[3]==8||S[3]==9)&&S.length>=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)F.Enum=ir,e(S,function(ne,sr,wr){switch(wr){case 0:F.vers=ne,ne>=4096&&(F.qpro=!0);break;case 6:ce=ne;break;case 204:ne&&(ie=ne);break;case 222:ie=ne;break;case 15:case 51:F.qpro||(ne[1].v=ne[1].v.slice(1));case 13:case 14:case 16:wr==14&&(ne[2]&112)==112&&(ne[2]&15)>1&&(ne[2]&15)<15&&(ne[1].z=F.dateNF||ye[14],F.cellDates&&(ne[1].t="d",ne[1].v=xa(ne[1].v))),F.qpro&&ne[3]>se&&(A["!ref"]=De(ce),ae[H]=A,q.push(H),A=F.dense?[]:{},ce={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H=ie||"Sheet"+(se+1),ie="");var Br=F.dense?(A[ne[0].r]||[])[ne[0].c]:A[me(ne[0])];if(Br){Br.t=ne[1].t,Br.v=ne[1].v,ne[1].z!=null&&(Br.z=ne[1].z),ne[1].f!=null&&(Br.f=ne[1].f);break}F.dense?(A[ne[0].r]||(A[ne[0].r]=[]),A[ne[0].r][ne[0].c]=ne[1]):A[me(ne[0])]=ne[1];break}},F);else if(S[2]==26||S[2]==14)F.Enum=Qe,S[2]==14&&(F.qpro=!0,S.l=0),e(S,function(ne,sr,wr){switch(wr){case 204:H=ne;break;case 22:ne[1].v=ne[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ne[3]>se&&(A["!ref"]=De(ce),ae[H]=A,q.push(H),A=F.dense?[]:{},ce={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H="Sheet"+(se+1)),Ke>0&&ne[0].r>=Ke)break;F.dense?(A[ne[0].r]||(A[ne[0].r]=[]),A[ne[0].r][ne[0].c]=ne[1]):A[me(ne[0])]=ne[1],ce.e.c<ne[0].c&&(ce.e.c=ne[0].c),ce.e.r<ne[0].r&&(ce.e.r=ne[0].r);break;case 27:ne[14e3]&&(Te[ne[14e3][0]]=ne[14e3][1]);break;case 1537:Te[ne[0]]=ne[1],ne[0]==se&&(H=ne[1]);break}},F);else throw new Error("Unrecognized LOTUS BOF "+S[2]);if(A["!ref"]=De(ce),ae[ie||H]=A,q.push(ie||H),!Te.length)return{SheetNames:q,Sheets:ae};for(var xe={},Er=[],Ae=0;Ae<Te.length;++Ae)ae[q[Ae]]?(Er.push(Te[Ae]||q[Ae]),xe[Te[Ae]]=ae[Te[Ae]]||ae[q[Ae]]):(Er.push(Te[Ae]),xe[Te[Ae]]={"!ref":"A1"});return{SheetNames:Er,Sheets:xe}}function n(S,P){var F=P||{};if(+F.codepage>=0&&wt(+F.codepage),F.type=="string")throw new Error("Cannot write WK1 to JS string");var A=Je(),H=Ee(S["!ref"]),ie=Array.isArray(S),se=[];J(A,0,i(1030)),J(A,6,o(H));for(var ae=Math.min(H.e.r,8191),q=H.s.r;q<=ae;++q)for(var Te=He(q),ce=H.s.c;ce<=H.e.c;++ce){q===H.s.r&&(se[ce]=Xe(ce));var Ke=se[ce]+Te,xe=ie?(S[q]||[])[ce]:S[Ke];if(!(!xe||xe.t=="z"))if(xe.t=="n")(xe.v|0)==xe.v&&xe.v>=-32768&&xe.v<=32767?J(A,13,v(q,ce,xe.v)):J(A,14,u(q,ce,xe.v));else{var Er=Or(xe);J(A,15,d(q,ce,Er.slice(0,239)))}}return J(A,1),A.end()}function a(S,P){var F=P||{};if(+F.codepage>=0&&wt(+F.codepage),F.type=="string")throw new Error("Cannot write WK3 to JS string");var A=Je();J(A,0,s(S));for(var H=0,ie=0;H<S.SheetNames.length;++H)(S.Sheets[S.SheetNames[H]]||{})["!ref"]&&J(A,27,Ne(S.SheetNames[H],ie++));var se=0;for(H=0;H<S.SheetNames.length;++H){var ae=S.Sheets[S.SheetNames[H]];if(!(!ae||!ae["!ref"])){for(var q=Ee(ae["!ref"]),Te=Array.isArray(ae),ce=[],Ke=Math.min(q.e.r,8191),xe=q.s.r;xe<=Ke;++xe)for(var Er=He(xe),Ae=q.s.c;Ae<=q.e.c;++Ae){xe===q.s.r&&(ce[Ae]=Xe(Ae));var ne=ce[Ae]+Er,sr=Te?(ae[xe]||[])[Ae]:ae[ne];if(!(!sr||sr.t=="z"))if(sr.t=="n")J(A,23,G(xe,Ae,se,sr.v));else{var wr=Or(sr);J(A,22,D(xe,Ae,se,wr.slice(0,239)))}}++se}}return J(A,1),A.end()}function i(S){var P=B(2);return P.write_shift(2,S),P}function s(S){var P=B(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var F=0,A=0,H=0,ie=0;ie<S.SheetNames.length;++ie){var se=S.SheetNames[ie],ae=S.Sheets[se];if(!(!ae||!ae["!ref"])){++H;var q=ar(ae["!ref"]);F<q.e.r&&(F=q.e.r),A<q.e.c&&(A=q.e.c)}}return F>8191&&(F=8191),P.write_shift(2,F),P.write_shift(1,H),P.write_shift(1,A),P.write_shift(2,0),P.write_shift(2,0),P.write_shift(1,1),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(4,0),P}function f(S,P,F){var A={s:{c:0,r:0},e:{c:0,r:0}};return P==8&&F.qpro?(A.s.c=S.read_shift(1),S.l++,A.s.r=S.read_shift(2),A.e.c=S.read_shift(1),S.l++,A.e.r=S.read_shift(2),A):(A.s.c=S.read_shift(2),A.s.r=S.read_shift(2),P==12&&F.qpro&&(S.l+=2),A.e.c=S.read_shift(2),A.e.r=S.read_shift(2),P==12&&F.qpro&&(S.l+=2),A.s.c==65535&&(A.s.c=A.e.c=A.s.r=A.e.r=0),A)}function o(S){var P=B(8);return P.write_shift(2,S.s.c),P.write_shift(2,S.s.r),P.write_shift(2,S.e.c),P.write_shift(2,S.e.r),P}function l(S,P,F){var A=[{c:0,r:0},{t:"n",v:0},0,0];return F.qpro&&F.vers!=20768?(A[0].c=S.read_shift(1),A[3]=S.read_shift(1),A[0].r=S.read_shift(2),S.l+=2):(A[2]=S.read_shift(1),A[0].c=S.read_shift(2),A[0].r=S.read_shift(2)),A}function c(S,P,F){var A=S.l+P,H=l(S,P,F);if(H[1].t="s",F.vers==20768){S.l++;var ie=S.read_shift(1);return H[1].v=S.read_shift(ie,"utf8"),H}return F.qpro&&S.l++,H[1].v=S.read_shift(A-S.l,"cstr"),H}function d(S,P,F){var A=B(7+F.length);A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(1,39);for(var H=0;H<A.length;++H){var ie=F.charCodeAt(H);A.write_shift(1,ie>=128?95:ie)}return A.write_shift(1,0),A}function x(S,P,F){var A=l(S,P,F);return A[1].v=S.read_shift(2,"i"),A}function v(S,P,F){var A=B(7);return A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(2,F,"i"),A}function _(S,P,F){var A=l(S,P,F);return A[1].v=S.read_shift(8,"f"),A}function u(S,P,F){var A=B(13);return A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(8,F,"f"),A}function g(S,P,F){var A=S.l+P,H=l(S,P,F);if(H[1].v=S.read_shift(8,"f"),F.qpro)S.l=A;else{var ie=S.read_shift(2);M(S.slice(S.l,S.l+ie),H),S.l+=ie}return H}function C(S,P,F){var A=P&32768;return P&=-32769,P=(A?S:0)+(P>=8192?P-16384:P),(A?"":"$")+(F?Xe(P):He(P))}var O={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function M(S,P){rr(S,0);for(var F=[],A=0,H="",ie="",se="",ae="";S.l<S.length;){var q=S[S.l++];switch(q){case 0:F.push(S.read_shift(8,"f"));break;case 1:ie=C(P[0].c,S.read_shift(2),!0),H=C(P[0].r,S.read_shift(2),!1),F.push(ie+H);break;case 2:{var Te=C(P[0].c,S.read_shift(2),!0),ce=C(P[0].r,S.read_shift(2),!1);ie=C(P[0].c,S.read_shift(2),!0),H=C(P[0].r,S.read_shift(2),!1),F.push(Te+ce+":"+ie+H)}break;case 3:if(S.l<S.length){console.error("WK1 premature formula end");return}break;case 4:F.push("("+F.pop()+")");break;case 5:F.push(S.read_shift(2));break;case 6:{for(var Ke="";q=S[S.l++];)Ke+=String.fromCharCode(q);F.push('"'+Ke.replace(/"/g,'""')+'"')}break;case 8:F.push("-"+F.pop());break;case 23:F.push("+"+F.pop());break;case 22:F.push("NOT("+F.pop()+")");break;case 20:case 21:ae=F.pop(),se=F.pop(),F.push(["AND","OR"][q-20]+"("+se+","+ae+")");break;default:if(q<32&&y[q])ae=F.pop(),se=F.pop(),F.push(se+y[q]+ae);else if(O[q]){if(A=O[q][1],A==69&&(A=S[S.l++]),A>F.length){console.error("WK1 bad formula parse 0x"+q.toString(16)+":|"+F.join("|")+"|");return}var xe=F.slice(-A);F.length-=A,F.push(O[q][0]+"("+xe.join(",")+")")}else return q<=7?console.error("WK1 invalid opcode "+q.toString(16)):q<=24?console.error("WK1 unsupported op "+q.toString(16)):q<=30?console.error("WK1 invalid opcode "+q.toString(16)):q<=115?console.error("WK1 unsupported function opcode "+q.toString(16)):console.error("WK1 unrecognized opcode "+q.toString(16))}}F.length==1?P[1].f=""+F[0]:console.error("WK1 bad formula parse |"+F.join("|")+"|")}function Y(S){var P=[{c:0,r:0},{t:"n",v:0},0];return P[0].r=S.read_shift(2),P[3]=S[S.l++],P[0].c=S[S.l++],P}function ee(S,P){var F=Y(S);return F[1].t="s",F[1].v=S.read_shift(P-4,"cstr"),F}function D(S,P,F,A){var H=B(6+A.length);H.write_shift(2,S),H.write_shift(1,F),H.write_shift(1,P),H.write_shift(1,39);for(var ie=0;ie<A.length;++ie){var se=A.charCodeAt(ie);H.write_shift(1,se>=128?95:se)}return H.write_shift(1,0),H}function b(S,P){var F=Y(S);F[1].v=S.read_shift(2);var A=F[1].v>>1;if(F[1].v&1)switch(A&7){case 0:A=(A>>3)*5e3;break;case 1:A=(A>>3)*500;break;case 2:A=(A>>3)/20;break;case 3:A=(A>>3)/200;break;case 4:A=(A>>3)/2e3;break;case 5:A=(A>>3)/2e4;break;case 6:A=(A>>3)/16;break;case 7:A=(A>>3)/64;break}return F[1].v=A,F}function L(S,P){var F=Y(S),A=S.read_shift(4),H=S.read_shift(4),ie=S.read_shift(2);if(ie==65535)return A===0&&H===3221225472?(F[1].t="e",F[1].v=15):A===0&&H===3489660928?(F[1].t="e",F[1].v=42):F[1].v=0,F;var se=ie&32768;return ie=(ie&32767)-16446,F[1].v=(1-se*2)*(H*Math.pow(2,ie+32)+A*Math.pow(2,ie)),F}function G(S,P,F,A){var H=B(14);if(H.write_shift(2,S),H.write_shift(1,F),H.write_shift(1,P),A==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var ie=0,se=0,ae=0,q=0;return A<0&&(ie=1,A=-A),se=Math.log2(A)|0,A/=Math.pow(2,se-31),q=A>>>0,q&2147483648||(A/=2,++se,q=A>>>0),A-=q,q|=2147483648,q>>>=0,A*=Math.pow(2,32),ae=A>>>0,H.write_shift(4,ae),H.write_shift(4,q),se+=16383+(ie?32768:0),H.write_shift(2,se),H}function V(S,P){var F=L(S);return S.l+=P-14,F}function j(S,P){var F=Y(S),A=S.read_shift(4);return F[1].v=A>>6,F}function re(S,P){var F=Y(S),A=S.read_shift(8,"f");return F[1].v=A,F}function ge(S,P){var F=re(S);return S.l+=P-10,F}function le(S,P){return S[S.l+P-1]==0?S.read_shift(P,"cstr"):""}function Me(S,P){var F=S[S.l++];F>P-1&&(F=P-1);for(var A="";A.length<F;)A+=String.fromCharCode(S[S.l++]);return A}function Ce(S,P,F){if(!(!F.qpro||P<21)){var A=S.read_shift(1);S.l+=17,S.l+=1,S.l+=2;var H=S.read_shift(P-21,"cstr");return[A,H]}}function cr(S,P){for(var F={},A=S.l+P;S.l<A;){var H=S.read_shift(2);if(H==14e3){for(F[H]=[0,""],F[H][0]=S.read_shift(2);S[S.l];)F[H][1]+=String.fromCharCode(S[S.l]),S.l++;S.l++}}return F}function Ne(S,P){var F=B(5+S.length);F.write_shift(2,14e3),F.write_shift(2,P);for(var A=0;A<S.length;++A){var H=S.charCodeAt(A);F[F.l++]=H>127?95:H}return F[F.l++]=0,F}var ir={0:{n:"BOF",f:ja},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:x},14:{n:"NUMBER",f:_},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:le},222:{n:"SHEETNAMELP",f:Me},65535:{n:""}},Qe={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:ee},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:b},25:{n:"FORMULA19",f:V},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:cr},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:j},38:{n:"??"},39:{n:"NUMBER27",f:re},40:{n:"FORMULA28",f:ge},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:le},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:Ce},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}(),cl=/^\s|\s$|[\t\n\r]/;function Za(e,t){if(!t.bookSST)return"";var r=[Re];r[r.length]=z("sst",null,{xmlns:ft[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(cl)&&(i+=' xml:space="preserve"'),i+=">"+pe(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function hl(e){return[e.read_shift(4),e.read_shift(4)]}function ul(e,t){return t||(t=B(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var xl=tf;function vl(e){var t=Je();W(t,159,ul(e));for(var r=0;r<e.length;++r)W(t,19,xl(e[r]));return W(t,160),t.end()}function dl(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function qa(e){var t=0,r,n=dl(e),a=n.length+1,i,s,f,o,l;for(r=Gr(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)s=r[i],f=t&16384?1:0,o=t<<1&32767,l=f|o,t=l^s;return t^52811}var pl=function(){function e(a,i){switch(i.type){case"base64":return t(Cr(a),i);case"binary":return t(a,i);case"buffer":return t(ue&&Buffer.isBuffer(a)?a.toString("binary"):Dt(a),i);case"array":return t(c0(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var s=i||{},f=s.dense?[]:{},o=a.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(c,d){Array.isArray(f)&&(f[d]=[]);for(var x=/\\\w+\b/g,v=0,_,u=-1;_=x.exec(c);){switch(_[0]){case"\\cell":var g=c.slice(v,x.lastIndex-_[0].length);if(g[0]==" "&&(g=g.slice(1)),++u,g.length){var C={v:g,t:"s"};Array.isArray(f)?f[d][u]=C:f[me({r:d,c:u})]=C}break}v=x.lastIndex}u>l.e.c&&(l.e.c=u)}),f["!ref"]=De(l),f}function r(a,i){return jr(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],s=Ee(a["!ref"]),f,o=Array.isArray(a),l=s.s.r;l<=s.e.r;++l){i.push("\\trowd\\trautofit1");for(var c=s.s.c;c<=s.e.c;++c)i.push("\\cellx"+(c+1));for(i.push("\\pard\\intbl"),c=s.s.c;c<=s.e.c;++c){var d=me({r:l,c});f=o?(a[l]||[])[c]:a[d],!(!f||f.v==null&&(!f.f||f.F))&&(i.push(" "+(f.w||(Or(f),f.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Gn(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var ml=6,yr=ml;function r0(e){return Math.floor((e+Math.round(128/yr)/256)*yr)}function t0(e){return Math.floor((e-5)/yr*100+.5)/100}function R0(e){return Math.round((e*yr+5)/yr*256)/256}function j0(e){e.width?(e.wpx=r0(e.width),e.wch=t0(e.wpx),e.MDW=yr):e.wpx?(e.wch=t0(e.wpx),e.width=R0(e.wch),e.MDW=yr):typeof e.wch=="number"&&(e.width=R0(e.wch),e.wpx=r0(e.width),e.MDW=yr),e.customWidth&&delete e.customWidth}var gl=96,Qa=gl;function n0(e){return e*96/Qa}function ei(e){return e*Qa/96}function _l(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=z("numFmt",null,{numFmtId:n,formatCode:pe(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=z("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Tl(e){var t=[];return t[t.length]=z("cellXfs",null),e.forEach(function(r){t[t.length]=z("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=z("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function ri(e,t){var r=[Re,z("styleSheet",null,{xmlns:ft[0],"xmlns:vt":ke.vt})],n;return e.SSF&&(n=_l(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=Tl(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function El(e,t){var r=e.read_shift(2),n=je(e);return[r,n]}function wl(e,t,r){r||(r=B(6+4*t.length)),r.write_shift(2,e),Le(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Sl(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=cf(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var f=e.read_shift(1);f>0&&(n.family=f);var o=e.read_shift(1);switch(o>0&&(n.charset=o),e.l++,n.color=of(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=je(e),n}function Al(e,t){t||(t=B(25+4*32)),t.write_shift(2,e.sz*20),hf(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Qt(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),Le(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Fl=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],S0,yl=Tr;function Vn(e,t){t||(t=B(4*3+8*7+16*1)),S0||(S0=k0(Fl));var r=S0[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Qt({auto:1},t),Qt({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Cl(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function ti(e,t,r){r||(r=B(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function vt(e,t){return t||(t=B(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Ol=Tr;function Dl(e,t){return t||(t=B(51)),t.write_shift(1,0),vt(null,t),vt(null,t),vt(null,t),vt(null,t),vt(null,t),t.length>t.l?t.slice(0,t.l):t}function Rl(e,t){return t||(t=B(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),qt(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function Il(e,t,r){var n=B(2052);return n.write_shift(4,e),qt(t,n),qt(r,n),n.length>n.l?n.slice(0,n.l):n}function Nl(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(W(e,615,pr(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&W(e,44,wl(a,t[a]))}),W(e,616))}}function kl(e){var t=1;W(e,611,pr(t)),W(e,43,Al({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),W(e,612)}function Pl(e){var t=2;W(e,603,pr(t)),W(e,45,Vn({patternType:"none"})),W(e,45,Vn({patternType:"gray125"})),W(e,604)}function Ll(e){var t=1;W(e,613,pr(t)),W(e,46,Dl()),W(e,614)}function Ml(e){var t=1;W(e,626,pr(t)),W(e,47,ti({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),W(e,627)}function Bl(e,t){W(e,617,pr(t.length)),t.forEach(function(r){W(e,47,ti(r,0))}),W(e,618)}function Ul(e){var t=1;W(e,619,pr(t)),W(e,48,Rl({xfId:0,builtinId:0,name:"Normal"})),W(e,620)}function bl(e){var t=0;W(e,505,pr(t)),W(e,506)}function Wl(e){var t=0;W(e,508,Il(t,"TableStyleMedium9","PivotStyleMedium4")),W(e,509)}function Hl(e,t){var r=Je();return W(r,278),Nl(r,e.SSF),kl(r),Pl(r),Ll(r),Ml(r),Bl(r,t.cellXfs),Ul(r),bl(r),Wl(r),W(r,279),r.end()}function ni(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Re];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function Gl(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:je(e)}}function Vl(e){var t=B(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Le(e.name,t),t.slice(0,t.l)}function Xl(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function jl(e){var t=B(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function Kl(e,t){var r=B(8+2*t.length);return r.write_shift(4,e),Le(t,r),r.slice(0,r.l)}function zl(e){return e.l+=4,e.read_shift(4)!=0}function Yl(e,t){var r=B(8);return r.write_shift(4,e),r.write_shift(4,1),r}function $l(){var e=Je();return W(e,332),W(e,334,pr(1)),W(e,335,Vl({name:"XLDAPR",version:12e4,flags:3496657072})),W(e,336),W(e,339,Kl(1,"XLDAPR")),W(e,52),W(e,35,pr(514)),W(e,4096,pr(0)),W(e,4097,lr(1)),W(e,36),W(e,53),W(e,340),W(e,337,Yl(1)),W(e,51,jl([[1,0]])),W(e,338),W(e,333),e.end()}function ai(){var e=[Re];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
-  <metadataTypes count="1">
-    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
-  </metadataTypes>
-  <futureMetadata name="XLDAPR" count="1">
-    <bk>
-      <extLst>
-        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
-          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
-        </ext>
-      </extLst>
-    </bk>
-  </futureMetadata>
-  <cellMetadata count="1">
-    <bk>
-      <rc t="1" v="0"/>
-    </bk>
-  </cellMetadata>
-</metadata>`),e.join("")}function Jl(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=me(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var rt=1024;function ii(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[z("xml",null,{"xmlns:v":tr.v,"xmlns:o":tr.o,"xmlns:x":tr.x,"xmlns:mv":tr.mv}).replace(/\/>/,">"),z("o:shapelayout",z("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),z("v:shapetype",[z("v:stroke",null,{joinstyle:"miter"}),z("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];rt<e*1e3;)rt+=1e3;return t.forEach(function(i){var s=Pe(i[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var o=f.type=="gradient"?z("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=z("v:fill",o,f),c={on:"t",obscured:"t"};++rt,a=a.concat(["<v:shape"+yt({id:"_x0000_s"+rt,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,z("v:shadow",null,c),z("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",We("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),We("x:AutoFill","False"),We("x:Row",String(s.r)),We("x:Column",String(s.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function si(e){var t=[Re,z("comments",null,{xmlns:ft[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var i=pe(a.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(o){o.a&&(a=r.indexOf(pe(o.a))),i.push(o.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)t.push(We("t",pe(i[0]||"")));else{for(var s=`Comment:
-    `+i[0]+`
-`,f=1;f<i.length;++f)s+=`Reply:
-    `+i[f]+`
-`;t.push(We("t",pe(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Zl(e,t,r){var n=[Re,z("ThreadedComments",null,{xmlns:ke.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var o={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?i=o.id:o.parentId=i,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(z("threadedComment",We("text",s.t||""),o))})}),n.push("</ThreadedComments>"),n.join("")}function ql(e){var t=[Re,z("personList",null,{xmlns:ke.TCMNT,"xmlns:x":ft[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(z("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function Ql(e){var t={};t.iauthor=e.read_shift(4);var r=$r(e);return t.rfx=r.s,t.ref=me(r.s),e.l+=16,t}function eo(e,t){return t==null&&(t=B(36)),t.write_shift(4,e[1].iauthor),ot(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var ro=je;function to(e){return Le(e.slice(0,54))}function no(e){var t=Je(),r=[];return W(t,628),W(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),W(t,632,to(a.a)))})}),W(t,631),W(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:Pe(n[0]),e:Pe(n[0])};W(t,635,eo([i,a])),a.t&&a.t.length>0&&W(t,637,af(a)),W(t,636),delete a.iauthor})}),W(t,634),W(t,629),t.end()}function ao(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&_e.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var fi=["xlsb","xlsm","xlam","biff8","xla"],io=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,s){var f=!1,o=!1;i.length==0?o=!0:i.charAt(0)=="["&&(o=!0,i=i.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=t.c:--c,o?l+=t.r:--l,a+(f?"":"$")+Xe(c)+(o?"":"$")+He(l)}return function(a,i){return t=i,a.replace(e,r)}}(),K0=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,z0=function(){return function(t,r){return t.replace(K0,function(n,a,i,s,f,o){var l=W0(s)-(i?0:r.c),c=b0(o)-(f?0:r.r),d=c==0?"":f?c+1:"["+c+"]",x=l==0?"":i?l+1:"["+l+"]";return a+"R"+d+"C"+x})}}();function so(e,t){return e.replace(K0,function(r,n,a,i,s,f){return n+(a=="$"?a+i:Xe(W0(i)+t.c))+(s=="$"?s+f:He(b0(f)+t.r))})}function fo(e){return e.length!=1}function Oe(e){e.l+=1}function Pr(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function li(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return oi(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=Pr(e),f=Pr(e);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}function oi(e){var t=Pr(e),r=Pr(e),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function lo(e,t,r){if(r.biff<8)return oi(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=Pr(e),s=Pr(e);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function ci(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return oo(e);var n=e.read_shift(r&&r.biff==12?4:2),a=Pr(e);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function oo(e){var t=Pr(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function co(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function ho(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return uo(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,f=(i&32768)>>15;if(i&=16383,f==1)for(;a>524287;)a-=1048576;if(s==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:s,rRel:f}}function uo(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function xo(e,t,r){var n=(e[e.l++]&96)>>5,a=li(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function vo(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var s=li(e,i,r);return[n,a,s]}function po(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function mo(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function go(e,t,r){var n=(e[e.l++]&96)>>5,a=lo(e,t-1,r);return[n,a]}function _o(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Xn(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function To(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function Eo(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function wo(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function So(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function Ao(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function hi(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function Fo(e){return e.read_shift(2),hi(e)}function yo(e){return e.read_shift(2),hi(e)}function Co(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=ci(e,0,r);return[n,a]}function Oo(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=ho(e,0,r);return[n,a]}function Do(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=ci(e,0,r);return[n,a,i]}function Ro(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[Rc[a],vi[a],n]}function Io(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:No(e);return[a,(i[0]===0?vi:Dc)[i[1]]]}function No(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function ko(e,t,r){e.l+=r&&r.biff==2?3:4}function Po(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Lo(e){return e.l++,Nt[e.read_shift(1)]}function Mo(e){return e.l++,e.read_shift(2)}function Bo(e){return e.l++,e.read_shift(1)!==0}function Uo(e){return e.l++,ct(e)}function bo(e,t,r){return e.l++,za(e,t-1,r)}function Wo(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Of(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Nt[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=ct(e);break;case 2:r[1]=Nf(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Ho(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?$r:Lf)(e));return a}function Go(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,s=[];i!=n&&(s[i]=[]);++i)for(var f=0;f!=a;++f)s[i][f]=Wo(e,r.biff);return s}function Vo(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function Xo(e,t,r){if(r.biff==5)return jo(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function jo(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function Ko(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function zo(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Yo(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function $o(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var Jo=Tr,Zo=Tr,qo=Tr;function kt(e,t,r){return e.l+=2,[co(e)]}function Y0(e){return e.l+=6,[]}var Qo=kt,ec=Y0,rc=Y0,tc=kt;function ui(e){return e.l+=2,[ja(e),e.read_shift(2)&1]}var nc=kt,ac=ui,ic=Y0,sc=kt,fc=kt,lc=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function oc(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),s=lc[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:a,C:i}}function cc(e){return e.l+=2,[e.read_shift(4)]}function hc(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function uc(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function xc(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function vc(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function dc(e){return e.l+=4,[0,0]}var jn={1:{n:"PtgExp",f:Po},2:{n:"PtgTbl",f:qo},3:{n:"PtgAdd",f:Oe},4:{n:"PtgSub",f:Oe},5:{n:"PtgMul",f:Oe},6:{n:"PtgDiv",f:Oe},7:{n:"PtgPower",f:Oe},8:{n:"PtgConcat",f:Oe},9:{n:"PtgLt",f:Oe},10:{n:"PtgLe",f:Oe},11:{n:"PtgEq",f:Oe},12:{n:"PtgGe",f:Oe},13:{n:"PtgGt",f:Oe},14:{n:"PtgNe",f:Oe},15:{n:"PtgIsect",f:Oe},16:{n:"PtgUnion",f:Oe},17:{n:"PtgRange",f:Oe},18:{n:"PtgUplus",f:Oe},19:{n:"PtgUminus",f:Oe},20:{n:"PtgPercent",f:Oe},21:{n:"PtgParen",f:Oe},22:{n:"PtgMissArg",f:Oe},23:{n:"PtgStr",f:bo},26:{n:"PtgSheet",f:hc},27:{n:"PtgEndSheet",f:uc},28:{n:"PtgErr",f:Lo},29:{n:"PtgBool",f:Bo},30:{n:"PtgInt",f:Mo},31:{n:"PtgNum",f:Uo},32:{n:"PtgArray",f:_o},33:{n:"PtgFunc",f:Ro},34:{n:"PtgFuncVar",f:Io},35:{n:"PtgName",f:Vo},36:{n:"PtgRef",f:Co},37:{n:"PtgArea",f:xo},38:{n:"PtgMemArea",f:Ko},39:{n:"PtgMemErr",f:Jo},40:{n:"PtgMemNoMem",f:Zo},41:{n:"PtgMemFunc",f:zo},42:{n:"PtgRefErr",f:Yo},43:{n:"PtgAreaErr",f:po},44:{n:"PtgRefN",f:Oo},45:{n:"PtgAreaN",f:go},46:{n:"PtgMemAreaN",f:xc},47:{n:"PtgMemNoMemN",f:vc},57:{n:"PtgNameX",f:Xo},58:{n:"PtgRef3d",f:Do},59:{n:"PtgArea3d",f:vo},60:{n:"PtgRefErr3d",f:$o},61:{n:"PtgAreaErr3d",f:mo},255:{}},pc={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},mc={1:{n:"PtgElfLel",f:ui},2:{n:"PtgElfRw",f:sc},3:{n:"PtgElfCol",f:Qo},6:{n:"PtgElfRwV",f:fc},7:{n:"PtgElfColV",f:tc},10:{n:"PtgElfRadical",f:nc},11:{n:"PtgElfRadicalS",f:ic},13:{n:"PtgElfColS",f:ec},15:{n:"PtgElfColSV",f:rc},16:{n:"PtgElfRadicalLel",f:ac},25:{n:"PtgList",f:oc},29:{n:"PtgSxName",f:cc},255:{}},gc={0:{n:"PtgAttrNoop",f:dc},1:{n:"PtgAttrSemi",f:Ao},2:{n:"PtgAttrIf",f:wo},4:{n:"PtgAttrChoose",f:To},8:{n:"PtgAttrGoto",f:Eo},16:{n:"PtgAttrSum",f:ko},32:{n:"PtgAttrBaxcel",f:Xn},33:{n:"PtgAttrBaxcel",f:Xn},64:{n:"PtgAttrSpace",f:Fo},65:{n:"PtgAttrSpaceSemi",f:yo},128:{n:"PtgAttrIfError",f:So},255:{}};function _c(e,t,r,n){if(n.biff<8)return Tr(e,t);for(var a=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=Go(e,0,n),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=Ho(e,r[s][1],n),i.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=a-e.l,t!==0&&i.push(Tr(e,t)),i}function Tc(e,t,r){for(var n=e.l+t,a,i,s=[];n!=e.l;)t=n-e.l,i=e[e.l],a=jn[i]||jn[pc[i]],(i===24||i===25)&&(a=(i===24?mc:gc)[e[e.l+1]]),!a||!a.f?Tr(e,t):s.push([a.n,a.f(e,t,r)]);return s}function Ec(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],i=0;i<n.length;++i){var s=n[i];if(s)switch(s[0]){case 2:a.push('"'+s[1].replace(/"/g,'""')+'"');break;default:a.push(s[1])}else a.push("")}t.push(a.join(","))}return t.join(";")}var wc={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Sc(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function xi(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Kn(e,t,r){var n=xi(e,t,r);return n=="#REF"?n:Sc(n,r)}function st(e,t,r,n,a){var i=a&&a.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},f=[],o,l,c,d=0,x=0,v,_="";if(!e[0]||!e[0][0])return"";for(var u=-1,g="",C=0,O=e[0].length;C<O;++C){var y=e[0][C];switch(y[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=f.pop(),l=f.pop(),u>=0){switch(e[0][u][1][0]){case 0:g=Fe(" ",e[0][u][1][1]);break;case 1:g=Fe("\r",e[0][u][1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}l=l+g,u=-1}f.push(l+wc[y[0]]+o);break;case"PtgIsect":o=f.pop(),l=f.pop(),f.push(l+" "+o);break;case"PtgUnion":o=f.pop(),l=f.pop(),f.push(l+","+o);break;case"PtgRange":o=f.pop(),l=f.pop(),f.push(l+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=_t(y[1][1],s,a),f.push(Tt(c,i));break;case"PtgRefN":c=r?_t(y[1][1],r,a):y[1][1],f.push(Tt(c,i));break;case"PtgRef3d":d=y[1][1],c=_t(y[1][2],s,a),_=Kn(n,d,a),f.push(_+"!"+Tt(c,i));break;case"PtgFunc":case"PtgFuncVar":var M=y[1][0],Y=y[1][1];M||(M=0),M&=127;var ee=M==0?[]:f.slice(-M);f.length-=M,Y==="User"&&(Y=ee.shift()),f.push(Y+"("+ee.join(",")+")");break;case"PtgBool":f.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(y[1]);break;case"PtgNum":f.push(String(y[1]));break;case"PtgStr":f.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(y[1]);break;case"PtgAreaN":v=Rn(y[1][1],r?{s:r}:s,a),f.push(E0(v,a));break;case"PtgArea":v=Rn(y[1][1],s,a),f.push(E0(v,a));break;case"PtgArea3d":d=y[1][1],v=y[1][2],_=Kn(n,d,a),f.push(_+"!"+E0(v,a));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":x=y[1][2];var D=(n.names||[])[x-1]||(n[0]||[])[x],b=D?D.Name:"SH33TJSNAME"+String(x);b&&b.slice(0,6)=="_xlfn."&&!a.xlfn&&(b=b.slice(6)),f.push(b);break;case"PtgNameX":var L=y[1][1];x=y[1][2];var G;if(a.biff<=5)L<0&&(L=-L),n[L]&&(G=n[L][x]);else{var V="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][x]&&n[L][x].itab>0&&(V=n.SheetNames[n[L][x].itab-1]+"!"):V=n.SheetNames[x-1]+"!"),n[L]&&n[L][x])V+=n[L][x].Name;else if(n[0]&&n[0][x])V+=n[0][x].Name;else{var j=(xi(n,L,a)||"").split(";;");j[x-1]?V=j[x-1]:V+="SH33TJSERRX"}f.push(V);break}G||(G={Name:"SH33TJSERRY"}),f.push(G.Name);break;case"PtgParen":var re="(",ge=")";if(u>=0){switch(g="",e[0][u][1][0]){case 2:re=Fe(" ",e[0][u][1][1])+re;break;case 3:re=Fe("\r",e[0][u][1][1])+re;break;case 4:ge=Fe(" ",e[0][u][1][1])+ge;break;case 5:ge=Fe("\r",e[0][u][1][1])+ge;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}u=-1}f.push(re+f.pop()+ge);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:y[1][1],r:y[1][0]};var le={c:r.c,r:r.r};if(n.sharedf[me(c)]){var Me=n.sharedf[me(c)];f.push(st(Me,s,le,n,a))}else{var Ce=!1;for(o=0;o!=n.arrayf.length;++o)if(l=n.arrayf[o],!(c.c<l[0].s.c||c.c>l[0].e.c)&&!(c.r<l[0].s.r||c.r>l[0].e.r)){f.push(st(l[1],s,le,n,a)),Ce=!0;break}Ce||f.push(y[1])}break;case"PtgArray":f.push("{"+Ec(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":u=C;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var cr=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&u>=0&&cr.indexOf(e[0][C][0])==-1){y=e[0][u];var Ne=!0;switch(y[1][0]){case 4:Ne=!1;case 0:g=Fe(" ",y[1][1]);break;case 5:Ne=!1;case 1:g=Fe("\r",y[1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}f.push((Ne?g:"")+f.pop()+(Ne?"":g)),u=-1}}if(f.length>1&&a.WTF)throw new Error("bad formula stack");return f[0]}function Ac(e){if(e==null){var t=B(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Vr(e);return Vr(0)}function Fc(e,t,r,n,a){var i=Xr(t,r,a),s=Ac(e.v),f=B(6),o=33;f.write_shift(2,o),f.write_shift(4,0);for(var l=B(e.bf.length),c=0;c<e.bf.length;++c)l[c]=e.bf[c];var d=be([i,s,f,l]);return d}function h0(e,t,r){var n=e.read_shift(4),a=Tc(e,n,r),i=e.read_shift(4),s=i>0?_c(e,i,a,r):null;return[a,s]}var yc=h0,u0=h0,Cc=h0,Oc=h0,Dc={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},vi={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Rc={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Ic(e){var t="of:="+e.replace(K0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function Nc(e){return e.replace(/\./,"!")}var Et=typeof Map<"u";function $0(e,t,r){var n=0,a=e.length;if(r){if(Et?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=Et?r.get(t):r[t];n<i.length;++n)if(e[i[n]].t===t)return e.Count++,i[n]}}else for(;n<a;++n)if(e[n].t===t)return e.Count++,n;return e[a]={t},e.Count++,e.Unique++,r&&(Et?(r.has(t)||r.set(t,[]),r.get(t).push(a)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(a))),a}function x0(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(yr=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=t0(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=R0(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function di(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Mr(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){ca(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function kc(e,t,r){if(e&&e["!ref"]){var n=Ee(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function Pc(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+De(e[r])+'"/>';return t+"</mergeCells>"}function Lc(e,t,r,n,a){var i=!1,s={},f=null;if(n.bookType!=="xlsx"&&t.vbaraw){var o=t.SheetNames[r];try{t.Workbook&&(o=t.Workbook.Sheets[r].CodeName||o)}catch{}i=!0,s.codeName=Ft(pe(o))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),f=(f||"")+z("outlinePr",null,l)}!i&&!f||(a[a.length]=z("sheetPr",f,s))}var Mc=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Bc=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Uc(e){var t={sheet:1};return Mc.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),Bc.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=qa(e.password).toString(16).toUpperCase()),z("sheetProtection",null,t)}function bc(e){return di(e),z("pageMargins",null,e)}function Wc(e,t){for(var r=["<cols>"],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=z("col",null,x0(a,n)));return r[r.length]="</cols>",r.join("")}function Hc(e,t,r,n){var a=typeof e.ref=="string"?e.ref:De(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,s=ar(a);s.s.r==s.e.r&&(s.e.r=ar(t["!ref"]).e.r,a=De(s));for(var f=0;f<i.length;++f){var o=i[f];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==n){o.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return f==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),z("autoFilter",null,{ref:a})}function Gc(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),z("sheetViews",z("sheetView",null,a),{})}function Vc(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=Nt[e.v];break;case"d":n&&n.cellDates?a=$e(e.v,-1).toISOString():(e=qe(e),e.t="n",a=""+(e.v=Ze($e(e.v)))),typeof e.z>"u"&&(e.z=ye[14]);break;default:a=e.v;break}var f=We("v",pe(a)),o={r:t},l=Mr(n.cellXfs,e,n);switch(l!==0&&(o.s=l),e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){f=We("v",""+$0(n.Strings,e.v,n.revStrings)),o.t="s";break}o.t="str";break}if(e.t!=i&&(e.t=i,e.v=s),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;f=z("f",pe(e.f),c)+(e.v!=null?f:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(o.cm=1),z("c",f,o)}function Xc(e,t,r,n){var a=[],i=[],s=Ee(e["!ref"]),f="",o,l="",c=[],d=0,x=0,v=e["!rows"],_=Array.isArray(e),u={r:l},g,C=-1;for(x=s.s.c;x<=s.e.c;++x)c[x]=Xe(x);for(d=s.s.r;d<=s.e.r;++d){for(i=[],l=He(d),x=s.s.c;x<=s.e.c;++x){o=c[x]+l;var O=_?(e[d]||[])[x]:e[o];O!==void 0&&(f=Vc(O,o,e,t))!=null&&i.push(f)}(i.length>0||v&&v[d])&&(u={r:l},v&&v[d]&&(g=v[d],g.hidden&&(u.hidden=1),C=-1,g.hpx?C=n0(g.hpx):g.hpt&&(C=g.hpt),C>-1&&(u.ht=C,u.customHeight=1),g.level&&(u.outlineLevel=g.level)),a[a.length]=z("row",i.join(""),u))}if(v)for(;d<v.length;++d)v&&v[d]&&(u={r:d+1},g=v[d],g.hidden&&(u.hidden=1),C=-1,g.hpx?C=n0(g.hpx):g.hpt&&(C=g.hpt),C>-1&&(u.ht=C,u.customHeight=1),g.level&&(u.outlineLevel=g.level),a[a.length]=z("row","",u));return a.join("")}function pi(e,t,r,n){var a=[Re,z("worksheet",null,{xmlns:ft[0],"xmlns:r":ke.r})],i=r.SheetNames[e],s=0,f="",o=r.Sheets[i];o==null&&(o={});var l=o["!ref"]||"A1",c=Ee(l);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),l=De(c)}n||(n={}),o["!comments"]=[];var d=[];Lc(o,r,e,t,a),a[a.length]=z("dimension",null,{ref:l}),a[a.length]=Gc(o,t,e,r),t.sheetFormat&&(a[a.length]=z("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),o["!cols"]!=null&&o["!cols"].length>0&&(a[a.length]=Wc(o,o["!cols"])),a[s=a.length]="<sheetData/>",o["!links"]=[],o["!ref"]!=null&&(f=Xc(o,t),f.length>0&&(a[a.length]=f)),a.length>s+1&&(a[a.length]="</sheetData>",a[s]=a[s].replace("/>",">")),o["!protect"]&&(a[a.length]=Uc(o["!protect"])),o["!autofilter"]!=null&&(a[a.length]=Hc(o["!autofilter"],o,r,e)),o["!merges"]!=null&&o["!merges"].length>0&&(a[a.length]=Pc(o["!merges"]));var x=-1,v,_=-1;return o["!links"].length>0&&(a[a.length]="<hyperlinks>",o["!links"].forEach(function(u){u[1].Target&&(v={ref:u[0]},u[1].Target.charAt(0)!="#"&&(_=de(n,-1,pe(u[1].Target).replace(/#.*$/,""),he.HLINK),v["r:id"]="rId"+_),(x=u[1].Target.indexOf("#"))>-1&&(v.location=pe(u[1].Target.slice(x+1))),u[1].Tooltip&&(v.tooltip=pe(u[1].Tooltip)),a[a.length]=z("hyperlink",null,v))}),a[a.length]="</hyperlinks>"),delete o["!links"],o["!margins"]!=null&&(a[a.length]=bc(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=We("ignoredErrors",z("ignoredError",null,{numberStoredAsText:1,sqref:l}))),d.length>0&&(_=de(n,-1,"../drawings/drawing"+(e+1)+".xml",he.DRAW),a[a.length]=z("drawing",null,{"r:id":"rId"+_}),o["!drawing"]=d),o["!comments"].length>0&&(_=de(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",he.VML),a[a.length]=z("legacyDrawing",null,{"r:id":"rId"+_}),o["!legacy"]=_),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function jc(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function Kc(e,t,r){var n=B(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=n0(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var f=0,o=n.l;n.l+=4;for(var l={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var d=-1,x=-1,v=c<<10;v<c+1<<10;++v){l.c=v;var _=Array.isArray(r)?(r[l.r]||[])[l.c]:r[me(l)];_&&(d<0&&(d=v),x=v)}d<0||(++f,n.write_shift(4,d),n.write_shift(4,x))}var u=n.l;return n.l=o,n.write_shift(4,f),n.l=u,n.length>n.l?n.slice(0,n.l):n}function zc(e,t,r,n){var a=Kc(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&W(e,0,a)}var Yc=$r,$c=ot;function Jc(){}function Zc(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=sf(e),r}function qc(e,t,r){r==null&&(r=B(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Qt({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Ia(e,r),r.slice(0,r.l)}function Qc(e){var t=or(e);return[t]}function e1(e,t,r){return r==null&&(r=B(8)),Kr(t,r)}function r1(e){var t=zr(e);return[t]}function t1(e,t,r){return r==null&&(r=B(4)),Yr(t,r)}function n1(e){var t=or(e),r=e.read_shift(1);return[t,r,"b"]}function a1(e,t,r){return r==null&&(r=B(9)),Kr(t,r),r.write_shift(1,e.v?1:0),r}function i1(e){var t=zr(e),r=e.read_shift(1);return[t,r,"b"]}function s1(e,t,r){return r==null&&(r=B(5)),Yr(t,r),r.write_shift(1,e.v?1:0),r}function f1(e){var t=or(e),r=e.read_shift(1);return[t,r,"e"]}function l1(e,t,r){return r==null&&(r=B(9)),Kr(t,r),r.write_shift(1,e.v),r}function o1(e){var t=zr(e),r=e.read_shift(1);return[t,r,"e"]}function c1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function h1(e){var t=or(e),r=e.read_shift(4);return[t,r,"s"]}function u1(e,t,r){return r==null&&(r=B(12)),Kr(t,r),r.write_shift(4,t.v),r}function x1(e){var t=zr(e),r=e.read_shift(4);return[t,r,"s"]}function v1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),r.write_shift(4,t.v),r}function d1(e){var t=or(e),r=ct(e);return[t,r,"n"]}function p1(e,t,r){return r==null&&(r=B(16)),Kr(t,r),Vr(e.v,r),r}function m1(e){var t=zr(e),r=ct(e);return[t,r,"n"]}function g1(e,t,r){return r==null&&(r=B(12)),Yr(t,r),Vr(e.v,r),r}function _1(e){var t=or(e),r=Na(e);return[t,r,"n"]}function T1(e,t,r){return r==null&&(r=B(12)),Kr(t,r),ka(e.v,r),r}function E1(e){var t=zr(e),r=Na(e);return[t,r,"n"]}function w1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),ka(e.v,r),r}function S1(e){var t=or(e),r=H0(e);return[t,r,"is"]}function A1(e){var t=or(e),r=je(e);return[t,r,"str"]}function F1(e,t,r){return r==null&&(r=B(12+4*e.v.length)),Kr(t,r),Le(e.v,r),r.length>r.l?r.slice(0,r.l):r}function y1(e){var t=zr(e),r=je(e);return[t,r,"str"]}function C1(e,t,r){return r==null&&(r=B(8+4*e.v.length)),Yr(t,r),Le(e.v,r),r.length>r.l?r.slice(0,r.l):r}function O1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"b"];if(r.cellFormula){e.l+=2;var f=u0(e,n-e.l,r);s[3]=st(f,null,a,r.supbooks,r)}else e.l=n;return s}function D1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"e"];if(r.cellFormula){e.l+=2;var f=u0(e,n-e.l,r);s[3]=st(f,null,a,r.supbooks,r)}else e.l=n;return s}function R1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=ct(e),s=[a,i,"n"];if(r.cellFormula){e.l+=2;var f=u0(e,n-e.l,r);s[3]=st(f,null,a,r.supbooks,r)}else e.l=n;return s}function I1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=je(e),s=[a,i,"str"];if(r.cellFormula){e.l+=2;var f=u0(e,n-e.l,r);s[3]=st(f,null,a,r.supbooks,r)}else e.l=n;return s}var N1=$r,k1=ot;function P1(e,t){return t==null&&(t=B(4)),t.write_shift(4,e),t}function L1(e,t){var r=e.l+t,n=$r(e),a=G0(e),i=je(e),s=je(e),f=je(e);e.l=r;var o={rfx:n,relId:a,loc:i,display:f};return s&&(o.Tooltip=s),o}function M1(e,t){var r=B(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));ot({s:Pe(e[0]),e:Pe(e[0])},r),V0("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return Le(a||"",r),Le(e[1].Tooltip||"",r),Le("",r),r.slice(0,r.l)}function B1(){}function U1(e,t,r){var n=e.l+t,a=Pa(e),i=e.read_shift(1),s=[a];if(s[2]=i,r.cellFormula){var f=yc(e,n-e.l,r);s[1]=f}else e.l=n;return s}function b1(e,t,r){var n=e.l+t,a=$r(e),i=[a];if(r.cellFormula){var s=Oc(e,n-e.l,r);i[1]=s,e.l=n}else e.l=n;return i}function W1(e,t,r){r==null&&(r=B(18));var n=x0(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var mi=["left","right","top","bottom","header","footer"];function H1(e){var t={};return mi.forEach(function(r){t[r]=ct(e)}),t}function G1(e,t){return t==null&&(t=B(6*8)),di(e),mi.forEach(function(r){Vr(e[r],t)}),t}function V1(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function X1(e,t,r){r==null&&(r=B(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function j1(e){var t=B(24);return t.write_shift(4,4),t.write_shift(4,1),ot(e,t),t}function K1(e,t){return t==null&&(t=B(16*4+2)),t.write_shift(2,e.password?qa(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function z1(){}function Y1(){}function $1(e,t,r,n,a,i,s){if(t.v===void 0)return!1;var f="";switch(t.t){case"b":f=t.v?"1":"0";break;case"d":t=qe(t),t.z=t.z||ye[14],t.v=Ze($e(t.v)),t.t="n";break;case"n":case"e":f=""+t.v;break;default:f=t.v;break}var o={r,c:n};switch(o.s=Mr(a.cellXfs,t,a),t.l&&i["!links"].push([me(o),t.l]),t.c&&i["!comments"].push([me(o),t.c]),t.t){case"s":case"str":return a.bookSST?(f=$0(a.Strings,t.v,a.revStrings),o.t="s",o.v=f,s?W(e,18,v1(t,o)):W(e,7,u1(t,o))):(o.t="str",s?W(e,17,C1(t,o)):W(e,6,F1(t,o))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?W(e,13,w1(t,o)):W(e,2,T1(t,o)):s?W(e,16,g1(t,o)):W(e,5,p1(t,o)),!0;case"b":return o.t="b",s?W(e,15,s1(t,o)):W(e,4,a1(t,o)),!0;case"e":return o.t="e",s?W(e,14,c1(t,o)):W(e,3,l1(t,o)),!0}return s?W(e,12,t1(t,o)):W(e,1,e1(t,o)),!0}function J1(e,t,r,n){var a=Ee(t["!ref"]||"A1"),i,s="",f=[];W(e,145);var o=Array.isArray(t),l=a.e.r;t["!rows"]&&(l=Math.max(a.e.r,t["!rows"].length-1));for(var c=a.s.r;c<=l;++c){s=He(c),zc(e,t,a,c);var d=!1;if(c<=a.e.r)for(var x=a.s.c;x<=a.e.c;++x){c===a.s.r&&(f[x]=Xe(x)),i=f[x]+s;var v=o?(t[c]||[])[x]:t[i];if(!v){d=!1;continue}d=$1(e,v,c,x,n,t,d)}}W(e,146)}function Z1(e,t){!t||!t["!merges"]||(W(e,177,P1(t["!merges"].length)),t["!merges"].forEach(function(r){W(e,176,k1(r))}),W(e,178))}function q1(e,t){!t||!t["!cols"]||(W(e,390),t["!cols"].forEach(function(r,n){r&&W(e,60,W1(n,r))}),W(e,391))}function Q1(e,t){!t||!t["!ref"]||(W(e,648),W(e,649,j1(Ee(t["!ref"]))),W(e,650))}function eh(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=de(r,-1,n[1].Target.replace(/#.*$/,""),he.HLINK);W(e,494,M1(n,a))}}),delete t["!links"]}function rh(e,t,r,n){if(t["!comments"].length>0){var a=de(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",he.VML);W(e,551,V0("rId"+a)),t["!legacy"]=a}}function th(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:De(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,f=ar(i);f.s.r==f.e.r&&(f.e.r=ar(t["!ref"]).e.r,i=De(f));for(var o=0;o<s.length;++o){var l=s[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}o==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),W(e,161,ot(Ee(i))),W(e,162)}}function nh(e,t,r){W(e,133),W(e,137,X1(t,r)),W(e,138),W(e,134)}function ah(e,t){t["!protect"]&&W(e,535,K1(t["!protect"]))}function ih(e,t,r,n){var a=Je(),i=r.SheetNames[e],s=r.Sheets[i]||{},f=i;try{r&&r.Workbook&&(f=r.Workbook.Sheets[e].CodeName||f)}catch{}var o=Ee(s["!ref"]||"A1");if(o.e.c>16383||o.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383),o.e.r=Math.min(o.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],W(a,129),(r.vbaraw||s["!outline"])&&W(a,147,qc(f,s["!outline"])),W(a,148,$c(o)),nh(a,s,r.Workbook),q1(a,s),J1(a,s,e,t),ah(a,s),th(a,s,r,e),Z1(a,s),eh(a,s,n),s["!margins"]&&W(a,476,G1(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&Q1(a,s),rh(a,s,e,n),W(a,130),a.end()}function sh(e,t){e.l+=10;var r=je(e);return{name:r}}var fh=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function lh(e){return!e.Workbook||!e.Workbook.WBProps?"false":Bs(e.Workbook.WBProps.date1904)?"true":"false"}var oh="][*?/\\".split("");function gi(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return oh.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function ch(e,t,r){e.forEach(function(n,a){gi(n);for(var i=0;i<a;++i)if(n==e[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var s=t[a]&&t[a].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function hh(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];ch(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)kc(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function _i(e){var t=[Re];t[t.length]=z("workbook",null,{xmlns:ft[0],"xmlns:r":ke.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(fh.forEach(function(f){e.Workbook.WBProps[f[0]]!=null&&e.Workbook.WBProps[f[0]]!=f[1]&&(n[f[0]]=e.Workbook.WBProps[f[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=z("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a[0]&&a[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:pe(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=z("sheet",null,s)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(f){var o={name:f.Name};f.Comment&&(o.comment=f.Comment),f.Sheet!=null&&(o.localSheetId=""+f.Sheet),f.Hidden&&(o.hidden="1"),f.Ref&&(t[t.length]=z("definedName",pe(f.Ref),o))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function uh(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=D0(e),r.name=je(e),r}function xh(e,t){return t||(t=B(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),V0(e.strRelID,t),Le(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function vh(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?je(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function dh(e,t){t||(t=B(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Ia(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function ph(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=ff(e),s=Cc(e,0,r),f=G0(e);e.l=n;var o={Name:i,Ptg:s};return a<268435455&&(o.Sheet=a),f&&(o.Comment=f),o}function mh(e,t){W(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};W(e,156,xh(a))}W(e,144)}function gh(e,t){t||(t=B(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return Le("SheetJS",t),Le(Kt.version,t),Le(Kt.version,t),Le("7262",t),t.length>t.l?t.slice(0,t.l):t}function _h(e,t){t||(t=B(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function Th(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&i==-1&&(i=n);i>a||(W(e,135),W(e,158,_h(a)),W(e,136))}}function Eh(e,t){var r=Je();return W(r,131),W(r,128,gh()),W(r,153,dh(e.Workbook&&e.Workbook.WBProps||null)),Th(r,e),mh(r,e),W(r,132),r.end()}function wh(e,t,r){return(t.slice(-4)===".bin"?Eh:_i)(e)}function Sh(e,t,r,n,a){return(t.slice(-4)===".bin"?ih:pi)(e,r,n,a)}function Ah(e,t,r){return(t.slice(-4)===".bin"?Hl:ri)(e,r)}function Fh(e,t,r){return(t.slice(-4)===".bin"?vl:Za)(e,r)}function yh(e,t,r){return(t.slice(-4)===".bin"?no:si)(e)}function Ch(e){return(e.slice(-4)===".bin"?$l:ai)()}function Oh(e,t){var r=[];return e.Props&&r.push(Sf(e.Props,t)),e.Custprops&&r.push(Af(e.Props,e.Custprops)),r.join("")}function Dh(){return""}function Rh(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,a){var i=[];i.push(z("NumberFormat",null,{"ss:Format":pe(ye[n.numFmtId])}));var s={"ss:ID":"s"+(21+a)};r.push(z("Style",i.join(""),s))}),z("Styles",r.join(""))}function Ti(e){return z("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+z0(e.Ref,{r:0,c:0})})}function Ih(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var a=t[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(Ti(a)))}return z("Names",r.join(""))}function Nh(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,i=[],s=0;s<a.length;++s){var f=a[s];f.Sheet==r&&(f.Name.match(/^_xlfn\./)||i.push(Ti(f)))}return i.join("")}function kh(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push("<PageSetup>"),e["!margins"].header&&a.push(z("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(z("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(z("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(z("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(n.Workbook.Sheets[i]&&!n.Workbook.Sheets[i].Hidden);++i);i==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),e["!protect"]&&(a.push(We("ProtectContents","True")),e["!protect"].objects&&a.push(We("ProtectObjects","True")),e["!protect"].scenarios&&a.push(We("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(We("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(We("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&a.push("<"+s[1]+"/>")})),a.length==0?"":z("WorksheetOptions",a.join(""),{xmlns:tr.x})}function Ph(e){return e.map(function(t){var r=Ms(t.t||""),n=z("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return z("Comment",n,{"ss:Author":t.a})}).join("")}function Lh(e,t,r,n,a,i,s){if(!e||e.v==null&&e.f==null)return"";var f={};if(e.f&&(f["ss:Formula"]="="+pe(z0(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var o=Pe(e.F.slice(t.length+1));f["ss:ArrayRange"]="RC:R"+(o.r==s.r?"":"["+(o.r-s.r)+"]")+"C"+(o.c==s.c?"":"["+(o.c-s.c)+"]")}if(e.l&&e.l.Target&&(f["ss:HRef"]=pe(e.l.Target),e.l.Tooltip&&(f["x:HRefScreenTip"]=pe(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],c=0;c!=l.length;++c)l[c].s.c!=s.c||l[c].s.r!=s.r||(l[c].e.c>l[c].s.c&&(f["ss:MergeAcross"]=l[c].e.c-l[c].s.c),l[c].e.r>l[c].s.r&&(f["ss:MergeDown"]=l[c].e.r-l[c].s.r));var d="",x="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":d="Number",x=String(e.v);break;case"b":d="Boolean",x=e.v?"1":"0";break;case"e":d="Error",x=Nt[e.v];break;case"d":d="DateTime",x=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||ye[14]);break;case"s":d="String",x=Ls(e.v||"");break}var v=Mr(n.cellXfs,e,n);f["ss:StyleID"]="s"+(21+v),f["ss:Index"]=s.c+1;var _=e.v!=null?x:"",u=e.t=="z"?"":'<Data ss:Type="'+d+'">'+_+"</Data>";return(e.c||[]).length>0&&(u+=Ph(e.c)),z("Cell",u,f)}function Mh(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=ei(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function Bh(e,t,r,n){if(!e["!ref"])return"";var a=Ee(e["!ref"]),i=e["!merges"]||[],s=0,f=[];e["!cols"]&&e["!cols"].forEach(function(g,C){j0(g);var O=!!g.width,y=x0(C,g),M={"ss:Index":C+1};O&&(M["ss:Width"]=r0(y.width)),g.hidden&&(M["ss:Hidden"]="1"),f.push(z("Column",null,M))});for(var o=Array.isArray(e),l=a.s.r;l<=a.e.r;++l){for(var c=[Mh(l,(e["!rows"]||[])[l])],d=a.s.c;d<=a.e.c;++d){var x=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>d)&&!(i[s].s.r>l)&&!(i[s].e.c<d)&&!(i[s].e.r<l)){(i[s].s.c!=d||i[s].s.r!=l)&&(x=!0);break}if(!x){var v={r:l,c:d},_=me(v),u=o?(e[l]||[])[d]:e[_];c.push(Lh(u,_,e,t,r,n,v))}}c.push("</Row>"),c.length>2&&f.push(c.join(""))}return f.join("")}function Uh(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],s=i?Nh(i,t,e,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=i?Bh(i,t,e,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(kh(i,t,e,r)),n.join("")}function bh(e,t){t||(t={}),e.SSF||(e.SSF=qe(ye)),e.SSF&&(l0(),f0(e.SSF),t.revssf=o0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Mr(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(Oh(e,t)),r.push(Dh()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(z("Worksheet",Uh(n,t,e),{"ss:Name":pe(e.SheetNames[n])}));return r[2]=Rh(e,t),r[3]=Ih(e),Re+z("Workbook",r.join(""),{xmlns:tr.ss,"xmlns:o":tr.o,"xmlns:x":tr.x,"xmlns:ss":tr.ss,"xmlns:dt":tr.dt,"xmlns:html":tr.html})}var A0={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Wh(e,t){var r=[],n=[],a=[],i=0,s,f=_n(Nn,"n"),o=_n(kn,"n");if(e.Props)for(s=Ge(e.Props),i=0;i<s.length;++i)(Object.prototype.hasOwnProperty.call(f,s[i])?r:Object.prototype.hasOwnProperty.call(o,s[i])?n:a).push([s[i],e.Props[s[i]]]);if(e.Custprops)for(s=Ge(e.Custprops),i=0;i<s.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},s[i])||(Object.prototype.hasOwnProperty.call(f,s[i])?r:Object.prototype.hasOwnProperty.call(o,s[i])?n:a).push([s[i],e.Custprops[s[i]]]);var l=[];for(i=0;i<a.length;++i)Xa.indexOf(a[i][0])>-1||Ha.indexOf(a[i][0])>-1||a[i][1]!=null&&l.push(a[i]);n.length&&_e.utils.cfb_add(t,"/SummaryInformation",Un(n,A0.SI,o,kn)),(r.length||l.length)&&_e.utils.cfb_add(t,"/DocumentSummaryInformation",Un(r,A0.DSI,f,Nn,l.length?l:null,A0.UDI))}function Hh(e,t){var r=t,n=_e.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return _e.utils.cfb_add(n,a,Ei(e,r)),r.biff==8&&(e.Props||e.Custprops)&&Wh(e,n),r.biff==8&&e.vbaraw&&ao(n,_e.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Gh={0:{f:jc},1:{f:Qc},2:{f:_1},3:{f:f1},4:{f:n1},5:{f:d1},6:{f:A1},7:{f:h1},8:{f:I1},9:{f:R1},10:{f:O1},11:{f:D1},12:{f:r1},13:{f:E1},14:{f:o1},15:{f:i1},16:{f:m1},17:{f:y1},18:{f:x1},19:{f:H0},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:ph},40:{},42:{},43:{f:Sl},44:{f:El},45:{f:yl},46:{f:Ol},47:{f:Cl},48:{},49:{f:Qs},50:{},51:{f:Xl},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:rl},62:{f:S1},63:{f:Jl},64:{f:z1},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Tr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:V1},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Zc},148:{f:Yc,p:16},151:{f:B1},152:{},153:{f:vh},154:{},155:{},156:{f:uh},157:{},158:{},159:{T:1,f:hl},160:{T:-1},161:{T:1,f:$r},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:N1},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Gl},336:{T:-1},337:{f:zl,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:D0},357:{},358:{},359:{},360:{T:1},361:{},362:{f:$f},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:U1},427:{f:b1},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:H1},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Jc},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:L1},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:D0},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:ro},633:{T:1},634:{T:-1},635:{T:1,f:Ql},636:{T:-1},637:{f:nf},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:sh},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Y1},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function J(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,i),i>0&&U0(r)&&e.push(r)}}function Vh(e,t,r,n){var a=(r||[]).length||0;if(a<=8224)return J(e,t,r,a);var i=t;if(!isNaN(i)){for(var s=r.parts||[],f=0,o=0,l=0;l+(s[f]||8224)<=8224;)l+=s[f]||8224,f++;var c=e.next(4);for(c.write_shift(2,i),c.write_shift(2,l),e.push(r.slice(o,o+l)),o+=l;o<a;){for(c=e.next(4),c.write_shift(2,60),l=0;l+(s[f]||8224)<=8224;)l+=s[f]||8224,f++;c.write_shift(2,l),e.push(r.slice(o,o+l)),o+=l}}}function Pt(e,t,r){return e||(e=B(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function Xh(e,t,r,n){var a=B(9);return Pt(a,e,t),Ka(r,n||"b",a),a}function jh(e,t,r){var n=B(8+2*r.length);return Pt(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function Kh(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var a=t.t=="d"?Ze($e(t.v)):t.v;a==(a|0)&&a>=0&&a<65536?J(e,2,il(r,n,a)):J(e,3,al(r,n,a));return;case"b":case"e":J(e,5,Xh(r,n,t.v,t.t));return;case"s":case"str":J(e,4,jh(r,n,(t.v||"").slice(0,255)));return}J(e,1,Pt(null,r,n))}function zh(e,t,r,n){var a=Array.isArray(t),i=Ee(t["!ref"]||"A1"),s,f="",o=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),s=De(i)}for(var l=i.s.r;l<=i.e.r;++l){f=He(l);for(var c=i.s.c;c<=i.e.c;++c){l===i.s.r&&(o[c]=Xe(c)),s=o[c]+f;var d=a?(t[l]||[])[c]:t[s];d&&Kh(e,d,l,c)}}}function Yh(e,t){for(var r=t||{},n=Je(),a=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==r.sheet&&(a=i);if(a==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return J(n,r.biff==4?1033:r.biff==3?521:9,X0(e,16,r)),zh(n,e.Sheets[e.SheetNames[a]],a,r),J(n,10),n.end()}function $h(e,t,r){J(e,49,Hf({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function Jh(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&J(e,1054,Xf(a,t[a],r))})}function Zh(e,t){var r=B(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),J(e,2151,r),r=B(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),$a(Ee(t["!ref"]||"A1"),r),r.write_shift(4,4),J(e,2152,r)}function qh(e,t){for(var r=0;r<16;++r)J(e,224,Wn({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){J(e,224,Wn(n,0,t))})}function Qh(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];J(e,440,qf(n)),n[1].Tooltip&&J(e,2048,Qf(n))}delete t["!links"]}function eu(e,t){if(t){var r=0;t.forEach(function(n,a){++r<=256&&n&&J(e,125,tl(x0(a,n),a))})}}function ru(e,t,r,n,a){var i=16+Mr(a.cellXfs,t,a);if(t.v==null&&!t.bf){J(e,513,Xr(r,n,i));return}if(t.bf)J(e,6,Fc(t,r,n,a,i));else switch(t.t){case"d":case"n":var s=t.t=="d"?Ze($e(t.v)):t.v;J(e,515,Yf(r,n,s,i));break;case"b":case"e":J(e,517,zf(r,n,t.v,i,a,t.t));break;case"s":case"str":if(a.bookSST){var f=$0(a.Strings,t.v,a.revStrings);J(e,253,Gf(r,n,f,i))}else J(e,516,Vf(r,n,(t.v||"").slice(0,255),i,a));break;default:J(e,513,Xr(r,n,i))}}function tu(e,t,r){var n=Je(),a=r.SheetNames[e],i=r.Sheets[a]||{},s=(r||{}).Workbook||{},f=(s.Sheets||[])[e]||{},o=Array.isArray(i),l=t.biff==8,c,d="",x=[],v=Ee(i["!ref"]||"A1"),_=l?65536:16384;if(v.e.c>255||v.e.r>=_){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");v.e.c=Math.min(v.e.c,255),v.e.r=Math.min(v.e.c,_-1)}J(n,2057,X0(r,16,t)),J(n,13,lr(1)),J(n,12,lr(100)),J(n,15,Ye(!0)),J(n,17,Ye(!1)),J(n,16,Vr(.001)),J(n,95,Ye(!0)),J(n,42,Ye(!1)),J(n,43,Ye(!1)),J(n,130,lr(1)),J(n,128,Kf()),J(n,131,Ye(!1)),J(n,132,Ye(!1)),l&&eu(n,i["!cols"]),J(n,512,jf(v,t)),l&&(i["!links"]=[]);for(var u=v.s.r;u<=v.e.r;++u){d=He(u);for(var g=v.s.c;g<=v.e.c;++g){u===v.s.r&&(x[g]=Xe(g)),c=x[g]+d;var C=o?(i[u]||[])[g]:i[c];C&&(ru(n,C,u,g,t),l&&C.l&&i["!links"].push([c,C.l]))}}var O=f.CodeName||f.name||a;return l&&J(n,574,Wf((s.Views||[])[0])),l&&(i["!merges"]||[]).length&&J(n,229,Zf(i["!merges"])),l&&Qh(n,i),J(n,442,Ya(O)),l&&Zh(n,i),J(n,10),n.end()}function nu(e,t,r){var n=Je(),a=(e||{}).Workbook||{},i=a.Sheets||[],s=a.WBProps||{},f=r.biff==8,o=r.biff==5;if(J(n,2057,X0(e,5,r)),r.bookType=="xla"&&J(n,135),J(n,225,f?lr(1200):null),J(n,193,Cf(2)),o&&J(n,191),o&&J(n,192),J(n,226),J(n,92,Mf("SheetJS",r)),J(n,66,lr(f?1200:1252)),f&&J(n,353,lr(0)),f&&J(n,448),J(n,317,nl(e.SheetNames.length)),f&&e.vbaraw&&J(n,211),f&&e.vbaraw){var l=s.CodeName||"ThisWorkbook";J(n,442,Ya(l))}J(n,156,lr(17)),J(n,25,Ye(!1)),J(n,18,Ye(!1)),J(n,19,lr(0)),f&&J(n,431,Ye(!1)),f&&J(n,444,lr(0)),J(n,61,bf()),J(n,64,Ye(!1)),J(n,141,lr(0)),J(n,34,Ye(lh(e)=="true")),J(n,14,Ye(!0)),f&&J(n,439,Ye(!1)),J(n,218,lr(0)),$h(n,e,r),Jh(n,e.SSF,r),qh(n,r),f&&J(n,352,Ye(!1));var c=n.end(),d=Je();f&&J(d,140,el()),f&&r.Strings&&Vh(d,252,Uf(r.Strings)),J(d,10);var x=d.end(),v=Je(),_=0,u=0;for(u=0;u<e.SheetNames.length;++u)_+=(f?12:11)+(f?2:1)*e.SheetNames[u].length;var g=c.length+_+x.length;for(u=0;u<e.SheetNames.length;++u){var C=i[u]||{};J(v,133,Bf({pos:g,hs:C.Hidden||0,dt:0,name:e.SheetNames[u]},r)),g+=t[u].length}var O=v.end();if(_!=O.length)throw new Error("BS8 "+_+" != "+O.length);var y=[];return c.length&&y.push(c),O.length&&y.push(O),x.length&&y.push(x),be(y)}function au(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(l0(),f0(e.SSF),r.revssf=o0(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,J0(r),r.cellXfs=[],Mr(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var a=0;a<e.SheetNames.length;++a)n[n.length]=tu(a,r,e);return n.unshift(nu(e,n,r)),be(n)}function Ei(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var a=ar(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return au(e,t);case 4:case 3:case 2:return Yh(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function iu(e,t,r,n){for(var a=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var f=0,o=0,l=0;l<a.length;++l)if(!(a[l].s.r>r||a[l].s.c>s)&&!(a[l].e.r<r||a[l].e.c<s)){if(a[l].s.r<r||a[l].s.c<s){f=-1;break}f=a[l].e.r-a[l].s.r+1,o=a[l].e.c-a[l].s.c+1;break}if(!(f<0)){var c=me({r,c:s}),d=n.dense?(e[r]||[])[s]:e[c],x=d&&d.v!=null&&(d.h||Ps(d.w||(Or(d),d.w)||""))||"",v={};f>1&&(v.rowspan=f),o>1&&(v.colspan=o),n.editable?x='<span contenteditable="true">'+x+"</span>":d&&(v["data-t"]=d&&d.t||"z",d.v!=null&&(v["data-v"]=d.v),d.z!=null&&(v["data-z"]=d.z),d.l&&(d.l.Target||"#").charAt(0)!="#"&&(x='<a href="'+d.l.Target+'">'+x+"</a>")),v.id=(n.id||"sjs")+"-"+c,i.push(z("td",x,v))}}var _="<tr>";return _+i.join("")+"</tr>"}var su='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',fu="</body></html>";function lu(e,t,r){var n=[];return n.join("")+"<table"+(r.id?' id="'+r.id+'"':"")+">"}function wi(e,t){var r=t||{},n=r.header!=null?r.header:su,a=r.footer!=null?r.footer:fu,i=[n],s=ar(e["!ref"]);r.dense=Array.isArray(e),i.push(lu(e,s,r));for(var f=s.s.r;f<=s.e.r;++f)i.push(iu(e,s,f,r));return i.push("</table>"+a),i.join("")}function Si(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?Pe(n.origin):n.origin;a=s.r,i=s.c}var f=t.getElementsByTagName("tr"),o=Math.min(n.sheetRows||1e7,f.length),l={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var c=ar(e["!ref"]);l.s.r=Math.min(l.s.r,c.s.r),l.s.c=Math.min(l.s.c,c.s.c),l.e.r=Math.max(l.e.r,c.e.r),l.e.c=Math.max(l.e.c,c.e.c),a==-1&&(l.e.r=a=c.e.r+1)}var d=[],x=0,v=e["!rows"]||(e["!rows"]=[]),_=0,u=0,g=0,C=0,O=0,y=0;for(e["!cols"]||(e["!cols"]=[]);_<f.length&&u<o;++_){var M=f[_];if(zn(M)){if(n.display)continue;v[u]={hidden:!0}}var Y=M.children;for(g=C=0;g<Y.length;++g){var ee=Y[g];if(!(n.display&&zn(ee))){var D=ee.hasAttribute("data-v")?ee.getAttribute("data-v"):ee.hasAttribute("v")?ee.getAttribute("v"):Us(ee.innerHTML),b=ee.getAttribute("data-z")||ee.getAttribute("z");for(x=0;x<d.length;++x){var L=d[x];L.s.c==C+i&&L.s.r<u+a&&u+a<=L.e.r&&(C=L.e.c+1-i,x=-1)}y=+ee.getAttribute("colspan")||1,((O=+ee.getAttribute("rowspan")||1)>1||y>1)&&d.push({s:{r:u+a,c:C+i},e:{r:u+a+(O||1)-1,c:C+i+(y||1)-1}});var G={t:"s",v:D},V=ee.getAttribute("data-t")||ee.getAttribute("t")||"";D!=null&&(D.length==0?G.t=V||"z":n.raw||D.trim().length==0||V=="s"||(D==="TRUE"?G={t:"b",v:!0}:D==="FALSE"?G={t:"b",v:!1}:isNaN(Fr(D))?isNaN(At(D).getDate())||(G={t:"d",v:$e(D)},n.cellDates||(G={t:"n",v:Ze(G.v)}),G.z=n.dateNF||ye[14]):G={t:"n",v:Fr(D)})),G.z===void 0&&b!=null&&(G.z=b);var j="",re=ee.getElementsByTagName("A");if(re&&re.length)for(var ge=0;ge<re.length&&!(re[ge].hasAttribute("href")&&(j=re[ge].getAttribute("href"),j.charAt(0)!="#"));++ge);j&&j.charAt(0)!="#"&&(G.l={Target:j}),n.dense?(e[u+a]||(e[u+a]=[]),e[u+a][C+i]=G):e[me({c:C+i,r:u+a})]=G,l.e.c<C+i&&(l.e.c=C+i),C+=y}}++u}return d.length&&(e["!merges"]=(e["!merges"]||[]).concat(d)),l.e.r=Math.max(l.e.r,u-1+a),e["!ref"]=De(l),u>=o&&(e["!fullref"]=De((l.e.r=f.length-_+u-1+a,l))),e}function Ai(e,t){var r=t||{},n=r.dense?[]:{};return Si(n,e,t)}function ou(e,t){return jr(Ai(e,t),t)}function zn(e){var t="",r=cu(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function cu(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var hu=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+yt({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Re+t}}(),Yn=function(){var e=function(i){return pe(i).replace(/  +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=`          <table:table-cell />
-`,r=`          <table:covered-table-cell/>
-`,n=function(i,s,f){var o=[];o.push('      <table:table table:name="'+pe(s.SheetNames[f])+`" table:style-name="ta1">
-`);var l=0,c=0,d=ar(i["!ref"]||"A1"),x=i["!merges"]||[],v=0,_=Array.isArray(i);if(i["!cols"])for(c=0;c<=d.e.c;++c)o.push("        <table:table-column"+(i["!cols"][c]?' table:style-name="co'+i["!cols"][c].ods+'"':"")+`></table:table-column>
-`);var u="",g=i["!rows"]||[];for(l=0;l<d.s.r;++l)u=g[l]?' table:style-name="ro'+g[l].ods+'"':"",o.push("        <table:table-row"+u+`></table:table-row>
-`);for(;l<=d.e.r;++l){for(u=g[l]?' table:style-name="ro'+g[l].ods+'"':"",o.push("        <table:table-row"+u+`>
-`),c=0;c<d.s.c;++c)o.push(t);for(;c<=d.e.c;++c){var C=!1,O={},y="";for(v=0;v!=x.length;++v)if(!(x[v].s.c>c)&&!(x[v].s.r>l)&&!(x[v].e.c<c)&&!(x[v].e.r<l)){(x[v].s.c!=c||x[v].s.r!=l)&&(C=!0),O["table:number-columns-spanned"]=x[v].e.c-x[v].s.c+1,O["table:number-rows-spanned"]=x[v].e.r-x[v].s.r+1;break}if(C){o.push(r);continue}var M=me({r:l,c}),Y=_?(i[l]||[])[c]:i[M];if(Y&&Y.f&&(O["table:formula"]=pe(Ic(Y.f)),Y.F&&Y.F.slice(0,M.length)==M)){var ee=ar(Y.F);O["table:number-matrix-columns-spanned"]=ee.e.c-ee.s.c+1,O["table:number-matrix-rows-spanned"]=ee.e.r-ee.s.r+1}if(!Y){o.push(t);continue}switch(Y.t){case"b":y=Y.v?"TRUE":"FALSE",O["office:value-type"]="boolean",O["office:boolean-value"]=Y.v?"true":"false";break;case"n":y=Y.w||String(Y.v||0),O["office:value-type"]="float",O["office:value"]=Y.v||0;break;case"s":case"str":y=Y.v==null?"":Y.v,O["office:value-type"]="string";break;case"d":y=Y.w||$e(Y.v).toISOString(),O["office:value-type"]="date",O["office:date-value"]=$e(Y.v).toISOString(),O["table:style-name"]="ce1";break;default:o.push(t);continue}var D=e(y);if(Y.l&&Y.l.Target){var b=Y.l.Target;b=b.charAt(0)=="#"?"#"+Nc(b.slice(1)):b,b.charAt(0)!="#"&&!b.match(/^\w+:/)&&(b="../"+b),D=z("text:a",D,{"xlink:href":b.replace(/&/g,"&amp;")})}o.push("          "+z("table:table-cell",z("text:p",D,{}),O)+`
-`)}o.push(`        </table:table-row>
-`)}return o.push(`      </table:table>
-`),o.join("")},a=function(i,s){i.push(` <office:automatic-styles>
-`),i.push(`  <number:date-style style:name="N37" number:automatic-order="true">
-`),i.push(`   <number:month number:style="long"/>
-`),i.push(`   <number:text>/</number:text>
-`),i.push(`   <number:day number:style="long"/>
-`),i.push(`   <number:text>/</number:text>
-`),i.push(`   <number:year/>
-`),i.push(`  </number:date-style>
-`);var f=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!cols"]){for(var c=0;c<l["!cols"].length;++c)if(l["!cols"][c]){var d=l["!cols"][c];if(d.width==null&&d.wpx==null&&d.wch==null)continue;j0(d),d.ods=f;var x=l["!cols"][c].wpx+"px";i.push('  <style:style style:name="co'+f+`" style:family="table-column">
-`),i.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+x+`"/>
-`),i.push(`  </style:style>
-`),++f}}});var o=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!rows"]){for(var c=0;c<l["!rows"].length;++c)if(l["!rows"][c]){l["!rows"][c].ods=o;var d=l["!rows"][c].hpx+"px";i.push('  <style:style style:name="ro'+o+`" style:family="table-row">
-`),i.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+d+`"/>
-`),i.push(`  </style:style>
-`),++o}}}),i.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
-`),i.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
-`),i.push(`  </style:style>
-`),i.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
-`),i.push(` </office:automatic-styles>
-`)};return function(s,f){var o=[Re],l=yt({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=yt({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(o.push("<office:document"+l+c+`>
-`),o.push(ba().replace(/office:document-meta/g,"office:meta"))):o.push("<office:document-content"+l+`>
-`),a(o,s),o.push(`  <office:body>
-`),o.push(`    <office:spreadsheet>
-`);for(var d=0;d!=s.SheetNames.length;++d)o.push(n(s.Sheets[s.SheetNames[d]],s,d));return o.push(`    </office:spreadsheet>
-`),o.push(`  </office:body>
-`),f.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}}();function Fi(e,t){if(t.bookType=="fods")return Yn(e,t);var r=P0(),n="",a=[],i=[];return n="mimetype",oe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",oe(r,n,Yn(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",oe(r,n,hu(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",oe(r,n,Re+ba()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",oe(r,n,wf(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",oe(r,n,Tf(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function a0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function uu(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):vr(Ft(e))}function xu(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Lr(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function vu(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function Ct(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function ve(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function it(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Ie(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=Ct(e,r),i=a&7;a=Math.floor(a/8);var s=0,f;if(a==0)break;switch(i){case 0:{for(var o=r[0];e[r[0]++]>=128;);f=e.slice(o,r[0])}break;case 5:s=4,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=Ct(e,r),f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var l={data:f,type:i};t[a]==null?t[a]=[l]:t[a].push(l)}return t}function Be(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(ve(n*8+a.type)),a.type==2&&t.push(ve(a.data.length)),t.push(a.data))})}),Lr(t)}function hr(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=Ct(e,n),i=Ie(e.slice(n[0],n[0]+a));n[0]+=a;var s={id:it(i[1][0].data),messages:[]};i[2].forEach(function(f){var o=Ie(f.data),l=it(o[3][0].data);s.messages.push({meta:o,data:e.slice(n[0],n[0]+l)}),n[0]+=l}),(t=i[3])!=null&&t[0]&&(s.merge=it(i[3][0].data)>>>0>0),r.push(s)}return r}function qr(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:ve(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:ve(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:ve(s.data.length)}],n[2].push({data:Be(s.meta),type:2})});var i=Be(n);t.push(ve(i.length)),t.push(i),a.forEach(function(s){return t.push(s)})}),Lr(t)}function du(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Ct(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var f=s-59;s=t[r[0]],f>1&&(s|=t[r[0]+1]<<8),f>2&&(s|=t[r[0]+2]<<16),f>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=f}a.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var o=0,l=0;if(i==1?(l=(t[r[0]]>>2&7)+4,o=(t[r[0]++]&224)<<3,o|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,i==2?(o=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(o=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Lr(a)],o==0)throw new Error("Invalid offset 0");if(o>a[0].length)throw new Error("Invalid offset beyond length");if(l>=o)for(a.push(a[0].slice(-o)),l-=o;l>=a[a.length-1].length;)a.push(a[a.length-1]),l-=a[a.length-1].length;a.push(a[0].slice(-o,-o+l))}}var c=Lr(a);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function ur(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(du(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Lr(t)}function Qr(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),a=new Uint8Array(4);t.push(a);var i=ve(n),s=i.length;t.push(i),n<=60?(s++,t.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,a[0]=0,a[1]=s&255,a[2]=s>>8&255,a[3]=s>>16&255,r+=n}return Lr(t)}function F0(e,t){var r=new Uint8Array(32),n=a0(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,vu(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function y0(e,t){var r=new Uint8Array(32),n=a0(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function Rr(e){var t=Ie(e);return Ct(t[1][0].data)}function pu(e,t,r){var n,a,i,s;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var f=((s=(i=e[8])==null?void 0:i[0])==null?void 0:s.data)&&it(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var o=0,l=a0(e[7][0].data),c=0,d=[],x=a0(e[4][0].data),v=0,_=[],u=0;u<t.length;++u){if(t[u]==null){l.setUint16(u*2,65535,!0),x.setUint16(u*2,65535);continue}l.setUint16(u*2,c,!0),x.setUint16(u*2,v,!0);var g,C;switch(typeof t[u]){case"string":g=F0({t:"s",v:t[u]},r),C=y0({t:"s",v:t[u]},r);break;case"number":g=F0({t:"n",v:t[u]},r),C=y0({t:"n",v:t[u]},r);break;case"boolean":g=F0({t:"b",v:t[u]},r),C=y0({t:"b",v:t[u]},r);break;default:throw new Error("Unsupported value "+t[u])}d.push(g),c+=g.length,_.push(C),v+=C.length,++o}for(e[2][0].data=ve(o);u<e[7][0].data.length/2;++u)l.setUint16(u*2,65535,!0),x.setUint16(u*2,65535,!0);return e[6][0].data=Lr(d),e[3][0].data=Lr(_),o}function mu(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=ar(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(De(n)));var i=i0(r,{range:n,header:1}),s=["~Sh33tJ5~"];i.forEach(function(P){return P.forEach(function(F){typeof F=="string"&&s.push(F)})});var f={},o=[],l=_e.read(t.numbers,{type:"base64"});l.FileIndex.map(function(P,F){return[P,l.FullPaths[F]]}).forEach(function(P){var F=P[0],A=P[1];if(F.type==2&&F.name.match(/\.iwa/)){var H=F.content,ie=ur(H),se=hr(ie);se.forEach(function(ae){o.push(ae.id),f[ae.id]={deps:[],location:A,type:it(ae.messages[0].meta[1][0].data)}})}}),o.sort(function(P,F){return P-F});var c=o.filter(function(P){return P>1}).map(function(P){return[P,ve(P)]});l.FileIndex.map(function(P,F){return[P,l.FullPaths[F]]}).forEach(function(P){var F=P[0];if(P[1],!!F.name.match(/\.iwa/)){var A=hr(ur(F.content));A.forEach(function(H){H.messages.forEach(function(ie){c.forEach(function(se){H.messages.some(function(ae){return it(ae.meta[1][0].data)!=11006&&xu(ae.data,se[1])})&&f[se[0]].deps.push(H.id)})})})}});for(var d=_e.find(l,f[1].location),x=hr(ur(d.content)),v,_=0;_<x.length;++_){var u=x[_];u.id==1&&(v=u)}var g=Rr(Ie(v.messages[0].data)[1][0].data);for(d=_e.find(l,f[g].location),x=hr(ur(d.content)),_=0;_<x.length;++_)u=x[_],u.id==g&&(v=u);for(g=Rr(Ie(v.messages[0].data)[2][0].data),d=_e.find(l,f[g].location),x=hr(ur(d.content)),_=0;_<x.length;++_)u=x[_],u.id==g&&(v=u);for(g=Rr(Ie(v.messages[0].data)[2][0].data),d=_e.find(l,f[g].location),x=hr(ur(d.content)),_=0;_<x.length;++_)u=x[_],u.id==g&&(v=u);var C=Ie(v.messages[0].data);{C[6][0].data=ve(n.e.r+1),C[7][0].data=ve(n.e.c+1);var O=Rr(C[46][0].data),y=_e.find(l,f[O].location),M=hr(ur(y.content));{for(var Y=0;Y<M.length&&M[Y].id!=O;++Y);if(M[Y].id!=O)throw"Bad ColumnRowUIDMapArchive";var ee=Ie(M[Y].messages[0].data);ee[1]=[],ee[2]=[],ee[3]=[];for(var D=0;D<=n.e.c;++D){var b=[];b[1]=b[2]=[{type:0,data:ve(D+420690)}],ee[1].push({type:2,data:Be(b)}),ee[2].push({type:0,data:ve(D)}),ee[3].push({type:0,data:ve(D)})}ee[4]=[],ee[5]=[],ee[6]=[];for(var L=0;L<=n.e.r;++L)b=[],b[1]=b[2]=[{type:0,data:ve(L+726270)}],ee[4].push({type:2,data:Be(b)}),ee[5].push({type:0,data:ve(L)}),ee[6].push({type:0,data:ve(L)});M[Y].messages[0].data=Be(ee)}y.content=Qr(qr(M)),y.size=y.content.length,delete C[46];var G=Ie(C[4][0].data);{G[7][0].data=ve(n.e.r+1);var V=Ie(G[1][0].data),j=Rr(V[2][0].data);y=_e.find(l,f[j].location),M=hr(ur(y.content));{if(M[0].id!=j)throw"Bad HeaderStorageBucket";var re=Ie(M[0].messages[0].data);for(L=0;L<i.length;++L){var ge=Ie(re[2][0].data);ge[1][0].data=ve(L),ge[4][0].data=ve(i[L].length),re[2][L]={type:re[2][0].type,data:Be(ge)}}M[0].messages[0].data=Be(re)}y.content=Qr(qr(M)),y.size=y.content.length;var le=Rr(G[2][0].data);y=_e.find(l,f[le].location),M=hr(ur(y.content));{if(M[0].id!=le)throw"Bad HeaderStorageBucket";for(re=Ie(M[0].messages[0].data),D=0;D<=n.e.c;++D)ge=Ie(re[2][0].data),ge[1][0].data=ve(D),ge[4][0].data=ve(n.e.r+1),re[2][D]={type:re[2][0].type,data:Be(ge)};M[0].messages[0].data=Be(re)}y.content=Qr(qr(M)),y.size=y.content.length;var Me=Rr(G[4][0].data);(function(){for(var P=_e.find(l,f[Me].location),F=hr(ur(P.content)),A,H=0;H<F.length;++H){var ie=F[H];ie.id==Me&&(A=ie)}var se=Ie(A.messages[0].data);{se[3]=[];var ae=[];s.forEach(function(ce,Ke){ae[1]=[{type:0,data:ve(Ke)}],ae[2]=[{type:0,data:ve(1)}],ae[3]=[{type:2,data:uu(ce)}],se[3].push({type:2,data:Be(ae)})})}A.messages[0].data=Be(se);var q=qr(F),Te=Qr(q);P.content=Te,P.size=P.content.length})();var Ce=Ie(G[3][0].data);{var cr=Ce[1][0];delete Ce[2];var Ne=Ie(cr.data);{var ir=Rr(Ne[2][0].data);(function(){for(var P=_e.find(l,f[ir].location),F=hr(ur(P.content)),A,H=0;H<F.length;++H){var ie=F[H];ie.id==ir&&(A=ie)}var se=Ie(A.messages[0].data);{delete se[6],delete Ce[7];var ae=new Uint8Array(se[5][0].data);se[5]=[];for(var q=0,Te=0;Te<=n.e.r;++Te){var ce=Ie(ae);q+=pu(ce,i[Te],s),ce[1][0].data=ve(Te),se[5].push({data:Be(ce),type:2})}se[1]=[{type:0,data:ve(n.e.c+1)}],se[2]=[{type:0,data:ve(n.e.r+1)}],se[3]=[{type:0,data:ve(q)}],se[4]=[{type:0,data:ve(n.e.r+1)}]}A.messages[0].data=Be(se);var Ke=qr(F),xe=Qr(Ke);P.content=xe,P.size=P.content.length})()}cr.data=Be(Ne)}G[3][0].data=Be(Ce)}C[4][0].data=Be(G)}v.messages[0].data=Be(C);var Qe=qr(x),S=Qr(Qe);return d.content=S,d.size=d.content.length,l}function gu(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function J0(e){gu([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function _u(e,t){return t.bookType=="ods"?Fi(e,t):t.bookType=="numbers"?mu(e,t):t.bookType=="xlsb"?Tu(e,t):Eu(e,t)}function Tu(e,t){rt=1024,e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(l0(),f0(e.SSF),t.revssf=o0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Et?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=fi.indexOf(t.bookType)>-1,a=Ma();J0(t=t||{});var i=P0(),s="",f=0;if(t.cellXfs=[],Mr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",oe(i,s,Wa(e.Props,t)),a.coreprops.push(s),de(t.rels,2,s,he.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(e.SheetNames[l]);e.Props.SheetNames=o}for(e.Props.Worksheets=e.Props.SheetNames.length,oe(i,s,Ga(e.Props)),a.extprops.push(s),de(t.rels,3,s,he.EXT_PROPS),e.Custprops!==e.Props&&Ge(e.Custprops||{}).length>0&&(s="docProps/custom.xml",oe(i,s,Va(e.Custprops)),a.custprops.push(s),de(t.rels,4,s,he.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var c={"!id":{}},d=e.Sheets[e.SheetNames[f-1]],x=(d||{})["!type"]||"sheet";switch(x){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,oe(i,s,Sh(f-1,s,t,e,c)),a.sheets.push(s),de(t.wbrels,-1,"worksheets/sheet"+f+"."+r,he.WS[0])}if(d){var v=d["!comments"],_=!1,u="";v&&v.length>0&&(u="xl/comments"+f+"."+r,oe(i,u,yh(v,u)),a.comments.push(u),de(c,-1,"../comments"+f+"."+r,he.CMNT),_=!0),d["!legacy"]&&_&&oe(i,"xl/drawings/vmlDrawing"+f+".vml",ii(f,d["!comments"])),delete d["!comments"],delete d["!legacy"]}c["!id"].rId1&&oe(i,Ua(s),nt(c))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,oe(i,s,Fh(t.Strings,s,t)),a.strs.push(s),de(t.wbrels,-1,"sharedStrings."+r,he.SST)),s="xl/workbook."+r,oe(i,s,wh(e,s)),a.workbooks.push(s),de(t.rels,1,s,he.WB),s="xl/theme/theme1.xml",oe(i,s,ni(e.Themes,t)),a.themes.push(s),de(t.wbrels,-1,"theme/theme1.xml",he.THEME),s="xl/styles."+r,oe(i,s,Ah(e,s,t)),a.styles.push(s),de(t.wbrels,-1,"styles."+r,he.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",oe(i,s,e.vbaraw),a.vba.push(s),de(t.wbrels,-1,"vbaProject.bin",he.VBA)),s="xl/metadata."+r,oe(i,s,Ch(s)),a.metadata.push(s),de(t.wbrels,-1,"metadata."+r,he.XLMETA),oe(i,"[Content_Types].xml",Ba(a,t)),oe(i,"_rels/.rels",nt(t.rels)),oe(i,"xl/_rels/workbook."+r+".rels",nt(t.wbrels)),delete t.revssf,delete t.ssf,i}function Eu(e,t){rt=1024,e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(l0(),f0(e.SSF),t.revssf=o0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Et?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=fi.indexOf(t.bookType)>-1,a=Ma();J0(t=t||{});var i=P0(),s="",f=0;if(t.cellXfs=[],Mr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",oe(i,s,Wa(e.Props,t)),a.coreprops.push(s),de(t.rels,2,s,he.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(e.SheetNames[l]);e.Props.SheetNames=o}e.Props.Worksheets=e.Props.SheetNames.length,oe(i,s,Ga(e.Props)),a.extprops.push(s),de(t.rels,3,s,he.EXT_PROPS),e.Custprops!==e.Props&&Ge(e.Custprops||{}).length>0&&(s="docProps/custom.xml",oe(i,s,Va(e.Custprops)),a.custprops.push(s),de(t.rels,4,s,he.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,f=1;f<=e.SheetNames.length;++f){var d={"!id":{}},x=e.Sheets[e.SheetNames[f-1]],v=(x||{})["!type"]||"sheet";switch(v){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,oe(i,s,pi(f-1,t,e,d)),a.sheets.push(s),de(t.wbrels,-1,"worksheets/sheet"+f+"."+r,he.WS[0])}if(x){var _=x["!comments"],u=!1,g="";if(_&&_.length>0){var C=!1;_.forEach(function(O){O[1].forEach(function(y){y.T==!0&&(C=!0)})}),C&&(g="xl/threadedComments/threadedComment"+f+"."+r,oe(i,g,Zl(_,c,t)),a.threadedcomments.push(g),de(d,-1,"../threadedComments/threadedComment"+f+"."+r,he.TCMNT)),g="xl/comments"+f+"."+r,oe(i,g,si(_)),a.comments.push(g),de(d,-1,"../comments"+f+"."+r,he.CMNT),u=!0}x["!legacy"]&&u&&oe(i,"xl/drawings/vmlDrawing"+f+".vml",ii(f,x["!comments"])),delete x["!comments"],delete x["!legacy"]}d["!id"].rId1&&oe(i,Ua(s),nt(d))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,oe(i,s,Za(t.Strings,t)),a.strs.push(s),de(t.wbrels,-1,"sharedStrings."+r,he.SST)),s="xl/workbook."+r,oe(i,s,_i(e)),a.workbooks.push(s),de(t.rels,1,s,he.WB),s="xl/theme/theme1.xml",oe(i,s,ni(e.Themes,t)),a.themes.push(s),de(t.wbrels,-1,"theme/theme1.xml",he.THEME),s="xl/styles."+r,oe(i,s,ri(e,t)),a.styles.push(s),de(t.wbrels,-1,"styles."+r,he.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",oe(i,s,e.vbaraw),a.vba.push(s),de(t.wbrels,-1,"vbaProject.bin",he.VBA)),s="xl/metadata."+r,oe(i,s,ai()),a.metadata.push(s),de(t.wbrels,-1,"metadata."+r,he.XLMETA),c.length>1&&(s="xl/persons/person.xml",oe(i,s,ql(c)),a.people.push(s),de(t.wbrels,-1,"persons/person.xml",he.PEOPLE)),oe(i,"[Content_Types].xml",Ba(a,t)),oe(i,"_rels/.rels",nt(t.rels)),oe(i,"xl/_rels/workbook."+r+".rels",nt(t.wbrels)),delete t.revssf,delete t.ssf,i}function wu(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Cr(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function yi(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Rt(t.file,_e.write(e,{type:ue?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return _e.write(e,t)}function Su(e,t){var r=qe(t||{}),n=_u(e,r);return Au(n,r)}function Au(e,t){var r={},n=ue?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?_e.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(s0(a))}return t.password&&typeof encrypt_agile<"u"?yi(encrypt_agile(a,t.password),t):t.type==="file"?Rt(t.file,a):t.type=="string"?mt(a):a}function Fu(e,t){var r=t||{},n=Hh(e,r);return yi(n,r)}function _r(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return St(Ft(n));case"binary":return Ft(n);case"string":return e;case"file":return Rt(t.file,n,"utf8");case"buffer":return ue?Dr(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):_r(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function yu(e,t){switch(t.type){case"base64":return St(e);case"binary":return e;case"string":return e;case"file":return Rt(t.file,e,"binary");case"buffer":return ue?Dr(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Xt(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?St(r):t.type=="string"?mt(r):r;case"file":return Rt(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Cu(e,t){qi(),hh(e);var r=qe(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=Cu(e,r);return r.type="array",s0(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=e.SheetNames.indexOf(r.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return _r(bh(e,r),r);case"slk":case"sylk":return _r(fl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"htm":case"html":return _r(wi(e.Sheets[e.SheetNames[a]],r),r);case"txt":return yu(Ci(e.Sheets[e.SheetNames[a]],r),r);case"csv":return _r(Z0(e.Sheets[e.SheetNames[a]],r),r,"\uFEFF");case"dif":return _r(ll.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"dbf":return Xt(sl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"prn":return _r(ol.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"rtf":return _r(pl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"eth":return _r(Ja.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"fods":return _r(Fi(e,r),r);case"wk1":return Xt(Hn.sheet_to_wk1(e.Sheets[e.SheetNames[a]],r),r);case"wk3":return Xt(Hn.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Xt(Ei(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),Fu(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return Su(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function Ou(e,t,r,n,a,i,s,f){var o=He(r),l=f.defval,c=f.raw||!Object.prototype.hasOwnProperty.call(f,"raw"),d=!0,x=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(x,"__rowNum__",{value:r,enumerable:!1})}catch{x.__rowNum__=r}else x.__rowNum__=r;if(!s||e[r])for(var v=t.s.c;v<=t.e.c;++v){var _=s?e[r][v]:e[n[v]+o];if(_===void 0||_.t===void 0){if(l===void 0)continue;i[v]!=null&&(x[i[v]]=l);continue}var u=_.v;switch(_.t){case"z":if(u==null)break;continue;case"e":u=u==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+_.t)}if(i[v]!=null){if(u==null)if(_.t=="e"&&u===null)x[i[v]]=null;else if(l!==void 0)x[i[v]]=l;else if(c&&u===null)x[i[v]]=null;else continue;else x[i[v]]=c&&(_.t!=="n"||_.t==="n"&&f.rawNumbers!==!1)?u:Or(_,u,f);u!=null&&(d=!1)}}return{row:x,isempty:d}}function i0(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],s=0,f="",o={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},c=l.range!=null?l.range:e["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof c){case"string":o=Ee(c);break;case"number":o=Ee(e["!ref"]),o.s.r=c;break;default:o=c}n>0&&(a=0);var d=He(o.s.r),x=[],v=[],_=0,u=0,g=Array.isArray(e),C=o.s.r,O=0,y={};g&&!e[C]&&(e[C]=[]);var M=l.skipHidden&&e["!cols"]||[],Y=l.skipHidden&&e["!rows"]||[];for(O=o.s.c;O<=o.e.c;++O)if(!(M[O]||{}).hidden)switch(x[O]=Xe(O),r=g?e[C][O]:e[x[O]+d],n){case 1:i[O]=O-o.s.c;break;case 2:i[O]=x[O];break;case 3:i[O]=l.header[O-o.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),f=s=Or(r,null,l),u=y[s]||0,!u)y[s]=1;else{do f=s+"_"+u++;while(y[f]);y[s]=u,y[f]=1}i[O]=f}for(C=o.s.r+a;C<=o.e.r;++C)if(!(Y[C]||{}).hidden){var ee=Ou(e,o,C,x,n,i,g,l);(ee.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(v[_++]=ee.row)}return v.length=_,v}var $n=/"/g;function Du(e,t,r,n,a,i,s,f){for(var o=!0,l=[],c="",d=He(r),x=t.s.c;x<=t.e.c;++x)if(n[x]){var v=f.dense?(e[r]||[])[x]:e[n[x]+d];if(v==null)c="";else if(v.v!=null){o=!1,c=""+(f.rawNumbers&&v.t=="n"?v.v:Or(v,null,f));for(var _=0,u=0;_!==c.length;++_)if((u=c.charCodeAt(_))===a||u===i||u===34||f.forceQuotes){c='"'+c.replace($n,'""')+'"';break}c=="ID"&&(c='"ID"')}else v.f!=null&&!v.F?(o=!1,c="="+v.f,c.indexOf(",")>=0&&(c='"'+c.replace($n,'""')+'"')):c="";l.push(c)}return f.blankrows===!1&&o?null:l.join(s)}function Z0(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=Ee(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),f=n.RS!==void 0?n.RS:`
-`,o=f.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",d=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],_=a.s.c;_<=a.e.c;++_)(x[_]||{}).hidden||(d[_]=Xe(_));for(var u=0,g=a.s.r;g<=a.e.r;++g)(v[g]||{}).hidden||(c=Du(e,a,g,d,s,o,i,n),c!=null&&(n.strip&&(c=c.replace(l,"")),(c||n.blankrows!==!1)&&r.push((u++?f:"")+c)));return delete n.dense,r.join("")}function Ci(e,t){t||(t={}),t.FS="	",t.RS=`
-`;var r=Z0(e,t);return r}function Ru(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Ee(e["!ref"]),i="",s=[],f,o=[],l=Array.isArray(e);for(f=a.s.c;f<=a.e.c;++f)s[f]=Xe(f);for(var c=a.s.r;c<=a.e.r;++c)for(i=He(c),f=a.s.c;f<=a.e.c;++f)if(t=s[f]+i,r=l?(e[c]||[])[f]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}o[o.length]=t+"="+n}return o}function Oi(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,f=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Pe(n.origin):n.origin;s=o.r,f=o.c}var l,c={s:{c:0,r:0},e:{c:f,r:s+t.length-1+a}};if(i["!ref"]){var d=Ee(i["!ref"]);c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),s==-1&&(s=d.e.r+1,c.e.r=s+t.length-1+a)}else s==-1&&(s=0,c.e.r=t.length-1+a);var x=n.header||[],v=0;t.forEach(function(u,g){Ge(u).forEach(function(C){(v=x.indexOf(C))==-1&&(x[v=x.length]=C);var O=u[C],y="z",M="",Y=me({c:f+v,r:s+g+a});l=Ot(i,Y),O&&typeof O=="object"&&!(O instanceof Date)?i[Y]=O:(typeof O=="number"?y="n":typeof O=="boolean"?y="b":typeof O=="string"?y="s":O instanceof Date?(y="d",n.cellDates||(y="n",O=Ze(O)),M=n.dateNF||ye[14]):O===null&&n.nullError&&(y="e",O=0),l?(l.t=y,l.v=O,delete l.w,delete l.R,M&&(l.z=M)):i[Y]=l={t:y,v:O},M&&(l.z=M))})}),c.e.c=Math.max(c.e.c,f+x.length-1);var _=He(s);if(a)for(v=0;v<x.length;++v)i[Xe(v+f)+_]={t:"s",v:x[v]};return i["!ref"]=De(c),i}function Iu(e,t){return Oi(null,e,t)}function Ot(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Pe(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Ot(e,me(t)):Ot(e,me({r:t,c:r||0}))}function Nu(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function ku(){return{SheetNames:[],Sheets:{}}}function Pu(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(gi(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Lu(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Nu(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function Mu(e,t){return e.z=t,e}function Di(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Bu(e,t,r){return Di(e,"#"+t,r)}function Uu(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function bu(e,t,r,n){for(var a=typeof t!="string"?t:Ee(t),i=typeof t=="string"?t:De(t),s=a.s.r;s<=a.e.r;++s)for(var f=a.s.c;f<=a.e.c;++f){var o=Ot(e,s,f);o.t="n",o.F=i,delete o.v,s==a.s.r&&f==a.s.c&&(o.f=r,n&&(o.D=!0))}return e}var Vu={encode_col:Xe,encode_row:He,encode_cell:me,encode_range:De,decode_col:W0,decode_row:b0,split_cell:qs,decode_cell:Pe,decode_range:ar,format_cell:Or,sheet_add_aoa:Ra,sheet_add_json:Oi,sheet_add_dom:Si,aoa_to_sheet:lt,json_to_sheet:Iu,table_to_sheet:Ai,table_to_book:ou,sheet_to_csv:Z0,sheet_to_txt:Ci,sheet_to_json:i0,sheet_to_html:wi,sheet_to_formulae:Ru,sheet_to_row_object_array:i0,sheet_get_cell:Ot,book_new:ku,book_append_sheet:Pu,book_set_sheet_visibility:Lu,cell_set_number_format:Mu,cell_set_hyperlink:Di,cell_set_internal_link:Bu,cell_add_comment:Uu,sheet_set_array_formula:bu,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};export{Hu as L,Gu as S,Vu as u,Cu as w};
diff --git a/setup.py b/setup.py
index 8c21645e67757b0b6ca3162fe5f357282b5f11ff..846d6b205727a60d8aff35b19e7e8229378d3887 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
 
 setup(
     name='compendium-v2',
-    version="0.88",
+    version="0.89",
     author='GEANT',
     author_email='swd@geant.org',
     description='Flask and React project for displaying '
diff --git a/test/test_legacy_survey_generation.py b/test/test_legacy_survey_generation.py
index b27e555807e786cf54e0423da8d3986c7e4c2330..71781d215683556e1ef0b50e029847009c8882f7 100644
--- a/test/test_legacy_survey_generation.py
+++ b/test/test_legacy_survey_generation.py
@@ -259,7 +259,7 @@ def test_legacy_publisher(app_with_survey_db, mocker, nren_services):
 
     with app_with_survey_db.app_context():
         responses = db.session.query(SurveyResponse).all()
-        assert len(responses) == 76
+        assert len(responses) == 77
 
         nrens = set([resp.nren.name for resp in responses])